Skip to content

Conversation

@hwchase17
Copy link
Contributor

No description provided.

@hwchase17 hwchase17 merged commit c48e6aa into master Oct 17, 2022
@hwchase17 hwchase17 deleted the harrison/add_docstrings branch October 21, 2022 20:11
ivendrov pushed a commit to ivendrov/langchain that referenced this pull request Feb 14, 2023
Wrap prompt with "Human" and "Assistant" by default
hwchase17 pushed a commit that referenced this pull request Apr 27, 2023
without --no-sandbox param, load documents from url by selenium in
chrome occured error below:

```Traceback (most recent call last):
  File "/data//playgroud/try_langchain.py", line 343, in <module>
    langchain_doc_loader()
  File "/data//playgroud/try_langchain.py", line 67, in langchain_doc_loader
    documents = loader.load()
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/langchain/document_loaders/url_selenium.py", line 102, in load
    driver = self._get_driver()
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/langchain/document_loaders/url_selenium.py", line 76, in _get_driver
    return Chrome(options=chrome_options)
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 80, in __init__
    super().__init__(
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 104, in __init__
    super().__init__(
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 286, in __init__
    self.start_session(capabilities, browser_profile)
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x55cf8da1bfe3 <unknown>
#1 0x55cf8d75ad36 <unknown>
#2 0x55cf8d783b20 <unknown>
#3 0x55cf8d77fa9b <unknown>
#4 0x55cf8d7c1af7 <unknown>
#5 0x55cf8d7c111f <unknown>
#6 0x55cf8d7b8693 <unknown>
#7 0x55cf8d78b03a <unknown>
#8 0x55cf8d78c17e <unknown>
#9 0x55cf8d9dddbd <unknown>
#10 0x55cf8d9e1c6c <unknown>
#11 0x55cf8d9eb4b0 <unknown>
#12 0x55cf8d9e2d63 <unknown>
#13 0x55cf8d9b5c35 <unknown>
#14 0x55cf8da06138 <unknown>
#15 0x55cf8da062c7 <unknown>
#16 0x55cf8da14093 <unknown>
#17 0x7f3da31a72de start_thread
```

add option `chrome_options.add_argument("--no-sandbox")` for chrome.
svdeepak99 added a commit to svdeepak99/langchain that referenced this pull request Apr 28, 2023
vowelparrot pushed a commit that referenced this pull request Apr 28, 2023
without --no-sandbox param, load documents from url by selenium in
chrome occured error below:

```Traceback (most recent call last):
  File "/data//playgroud/try_langchain.py", line 343, in <module>
    langchain_doc_loader()
  File "/data//playgroud/try_langchain.py", line 67, in langchain_doc_loader
    documents = loader.load()
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/langchain/document_loaders/url_selenium.py", line 102, in load
    driver = self._get_driver()
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/langchain/document_loaders/url_selenium.py", line 76, in _get_driver
    return Chrome(options=chrome_options)
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 80, in __init__
    super().__init__(
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 104, in __init__
    super().__init__(
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 286, in __init__
    self.start_session(capabilities, browser_profile)
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x55cf8da1bfe3 <unknown>
#1 0x55cf8d75ad36 <unknown>
#2 0x55cf8d783b20 <unknown>
#3 0x55cf8d77fa9b <unknown>
#4 0x55cf8d7c1af7 <unknown>
#5 0x55cf8d7c111f <unknown>
#6 0x55cf8d7b8693 <unknown>
#7 0x55cf8d78b03a <unknown>
#8 0x55cf8d78c17e <unknown>
#9 0x55cf8d9dddbd <unknown>
#10 0x55cf8d9e1c6c <unknown>
#11 0x55cf8d9eb4b0 <unknown>
#12 0x55cf8d9e2d63 <unknown>
#13 0x55cf8d9b5c35 <unknown>
#14 0x55cf8da06138 <unknown>
#15 0x55cf8da062c7 <unknown>
#16 0x55cf8da14093 <unknown>
#17 0x7f3da31a72de start_thread
```

add option `chrome_options.add_argument("--no-sandbox")` for chrome.
samching pushed a commit to samching/langchain that referenced this pull request May 1, 2023
without --no-sandbox param, load documents from url by selenium in
chrome occured error below:

```Traceback (most recent call last):
  File "/data//playgroud/try_langchain.py", line 343, in <module>
    langchain_doc_loader()
  File "/data//playgroud/try_langchain.py", line 67, in langchain_doc_loader
    documents = loader.load()
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/langchain/document_loaders/url_selenium.py", line 102, in load
    driver = self._get_driver()
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/langchain/document_loaders/url_selenium.py", line 76, in _get_driver
    return Chrome(options=chrome_options)
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 80, in __init__
    super().__init__(
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 104, in __init__
    super().__init__(
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 286, in __init__
    self.start_session(capabilities, browser_profile)
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
  File "/install/anaconda3-env/envs/python3.10/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x55cf8da1bfe3 <unknown>
langchain-ai#1 0x55cf8d75ad36 <unknown>
langchain-ai#2 0x55cf8d783b20 <unknown>
langchain-ai#3 0x55cf8d77fa9b <unknown>
langchain-ai#4 0x55cf8d7c1af7 <unknown>
langchain-ai#5 0x55cf8d7c111f <unknown>
langchain-ai#6 0x55cf8d7b8693 <unknown>
langchain-ai#7 0x55cf8d78b03a <unknown>
langchain-ai#8 0x55cf8d78c17e <unknown>
langchain-ai#9 0x55cf8d9dddbd <unknown>
langchain-ai#10 0x55cf8d9e1c6c <unknown>
langchain-ai#11 0x55cf8d9eb4b0 <unknown>
langchain-ai#12 0x55cf8d9e2d63 <unknown>
langchain-ai#13 0x55cf8d9b5c35 <unknown>
langchain-ai#14 0x55cf8da06138 <unknown>
langchain-ai#15 0x55cf8da062c7 <unknown>
langchain-ai#16 0x55cf8da14093 <unknown>
langchain-ai#17 0x7f3da31a72de start_thread
```

add option `chrome_options.add_argument("--no-sandbox")` for chrome.
hwchase17 pushed a commit that referenced this pull request Jun 18, 2023
Expanded Self-Query Retriever and Self-Query Retriever with MyScale
dev2049 pushed a commit that referenced this pull request Jun 21, 2023
add embeddings using instructor large endpoint
dev2049 pushed a commit that referenced this pull request Aug 10, 2023
* bageldb.py added

* refactor

* import issue

* bagel updated

* Feature/bageldb (#2)

* Changes
- added new funtions
- refactor constructor

* embeddings changed and removed vars

* test updated

* test_add_only_texts

* var refactor and metadatas issue solved

* similarity_search added with other necessary

* test_similarity_search added

* for testing req

* Feature/bageldb (#3)

* Changes
- added new funtions
- refactor constructor

* embeddings changed and removed vars

* test updated

* test_add_only_texts

* var refactor and metadatas issue solved

* similarity_search added with other necessary

* test_similarity_search added

* for testing req

* from_texts added

* from_texts test

* adding more tests

* changes :
- add_texts updated
- delete_cluster created
- similarity_search_by_vector_with_relevance_scores created
-

* similarity_search_by_vector added

* Changes
- added new funtions
- refactor constructor

* embeddings changed and removed vars

* test updated

* test_add_only_texts

* var refactor and metadatas issue solved

* similarity_search added with other necessary

* test_similarity_search added

* from_texts added

* from_texts test

* adding more tests

* changes :
- add_texts updated
- delete_cluster created
- similarity_search_by_vector_with_relevance_scores created
-

* similarity_search_by_vector added

* example removed

* Feature/doc (#4)

* document search

* function need server side support

* get added

* import issue

* moved

* removed requiremnets

* docs added

* poetry files updated (#6)

* lint fix (#5)

* lint fix

* more fix

* fix conflict

* Revert "fix conflict"

This reverts commit aa7d952d7297fbf81b838ae9894e0ca45327a587.

* more changes

* lint solved

* embedding function

* _embedding_function added

* else added

* text_embe renamed

* blank line added

* more lint fix

* more lint fix

* fix black errors

* fix ruff error

* test_dependencies passed

* optional

* import updated

* ruff fixed

---------

Co-authored-by: Towhid1 <nurulaktertowhid@gmail.com>

* betabageldb added (#8)

* lock issue solved

---------

Co-authored-by: Towhid1 <nurulaktertowhid@gmail.com>
ihnorton pushed a commit to ihnorton/langchain that referenced this pull request Sep 15, 2023
baskaryan pushed a commit that referenced this pull request Oct 6, 2023
Dependency and import fixes
Prince-Mendiratta pushed a commit to Prince-Mendiratta/langchain that referenced this pull request Oct 17, 2023
hwchase17 pushed a commit that referenced this pull request Nov 30, 2023
Re-write the MongoDB query checker
leo-gan added a commit to leo-gan/langchain that referenced this pull request Dec 18, 2023
� This is the 1st commit message:

added provider page; added links and descriptions

� The commit message langchain-ai#2 will be skipped:

� added provider page; added links and descriptions
srics pushed a commit to srics/langchain that referenced this pull request Feb 1, 2024
* Enhanced DaxaSafeLoader as per review comments:

 - Remane eof macro to loading_end, make default value to "false".
   - in load, send loading_end s "true".
   - in lazy load send empty doc with loading_end as "true" when stopIteration is found.
 - remove call is for en
 - change /discover to /api/discover
 - add load_id
 - add owner in loader init

---------

Signed-off-by: Rahul Tripathi <rahul@clouddefense.io>
Co-authored-by: Rahul Tripathi <rahul@clouddefense.io>
efriis pushed a commit that referenced this pull request Feb 15, 2024
efriis pushed a commit that referenced this pull request Sep 26, 2024
baskaryan added a commit that referenced this pull request Oct 1, 2024
lossyrob pushed a commit to lossyrob/langchain that referenced this pull request Oct 9, 2024
…res-entra-example

Update Azure DB for PostgreSQL example with Entra auth.
efriis pushed a commit that referenced this pull request Dec 14, 2024
* feat: Update aerospike-vector-search client to 1.0.0

* fix: Remove unsupported options from ini_options

* rename metadatas to labels

---------

Co-authored-by: Jesse Schumacher <jschumacher@aerospike.com>
fileames pushed a commit to rohanaggarwal7997/langchain that referenced this pull request Jun 4, 2025
* update project urls in pyproject.toml

* enable ci

* run in 3.13

* update test dep sources
Asya02 pushed a commit to Asya02/langchain that referenced this pull request Sep 25, 2025
Asya02 pushed a commit to Asya02/langchain that referenced this pull request Sep 25, 2025
Merge in SDVOICE/gigachain from feature/new_gigachat_client to master

* commit '49b2efad0e9a4d84de9eac32c59b5ae8b1a3cba3':
  fix profanity_check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants