url
stringlengths
63
64
repository_url
stringclasses
1 value
labels_url
stringlengths
77
78
comments_url
stringlengths
72
73
events_url
stringlengths
70
71
html_url
stringlengths
51
54
id
int64
1.73B
2.09B
node_id
stringlengths
18
19
number
int64
5.23k
16.2k
title
stringlengths
1
385
user
dict
labels
list
state
stringclasses
2 values
locked
bool
2 classes
assignee
dict
assignees
list
milestone
null
comments
int64
0
56
created_at
timestamp[s]
updated_at
timestamp[s]
closed_at
timestamp[s]
author_association
stringclasses
3 values
active_lock_reason
null
body
stringlengths
1
55.4k
reactions
dict
timeline_url
stringlengths
72
73
performed_via_github_app
null
state_reason
stringclasses
3 values
draft
bool
2 classes
pull_request
dict
https://api.github.com/repos/langchain-ai/langchain/issues/10819
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10819/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10819/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10819/events
https://github.com/langchain-ai/langchain/pull/10819
1,904,226,563
PR_kwDOIPDwls5avm8y
10,819
poc
{ "login": "hinthornw", "id": 13333726, "node_id": "MDQ6VXNlcjEzMzMzNzI2", "avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hinthornw", "html_url": "https://github.com/hinthornw", "followers_url": "https://api.github.com/users/hinthornw/followers", "following_url": "https://api.github.com/users/hinthornw/following{/other_user}", "gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}", "starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions", "organizations_url": "https://api.github.com/users/hinthornw/orgs", "repos_url": "https://api.github.com/users/hinthornw/repos", "events_url": "https://api.github.com/users/hinthornw/events{/privacy}", "received_events_url": "https://api.github.com/users/hinthornw/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-09-20T06:10:35
2023-09-20T08:37:17
2023-09-20T08:37:17
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10819/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10819/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10819", "html_url": "https://github.com/langchain-ai/langchain/pull/10819", "diff_url": "https://github.com/langchain-ai/langchain/pull/10819.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10819.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10817
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10817/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10817/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10817/events
https://github.com/langchain-ai/langchain/pull/10817
1,904,095,109
PR_kwDOIPDwls5avKDx
10,817
Further Enhancement to WeaviateHybridSearchRetriever
{ "login": "douglasmonsky", "id": 29297119, "node_id": "MDQ6VXNlcjI5Mjk3MTE5", "avatar_url": "https://avatars.githubusercontent.com/u/29297119?v=4", "gravatar_id": "", "url": "https://api.github.com/users/douglasmonsky", "html_url": "https://github.com/douglasmonsky", "followers_url": "https://api.github.com/users/douglasmonsky/followers", "following_url": "https://api.github.com/users/douglasmonsky/following{/other_user}", "gists_url": "https://api.github.com/users/douglasmonsky/gists{/gist_id}", "starred_url": "https://api.github.com/users/douglasmonsky/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/douglasmonsky/subscriptions", "organizations_url": "https://api.github.com/users/douglasmonsky/orgs", "repos_url": "https://api.github.com/users/douglasmonsky/repos", "events_url": "https://api.github.com/users/douglasmonsky/events{/privacy}", "received_events_url": "https://api.github.com/users/douglasmonsky/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
2
2023-09-20T04:19:16
2023-09-27T22:59:49
null
CONTRIBUTOR
null
**Description:** Upon working with the retriever further, I realized that when it is used in an existing chain, you don’t directly call `get_relevant_documents()`. This makes it challenging to pass the `hybrid_search_kwargs` to the underly function. To address this, I’ve introduced a minor patch in this commit. By adding `hybrid_search_kwargs` as a class variable, we can now handle a wider range of realistic use cases without conflicting with the previously pushed version. Here is a simple example: ```python retreiver = WeaviateHybridSearchRetriever( client=client, index_name="Document", text_key="content", hybrid_search_kwargs={"properties": ["title", "summary", "content"]}, ) llm = OpenAI() conversation_chain = ConversationalRetrievalChain.from_llm(llm=llm,retriever=retreiver) # When called within conversation_chain invocation def _get_relevant_documents(self, ...): ... # Prioritizes function argument, then class var, finally empty {} if hybrid_search_kwargs is None: hybrid_search_kwargs = self.hybrid_search_kwargs or {} ... ``` **Tag maintainer:** @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10817/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10817/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10817", "html_url": "https://github.com/langchain-ai/langchain/pull/10817", "diff_url": "https://github.com/langchain-ai/langchain/pull/10817.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10817.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10816
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10816/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10816/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10816/events
https://github.com/langchain-ai/langchain/pull/10816
1,904,087,033
PR_kwDOIPDwls5avIQN
10,816
corrected spelling (#62)
{ "login": "ShorthillsAI", "id": 141953346, "node_id": "U_kgDOCHYJQg", "avatar_url": "https://avatars.githubusercontent.com/u/141953346?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ShorthillsAI", "html_url": "https://github.com/ShorthillsAI", "followers_url": "https://api.github.com/users/ShorthillsAI/followers", "following_url": "https://api.github.com/users/ShorthillsAI/following{/other_user}", "gists_url": "https://api.github.com/users/ShorthillsAI/gists{/gist_id}", "starred_url": "https://api.github.com/users/ShorthillsAI/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShorthillsAI/subscriptions", "organizations_url": "https://api.github.com/users/ShorthillsAI/orgs", "repos_url": "https://api.github.com/users/ShorthillsAI/repos", "events_url": "https://api.github.com/users/ShorthillsAI/events{/privacy}", "received_events_url": "https://api.github.com/users/ShorthillsAI/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-09-20T04:12:41
2023-09-20T04:41:49
2023-09-20T04:41:49
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10816/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10816/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10816", "html_url": "https://github.com/langchain-ai/langchain/pull/10816", "diff_url": "https://github.com/langchain-ai/langchain/pull/10816.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10816.patch", "merged_at": "2023-09-20T04:41:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/10815
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10815/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10815/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10815/events
https://github.com/langchain-ai/langchain/pull/10815
1,904,080,066
PR_kwDOIPDwls5avGrG
10,815
Update search.py
{ "login": "ansilmbabl", "id": 86063895, "node_id": "MDQ6VXNlcjg2MDYzODk1", "avatar_url": "https://avatars.githubusercontent.com/u/86063895?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ansilmbabl", "html_url": "https://github.com/ansilmbabl", "followers_url": "https://api.github.com/users/ansilmbabl/followers", "following_url": "https://api.github.com/users/ansilmbabl/following{/other_user}", "gists_url": "https://api.github.com/users/ansilmbabl/gists{/gist_id}", "starred_url": "https://api.github.com/users/ansilmbabl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ansilmbabl/subscriptions", "organizations_url": "https://api.github.com/users/ansilmbabl/orgs", "repos_url": "https://api.github.com/users/ansilmbabl/repos", "events_url": "https://api.github.com/users/ansilmbabl/events{/privacy}", "received_events_url": "https://api.github.com/users/ansilmbabl/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
open
false
null
[]
null
1
2023-09-20T04:08:19
2023-09-20T04:42:47
null
CONTRIBUTOR
null
changed return type from string to List continuation of the closed PR https://github.com/langchain-ai/langchain/pull/10743#discussion_r1330806902 <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10815/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10815/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10815", "html_url": "https://github.com/langchain-ai/langchain/pull/10815", "diff_url": "https://github.com/langchain-ai/langchain/pull/10815.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10815.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10814
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10814/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10814/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10814/events
https://github.com/langchain-ai/langchain/issues/10814
1,904,069,804
I_kwDOIPDwls5xfcys
10,814
SeleniumURLLoader load asynchronous js, need wait
{ "login": "teenth", "id": 16316491, "node_id": "MDQ6VXNlcjE2MzE2NDkx", "avatar_url": "https://avatars.githubusercontent.com/u/16316491?v=4", "gravatar_id": "", "url": "https://api.github.com/users/teenth", "html_url": "https://github.com/teenth", "followers_url": "https://api.github.com/users/teenth/followers", "following_url": "https://api.github.com/users/teenth/following{/other_user}", "gists_url": "https://api.github.com/users/teenth/gists{/gist_id}", "starred_url": "https://api.github.com/users/teenth/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/teenth/subscriptions", "organizations_url": "https://api.github.com/users/teenth/orgs", "repos_url": "https://api.github.com/users/teenth/repos", "events_url": "https://api.github.com/users/teenth/events{/privacy}", "received_events_url": "https://api.github.com/users/teenth/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
2
2023-09-20T04:00:24
2023-11-01T08:49:10
null
NONE
null
### System Info Mac OS ventura 13.4.1 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction langchain/document_loaders/url_selenium.py def load(self) -> List[Document]: """Load the specified URLs using Selenium and create Document instances. Returns: List[Document]: A list of Document instances with loaded content. """ from unstructured.partition.html import partition_html docs: List[Document] = list() driver = self._get_driver() for url in self.urls: try: driver.get(url) sleep(30) // need wait page_content = driver.page_source elements = partition_html(text=page_content) text = "\n\n".join([str(el) for el in elements]) metadata = {"source": url} docs.append(Document(page_content=text, metadata=metadata)) except Exception as e: if self.continue_on_failure: logger.error(f"Error fetching or processing {url}, exception: {e}") else: raise e driver.quit() return docs ### Expected behavior timer is config parms, user can use SeleniumURLLoader({waittime: 30})
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10814/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10814/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10813
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10813/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10813/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10813/events
https://github.com/langchain-ai/langchain/pull/10813
1,904,014,159
PR_kwDOIPDwls5au4Jl
10,813
Update base.py
{ "login": "redreamality", "id": 3147776, "node_id": "MDQ6VXNlcjMxNDc3NzY=", "avatar_url": "https://avatars.githubusercontent.com/u/3147776?v=4", "gravatar_id": "", "url": "https://api.github.com/users/redreamality", "html_url": "https://github.com/redreamality", "followers_url": "https://api.github.com/users/redreamality/followers", "following_url": "https://api.github.com/users/redreamality/following{/other_user}", "gists_url": "https://api.github.com/users/redreamality/gists{/gist_id}", "starred_url": "https://api.github.com/users/redreamality/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/redreamality/subscriptions", "organizations_url": "https://api.github.com/users/redreamality/orgs", "repos_url": "https://api.github.com/users/redreamality/repos", "events_url": "https://api.github.com/users/redreamality/events{/privacy}", "received_events_url": "https://api.github.com/users/redreamality/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
4
2023-09-20T03:04:51
2023-11-16T23:56:00
2023-11-13T07:10:14
NONE
null
as per definition, `include_df_in_prompt` should either be true or false <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** None - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10813/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10813/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10813", "html_url": "https://github.com/langchain-ai/langchain/pull/10813", "diff_url": "https://github.com/langchain-ai/langchain/pull/10813.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10813.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10812
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10812/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10812/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10812/events
https://github.com/langchain-ai/langchain/pull/10812
1,904,013,281
PR_kwDOIPDwls5au3-R
10,812
set litellm max_tokens=None
{ "login": "zhangnew", "id": 9146834, "node_id": "MDQ6VXNlcjkxNDY4MzQ=", "avatar_url": "https://avatars.githubusercontent.com/u/9146834?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zhangnew", "html_url": "https://github.com/zhangnew", "followers_url": "https://api.github.com/users/zhangnew/followers", "following_url": "https://api.github.com/users/zhangnew/following{/other_user}", "gists_url": "https://api.github.com/users/zhangnew/gists{/gist_id}", "starred_url": "https://api.github.com/users/zhangnew/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zhangnew/subscriptions", "organizations_url": "https://api.github.com/users/zhangnew/orgs", "repos_url": "https://api.github.com/users/zhangnew/repos", "events_url": "https://api.github.com/users/zhangnew/events{/privacy}", "received_events_url": "https://api.github.com/users/zhangnew/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
5
2023-09-20T03:03:34
2023-10-03T14:05:31
null
NONE
null
- **Description:** The default value of the `max_tokens` for litellm is 256. It should be increased to avoid truncation of replies. <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10812/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10812/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10812", "html_url": "https://github.com/langchain-ai/langchain/pull/10812", "diff_url": "https://github.com/langchain-ai/langchain/pull/10812.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10812.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10811
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10811/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10811/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10811/events
https://github.com/langchain-ai/langchain/issues/10811
1,903,925,576
I_kwDOIPDwls5xe5lI
10,811
SQLAgent fails to connect to Postgres multiple schemas
{ "login": "andywl", "id": 70544360, "node_id": "MDQ6VXNlcjcwNTQ0MzYw", "avatar_url": "https://avatars.githubusercontent.com/u/70544360?v=4", "gravatar_id": "", "url": "https://api.github.com/users/andywl", "html_url": "https://github.com/andywl", "followers_url": "https://api.github.com/users/andywl/followers", "following_url": "https://api.github.com/users/andywl/following{/other_user}", "gists_url": "https://api.github.com/users/andywl/gists{/gist_id}", "starred_url": "https://api.github.com/users/andywl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andywl/subscriptions", "organizations_url": "https://api.github.com/users/andywl/orgs", "repos_url": "https://api.github.com/users/andywl/repos", "events_url": "https://api.github.com/users/andywl/events{/privacy}", "received_events_url": "https://api.github.com/users/andywl/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-09-20T01:19:04
2023-12-27T16:04:48
2023-12-27T16:04:48
NONE
null
### System Info I'm using latest langchain version 0.0.295. It turns out langchain SQLAgent always connects to Postgres public schema. I need SQLAgent to check all schemas to generate SQL query. How to configure SQLAgent to connect to all Postgres schemas? Tried both pg_uri = f"postgresql+psycopg2://{username}:{password}@{host}:{port}/{mydatabase}?currentSchema=myschema", pg_uri = f"postgresql+psycopg2://{username}:{password}@{host}:{port}/{mydatabase}?search_path=myschema" when creating SQLDatabase: db = SQLDatabase.from_uri(pg_uri). It doesn't work. ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction When creating SQLDatabase for postgres, I can't specify schema. It only connects to postgres public schema. As a result, SQLAgent doesn't produce meaningful result. # pg_uri = f"postgresql+psycopg2://{username}:{password}@{host}:{port}/{mydatabase}?search_path=myschema" pg_uri = f"postgresql+psycopg2://{username}:{password}@{host}:{port}/{mydatabase}?currentSchema=myschema" db = SQLDatabase.from_uri(pg_uri) ### Expected behavior Expect SQLAgent or SQLDatabase can configure schemas for Postgres so that SQLAgent can generate meaningful SQL query.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10811/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10811/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10810
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10810/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10810/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10810/events
https://github.com/langchain-ai/langchain/issues/10810
1,903,890,762
I_kwDOIPDwls5xexFK
10,810
INTERMITTENT ERROR: AzureCogsImageAnalysisTool._run() got an unexpected keyword argument 'url'
{ "login": "SYSPROHeinrichKollner", "id": 112124417, "node_id": "U_kgDOBq7iAQ", "avatar_url": "https://avatars.githubusercontent.com/u/112124417?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SYSPROHeinrichKollner", "html_url": "https://github.com/SYSPROHeinrichKollner", "followers_url": "https://api.github.com/users/SYSPROHeinrichKollner/followers", "following_url": "https://api.github.com/users/SYSPROHeinrichKollner/following{/other_user}", "gists_url": "https://api.github.com/users/SYSPROHeinrichKollner/gists{/gist_id}", "starred_url": "https://api.github.com/users/SYSPROHeinrichKollner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SYSPROHeinrichKollner/subscriptions", "organizations_url": "https://api.github.com/users/SYSPROHeinrichKollner/orgs", "repos_url": "https://api.github.com/users/SYSPROHeinrichKollner/repos", "events_url": "https://api.github.com/users/SYSPROHeinrichKollner/events{/privacy}", "received_events_url": "https://api.github.com/users/SYSPROHeinrichKollner/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-09-20T00:25:58
2023-12-27T16:04:53
2023-12-27T16:04:52
NONE
null
### System Info Python 3.11.0 LangChain==0.0.295 Azure-ai-vision==0.15.1b1 Streamlit ### Who can help? @agola11 @hwchase17 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [X] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Important to note that the below error is INTERMITTEND using the exact same input every single time. Sometimes it works for an hour without error, then it will throw the below error a few times and return to normal. Other times it throws this error like 20 times before it will return to normal and start working again. It is like it gets confused about what inputs the agent expect at random. Also note that this is a simplified version. The reason I use create_conversational_retrieval_agent is because I pass multiple tools like O365, SQLDatabase ect. But I can still produce the error without them. **Error:** TypeError: AzureCogsImageAnalysisTool._run() got an unexpected keyword argument 'url' Traceback: File "C:\_Dev\AZURE-AGENT-TEST\venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script exec(code, module.__dict__) File "C:\_Dev\AZURE-AGENT-TEST\home.py", line 409, in <module> main() File "C:\_Dev\AZURE-AGENT-TEST\home.py", line 256, in main handle_userinput(user_question, image_url) File "C:\_Dev\AZURE-AGENT-TEST\home.py", line 151, in handle_userinput response = st.session_state.conversation({'input': user_question + " " + '"' + file_url + '"' }) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\_Dev\AZURE-AGENT-TEST\venv\Lib\site-packages\langchain\chains\base.py", line 292, in __call__ raise e File "C:\_Dev\AZURE-AGENT-TEST\venv\Lib\site-packages\langchain\chains\base.py", line 286, in __call__ self._call(inputs, run_manager=run_manager) File "C:\_Dev\AZURE-AGENT-TEST\venv\Lib\site-packages\langchain\agents\agent.py", line 1122, in _call next_step_output = self._take_next_step( ^^^^^^^^^^^^^^^^^^^^^ File "C:\_Dev\AZURE-AGENT-TEST\venv\Lib\site-packages\langchain\agents\agent.py", line 977, in _take_next_step observation = tool.run( ^^^^^^^^^ File "C:\_Dev\AZURE-AGENT-TEST\venv\Lib\site-packages\langchain\tools\base.py", line 356, in run raise e File "C:\_Dev\AZURE-AGENT-TEST\venv\Lib\site-packages\langchain\tools\base.py", line 328, in run self._run(*tool_args, run_manager=run_manager, **tool_kwargs) **Initialize the agent:** toolkit = AzureCognitiveServicesToolkit() tools = toolkit.get_tools() llm = ChatOpenAI(temperature=0.7) st.session_state.conversation = create_conversational_retrieval_agent(llm, tools, verbose=False, max_iterations=3, early_stopping_method='generate', AgentType=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION) **Then handle the user input:** user_question = "What can I make with these ingredients?" file_url = "https://images.openai.com/blob/9ad5a2ab-041f-475f-ad6a-b51899c50182/ingredients.png" response = st.session_state.conversation({'input': user_question + " " + '"' + file_url + '"' }) st.write(response) ### Expected behavior I expect it to not throw this error intermittently.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10810/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10810/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10809
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10809/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10809/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10809/events
https://github.com/langchain-ai/langchain/issues/10809
1,903,867,154
I_kwDOIPDwls5xerUS
10,809
OpenAI class missing `predict` method as described in the Quickstart guide
{ "login": "zaynpatel", "id": 65105835, "node_id": "MDQ6VXNlcjY1MTA1ODM1", "avatar_url": "https://avatars.githubusercontent.com/u/65105835?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zaynpatel", "html_url": "https://github.com/zaynpatel", "followers_url": "https://api.github.com/users/zaynpatel/followers", "following_url": "https://api.github.com/users/zaynpatel/following{/other_user}", "gists_url": "https://api.github.com/users/zaynpatel/gists{/gist_id}", "starred_url": "https://api.github.com/users/zaynpatel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zaynpatel/subscriptions", "organizations_url": "https://api.github.com/users/zaynpatel/orgs", "repos_url": "https://api.github.com/users/zaynpatel/repos", "events_url": "https://api.github.com/users/zaynpatel/events{/privacy}", "received_events_url": "https://api.github.com/users/zaynpatel/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-09-19T23:51:29
2023-09-20T00:00:51
2023-09-20T00:00:51
NONE
null
### Issue with current documentation: While following the Quickstart guide in the LangChain documentation, I encountered an AttributeError when trying to use the `predict` method with an instance of the OpenAI class. It seems like the `predict` method is not available in the OpenAI class as described in the guide. I'm running the following code from the Langchain Quickstart Guide, LLMs section: ``` from langchain.llms import OpenAI from langchain.chat_models import ChatOpenAI llm = OpenAI() chat_model = ChatOpenAI() llm.predict("hi!") >>> "Hi" chat_model.predict("hi!") >>> "Hi" ``` Below are the steps I took before running: 1. Installed LangChain using `pip install langchain`. 2. Installed OpenAI Python package using `pip install openai`. 3. Set up the OpenAI API key as described in the guide. 4. Created an instance of the OpenAI class and attempted to call the `predict` method with a string argument, as shown in the guide. **Expected behavior:** Based on the Quickstart guide, I expected to be able to call the `predict` method with a string argument and receive a string as the output. **Actual behavior:** When attempting to call the `predict` method, I received the following error message: AttributeError: 'OpenAI' object has no attribute 'predict' **Environment:** - LangChain version: (0.0.112) - OpenAI Python package version: (0.27.2) - Python version: 3.9.5 - Operating System: macOS I checked the available methods of the OpenAI class using the `dir()` function and confirmed that the `predict` method is not available. I also tried passing a list of strings to the `generate` method as an alternative, based on the methods that are available, but this did not produce the expected result. ### Idea or request for content: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10809/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10809/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10808
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10808/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10808/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10808/events
https://github.com/langchain-ai/langchain/pull/10808
1,903,856,817
PR_kwDOIPDwls5auW7K
10,808
misc: add gpt-3.5-turbo-instruct to model_token_mapping
{ "login": "hezyin", "id": 2908155, "node_id": "MDQ6VXNlcjI5MDgxNTU=", "avatar_url": "https://avatars.githubusercontent.com/u/2908155?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hezyin", "html_url": "https://github.com/hezyin", "followers_url": "https://api.github.com/users/hezyin/followers", "following_url": "https://api.github.com/users/hezyin/following{/other_user}", "gists_url": "https://api.github.com/users/hezyin/gists{/gist_id}", "starred_url": "https://api.github.com/users/hezyin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hezyin/subscriptions", "organizations_url": "https://api.github.com/users/hezyin/orgs", "repos_url": "https://api.github.com/users/hezyin/repos", "events_url": "https://api.github.com/users/hezyin/events{/privacy}", "received_events_url": "https://api.github.com/users/hezyin/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false } ]
null
1
2023-09-19T23:33:58
2023-09-20T00:03:17
2023-09-20T00:03:16
CONTRIBUTOR
null
A one-line fix to get`max_tokens=-1` working `OpenAI` class for `gpt-3.5-turbo-instruct` model. Closes https://github.com/langchain-ai/langchain/issues/10806
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10808/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10808/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10808", "html_url": "https://github.com/langchain-ai/langchain/pull/10808", "diff_url": "https://github.com/langchain-ai/langchain/pull/10808.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10808.patch", "merged_at": "2023-09-20T00:03:16" }
https://api.github.com/repos/langchain-ai/langchain/issues/10807
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10807/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10807/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10807/events
https://github.com/langchain-ai/langchain/pull/10807
1,903,856,798
PR_kwDOIPDwls5auW66
10,807
Harrison/add vald
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
1
2023-09-19T23:33:56
2023-09-19T23:42:53
2023-09-19T23:42:52
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10807/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10807/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10807", "html_url": "https://github.com/langchain-ai/langchain/pull/10807", "diff_url": "https://github.com/langchain-ai/langchain/pull/10807.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10807.patch", "merged_at": "2023-09-19T23:42:52" }
https://api.github.com/repos/langchain-ai/langchain/issues/10806
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10806/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10806/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10806/events
https://github.com/langchain-ai/langchain/issues/10806
1,903,852,127
I_kwDOIPDwls5xenpf
10,806
Error when using gpt-3.5-turbo-instruct: model_token_mapping is missing an entry for gpt-3.5-turbo-instruct
{ "login": "hezyin", "id": 2908155, "node_id": "MDQ6VXNlcjI5MDgxNTU=", "avatar_url": "https://avatars.githubusercontent.com/u/2908155?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hezyin", "html_url": "https://github.com/hezyin", "followers_url": "https://api.github.com/users/hezyin/followers", "following_url": "https://api.github.com/users/hezyin/following{/other_user}", "gists_url": "https://api.github.com/users/hezyin/gists{/gist_id}", "starred_url": "https://api.github.com/users/hezyin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hezyin/subscriptions", "organizations_url": "https://api.github.com/users/hezyin/orgs", "repos_url": "https://api.github.com/users/hezyin/repos", "events_url": "https://api.github.com/users/hezyin/events{/privacy}", "received_events_url": "https://api.github.com/users/hezyin/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-09-19T23:26:18
2023-09-20T00:03:17
2023-09-20T00:03:17
CONTRIBUTOR
null
### System Info LangChain version: 0.0.295 (just upgraded to this version to use gpt-3.5-turbo-instruct) ### Who can help? @hwchase17 @agola ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Minimal code to reproduce: ```python # load OpenAI API Key from langchain.llms import OpenAI llm = OpenAI(temperature=0.1, model_name="gpt-3.5-turbo-instruct", max_tokens=-1) llm("give me a list of Chinese dishes and their recipes") ``` Error message: >```ValueError: Unknown model: gpt-3.5-turbo-instruct. Please provide a valid OpenAI model name.Known models are: gpt-4, gpt-4-0314, gpt-4-0613, gpt-4-32k, gpt-4-32k-0314, gpt-4-32k-0613, gpt-3.5-turbo, gpt-3.5-turbo-0301, gpt-3.5-turbo-0613, gpt-3.5-turbo-16k, gpt-3.5-turbo-16k-0613, text-ada-001, ada, text-babbage-001, babbage, text-curie-001, curie, davinci, text-davinci-003, text-davinci-002, code-davinci-002, code-davinci-001, code-cushman-002, code-cushman-001``` Cause of the error: looks like it's because the `model_token_mapping` is missing an entry for `gpt-3.5-turbo-instruct`: https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/llms/openai.py#L555 ### Expected behavior The code succeeds without error
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10806/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10806/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10805
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10805/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10805/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10805/events
https://github.com/langchain-ai/langchain/pull/10805
1,903,850,367
PR_kwDOIPDwls5auVlZ
10,805
Revert "Add ChatGLM for llm and chat_model by using ChatGLM API (#9797)"
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
3
2023-09-19T23:23:27
2023-09-27T09:30:30
2023-09-19T23:23:43
COLLABORATOR
null
@etveritas reverting for now until this is resolved https://github.com/langchain-ai/langchain/pull/9797/files#r1330795585, apologies for merging too eagerly!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10805/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10805/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10805", "html_url": "https://github.com/langchain-ai/langchain/pull/10805", "diff_url": "https://github.com/langchain-ai/langchain/pull/10805.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10805.patch", "merged_at": "2023-09-19T23:23:43" }
https://api.github.com/repos/langchain-ai/langchain/issues/10804
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10804/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10804/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10804/events
https://github.com/langchain-ai/langchain/pull/10804
1,903,849,540
PR_kwDOIPDwls5auVZ9
10,804
improve notebook
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-09-19T23:22:01
2023-09-19T23:51:40
2023-09-19T23:51:39
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10804/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10804/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10804", "html_url": "https://github.com/langchain-ai/langchain/pull/10804", "diff_url": "https://github.com/langchain-ai/langchain/pull/10804.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10804.patch", "merged_at": "2023-09-19T23:51:39" }
https://api.github.com/repos/langchain-ai/langchain/issues/10803
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10803/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10803/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10803/events
https://github.com/langchain-ai/langchain/pull/10803
1,903,814,163
PR_kwDOIPDwls5auN2w
10,803
Harrison/add submodule to docs
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-09-19T22:31:44
2023-09-20T00:03:33
2023-09-20T00:03:33
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10803/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10803/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10803", "html_url": "https://github.com/langchain-ai/langchain/pull/10803", "diff_url": "https://github.com/langchain-ai/langchain/pull/10803.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10803.patch", "merged_at": "2023-09-20T00:03:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/10802
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10802/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10802/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10802/events
https://github.com/langchain-ai/langchain/pull/10802
1,903,765,077
PR_kwDOIPDwls5auDGP
10,802
Introducing Enhanced Functionality to WeaviateHybridSearchRetriever: Accepting Additional Keyword Arguments
{ "login": "douglasmonsky", "id": 29297119, "node_id": "MDQ6VXNlcjI5Mjk3MTE5", "avatar_url": "https://avatars.githubusercontent.com/u/29297119?v=4", "gravatar_id": "", "url": "https://api.github.com/users/douglasmonsky", "html_url": "https://github.com/douglasmonsky", "followers_url": "https://api.github.com/users/douglasmonsky/followers", "following_url": "https://api.github.com/users/douglasmonsky/following{/other_user}", "gists_url": "https://api.github.com/users/douglasmonsky/gists{/gist_id}", "starred_url": "https://api.github.com/users/douglasmonsky/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/douglasmonsky/subscriptions", "organizations_url": "https://api.github.com/users/douglasmonsky/orgs", "repos_url": "https://api.github.com/users/douglasmonsky/repos", "events_url": "https://api.github.com/users/douglasmonsky/events{/privacy}", "received_events_url": "https://api.github.com/users/douglasmonsky/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
2
2023-09-19T21:38:24
2023-09-19T23:08:01
2023-09-19T22:56:22
CONTRIBUTOR
null
**Description:** This commit enriches the `WeaviateHybridSearchRetriever` class by introducing a new parameter, `hybrid_search_kwargs`, within the `_get_relevant_documents` method. This parameter accommodates arbitrary keyword arguments (`**kwargs`) which can be channeled to the inherited public method, `get_relevant_documents`, originating from the `BaseRetriever` class. This modification facilitates more intricate querying capabilities, allowing users to convey supplementary arguments to the `.with_hybrid()` method. This expansion not only makes it possible to perform a more nuanced search targeting specific properties but also grants the ability to boost the weight of searched properties, to carry out a search with a custom vector, and to apply the Fusion ranking method. The documentation has been updated accordingly to delineate these new possibilities in detail. In light of the layered approach in which this search operates, initiating with `query.get()` and then transitioning to `.with_hybrid()`, several advantageous opportunities are unlocked for the hybrid component that were previously unattainable. Here’s a representative example showcasing a query structure that was formerly unfeasible: [Specific Properties Only](https://weaviate.io/developers/weaviate/search/hybrid#selected-properties-only) "The example below illustrates a BM25 search targeting the keyword 'food' exclusively within the 'question' property, integrated with vector search results corresponding to 'food'." ```python response = ( client.query .get("JeopardyQuestion", ["question", "answer"]) .with_hybrid( query="food", properties=["question"], # Will now be possible moving forward alpha=0.25 ) .with_limit(3) .do() ) ``` This functionality is now accessible through my alterations, by conveying `hybrid_search_kwargs={"properties": ["question", "answer"]}` as an argument to `WeaviateHybridSearchRetriever.get_relevant_documents()`. For example: ```python import os from weaviate import Client from langchain.retrievers import WeaviateHybridSearchRetriever client = Client( url=os.getenv("WEAVIATE_CLIENT_URL"), additional_headers={ "X-OpenAI-Api-Key": os.getenv("OPENAI_API_KEY"), "Authorization": f"Bearer {os.getenv('WEAVIATE_API_KEY')}", }, ) index_name = "Document" text_key = "content" attributes = ["title", "summary", "header", "url"] retriever = ExtendedWeaviateHybridSearchRetriever( client=client, index_name=index_name, text_key=text_key, attributes=attributes, ) # Warning: to utilize properties in this way, each use property must also be in the list `attributes + [text_key]`. hybrid_search_kwargs = {"properties": ["summary^2", "content"]} query_text = "Some Query Text" relevant_docs = retriever.get_relevant_documents( query=query_text, hybrid_search_kwargs=hybrid_search_kwargs ) ``` In my experience working with the `weaviate-client` library, I have found that these supplementary options stand as vital tools for refining/finetuning searches, notably within multifaceted datasets. As a final note, this implementation supports both backwards and forward (within reason) compatiblity. It accommodates any future additional parameters Weaviate may add to `.with_hybrid()`, without necessitating further alterations. **Additional Documentation:** For a more comprehensive understanding and to explore a myriad of useful options that are now accessible, please refer to the Weaviate documentation: - [Fusion Ranking Method](https://weaviate.io/developers/weaviate/search/hybrid#fusion-ranking-method) - [Selected Properties Only](https://weaviate.io/developers/weaviate/search/hybrid#selected-properties-only) - [Weight Boost Searched Properties](https://weaviate.io/developers/weaviate/search/hybrid#weight-boost-searched-properties) - [With a Custom Vector](https://weaviate.io/developers/weaviate/search/hybrid#with-a-custom-vector) **Tag Maintainer:** @hwchase17 - I have tagged you based on your frequent contributions to the pertinent file, `/retrievers/weaviate_hybrid_search.py`. My apologies if this was not the appropriate choice. Thank you for considering my contribution, I look forward to your feedback, and to future collaboration.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10802/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10802/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10802", "html_url": "https://github.com/langchain-ai/langchain/pull/10802", "diff_url": "https://github.com/langchain-ai/langchain/pull/10802.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10802.patch", "merged_at": "2023-09-19T22:56:22" }
https://api.github.com/repos/langchain-ai/langchain/issues/10801
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10801/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10801/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10801/events
https://github.com/langchain-ai/langchain/issues/10801
1,903,726,835
I_kwDOIPDwls5xeJDz
10,801
GrobidParser: process_xml chunk_bboxes[0][0]["page"], IndexError: list index out of range
{ "login": "zaurask", "id": 22592421, "node_id": "MDQ6VXNlcjIyNTkyNDIx", "avatar_url": "https://avatars.githubusercontent.com/u/22592421?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zaurask", "html_url": "https://github.com/zaurask", "followers_url": "https://api.github.com/users/zaurask/followers", "following_url": "https://api.github.com/users/zaurask/following{/other_user}", "gists_url": "https://api.github.com/users/zaurask/gists{/gist_id}", "starred_url": "https://api.github.com/users/zaurask/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zaurask/subscriptions", "organizations_url": "https://api.github.com/users/zaurask/orgs", "repos_url": "https://api.github.com/users/zaurask/repos", "events_url": "https://api.github.com/users/zaurask/events{/privacy}", "received_events_url": "https://api.github.com/users/zaurask/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-09-19T21:09:13
2023-12-26T16:04:41
2023-12-26T16:04:41
NONE
null
Using the GrobidParser with `segment_sentences=False` results in `langchain/document_loaders/parsers/grobid.py", line 87, in process_xml chunk_bboxes[0][0]["page"], IndexError: list index out of range` for some PDFs. From my own testing with the offending PDFs I suspect the following if-block in the GrobidParser is indented incorrectly, it needs one more level of indentation. Adding this indentation solved the issue on my end. https://github.com/langchain-ai/langchain/blob/20c6ade2fc24c458a080eaa468add7c61dc8dbc3/langchain/document_loaders/parsers/grobid.py#L80-L93 If you need a reproduction to verify, let me know.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10801/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10801/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10800
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10800/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10800/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10800/events
https://github.com/langchain-ai/langchain/pull/10800
1,903,697,606
PR_kwDOIPDwls5at0On
10,800
gradient.ai LLM intregration
{ "login": "michaelfeil", "id": 63565275, "node_id": "MDQ6VXNlcjYzNTY1Mjc1", "avatar_url": "https://avatars.githubusercontent.com/u/63565275?v=4", "gravatar_id": "", "url": "https://api.github.com/users/michaelfeil", "html_url": "https://github.com/michaelfeil", "followers_url": "https://api.github.com/users/michaelfeil/followers", "following_url": "https://api.github.com/users/michaelfeil/following{/other_user}", "gists_url": "https://api.github.com/users/michaelfeil/gists{/gist_id}", "starred_url": "https://api.github.com/users/michaelfeil/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/michaelfeil/subscriptions", "organizations_url": "https://api.github.com/users/michaelfeil/orgs", "repos_url": "https://api.github.com/users/michaelfeil/repos", "events_url": "https://api.github.com/users/michaelfeil/events{/privacy}", "received_events_url": "https://api.github.com/users/michaelfeil/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
8
2023-09-19T20:43:34
2023-09-24T22:59:08
2023-09-21T14:29:16
CONTRIBUTOR
null
DRAFT - **Description:** This PR implements a new LLM API to https://gradient.ai - **Issue:** Feature request for LLM #10745 - **Dependencies**: No additional dependencies are introduced. - **Tag maintainer:** I am opening this PR for visibility, once ready for review I'll tag. - ```make format && make lint && make test``` is running. - added a `integration` and `mock unit` test. <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10800/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10800/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10800", "html_url": "https://github.com/langchain-ai/langchain/pull/10800", "diff_url": "https://github.com/langchain-ai/langchain/pull/10800.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10800.patch", "merged_at": "2023-09-21T14:29:16" }
https://api.github.com/repos/langchain-ai/langchain/issues/10799
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10799/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10799/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10799/events
https://github.com/langchain-ai/langchain/pull/10799
1,903,694,228
PR_kwDOIPDwls5atzeK
10,799
fix qa structured link
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-09-19T20:40:42
2023-09-19T20:40:50
2023-09-19T20:40:48
COLLABORATOR
null
redirect not working for some reason
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10799/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10799/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10799", "html_url": "https://github.com/langchain-ai/langchain/pull/10799", "diff_url": "https://github.com/langchain-ai/langchain/pull/10799.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10799.patch", "merged_at": "2023-09-19T20:40:48" }
https://api.github.com/repos/langchain-ai/langchain/issues/10798
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10798/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10798/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10798/events
https://github.com/langchain-ai/langchain/issues/10798
1,903,665,132
I_kwDOIPDwls5xd5_s
10,798
Query: Is It Possible to Extract Content Using All HTML Tags in ReadTheDocsLoader?
{ "login": "ShivangiReja", "id": 45216704, "node_id": "MDQ6VXNlcjQ1MjE2NzA0", "avatar_url": "https://avatars.githubusercontent.com/u/45216704?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ShivangiReja", "html_url": "https://github.com/ShivangiReja", "followers_url": "https://api.github.com/users/ShivangiReja/followers", "following_url": "https://api.github.com/users/ShivangiReja/following{/other_user}", "gists_url": "https://api.github.com/users/ShivangiReja/gists{/gist_id}", "starred_url": "https://api.github.com/users/ShivangiReja/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShivangiReja/subscriptions", "organizations_url": "https://api.github.com/users/ShivangiReja/orgs", "repos_url": "https://api.github.com/users/ShivangiReja/repos", "events_url": "https://api.github.com/users/ShivangiReja/events{/privacy}", "received_events_url": "https://api.github.com/users/ShivangiReja/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
4
2023-09-19T20:15:53
2023-12-26T16:04:46
2023-12-26T16:04:46
NONE
null
### Issue you'd like to raise. According to the [ReadTheDocsLoader documentation](https://api.python.langchain.com/en/latest/document_loaders/langchain.document_loaders.readthedocs.ReadTheDocsLoader.html), this loader iterates through all the files located under a specified path and extracts the actual content of the files by retrieving `main` html tags. ```python from langchain.document_loaders import ReadTheDocsLoader loader = ReadTheDocsLoader("docs", encoding="utf-8", features="html.parser") docs = loader.load() len(docs) ``` Question: In my HTML files, I don't have main HTML tags. Is it possible to configure the ReadTheDocsLoader to extract content from files by capturing all HTML tags instead of just the main HTML tags? Alternatively, are there alternative loaders available that can traverse all files within a specified path and extract content by capturing all HTML tags?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10798/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10798/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10797
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10797/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10797/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10797/events
https://github.com/langchain-ai/langchain/pull/10797
1,903,648,261
PR_kwDOIPDwls5atpgo
10,797
make agent action serializable
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-09-19T20:01:57
2023-09-19T23:16:16
2023-09-19T23:16:15
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10797/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10797/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10797", "html_url": "https://github.com/langchain-ai/langchain/pull/10797", "diff_url": "https://github.com/langchain-ai/langchain/pull/10797.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10797.patch", "merged_at": "2023-09-19T23:16:15" }
https://api.github.com/repos/langchain-ai/langchain/issues/10796
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10796/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10796/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10796/events
https://github.com/langchain-ai/langchain/pull/10796
1,903,624,264
PR_kwDOIPDwls5atkS5
10,796
LLMRails
{ "login": "anar2706", "id": 51159628, "node_id": "MDQ6VXNlcjUxMTU5NjI4", "avatar_url": "https://avatars.githubusercontent.com/u/51159628?v=4", "gravatar_id": "", "url": "https://api.github.com/users/anar2706", "html_url": "https://github.com/anar2706", "followers_url": "https://api.github.com/users/anar2706/followers", "following_url": "https://api.github.com/users/anar2706/following{/other_user}", "gists_url": "https://api.github.com/users/anar2706/gists{/gist_id}", "starred_url": "https://api.github.com/users/anar2706/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/anar2706/subscriptions", "organizations_url": "https://api.github.com/users/anar2706/orgs", "repos_url": "https://api.github.com/users/anar2706/repos", "events_url": "https://api.github.com/users/anar2706/events{/privacy}", "received_events_url": "https://api.github.com/users/anar2706/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
2
2023-09-19T19:43:47
2023-09-20T03:33:33
2023-09-20T03:33:33
CONTRIBUTOR
null
### LLMRails Integration This PR provides integration with LLMRails. Implemented here are: langchain/vectorstore/llm_rails.py tests/integration_tests/vectorstores/test_llm_rails.py docs/extras/integrations/vectorstores/llm-rails.ipynb
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10796/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10796/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10796", "html_url": "https://github.com/langchain-ai/langchain/pull/10796", "diff_url": "https://github.com/langchain-ai/langchain/pull/10796.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10796.patch", "merged_at": "2023-09-20T03:33:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/10795
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10795/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10795/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10795/events
https://github.com/langchain-ai/langchain/pull/10795
1,903,560,751
PR_kwDOIPDwls5atWev
10,795
Batching for hf_pipeline
{ "login": "tjaffri", "id": 749277, "node_id": "MDQ6VXNlcjc0OTI3Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/749277?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tjaffri", "html_url": "https://github.com/tjaffri", "followers_url": "https://api.github.com/users/tjaffri/followers", "following_url": "https://api.github.com/users/tjaffri/following{/other_user}", "gists_url": "https://api.github.com/users/tjaffri/gists{/gist_id}", "starred_url": "https://api.github.com/users/tjaffri/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tjaffri/subscriptions", "organizations_url": "https://api.github.com/users/tjaffri/orgs", "repos_url": "https://api.github.com/users/tjaffri/repos", "events_url": "https://api.github.com/users/tjaffri/events{/privacy}", "received_events_url": "https://api.github.com/users/tjaffri/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-09-19T18:56:05
2023-10-25T06:34:55
2023-09-25T17:23:12
CONTRIBUTOR
null
The huggingface pipeline in langchain (used for locally hosted models) does not support batching. If you send in a batch of prompts, it just processes them serially using the base implementation of _generate: https://github.com/docugami/langchain/blob/master/libs/langchain/langchain/llms/base.py#L1004C2-L1004C29 This PR adds support for batching in this pipeline, so that GPUs can be fully saturated. I updated the accompanying notebook to show GPU batch inference.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10795/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10795/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10795", "html_url": "https://github.com/langchain-ai/langchain/pull/10795", "diff_url": "https://github.com/langchain-ai/langchain/pull/10795.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10795.patch", "merged_at": "2023-09-25T17:23:12" }
https://api.github.com/repos/langchain-ai/langchain/issues/10794
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10794/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10794/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10794/events
https://github.com/langchain-ai/langchain/pull/10794
1,903,457,226
PR_kwDOIPDwls5atAJA
10,794
format intermediate steps
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-09-19T17:42:19
2023-09-20T20:02:56
2023-09-20T20:02:55
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10794/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10794/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10794", "html_url": "https://github.com/langchain-ai/langchain/pull/10794", "diff_url": "https://github.com/langchain-ai/langchain/pull/10794.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10794.patch", "merged_at": "2023-09-20T20:02:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/10793
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10793/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10793/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10793/events
https://github.com/langchain-ai/langchain/pull/10793
1,903,414,715
PR_kwDOIPDwls5as3A7
10,793
Update sequential_chains.mdx (#64)
{ "login": "ShorthillsAI", "id": 141953346, "node_id": "U_kgDOCHYJQg", "avatar_url": "https://avatars.githubusercontent.com/u/141953346?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ShorthillsAI", "html_url": "https://github.com/ShorthillsAI", "followers_url": "https://api.github.com/users/ShorthillsAI/followers", "following_url": "https://api.github.com/users/ShorthillsAI/following{/other_user}", "gists_url": "https://api.github.com/users/ShorthillsAI/gists{/gist_id}", "starred_url": "https://api.github.com/users/ShorthillsAI/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShorthillsAI/subscriptions", "organizations_url": "https://api.github.com/users/ShorthillsAI/orgs", "repos_url": "https://api.github.com/users/ShorthillsAI/repos", "events_url": "https://api.github.com/users/ShorthillsAI/events{/privacy}", "received_events_url": "https://api.github.com/users/ShorthillsAI/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-09-19T17:14:32
2023-09-19T22:56:52
2023-09-19T22:56:52
CONTRIBUTOR
null
Fixed some more grammatical issues @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10793/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10793/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10793", "html_url": "https://github.com/langchain-ai/langchain/pull/10793", "diff_url": "https://github.com/langchain-ai/langchain/pull/10793.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10793.patch", "merged_at": "2023-09-19T22:56:52" }
https://api.github.com/repos/langchain-ai/langchain/issues/10792
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10792/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10792/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10792/events
https://github.com/langchain-ai/langchain/issues/10792
1,903,398,229
I_kwDOIPDwls5xc41V
10,792
Issue: output_parser raises error when using create_pandas_dataframe_agent with GPT4ALL model
{ "login": "chiragagarwal1999", "id": 111168795, "node_id": "U_kgDOBqBNGw", "avatar_url": "https://avatars.githubusercontent.com/u/111168795?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chiragagarwal1999", "html_url": "https://github.com/chiragagarwal1999", "followers_url": "https://api.github.com/users/chiragagarwal1999/followers", "following_url": "https://api.github.com/users/chiragagarwal1999/following{/other_user}", "gists_url": "https://api.github.com/users/chiragagarwal1999/gists{/gist_id}", "starred_url": "https://api.github.com/users/chiragagarwal1999/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chiragagarwal1999/subscriptions", "organizations_url": "https://api.github.com/users/chiragagarwal1999/orgs", "repos_url": "https://api.github.com/users/chiragagarwal1999/repos", "events_url": "https://api.github.com/users/chiragagarwal1999/events{/privacy}", "received_events_url": "https://api.github.com/users/chiragagarwal1999/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-09-19T17:03:06
2023-12-26T16:04:51
2023-12-26T16:04:50
NONE
null
### Issue you'd like to raise. **I tried to use create_pandas_dataframe_agent with GPT4ALL to query a csv. This is the output:** ``` Enter a query: Analyse the data and give precise answer to the question that is given below. Provide answer only to what is asked. Answer should be with respect to the whole document. Question: How many employees are male" > Entering new AgentExecutor chain... Thought: I will use pandas dataframe to get the summary of the data Action: I will use pandas dataframe to get the summary of the data Observation: The summary of the data is given below ... (this Observation/Action/Observation can repeat N times) Final Answer: The summary of the data shows that there are 4 male employees in the company.Traceback (most recent call last): File "C:\project\privateGPT\privateGPT\analyticsGPT.py", line 102, in <module> main() File "C:\project\privateGPT\privateGPT\analyticsGPT.py", line 73, in main agent.run(query) File "C:\Python311\Lib\site-packages\langchain\chains\base.py", line 475, in run return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\langchain\chains\base.py", line 282, in __call__ raise e File "C:\Python311\Lib\site-packages\langchain\chains\base.py", line 276, in __call__ self._call(inputs, run_manager=run_manager) File "C:\Python311\Lib\site-packages\langchain\agents\agent.py", line 1036, in _call next_step_output = self._take_next_step( ^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\langchain\agents\agent.py", line 844, in _take_next_step raise e File "C:\Python311\Lib\site-packages\langchain\agents\agent.py", line 833, in _take_next_step output = self.agent.plan( ^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\langchain\agents\agent.py", line 457, in plan return self.output_parser.parse(full_output) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\langchain\agents\mrkl\output_parser.py", line 61, in parse raise OutputParserException( langchain.schema.output_parser.OutputParserException: Could not parse LLM output: ` Thought: I will use pandas dataframe to get the summary of the data Action: I will use pandas dataframe to get the summary of the data` ``` Given below is my code snippet: ``` #!/usr/bin/env python3 from dotenv import load_dotenv from langchain.chains import RetrievalQA from langchain.embeddings import HuggingFaceEmbeddings from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler from langchain.vectorstores import Chroma from langchain.llms import GPT4All, LlamaCpp import chromadb import os import argparse import time import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from langchain.agents import create_pandas_dataframe_agent if not load_dotenv(): print("Could not load .env file or it is empty. Please check if it exists and is readable.") exit(1) embeddings_model_name = os.environ.get("EMBEDDINGS_MODEL_NAME") persist_directory = os.environ.get('PERSIST_DIRECTORY') model_type = os.environ.get('MODEL_TYPE') model_path = os.environ.get('MODEL_PATH') model_n_ctx = os.environ.get('MODEL_N_CTX') model_n_batch = int(os.environ.get('MODEL_N_BATCH',8)) target_source_chunks = int(os.environ.get('TARGET_SOURCE_CHUNKS',4)) from constants import CHROMA_SETTINGS def main(): args = parse_arguments() callbacks = [] if args.mute_stream else [StreamingStdOutCallbackHandler()] if model_type == "LlamaCpp": llm = LlamaCpp(model_path=model_path, max_tokens=model_n_ctx, n_batch=model_n_batch, callbacks=callbacks, verbose=False) elif model_type == "GPT4All": llm = GPT4All(model=model_path, max_tokens=model_n_ctx, backend='gptj', n_batch=model_n_batch, callbacks=callbacks, verbose=False) else: raise Exception(f"Model type {model_type} is not supported. Please choose one of the following: LlamaCpp, GPT4All") df = pd.read_csv('C:/project/privateGPT/privateGPT/source_documents/employees.csv') agent = create_pandas_dataframe_agent(llm, df, verbose=True, handle_parsing_errors="Check your output and make sure it conforms!") while True: query = input("\nEnter a query: ") if query == "exit": break if query.strip() == "": continue # Get the answer from the chain start = time.time() agent.run(query) end = time.time() def parse_arguments(): parser = argparse.ArgumentParser(description='privateGPT: Ask questions to your documents without an internet connection, ' 'using the power of LLMs.') parser.add_argument("--hide-source", "-S", action='store_true', help='Use this flag to disable printing of source documents used for answers.') parser.add_argument("--mute-stream", "-M", action='store_true', help='Use this flag to disable the streaming StdOut callback for LLMs.') return parser.parse_args() if __name__ == "__main__": main() ``` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10792/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10792/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10791
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10791/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10791/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10791/events
https://github.com/langchain-ai/langchain/pull/10791
1,903,367,511
PR_kwDOIPDwls5ass3u
10,791
Corrected some spelling mistakes and grammatical errors
{ "login": "ShorthillsAI", "id": 141953346, "node_id": "U_kgDOCHYJQg", "avatar_url": "https://avatars.githubusercontent.com/u/141953346?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ShorthillsAI", "html_url": "https://github.com/ShorthillsAI", "followers_url": "https://api.github.com/users/ShorthillsAI/followers", "following_url": "https://api.github.com/users/ShorthillsAI/following{/other_user}", "gists_url": "https://api.github.com/users/ShorthillsAI/gists{/gist_id}", "starred_url": "https://api.github.com/users/ShorthillsAI/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShorthillsAI/subscriptions", "organizations_url": "https://api.github.com/users/ShorthillsAI/orgs", "repos_url": "https://api.github.com/users/ShorthillsAI/repos", "events_url": "https://api.github.com/users/ShorthillsAI/events{/privacy}", "received_events_url": "https://api.github.com/users/ShorthillsAI/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-09-19T16:42:28
2023-09-19T17:08:59
2023-09-19T17:08:59
CONTRIBUTOR
null
Corrected some spelling mistakes and grammatical errors CC: @baskaryan, @eyurtsev, @hwchase17.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10791/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10791/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10791", "html_url": "https://github.com/langchain-ai/langchain/pull/10791", "diff_url": "https://github.com/langchain-ai/langchain/pull/10791.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10791.patch", "merged_at": "2023-09-19T17:08:59" }
https://api.github.com/repos/langchain-ai/langchain/issues/10790
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10790/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10790/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10790/events
https://github.com/langchain-ai/langchain/pull/10790
1,903,282,525
PR_kwDOIPDwls5asamI
10,790
add agent output parsers
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
2
2023-09-19T15:51:34
2023-09-20T19:10:11
2023-09-20T19:10:09
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10790/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10790/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10790", "html_url": "https://github.com/langchain-ai/langchain/pull/10790", "diff_url": "https://github.com/langchain-ai/langchain/pull/10790.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10790.patch", "merged_at": "2023-09-20T19:10:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/10789
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10789/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10789/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10789/events
https://github.com/langchain-ai/langchain/issues/10789
1,903,281,810
I_kwDOIPDwls5xccaS
10,789
Prompt was changed to different meaning
{ "login": "ch1zzzz", "id": 34596838, "node_id": "MDQ6VXNlcjM0NTk2ODM4", "avatar_url": "https://avatars.githubusercontent.com/u/34596838?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ch1zzzz", "html_url": "https://github.com/ch1zzzz", "followers_url": "https://api.github.com/users/ch1zzzz/followers", "following_url": "https://api.github.com/users/ch1zzzz/following{/other_user}", "gists_url": "https://api.github.com/users/ch1zzzz/gists{/gist_id}", "starred_url": "https://api.github.com/users/ch1zzzz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ch1zzzz/subscriptions", "organizations_url": "https://api.github.com/users/ch1zzzz/orgs", "repos_url": "https://api.github.com/users/ch1zzzz/repos", "events_url": "https://api.github.com/users/ch1zzzz/events{/privacy}", "received_events_url": "https://api.github.com/users/ch1zzzz/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-09-19T15:51:05
2023-09-27T13:52:06
2023-09-27T13:52:05
NONE
null
### System Info I'm building a chatbot to introduce matching job openings from files to users. When the user input "I want to find a job", it is modified to "What kind of job are you looking for?" which ask the model what job he is looking for, but of course, it won't get an answer. Human input: I want to find a job Human input in Prompt after formatting: What kind of job are you looking for? Chatbot: As an AI, I don't have personal preferences or the ability to look for a job. Here is my prompt and conversation: ``` template = """ You are an AI assistant specifically tasked with finding matching job opportunities in our job data based on user requests. ### Context from data: {context} ### {chat_history} Human: {question} Chatbot:""" prompt = PromptTemplate( input_variables=["question", "chat_history", "context"], template=template ) qa = ConversationalRetrievalChain.from_llm( llm=llm, retriever=db.as_retriever(), combine_docs_chain_kwargs={"prompt": prompt}, memory=memory, verbose=True ) ``` ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [X] Vector Stores / Retrievers - [X] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction template = """ You are an AI assistant specifically tasked with finding matching job opportunities in our job data based on user requests. ### Context from data: {context} ### {chat_history} Human: {question} Chatbot:""" prompt = PromptTemplate( input_variables=["question", "chat_history", "context"], template=template ) qa = ConversationalRetrievalChain.from_llm( llm=llm, retriever=db.as_retriever(), combine_docs_chain_kwargs={"prompt": prompt}, memory=memory, verbose=True ) ### Expected behavior the prompt should be what user have input
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10789/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10789/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10788
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10788/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10788/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10788/events
https://github.com/langchain-ai/langchain/pull/10788
1,903,273,291
PR_kwDOIPDwls5asYm0
10,788
Fix for versioned OpenAI instruct models
{ "login": "jacoblee93", "id": 6952323, "node_id": "MDQ6VXNlcjY5NTIzMjM=", "avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jacoblee93", "html_url": "https://github.com/jacoblee93", "followers_url": "https://api.github.com/users/jacoblee93/followers", "following_url": "https://api.github.com/users/jacoblee93/following{/other_user}", "gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}", "starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions", "organizations_url": "https://api.github.com/users/jacoblee93/orgs", "repos_url": "https://api.github.com/users/jacoblee93/repos", "events_url": "https://api.github.com/users/jacoblee93/events{/privacy}", "received_events_url": "https://api.github.com/users/jacoblee93/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-09-19T15:45:50
2023-09-19T22:50:07
2023-09-19T22:50:06
CONTRIBUTOR
null
Versioned OpenAI instruct models may end with numbers, e.g. `gpt-3.5-turbo-instruct-0914`. Fixes https://github.com/langchain-ai/langchainjs/issues/2669 in Python
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10788/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10788/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10788", "html_url": "https://github.com/langchain-ai/langchain/pull/10788", "diff_url": "https://github.com/langchain-ai/langchain/pull/10788.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10788.patch", "merged_at": "2023-09-19T22:50:06" }
https://api.github.com/repos/langchain-ai/langchain/issues/10787
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10787/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10787/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10787/events
https://github.com/langchain-ai/langchain/issues/10787
1,903,231,986
I_kwDOIPDwls5xcQPy
10,787
Document Comparison, OPENAI_FUNCTIONS does not always look into the tools
{ "login": "Zylon989", "id": 137006358, "node_id": "U_kgDOCCqNFg", "avatar_url": "https://avatars.githubusercontent.com/u/137006358?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Zylon989", "html_url": "https://github.com/Zylon989", "followers_url": "https://api.github.com/users/Zylon989/followers", "following_url": "https://api.github.com/users/Zylon989/following{/other_user}", "gists_url": "https://api.github.com/users/Zylon989/gists{/gist_id}", "starred_url": "https://api.github.com/users/Zylon989/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Zylon989/subscriptions", "organizations_url": "https://api.github.com/users/Zylon989/orgs", "repos_url": "https://api.github.com/users/Zylon989/repos", "events_url": "https://api.github.com/users/Zylon989/events{/privacy}", "received_events_url": "https://api.github.com/users/Zylon989/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
6
2023-09-19T15:22:10
2023-12-26T16:04:57
2023-12-26T16:04:56
NONE
null
### System Info Having basicaly this demo code and the issue is that it's not working reliably! Sometimes OPENAI_FUNCTIONS just doesn't look into tools and telling that he can't find the documents. Seems like this happens because OpenAI decides on it's own if he rather use tools or replies on his own knowledge. I also don't want to fill the memory with all the data every time I am starting a new conversation, this does not work with huge data files. Any other way to solve this? ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from pydantic import BaseModel, Field from langchain.chat_models import ChatOpenAI from langchain.agents import Tool from langchain.embeddings.openai import OpenAIEmbeddings from langchain.text_splitter import CharacterTextSplitter from langchain.vectorstores import FAISS from langchain.document_loaders import PyPDFLoader from langchain.chains import RetrievalQA class DocumentInput(BaseModel): question: str = Field() llm = ChatOpenAI(temperature=0, model="gpt-3.5-turbo-0613") tools = [] files = [ # https://abc.xyz/investor/static/pdf/2023Q1_alphabet_earnings_release.pdf { "name": "alphabet-earnings", "path": "/Users/harrisonchase/Downloads/2023Q1_alphabet_earnings_release.pdf", }, # https://digitalassets.tesla.com/tesla-contents/image/upload/IR/TSLA-Q1-2023-Update { "name": "tesla-earnings", "path": "/Users/harrisonchase/Downloads/TSLA-Q1-2023-Update.pdf", }, ] for file in files: loader = PyPDFLoader(file["path"]) pages = loader.load_and_split() text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0) docs = text_splitter.split_documents(pages) embeddings = OpenAIEmbeddings() retriever = FAISS.from_documents(docs, embeddings).as_retriever() # Wrap retrievers in a Tool tools.append( Tool( args_schema=DocumentInput, name=file["name"], description=f"useful when you want to answer questions about {file['name']}", func=RetrievalQA.from_chain_type(llm=llm, retriever=retriever), ) ) llm = ChatOpenAI( temperature=0, model="gpt-3.5-turbo-0613", ) agent = initialize_agent( agent=AgentType.OPENAI_FUNCTIONS, tools=tools, llm=llm, verbose=True, ) agent({"input": "did alphabet or tesla have more revenue?"}) ### Expected behavior Always checking the tools before answering a question.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10787/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10787/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10786
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10786/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10786/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10786/events
https://github.com/langchain-ai/langchain/pull/10786
1,903,231,960
PR_kwDOIPDwls5asPwX
10,786
tool rendering
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
1
2023-09-19T15:22:09
2023-09-19T19:05:40
2023-09-19T19:05:39
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10786/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10786/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10786", "html_url": "https://github.com/langchain-ai/langchain/pull/10786", "diff_url": "https://github.com/langchain-ai/langchain/pull/10786.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10786.patch", "merged_at": "2023-09-19T19:05:39" }
https://api.github.com/repos/langchain-ai/langchain/issues/10785
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10785/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10785/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10785/events
https://github.com/langchain-ai/langchain/pull/10785
1,903,209,389
PR_kwDOIPDwls5asK1a
10,785
Bagatur/bump 295
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-09-19T15:10:48
2023-09-19T15:22:43
2023-09-19T15:22:42
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10785/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10785/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10785", "html_url": "https://github.com/langchain-ai/langchain/pull/10785", "diff_url": "https://github.com/langchain-ai/langchain/pull/10785.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10785.patch", "merged_at": "2023-09-19T15:22:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/10784
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10784/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10784/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10784/events
https://github.com/langchain-ai/langchain/issues/10784
1,903,159,588
I_kwDOIPDwls5xb-kk
10,784
initializing and using a Supabase vector store using SupabaseVectorStore
{ "login": "naodya", "id": 1115720, "node_id": "MDQ6VXNlcjExMTU3MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/1115720?v=4", "gravatar_id": "", "url": "https://api.github.com/users/naodya", "html_url": "https://github.com/naodya", "followers_url": "https://api.github.com/users/naodya/followers", "following_url": "https://api.github.com/users/naodya/following{/other_user}", "gists_url": "https://api.github.com/users/naodya/gists{/gist_id}", "starred_url": "https://api.github.com/users/naodya/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/naodya/subscriptions", "organizations_url": "https://api.github.com/users/naodya/orgs", "repos_url": "https://api.github.com/users/naodya/repos", "events_url": "https://api.github.com/users/naodya/events{/privacy}", "received_events_url": "https://api.github.com/users/naodya/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-09-19T14:46:15
2023-12-26T16:07:16
2023-12-26T16:05:00
NONE
null
### System Info `Python 3.11.4` `langchain==0.0.271` `lark==1.1.7` `openai==0.27.8` ### Who can help? Getting the following error: ```sh retriever = SelfQueryRetriever.from_llm( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/retrievers/self_query/base.py", line 135, in from_llm structured_query_translator = _get_builtin_translator(vectorstore) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/retrievers/self_query/base.py", line 45, in _get_builtin_translator raise ValueError( ValueError: Self query retriever with Vector Store type <class 'langchain.vectorstores.supabase.SupabaseVectorStore'> not supported. ``` _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction - initialize a SupabaseVectorStore. I want to use existing index, embeddings already created and stored in table `documents` table definition: ```sql create table public.documents ( id bigserial, content text null, metadata jsonb null, embedding public.vector null, constraint documents_pkey primary key (id) ) tablespace pg_default; ``` ```python document_content_description = "Brief summary of a movie" embeddings = OpenAIEmbeddings() vectorstore = SupabaseVectorStore( client=supabase, embedding=embeddings, table_name="documents", query_name="match_documents", ) llm = OpenAI(temperature=0) retriever = SelfQueryRetriever.from_llm( llm, vectorstore, document_content_description, metadata_field_info, verbose=True ) retriever.get_relevant_documents("What are some movies about dinosaurs") ``` ### Expected behavior return relevant documents
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10784/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10784/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10783
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10783/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10783/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10783/events
https://github.com/langchain-ai/langchain/issues/10783
1,903,062,021
I_kwDOIPDwls5xbmwF
10,783
Message History not working with LLMSingleActionAgent
{ "login": "Daniel199438", "id": 16019073, "node_id": "MDQ6VXNlcjE2MDE5MDcz", "avatar_url": "https://avatars.githubusercontent.com/u/16019073?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Daniel199438", "html_url": "https://github.com/Daniel199438", "followers_url": "https://api.github.com/users/Daniel199438/followers", "following_url": "https://api.github.com/users/Daniel199438/following{/other_user}", "gists_url": "https://api.github.com/users/Daniel199438/gists{/gist_id}", "starred_url": "https://api.github.com/users/Daniel199438/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Daniel199438/subscriptions", "organizations_url": "https://api.github.com/users/Daniel199438/orgs", "repos_url": "https://api.github.com/users/Daniel199438/repos", "events_url": "https://api.github.com/users/Daniel199438/events{/privacy}", "received_events_url": "https://api.github.com/users/Daniel199438/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
7
2023-09-19T13:59:39
2023-09-20T13:14:16
2023-09-20T13:04:54
NONE
null
### System Info My systeminfo: langchain 0.0.294 Python 3.11 ### Who can help? Im not sure, maybe @hwchase17 and @agola11 can help ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [X] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction That is my code: ```python openai.api_key = config.openai_api_key llm = ChatOpenAI(temperature=1, model="gpt-3.5-turbo-16k", max_tokens=1024) used_tools = [] for tool in tools_to_use: vector_store = get_vector_store(tool.get("collection")) index = VectorStoreIndex.from_vector_store(vector_store=vector_store, service_context=service_context) vector_store_info = VectorStoreInfo( content_info=tool.get("description"), metadata_info=[] ) retriever = VectorIndexAutoRetriever(index, vector_store_info=vector_store_info) used_tools.append( Tool( name=tool.get("name"), description=tool.get("description"), func=lambda q: str(retriever.retrieve(q)), ) ) message_history = PostgresChatMessageHistory( connection_string=f"postgresql://postgres:{postgres_str}", session_id=session_id, table_name="chat_history", ) prompt = CustomPromptTemplate(template=get_prompt_template(), tools=used_tools, input_variables=["input", "intermediate_steps", "chat_history"]) output_parser = CustomOutputParser() memory = ConversationBufferMemory( memory_key="chat_history", chat_memory=message_history ) llm_chain = LLMChain(llm=llm, prompt=prompt) tool_names = [tool.name for tool in used_tools] agent = LLMSingleActionAgent( llm_chain=llm_chain, output_parser=output_parser, stop=["\nFinal Answer:"], # Observation allowed_tools=tool_names, handle_parsing_errors=True, ) agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=used_tools, verbose=debug, memory=memory, return_intermediate_steps=True) response = agent_executor(user_prompt) ``` ### Expected behavior If i print the params, it shows my chat history (so it's successfully loaded into code and into the agent). ``` {'intermediate_steps': [], 'stop': ['\nFinal Answer:'], 'input': 'What was the last thing I said?', 'chat_history': 'Human: ....?\nAI:....'] ``` It should also process the chat history correctly. But I always get this answer to my prompt: ``` Since the previous chat history is not available, I can't tell what you said last. Please give me more information or ask your question again so I can help you further. ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10783/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10783/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10782
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10782/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10782/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10782/events
https://github.com/langchain-ai/langchain/pull/10782
1,903,035,815
PR_kwDOIPDwls5ark79
10,782
Python: Add iterator support to chat history base class
{ "login": "cccs-eric", "id": 56447460, "node_id": "MDQ6VXNlcjU2NDQ3NDYw", "avatar_url": "https://avatars.githubusercontent.com/u/56447460?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cccs-eric", "html_url": "https://github.com/cccs-eric", "followers_url": "https://api.github.com/users/cccs-eric/followers", "following_url": "https://api.github.com/users/cccs-eric/following{/other_user}", "gists_url": "https://api.github.com/users/cccs-eric/gists{/gist_id}", "starred_url": "https://api.github.com/users/cccs-eric/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cccs-eric/subscriptions", "organizations_url": "https://api.github.com/users/cccs-eric/orgs", "repos_url": "https://api.github.com/users/cccs-eric/repos", "events_url": "https://api.github.com/users/cccs-eric/events{/privacy}", "received_events_url": "https://api.github.com/users/cccs-eric/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
3
2023-09-19T13:47:28
2023-09-20T01:57:24
2023-09-20T01:57:23
CONTRIBUTOR
null
- **Description:** Add Python iterator support for chat messages in `BaseChatMessageHistory`. This makes any chat history class iterable on its message list. Here is my use-case that triggered this change. I have a `ConversationBufferMemory` that is backed by a `FileChatMessageHistory`: ```python vectorstore = get_vectorstore() chat_history = FileChatMessageHistory("chat_memory_path/session.json") memory = ConversationBufferMemory(memory_key="chat_history", chat_memory=chat_history, return_messages=True) qa = ConversationalRetrievalChain.from_llm( get_chat_model(), vectorstore.as_retriever(), return_source_documents=True, memory=memory, ) ``` where `get_chat_model()` returns a LLM and `vectorstore` is your favorite Vector store. A problem occurs when `BaseConversationalRetrievalChain._get_chat_history()` is called. In my setup, `chat_history` is an instance of `FileChatMessageHistory` and `_get_chat_history()` tries to create an iterator from it (see this [line](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/chains/conversational_retrieval/base.py#L37)). I could supply my own callable version when building the chain, but it kind of made sense to me that a chat history would be iterable. I'm looking for input on how to make this pass in `mypy` since it complains with the following: ``` langchain/memory/chat_message_histories/in_memory.py:10: error: Definition of "__iter__" in base class "BaseChatMessageHistory" is incompatible with definition in base class "BaseModel" [misc] ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10782/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10782/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10782", "html_url": "https://github.com/langchain-ai/langchain/pull/10782", "diff_url": "https://github.com/langchain-ai/langchain/pull/10782.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10782.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10781
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10781/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10781/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10781/events
https://github.com/langchain-ai/langchain/issues/10781
1,902,965,145
I_kwDOIPDwls5xbPGZ
10,781
Vector store-backed retriever -> allow using search_kwargs in get_relevant_documents function (PGVector)
{ "login": "Coding-Crashkurse", "id": 64363987, "node_id": "MDQ6VXNlcjY0MzYzOTg3", "avatar_url": "https://avatars.githubusercontent.com/u/64363987?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Coding-Crashkurse", "html_url": "https://github.com/Coding-Crashkurse", "followers_url": "https://api.github.com/users/Coding-Crashkurse/followers", "following_url": "https://api.github.com/users/Coding-Crashkurse/following{/other_user}", "gists_url": "https://api.github.com/users/Coding-Crashkurse/gists{/gist_id}", "starred_url": "https://api.github.com/users/Coding-Crashkurse/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Coding-Crashkurse/subscriptions", "organizations_url": "https://api.github.com/users/Coding-Crashkurse/orgs", "repos_url": "https://api.github.com/users/Coding-Crashkurse/repos", "events_url": "https://api.github.com/users/Coding-Crashkurse/events{/privacy}", "received_events_url": "https://api.github.com/users/Coding-Crashkurse/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
2
2023-09-19T13:19:02
2023-12-26T16:05:07
2023-12-26T16:05:06
NONE
null
### Feature request This is the current implementation. You get your Vectorstore and turn it into a retriever. You pass search kwargs into the as_retriever method. ``` retriever = db.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .5}) docs = retriever.get_relevant_documents("what did he say about ketanji brown jackson") ``` Is this as intended? I think it´s not the best way. We use PGVector and use it in a API where we pass metadata to do filtered search in the vectorstore. How I think it should look like: ``` docs = retriever.get_relevant_documents("what did he say about ketanji brown jackson", search_kwargs={"score_threshold": .5}) ``` So instead of using it in the constructor, I would rather prefer it in `get_relevant_documents` method. ### Motivation I don´t want to create a new retriever instance every request and rather have `get_relevant_documents` more dynamic. ### Your contribution As far as I can see this should be doable by passing some kwargs around. I could probably implement this if I am allowed to.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10781/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10781/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10780
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10780/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10780/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10780/events
https://github.com/langchain-ai/langchain/pull/10780
1,902,954,008
PR_kwDOIPDwls5arS4M
10,780
Add option to use SharePoint folder ID instead of folder path
{ "login": "WaleedAlfaris", "id": 92319577, "node_id": "U_kgDOBYCvWQ", "avatar_url": "https://avatars.githubusercontent.com/u/92319577?v=4", "gravatar_id": "", "url": "https://api.github.com/users/WaleedAlfaris", "html_url": "https://github.com/WaleedAlfaris", "followers_url": "https://api.github.com/users/WaleedAlfaris/followers", "following_url": "https://api.github.com/users/WaleedAlfaris/following{/other_user}", "gists_url": "https://api.github.com/users/WaleedAlfaris/gists{/gist_id}", "starred_url": "https://api.github.com/users/WaleedAlfaris/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WaleedAlfaris/subscriptions", "organizations_url": "https://api.github.com/users/WaleedAlfaris/orgs", "repos_url": "https://api.github.com/users/WaleedAlfaris/repos", "events_url": "https://api.github.com/users/WaleedAlfaris/events{/privacy}", "received_events_url": "https://api.github.com/users/WaleedAlfaris/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
1
2023-09-19T13:13:22
2023-09-23T18:07:51
null
NONE
null
* Description: Provides user with the option to use folder ID to get the SharePoint folder. Updated notebook to show use of this optional feature. Also fixed a typo in the url to get Subsite ID in the notebook (url was missing 'sites/' before ), * Issue: GraphAPI will often return "No Resource Found" error when using the folder path. This is as far as I can tell a bug on the GraphAPI and not user related. This can be circumvented by using the folder ID and get_item() method instead of the folder path and get_item_by_path() method, * Dependencies: None, * Tag maintainer: [@baskaryan](https://github.com/baskaryan), * Twitter handle: @WRhetoric
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10780/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10780/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10780", "html_url": "https://github.com/langchain-ai/langchain/pull/10780", "diff_url": "https://github.com/langchain-ai/langchain/pull/10780.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10780.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10779
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10779/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10779/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10779/events
https://github.com/langchain-ai/langchain/issues/10779
1,902,915,680
I_kwDOIPDwls5xbDBg
10,779
Make tools async by default unless user overrides `_arun`
{ "login": "oneryalcin", "id": 8620952, "node_id": "MDQ6VXNlcjg2MjA5NTI=", "avatar_url": "https://avatars.githubusercontent.com/u/8620952?v=4", "gravatar_id": "", "url": "https://api.github.com/users/oneryalcin", "html_url": "https://github.com/oneryalcin", "followers_url": "https://api.github.com/users/oneryalcin/followers", "following_url": "https://api.github.com/users/oneryalcin/following{/other_user}", "gists_url": "https://api.github.com/users/oneryalcin/gists{/gist_id}", "starred_url": "https://api.github.com/users/oneryalcin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/oneryalcin/subscriptions", "organizations_url": "https://api.github.com/users/oneryalcin/orgs", "repos_url": "https://api.github.com/users/oneryalcin/repos", "events_url": "https://api.github.com/users/oneryalcin/events{/privacy}", "received_events_url": "https://api.github.com/users/oneryalcin/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-09-19T12:52:13
2023-09-19T13:04:35
2023-09-19T13:04:03
CONTRIBUTOR
null
### Feature request Most of the tools are currently sync tools, so if an async agent executor calls them tools raise `NotImplementedError` My suggestion is to change `_arun` method of the `langchain.tools.base.BaseTool` class with a bolierplate code asyncer. An [example is given in the gh issues](https://github.com/langchain-ai/langchain/issues/5011#issuecomment-1725356727). Asyncer is a small lib developped by @tiangolo (FastApi creator) that can convert a sync code to async (runs in worker threads) This way by default we would have an async version of any tool. Tool implementors can always override `_arun` method in their implementation providing more native async support. But otherwise we would have a default async implementation. ### Motivation In production systems we need to scale the requests to our langchain app, thus this means servin cconcurrently to many users. In python for IO Bound operations this is best done with async libs and frameworks. However all parts of the code has to be async, including LLMs + tools ..etc Since many tools lack support for `_arun` method, this enhancement will provide default async support for all tools. ### Your contribution Yes, I'll create a PR for this.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10779/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10779/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10778
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10778/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10778/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10778/events
https://github.com/langchain-ai/langchain/issues/10778
1,902,863,147
I_kwDOIPDwls5xa2Mr
10,778
Using StructuredTool with agent
{ "login": "Zylon989", "id": 137006358, "node_id": "U_kgDOCCqNFg", "avatar_url": "https://avatars.githubusercontent.com/u/137006358?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Zylon989", "html_url": "https://github.com/Zylon989", "followers_url": "https://api.github.com/users/Zylon989/followers", "following_url": "https://api.github.com/users/Zylon989/following{/other_user}", "gists_url": "https://api.github.com/users/Zylon989/gists{/gist_id}", "starred_url": "https://api.github.com/users/Zylon989/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Zylon989/subscriptions", "organizations_url": "https://api.github.com/users/Zylon989/orgs", "repos_url": "https://api.github.com/users/Zylon989/repos", "events_url": "https://api.github.com/users/Zylon989/events{/privacy}", "received_events_url": "https://api.github.com/users/Zylon989/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
18
2023-09-19T12:21:53
2023-12-28T16:05:47
2023-12-28T16:05:47
NONE
null
### System Info Using this Code I am getting this error: TypeError: Chain.__call__() got an unexpected keyword argument 'question' ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from pydantic import BaseModel, Field from langchain.chat_models import ChatOpenAI from langchain.agents import Tool from langchain.embeddings.openai import OpenAIEmbeddings from langchain.text_splitter import CharacterTextSplitter from langchain.vectorstores import FAISS from langchain.document_loaders import PyPDFLoader from langchain.chains import RetrievalQA from langchain.agents import initialize_agent from langchain.agents import AgentType from langchain.tools import StructuredTool from dotenv import load_dotenv class DocumentInput(BaseModel): question: str = Field() load_dotenv() llm = ChatOpenAI(temperature=0, model="gpt-3.5-turbo-0613") tools = [] files = [ # https://abc.xyz/investor/static/pdf/2023Q1_alphabet_earnings_release.pdf { "name": "alphabet-earnings", "path": "/Users/harrisonchase/Downloads/2023Q1_alphabet_earnings_release.pdf", }, # https://digitalassets.tesla.com/tesla-contents/image/upload/IR/TSLA-Q1-2023-Update { "name": "tesla-earnings", "path": "/Users/harrisonchase/Downloads/TSLA-Q1-2023-Update.pdf", }, ] for file in files: loader = PyPDFLoader(file["path"]) pages = loader.load_and_split() text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0) docs = text_splitter.split_documents(pages) embeddings = OpenAIEmbeddings() retriever = FAISS.from_documents(docs, embeddings).as_retriever() # Wrap retrievers in a Tool tools.append( StructuredTool.from_function( args_schema=DocumentInput, name=file["name"], description=f"useful when you want to answer questions about {file['name']}", func=RetrievalQA.from_chain_type(llm=llm, retriever=retriever), ) ) llm = ChatOpenAI( temperature=0, model="gpt-3.5-turbo-0613", ) agent = initialize_agent( agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION, tools=tools, llm=llm, verbose=True, ) agent({"input": "did alphabet or tesla have more revenue?"}) ### Expected behavior Compare the two documents!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10778/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10778/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10777
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10777/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10777/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10777/events
https://github.com/langchain-ai/langchain/pull/10777
1,902,846,570
PR_kwDOIPDwls5aq7Wa
10,777
Provide option to use folder_id instead of folder_path
{ "login": "WaleedAlfaris", "id": 92319577, "node_id": "U_kgDOBYCvWQ", "avatar_url": "https://avatars.githubusercontent.com/u/92319577?v=4", "gravatar_id": "", "url": "https://api.github.com/users/WaleedAlfaris", "html_url": "https://github.com/WaleedAlfaris", "followers_url": "https://api.github.com/users/WaleedAlfaris/followers", "following_url": "https://api.github.com/users/WaleedAlfaris/following{/other_user}", "gists_url": "https://api.github.com/users/WaleedAlfaris/gists{/gist_id}", "starred_url": "https://api.github.com/users/WaleedAlfaris/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WaleedAlfaris/subscriptions", "organizations_url": "https://api.github.com/users/WaleedAlfaris/orgs", "repos_url": "https://api.github.com/users/WaleedAlfaris/repos", "events_url": "https://api.github.com/users/WaleedAlfaris/events{/privacy}", "received_events_url": "https://api.github.com/users/WaleedAlfaris/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-09-19T12:11:20
2023-09-19T12:56:29
2023-09-19T12:56:29
NONE
null
- **Description:** Provides user with the option to use folder ID to get the SharePoint folder. Updated notebook to show use of this optional feature. Also fixed a typo in the url to get Subsite ID in the notebook (url was missing 'sites/' before <site-name>), - **Issue:** GraphAPI will often return "No Resource Found" error when using the folder path. This is as far as I can tell a bug on the GraphAPI and not user related. This can be circumvented by using the folder ID and get_item() method instead of the folder path and get_item_by_path() method, - **Dependencies:** None, - **Tag maintainer:** @baskaryan, - **Twitter handle:** @WRhetoric
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10777/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10777/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10777", "html_url": "https://github.com/langchain-ai/langchain/pull/10777", "diff_url": "https://github.com/langchain-ai/langchain/pull/10777.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10777.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10776
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10776/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10776/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10776/events
https://github.com/langchain-ai/langchain/pull/10776
1,902,819,261
PR_kwDOIPDwls5aq1Fe
10,776
Add Minimax chat model
{ "login": "hetaoBackend", "id": 45447813, "node_id": "MDQ6VXNlcjQ1NDQ3ODEz", "avatar_url": "https://avatars.githubusercontent.com/u/45447813?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hetaoBackend", "html_url": "https://github.com/hetaoBackend", "followers_url": "https://api.github.com/users/hetaoBackend/followers", "following_url": "https://api.github.com/users/hetaoBackend/following{/other_user}", "gists_url": "https://api.github.com/users/hetaoBackend/gists{/gist_id}", "starred_url": "https://api.github.com/users/hetaoBackend/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hetaoBackend/subscriptions", "organizations_url": "https://api.github.com/users/hetaoBackend/orgs", "repos_url": "https://api.github.com/users/hetaoBackend/repos", "events_url": "https://api.github.com/users/hetaoBackend/events{/privacy}", "received_events_url": "https://api.github.com/users/hetaoBackend/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
3
2023-09-19T12:00:46
2023-09-20T03:56:26
2023-09-20T03:43:49
CONTRIBUTOR
null
resolve the merging issues for https://github.com/langchain-ai/langchain/pull/6757
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10776/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10776/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10776", "html_url": "https://github.com/langchain-ai/langchain/pull/10776", "diff_url": "https://github.com/langchain-ai/langchain/pull/10776.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10776.patch", "merged_at": "2023-09-20T03:43:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/10775
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10775/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10775/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10775/events
https://github.com/langchain-ai/langchain/pull/10775
1,902,794,499
PR_kwDOIPDwls5aqwVd
10,775
chore: allow using dataclasses_json dependency v0.6.0
{ "login": "MickaelBergem", "id": 3510190, "node_id": "MDQ6VXNlcjM1MTAxOTA=", "avatar_url": "https://avatars.githubusercontent.com/u/3510190?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MickaelBergem", "html_url": "https://github.com/MickaelBergem", "followers_url": "https://api.github.com/users/MickaelBergem/followers", "following_url": "https://api.github.com/users/MickaelBergem/following{/other_user}", "gists_url": "https://api.github.com/users/MickaelBergem/gists{/gist_id}", "starred_url": "https://api.github.com/users/MickaelBergem/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MickaelBergem/subscriptions", "organizations_url": "https://api.github.com/users/MickaelBergem/orgs", "repos_url": "https://api.github.com/users/MickaelBergem/repos", "events_url": "https://api.github.com/users/MickaelBergem/events{/privacy}", "received_events_url": "https://api.github.com/users/MickaelBergem/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-09-19T11:46:46
2023-09-25T16:19:44
2023-09-19T23:22:36
CONTRIBUTOR
null
**Description:** upgrade the `dataclasses_json` dependency to its latest version ([no real breaking change](https://github.com/lidatong/dataclasses-json/releases/tag/v0.6.0) if used correctly), while allowing previous version to not break other users' setup **Issue:** I need to use the latest version of that dependency in my project, but `langchain` prevents it. Note: it looks like running `poetry lock --no-update` did some changes to the lockfiles as it was the first time it was with the `macosx_11_0_arm64` architecture 🤷
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10775/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10775/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10775", "html_url": "https://github.com/langchain-ai/langchain/pull/10775", "diff_url": "https://github.com/langchain-ai/langchain/pull/10775.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10775.patch", "merged_at": "2023-09-19T23:22:36" }
https://api.github.com/repos/langchain-ai/langchain/issues/10774
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10774/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10774/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10774/events
https://github.com/langchain-ai/langchain/pull/10774
1,902,771,820
PR_kwDOIPDwls5aqryX
10,774
make auto-setting the encodings optional, alow explicitly setting it
{ "login": "czue", "id": 66555, "node_id": "MDQ6VXNlcjY2NTU1", "avatar_url": "https://avatars.githubusercontent.com/u/66555?v=4", "gravatar_id": "", "url": "https://api.github.com/users/czue", "html_url": "https://github.com/czue", "followers_url": "https://api.github.com/users/czue/followers", "following_url": "https://api.github.com/users/czue/following{/other_user}", "gists_url": "https://api.github.com/users/czue/gists{/gist_id}", "starred_url": "https://api.github.com/users/czue/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/czue/subscriptions", "organizations_url": "https://api.github.com/users/czue/orgs", "repos_url": "https://api.github.com/users/czue/repos", "events_url": "https://api.github.com/users/czue/events{/privacy}", "received_events_url": "https://api.github.com/users/czue/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
3
2023-09-19T11:32:44
2023-09-20T06:22:43
2023-09-19T19:59:53
CONTRIBUTOR
null
I was trying to use web loaders on some spanish documentation (e.g. [this site](https://www.fromdoppler.com/es/mailing-tendencias/), but the auto-encoding introduced in https://github.com/langchain-ai/langchain/pull/3602 was detected as "MacRoman" instead of the (correct) "UTF-8". To address this, I've added the ability to disable the auto-encoding, as well as the ability to explicitly tell the loader what encoding to use. - **Description:** Makes auto-setting the encoding optional in `WebBaseLoader`, and introduces an `encoding` option to explicitly set it. - **Dependencies:** N/A - **Tag maintainer:** @hwchase17 - **Twitter handle:** @czue
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10774/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10774/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10774", "html_url": "https://github.com/langchain-ai/langchain/pull/10774", "diff_url": "https://github.com/langchain-ai/langchain/pull/10774.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10774.patch", "merged_at": "2023-09-19T19:59:52" }
https://api.github.com/repos/langchain-ai/langchain/issues/10773
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10773/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10773/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10773/events
https://github.com/langchain-ai/langchain/issues/10773
1,902,666,640
I_kwDOIPDwls5xaGOQ
10,773
In xcode, use swift to call Python code and introduce Ollama error
{ "login": "fuhailong", "id": 4598463, "node_id": "MDQ6VXNlcjQ1OTg0NjM=", "avatar_url": "https://avatars.githubusercontent.com/u/4598463?v=4", "gravatar_id": "", "url": "https://api.github.com/users/fuhailong", "html_url": "https://github.com/fuhailong", "followers_url": "https://api.github.com/users/fuhailong/followers", "following_url": "https://api.github.com/users/fuhailong/following{/other_user}", "gists_url": "https://api.github.com/users/fuhailong/gists{/gist_id}", "starred_url": "https://api.github.com/users/fuhailong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fuhailong/subscriptions", "organizations_url": "https://api.github.com/users/fuhailong/orgs", "repos_url": "https://api.github.com/users/fuhailong/repos", "events_url": "https://api.github.com/users/fuhailong/events{/privacy}", "received_events_url": "https://api.github.com/users/fuhailong/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
5
2023-09-19T10:22:23
2023-12-27T16:05:03
2023-12-27T16:05:03
NONE
null
### System Info I am developing a macOS application that uses Swift to call Python. To achieve this, I have integrated PythonKit, which also works properly. When I followed the integration of Ollama guided by Langchain, I encountered a problem and reported an error in 'from langchain.llms import Ollama'. The subsequent code cannot execute properly, but I ran it on the terminal without any issues. By setting environment variables, I managed to run both the Python environment and the terminal as 3.11.5, And I can successfully find olama.py under langchain/llms under site packages. I have tried installing TextLoader, which is directly installed under site packages and can import TextLoader normally. I guess it may not be possible to find deeper level packages. Can anyone encounter similar problems and help me solve them or provide some ideas? Thank you ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from langchain.llms import Ollama print('hello') ### Expected behavior print('hello')
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10773/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/10773/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10771
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10771/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10771/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10771/events
https://github.com/langchain-ai/langchain/pull/10771
1,902,640,258
PR_kwDOIPDwls5aqPE1
10,771
add clustered vearch in langchain
{ "login": "zhanghexian", "id": 96572405, "node_id": "U_kgDOBcGT9Q", "avatar_url": "https://avatars.githubusercontent.com/u/96572405?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zhanghexian", "html_url": "https://github.com/zhanghexian", "followers_url": "https://api.github.com/users/zhanghexian/followers", "following_url": "https://api.github.com/users/zhanghexian/following{/other_user}", "gists_url": "https://api.github.com/users/zhanghexian/gists{/gist_id}", "starred_url": "https://api.github.com/users/zhanghexian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zhanghexian/subscriptions", "organizations_url": "https://api.github.com/users/zhanghexian/orgs", "repos_url": "https://api.github.com/users/zhanghexian/repos", "events_url": "https://api.github.com/users/zhanghexian/events{/privacy}", "received_events_url": "https://api.github.com/users/zhanghexian/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
2
2023-09-19T10:05:36
2023-09-20T04:22:23
2023-09-20T04:22:23
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10771/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10771/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10771", "html_url": "https://github.com/langchain-ai/langchain/pull/10771", "diff_url": "https://github.com/langchain-ai/langchain/pull/10771.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10771.patch", "merged_at": "2023-09-20T04:22:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/10770
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10770/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10770/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10770/events
https://github.com/langchain-ai/langchain/issues/10770
1,902,432,993
I_kwDOIPDwls5xZNLh
10,770
lib/python3.10/site-packages/langchain/agents/conversational/output_parser.py", line 26, in parse raise OutputParserException(f"Could not parse LLM output: `{text}`") langchain.schema.output_parser.OutputParserException: Could not parse LLM output: `Do I need to use a tool? No
{ "login": "zhangleinice", "id": 33247284, "node_id": "MDQ6VXNlcjMzMjQ3Mjg0", "avatar_url": "https://avatars.githubusercontent.com/u/33247284?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zhangleinice", "html_url": "https://github.com/zhangleinice", "followers_url": "https://api.github.com/users/zhangleinice/followers", "following_url": "https://api.github.com/users/zhangleinice/following{/other_user}", "gists_url": "https://api.github.com/users/zhangleinice/gists{/gist_id}", "starred_url": "https://api.github.com/users/zhangleinice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zhangleinice/subscriptions", "organizations_url": "https://api.github.com/users/zhangleinice/orgs", "repos_url": "https://api.github.com/users/zhangleinice/repos", "events_url": "https://api.github.com/users/zhangleinice/events{/privacy}", "received_events_url": "https://api.github.com/users/zhangleinice/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
3
2023-09-19T08:05:47
2023-12-26T16:05:21
2023-12-26T16:05:20
NONE
null
### System Info langchain==0.0.249 Python 3.10.9 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction import re import json from langchain.document_loaders import CSVLoader from langchain.text_splitter import CharacterTextSplitter from langchain.embeddings.openai import OpenAIEmbeddings from langchain.vectorstores import FAISS from langchain.text_splitter import SpacyTextSplitter from langchain import OpenAI, VectorDBQA from langchain.document_loaders import TextLoader from langchain.agents import initialize_agent, tool from langchain.memory import ConversationBufferMemory from langchain.chat_models import ChatOpenAI from langchain.prompts import PromptTemplate from langchain.chains import LLMChain # VectorDBQA 更新为 RetrievalQA from langchain.chains import RetrievalQA llm = OpenAI(temperature=0) loader = TextLoader('./data/faq/ecommerce_faq.txt') documents = loader.load() text_splitter = SpacyTextSplitter(chunk_size=256, pipeline="zh_core_web_sm") texts = text_splitter.split_documents(documents) embeddings = OpenAIEmbeddings() docsearch = FAISS.from_documents(texts, embeddings) faq_chain = VectorDBQA.from_chain_type( llm=llm, vectorstore=docsearch, verbose=True) product_loader = CSVLoader('./data/faq/ecommerce_products.csv') product_documents = product_loader.load() product_text_splitter = CharacterTextSplitter(chunk_size=1024, separator="\n") product_texts = product_text_splitter.split_documents(product_documents) product_search = FAISS.from_documents(product_texts, OpenAIEmbeddings()) product_chain = VectorDBQA.from_chain_type( llm=llm, vectorstore=product_search, verbose=True) ORDER_1 = "20230101ABC" ORDER_2 = "20230101EFG" ORDER_1_DETAIL = { "order_number": ORDER_1, "status": "已发货", "shipping_date": "2023-01-03", "estimated_delivered_date": "2023-01-05", } ORDER_2_DETAIL = { "order_number": ORDER_2, "status": "未发货", "shipping_date": None, "estimated_delivered_date": None, } answer_order_info = PromptTemplate( template="请把下面的订单信息回复给用户: \n\n {order}?", input_variables=["order"] ) answer_order_llm = LLMChain(llm=ChatOpenAI( temperature=0), prompt=answer_order_info) @tool("Search Order", return_direct=True) def search_order(input: str) -> str: """useful for when you need to answer questions about customers orders""" pattern = r"\d+[A-Z]+" match = re.search(pattern, input) order_number = input if match: order_number = match.group(0) else: return "请问您的订单号是多少?" if order_number == ORDER_1: return answer_order_llm.run(json.dumps(ORDER_1_DETAIL)) elif order_number == ORDER_2: return answer_order_llm.run(json.dumps(ORDER_2_DETAIL)) else: return f"对不起,根据{input}没有找到您的订单" @tool("FAQ") def faq(intput: str) -> str: """"useful for when you need to answer questions about shopping policies, like return policy, shipping policy, etc.""" return faq_chain.run(intput) @tool("Recommend Product") def recommend_product(input: str) -> str: """"useful for when you need to search and recommend products and recommend it to the user""" return product_chain.run(input) tools = [ search_order, recommend_product, faq ] chatllm = ChatOpenAI(temperature=0) memory = ConversationBufferMemory( memory_key="chat_history", return_messages=True) conversation_agent = initialize_agent( tools, chatllm, agent="conversational-react-description", memory=memory, verbose=True ) question = "请问你们的货,能送到三亚吗?大概需要几天?" result = conversation_agent.run(question) print(result) ### Expected behavior Hope no error is reported
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10770/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10770/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10769
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10769/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10769/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10769/events
https://github.com/langchain-ai/langchain/pull/10769
1,902,355,503
PR_kwDOIPDwls5apSgH
10,769
Add Vald as VectorStore
{ "login": "datelier", "id": 57349093, "node_id": "MDQ6VXNlcjU3MzQ5MDkz", "avatar_url": "https://avatars.githubusercontent.com/u/57349093?v=4", "gravatar_id": "", "url": "https://api.github.com/users/datelier", "html_url": "https://github.com/datelier", "followers_url": "https://api.github.com/users/datelier/followers", "following_url": "https://api.github.com/users/datelier/following{/other_user}", "gists_url": "https://api.github.com/users/datelier/gists{/gist_id}", "starred_url": "https://api.github.com/users/datelier/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datelier/subscriptions", "organizations_url": "https://api.github.com/users/datelier/orgs", "repos_url": "https://api.github.com/users/datelier/repos", "events_url": "https://api.github.com/users/datelier/events{/privacy}", "received_events_url": "https://api.github.com/users/datelier/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
1
2023-09-19T07:14:39
2023-09-19T23:32:05
2023-09-19T23:32:05
CONTRIBUTOR
null
**Description:** Support of Vald as vector store. Integration tests and example notebook are included. - Vald: https://github.com/vdaas/vald
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10769/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10769/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10769", "html_url": "https://github.com/langchain-ai/langchain/pull/10769", "diff_url": "https://github.com/langchain-ai/langchain/pull/10769.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10769.patch", "merged_at": "2023-09-19T23:32:04" }
https://api.github.com/repos/langchain-ai/langchain/issues/10767
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10767/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10767/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10767/events
https://github.com/langchain-ai/langchain/pull/10767
1,902,273,101
PR_kwDOIPDwls5apAhH
10,767
Remembrall Integration
{ "login": "raunakdoesdev", "id": 10953031, "node_id": "MDQ6VXNlcjEwOTUzMDMx", "avatar_url": "https://avatars.githubusercontent.com/u/10953031?v=4", "gravatar_id": "", "url": "https://api.github.com/users/raunakdoesdev", "html_url": "https://github.com/raunakdoesdev", "followers_url": "https://api.github.com/users/raunakdoesdev/followers", "following_url": "https://api.github.com/users/raunakdoesdev/following{/other_user}", "gists_url": "https://api.github.com/users/raunakdoesdev/gists{/gist_id}", "starred_url": "https://api.github.com/users/raunakdoesdev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/raunakdoesdev/subscriptions", "organizations_url": "https://api.github.com/users/raunakdoesdev/orgs", "repos_url": "https://api.github.com/users/raunakdoesdev/repos", "events_url": "https://api.github.com/users/raunakdoesdev/events{/privacy}", "received_events_url": "https://api.github.com/users/raunakdoesdev/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2023-09-19T06:15:08
2023-09-19T15:36:33
2023-09-19T15:36:32
CONTRIBUTOR
null
- **Description:** Added integration instructions for Remembrall. - **Tag maintainer:** @hwchase17 - **Twitter handle:** @raunakdoesdev Fun fact, this project originated at the Modal Hackathon in NYC where it won the Best LLM App prize sponsored by Langchain. Thanks for your support 🦜
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10767/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10767/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10767", "html_url": "https://github.com/langchain-ai/langchain/pull/10767", "diff_url": "https://github.com/langchain-ai/langchain/pull/10767.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10767.patch", "merged_at": "2023-09-19T15:36:32" }
https://api.github.com/repos/langchain-ai/langchain/issues/10765
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10765/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10765/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10765/events
https://github.com/langchain-ai/langchain/pull/10765
1,902,074,094
PR_kwDOIPDwls5aoWB0
10,765
Allow extra variables when invoking prompt templates
{ "login": "jacoblee93", "id": 6952323, "node_id": "MDQ6VXNlcjY5NTIzMjM=", "avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jacoblee93", "html_url": "https://github.com/jacoblee93", "followers_url": "https://api.github.com/users/jacoblee93/followers", "following_url": "https://api.github.com/users/jacoblee93/following{/other_user}", "gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}", "starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions", "organizations_url": "https://api.github.com/users/jacoblee93/orgs", "repos_url": "https://api.github.com/users/jacoblee93/repos", "events_url": "https://api.github.com/users/jacoblee93/events{/privacy}", "received_events_url": "https://api.github.com/users/jacoblee93/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-09-19T02:04:41
2023-09-19T03:08:55
2023-09-19T03:08:54
CONTRIBUTOR
null
Makes chaining easier as many maps have extra properties. @baskaryan @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10765/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10765/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10765", "html_url": "https://github.com/langchain-ai/langchain/pull/10765", "diff_url": "https://github.com/langchain-ai/langchain/pull/10765.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10765.patch", "merged_at": "2023-09-19T03:08:54" }
https://api.github.com/repos/langchain-ai/langchain/issues/10764
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10764/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10764/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10764/events
https://github.com/langchain-ai/langchain/issues/10764
1,902,072,269
I_kwDOIPDwls5xX1HN
10,764
Issue with BaseChatMessageHistory Attribute Scope
{ "login": "ibiscp", "id": 19699606, "node_id": "MDQ6VXNlcjE5Njk5NjA2", "avatar_url": "https://avatars.githubusercontent.com/u/19699606?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ibiscp", "html_url": "https://github.com/ibiscp", "followers_url": "https://api.github.com/users/ibiscp/followers", "following_url": "https://api.github.com/users/ibiscp/following{/other_user}", "gists_url": "https://api.github.com/users/ibiscp/gists{/gist_id}", "starred_url": "https://api.github.com/users/ibiscp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ibiscp/subscriptions", "organizations_url": "https://api.github.com/users/ibiscp/orgs", "repos_url": "https://api.github.com/users/ibiscp/repos", "events_url": "https://api.github.com/users/ibiscp/events{/privacy}", "received_events_url": "https://api.github.com/users/ibiscp/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-09-19T02:02:29
2023-12-28T16:05:52
2023-12-28T16:05:51
CONTRIBUTOR
null
### System Info LangChain v0.0.294 ### Who can help? @hwchase17 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [X] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I've recently encountered an issue that took a bit of time to isolate and identify. I have a service that utilizes a chain for conversations, where multiple instances are created of the same chain to manage responses to all users. However, I observed an issue where messages started to get mixed up. Initially, I suspected the issue might be related to the websocket, but upon further investigation, I realized that the root cause seems to be the way `BaseChatMessageHistory` is declared. It appears that the messages list is implemented as a class attribute rather than an instance attribute. This seems to be causing memory to be shared across all instances, which doesn't align with the expected behavior and is causing the message mix-up that I observed. I wanted to reach out to understand if there is a specific reason for implementing the messages list as a class attribute? In my perspective, modifying it to be an instance attribute might prevent such issues from occurring, and I believe it could potentially be considered a bug in its current state. I'm open to collaborating on a fix and would be happy to submit a PR to address this. ### Expected behavior Just make it an instance attribute.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10764/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10764/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10763
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10763/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10763/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10763/events
https://github.com/langchain-ai/langchain/pull/10763
1,902,059,364
PR_kwDOIPDwls5aoS0Z
10,763
Add support for HTTP PUT in the open api agent prompt
{ "login": "liu-ziyang", "id": 41968256, "node_id": "MDQ6VXNlcjQxOTY4MjU2", "avatar_url": "https://avatars.githubusercontent.com/u/41968256?v=4", "gravatar_id": "", "url": "https://api.github.com/users/liu-ziyang", "html_url": "https://github.com/liu-ziyang", "followers_url": "https://api.github.com/users/liu-ziyang/followers", "following_url": "https://api.github.com/users/liu-ziyang/following{/other_user}", "gists_url": "https://api.github.com/users/liu-ziyang/gists{/gist_id}", "starred_url": "https://api.github.com/users/liu-ziyang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/liu-ziyang/subscriptions", "organizations_url": "https://api.github.com/users/liu-ziyang/orgs", "repos_url": "https://api.github.com/users/liu-ziyang/repos", "events_url": "https://api.github.com/users/liu-ziyang/events{/privacy}", "received_events_url": "https://api.github.com/users/liu-ziyang/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-09-19T01:48:45
2023-09-19T23:37:21
2023-09-19T23:37:21
CONTRIBUTOR
null
**Description:** This PR adds HTTP PUT support for the langchain openapi agent toolkit by leveraging existing structure and HTTP put request wrapper. The PUT method is almost identical to HTTP POST but should be idempotent and therefore tighter than POST which is not idempotent. Some APIs may consider to use PUT instead of POST which is unfortunately not supported with the current toolkit yet.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10763/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10763/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10763", "html_url": "https://github.com/langchain-ai/langchain/pull/10763", "diff_url": "https://github.com/langchain-ai/langchain/pull/10763.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10763.patch", "merged_at": "2023-09-19T23:37:21" }
https://api.github.com/repos/langchain-ai/langchain/issues/10762
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10762/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10762/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10762/events
https://github.com/langchain-ai/langchain/pull/10762
1,902,055,508
PR_kwDOIPDwls5aoSAt
10,762
Merge metadata + tags in config
{ "login": "hinthornw", "id": 13333726, "node_id": "MDQ6VXNlcjEzMzMzNzI2", "avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hinthornw", "html_url": "https://github.com/hinthornw", "followers_url": "https://api.github.com/users/hinthornw/followers", "following_url": "https://api.github.com/users/hinthornw/following{/other_user}", "gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}", "starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions", "organizations_url": "https://api.github.com/users/hinthornw/orgs", "repos_url": "https://api.github.com/users/hinthornw/repos", "events_url": "https://api.github.com/users/hinthornw/events{/privacy}", "received_events_url": "https://api.github.com/users/hinthornw/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-09-19T01:43:38
2023-09-19T15:00:31
2023-09-19T15:00:30
COLLABORATOR
null
Think these should be a merge/update rather than overwrite
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10762/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10762/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10762", "html_url": "https://github.com/langchain-ai/langchain/pull/10762", "diff_url": "https://github.com/langchain-ai/langchain/pull/10762.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10762.patch", "merged_at": "2023-09-19T15:00:30" }
https://api.github.com/repos/langchain-ai/langchain/issues/10761
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10761/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10761/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10761/events
https://github.com/langchain-ai/langchain/pull/10761
1,902,037,385
PR_kwDOIPDwls5aoON2
10,761
add project section to pyproject.toml, closes #10760
{ "login": "bryfry", "id": 116113, "node_id": "MDQ6VXNlcjExNjExMw==", "avatar_url": "https://avatars.githubusercontent.com/u/116113?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bryfry", "html_url": "https://github.com/bryfry", "followers_url": "https://api.github.com/users/bryfry/followers", "following_url": "https://api.github.com/users/bryfry/following{/other_user}", "gists_url": "https://api.github.com/users/bryfry/gists{/gist_id}", "starred_url": "https://api.github.com/users/bryfry/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bryfry/subscriptions", "organizations_url": "https://api.github.com/users/bryfry/orgs", "repos_url": "https://api.github.com/users/bryfry/repos", "events_url": "https://api.github.com/users/bryfry/events{/privacy}", "received_events_url": "https://api.github.com/users/bryfry/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
2
2023-09-19T01:20:05
2023-09-19T04:59:32
2023-09-19T04:59:32
NONE
null
- **Description:** add project section to `pyproject.toml` - **Issue:** closes #10760 - **Dependencies:** None - **Tag maintainer:** @hwchase17 - **Twitter handle:** None
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10761/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10761/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10761", "html_url": "https://github.com/langchain-ai/langchain/pull/10761", "diff_url": "https://github.com/langchain-ai/langchain/pull/10761.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10761.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10760
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10760/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10760/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10760/events
https://github.com/langchain-ai/langchain/issues/10760
1,902,034,213
I_kwDOIPDwls5xXr0l
10,760
pip install from source creates UNKNOWN package
{ "login": "bryfry", "id": 116113, "node_id": "MDQ6VXNlcjExNjExMw==", "avatar_url": "https://avatars.githubusercontent.com/u/116113?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bryfry", "html_url": "https://github.com/bryfry", "followers_url": "https://api.github.com/users/bryfry/followers", "following_url": "https://api.github.com/users/bryfry/following{/other_user}", "gists_url": "https://api.github.com/users/bryfry/gists{/gist_id}", "starred_url": "https://api.github.com/users/bryfry/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bryfry/subscriptions", "organizations_url": "https://api.github.com/users/bryfry/orgs", "repos_url": "https://api.github.com/users/bryfry/repos", "events_url": "https://api.github.com/users/bryfry/events{/privacy}", "received_events_url": "https://api.github.com/users/bryfry/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2023-09-19T01:16:26
2023-09-19T04:59:02
2023-09-19T04:59:02
NONE
null
### System Info Python Version: `Python 3.10.12` LangChain Version: `master` ### Who can help? @hwchase17 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Following [Getting Started - Installing - From Source](https://python.langchain.com/docs/get_started/installation#from-source) ``` python3 -m pip install -e . ``` Yields an install of `UNKNOWN` package due to missing `[project]` section in the `pyproject.toml` ``` Successfully built UNKNOWN Installing collected packages: UNKNOWN Attempting uninstall: UNKNOWN Found existing installation: UNKNOWN 0.0.0 Uninstalling UNKNOWN-0.0.0: Successfully uninstalled UNKNOWN-0.0.0 Successfully installed UNKNOWN-0.0.0 ``` ### Expected behavior ``` Successfully built langchain Installing collected packages: langchain Successfully installed langchain-0.0.294 ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10760/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10760/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10759
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10759/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10759/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10759/events
https://github.com/langchain-ai/langchain/pull/10759
1,902,027,735
PR_kwDOIPDwls5aoMH3
10,759
keep reference to old embeddings base
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-09-19T01:09:25
2023-09-19T03:09:46
2023-09-19T03:09:45
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10759/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10759/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10759", "html_url": "https://github.com/langchain-ai/langchain/pull/10759", "diff_url": "https://github.com/langchain-ai/langchain/pull/10759.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10759.patch", "merged_at": "2023-09-19T03:09:45" }
https://api.github.com/repos/langchain-ai/langchain/issues/10757
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10757/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10757/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10757/events
https://github.com/langchain-ai/langchain/pull/10757
1,902,009,737
PR_kwDOIPDwls5aoICG
10,757
add agent components v2
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-09-19T00:55:17
2023-09-19T23:38:31
2023-09-19T23:38:31
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10757/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10757/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10757", "html_url": "https://github.com/langchain-ai/langchain/pull/10757", "diff_url": "https://github.com/langchain-ai/langchain/pull/10757.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10757.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10756
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10756/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10756/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10756/events
https://github.com/langchain-ai/langchain/pull/10756
1,901,977,439
PR_kwDOIPDwls5aoAtt
10,756
add agent components
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
1
2023-09-19T00:28:36
2023-09-19T23:38:22
2023-09-19T23:38:22
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10756/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10756/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10756", "html_url": "https://github.com/langchain-ai/langchain/pull/10756", "diff_url": "https://github.com/langchain-ai/langchain/pull/10756.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10756.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10755
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10755/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10755/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10755/events
https://github.com/langchain-ai/langchain/pull/10755
1,901,975,013
PR_kwDOIPDwls5aoALZ
10,755
Start RunnableBranch callback tags with 1 instead of 0
{ "login": "jacoblee93", "id": 6952323, "node_id": "MDQ6VXNlcjY5NTIzMjM=", "avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jacoblee93", "html_url": "https://github.com/jacoblee93", "followers_url": "https://api.github.com/users/jacoblee93/followers", "following_url": "https://api.github.com/users/jacoblee93/following{/other_user}", "gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}", "starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions", "organizations_url": "https://api.github.com/users/jacoblee93/orgs", "repos_url": "https://api.github.com/users/jacoblee93/repos", "events_url": "https://api.github.com/users/jacoblee93/events{/privacy}", "received_events_url": "https://api.github.com/users/jacoblee93/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-09-19T00:25:53
2023-09-19T23:38:09
2023-09-19T23:38:08
CONTRIBUTOR
null
Changes to match `RunnableSequences` @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10755/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10755/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10755", "html_url": "https://github.com/langchain-ai/langchain/pull/10755", "diff_url": "https://github.com/langchain-ai/langchain/pull/10755.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10755.patch", "merged_at": "2023-09-19T23:38:08" }
https://api.github.com/repos/langchain-ai/langchain/issues/10754
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10754/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10754/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10754/events
https://github.com/langchain-ai/langchain/pull/10754
1,901,958,133
PR_kwDOIPDwls5an8Y9
10,754
Update routing cookbook to include a RunnableBranch example
{ "login": "jacoblee93", "id": 6952323, "node_id": "MDQ6VXNlcjY5NTIzMjM=", "avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jacoblee93", "html_url": "https://github.com/jacoblee93", "followers_url": "https://api.github.com/users/jacoblee93/followers", "following_url": "https://api.github.com/users/jacoblee93/following{/other_user}", "gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}", "starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions", "organizations_url": "https://api.github.com/users/jacoblee93/orgs", "repos_url": "https://api.github.com/users/jacoblee93/repos", "events_url": "https://api.github.com/users/jacoblee93/events{/privacy}", "received_events_url": "https://api.github.com/users/jacoblee93/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2023-09-19T00:13:02
2023-09-19T14:59:56
2023-09-19T14:59:55
CONTRIBUTOR
null
~~Because we can't pass extra parameters into a prompt, we have to prepend a function before the runnable calls in the branch and it's a bit less elegant than I'd like.~~ All good now that #10765 has landed! @eyurtsev @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10754/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10754/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10754", "html_url": "https://github.com/langchain-ai/langchain/pull/10754", "diff_url": "https://github.com/langchain-ai/langchain/pull/10754.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10754.patch", "merged_at": "2023-09-19T14:59:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/10753
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10753/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10753/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10753/events
https://github.com/langchain-ai/langchain/pull/10753
1,901,952,494
PR_kwDOIPDwls5an7GX
10,753
fix broken link in docugami loader docs
{ "login": "tjaffri", "id": 749277, "node_id": "MDQ6VXNlcjc0OTI3Nw==", "avatar_url": "https://avatars.githubusercontent.com/u/749277?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tjaffri", "html_url": "https://github.com/tjaffri", "followers_url": "https://api.github.com/users/tjaffri/followers", "following_url": "https://api.github.com/users/tjaffri/following{/other_user}", "gists_url": "https://api.github.com/users/tjaffri/gists{/gist_id}", "starred_url": "https://api.github.com/users/tjaffri/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tjaffri/subscriptions", "organizations_url": "https://api.github.com/users/tjaffri/orgs", "repos_url": "https://api.github.com/users/tjaffri/repos", "events_url": "https://api.github.com/users/tjaffri/events{/privacy}", "received_events_url": "https://api.github.com/users/tjaffri/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-09-19T00:08:49
2023-09-19T04:56:33
2023-09-19T04:56:33
CONTRIBUTOR
null
Just fixing the link to the self query retriever in docugami loader docs
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10753/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10753/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10753", "html_url": "https://github.com/langchain-ai/langchain/pull/10753", "diff_url": "https://github.com/langchain-ai/langchain/pull/10753.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10753.patch", "merged_at": "2023-09-19T04:56:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/10752
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10752/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10752/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10752/events
https://github.com/langchain-ai/langchain/pull/10752
1,901,900,479
PR_kwDOIPDwls5anvWP
10,752
fix recursive loader
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-09-18T23:26:06
2023-09-20T15:16:55
2023-09-20T15:16:54
COLLABORATOR
null
maintain same base url throughout recursion, yield initial page, fixing recursion depth tracking
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10752/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10752/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10752", "html_url": "https://github.com/langchain-ai/langchain/pull/10752", "diff_url": "https://github.com/langchain-ai/langchain/pull/10752.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10752.patch", "merged_at": "2023-09-20T15:16:54" }
https://api.github.com/repos/langchain-ai/langchain/issues/10751
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10751/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10751/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10751/events
https://github.com/langchain-ai/langchain/pull/10751
1,901,868,537
PR_kwDOIPDwls5anoSD
10,751
bump 294
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-09-18T22:57:07
2023-09-18T23:04:04
2023-09-18T23:04:03
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10751/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10751/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10751", "html_url": "https://github.com/langchain-ai/langchain/pull/10751", "diff_url": "https://github.com/langchain-ai/langchain/pull/10751.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10751.patch", "merged_at": "2023-09-18T23:04:03" }
https://api.github.com/repos/langchain-ai/langchain/issues/10750
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10750/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10750/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10750/events
https://github.com/langchain-ai/langchain/pull/10750
1,901,863,743
PR_kwDOIPDwls5annOX
10,750
Allow 3.5-turbo instruct models in the OpenAI LLM class
{ "login": "jacoblee93", "id": 6952323, "node_id": "MDQ6VXNlcjY5NTIzMjM=", "avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jacoblee93", "html_url": "https://github.com/jacoblee93", "followers_url": "https://api.github.com/users/jacoblee93/followers", "following_url": "https://api.github.com/users/jacoblee93/following{/other_user}", "gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}", "starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions", "organizations_url": "https://api.github.com/users/jacoblee93/orgs", "repos_url": "https://api.github.com/users/jacoblee93/repos", "events_url": "https://api.github.com/users/jacoblee93/events{/privacy}", "received_events_url": "https://api.github.com/users/jacoblee93/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-09-18T22:51:33
2023-09-18T22:55:14
2023-09-18T22:55:13
CONTRIBUTOR
null
@baskaryan @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10750/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10750/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10750", "html_url": "https://github.com/langchain-ai/langchain/pull/10750", "diff_url": "https://github.com/langchain-ai/langchain/pull/10750.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10750.patch", "merged_at": "2023-09-18T22:55:13" }
https://api.github.com/repos/langchain-ai/langchain/issues/10749
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10749/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10749/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10749/events
https://github.com/langchain-ai/langchain/issues/10749
1,901,803,694
I_kwDOIPDwls5xWziu
10,749
LLMSingleActionAgent Doesnot provide Expected response
{ "login": "Raji0196", "id": 77723011, "node_id": "MDQ6VXNlcjc3NzIzMDEx", "avatar_url": "https://avatars.githubusercontent.com/u/77723011?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Raji0196", "html_url": "https://github.com/Raji0196", "followers_url": "https://api.github.com/users/Raji0196/followers", "following_url": "https://api.github.com/users/Raji0196/following{/other_user}", "gists_url": "https://api.github.com/users/Raji0196/gists{/gist_id}", "starred_url": "https://api.github.com/users/Raji0196/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Raji0196/subscriptions", "organizations_url": "https://api.github.com/users/Raji0196/orgs", "repos_url": "https://api.github.com/users/Raji0196/repos", "events_url": "https://api.github.com/users/Raji0196/events{/privacy}", "received_events_url": "https://api.github.com/users/Raji0196/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-09-18T21:51:30
2023-12-25T16:05:44
2023-12-25T16:05:44
NONE
null
### Issue you'd like to raise. I am using LLMSingleActionAgent with ReAct Prompt. Most of the times it fails to give the proper response to the input. For example, when I greet the agent, it is not greeting back most of the times. Below is the response snippet ![image](https://github.com/langchain-ai/langchain/assets/77723011/82e15dd2-1dcc-4c55-b34d-a4a4199dce2b) ![image](https://github.com/langchain-ai/langchain/assets/77723011/14aebdb5-0c84-4e0a-8e9b-ffa98ff7e373) **Below is my Agent code:** agent = LLMSingleActionAgent( llm_chain=llm_chain, output_parser=output_parser, stop=["\nObservation:"], allowed_tools=tool_names ) **Part of Prompt:** You have access to the following tools. you can use tools, your Previous conversation history to answer the questions {tools} Previous Conversation history: {history} Use the following format: Question: the input question you must answer Thought: you should always think about what to do Action: the action to take, can be one of [{tool_names}] or {history} Action Input: the input to the action Observation: the result of the action Thought: I now know the final answer Final Answer: the final answer to the original input question **Output Parser:** class CustomOutputParser(AgentOutputParser): def parse(self, llm_output: str) -> Union[AgentAction, AgentFinish]: # Check if agent should finish if "Final Answer:" in llm_output: return AgentFinish( # Return values is generally always a dictionary with a single `output` key # It is not recommended to try anything else at the moment :) return_values={"output": llm_output.split("Final Answer:")[-1].strip()}, log=llm_output, ) # Parse out the action and action input regex = r"Action\s*\d*\s*:(.*?)\nAction\s*\d*\s*Input\s*\d*\s*:[\s]*(.*)" match = re.search(regex, llm_output, re.DOTALL) if not match: raise ValueError(f"Could not parse LLM output: `{llm_output}`") action = match.group(1).strip() action_input = match.group(2) # Return the action and action input return AgentAction(tool=action, tool_input=action_input.strip(" ").strip('"'), log=llm_output) ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10749/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/10749/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10748
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10748/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10748/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10748/events
https://github.com/langchain-ai/langchain/pull/10748
1,901,747,854
PR_kwDOIPDwls5anNyN
10,748
mv data bricks sql page
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-09-18T21:10:10
2023-09-18T21:54:43
2023-09-18T21:54:42
COLLABORATOR
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10748/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10748/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10748", "html_url": "https://github.com/langchain-ai/langchain/pull/10748", "diff_url": "https://github.com/langchain-ai/langchain/pull/10748.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10748.patch", "merged_at": "2023-09-18T21:54:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/10747
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10747/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10747/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10747/events
https://github.com/langchain-ai/langchain/issues/10747
1,901,665,767
I_kwDOIPDwls5xWR3n
10,747
LLaMa-2-13B-chat deployed on azureml studio giving out of context response
{ "login": "Manikanta5112", "id": 116510423, "node_id": "U_kgDOBvHO1w", "avatar_url": "https://avatars.githubusercontent.com/u/116510423?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Manikanta5112", "html_url": "https://github.com/Manikanta5112", "followers_url": "https://api.github.com/users/Manikanta5112/followers", "following_url": "https://api.github.com/users/Manikanta5112/following{/other_user}", "gists_url": "https://api.github.com/users/Manikanta5112/gists{/gist_id}", "starred_url": "https://api.github.com/users/Manikanta5112/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Manikanta5112/subscriptions", "organizations_url": "https://api.github.com/users/Manikanta5112/orgs", "repos_url": "https://api.github.com/users/Manikanta5112/repos", "events_url": "https://api.github.com/users/Manikanta5112/events{/privacy}", "received_events_url": "https://api.github.com/users/Manikanta5112/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
3
2023-09-18T20:12:19
2023-12-26T16:05:31
2023-12-26T16:05:30
CONTRIBUTOR
null
### Issue you'd like to raise. Recently, we re-deployed the llam2-13-B chat model on azure ML Studio, whenever we are trying to do in-contex learning (RAG QA), always replied back with out of context response. Currently we are passing request payload as using langchain: System prompt: sys msg + context Human prompt: question Response: out of context response 2nd variation: Human prompt: context + question Response: junk answers like \n Any suggestions who have experienced? And, we are also followed the required input format. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10747/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10747/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10746
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10746/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10746/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10746/events
https://github.com/langchain-ai/langchain/pull/10746
1,901,643,044
PR_kwDOIPDwls5am22_
10,746
Substring support for similarity_search_with_score
{ "login": "mateai", "id": 83303230, "node_id": "MDQ6VXNlcjgzMzAzMjMw", "avatar_url": "https://avatars.githubusercontent.com/u/83303230?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mateai", "html_url": "https://github.com/mateai", "followers_url": "https://api.github.com/users/mateai/followers", "following_url": "https://api.github.com/users/mateai/following{/other_user}", "gists_url": "https://api.github.com/users/mateai/gists{/gist_id}", "starred_url": "https://api.github.com/users/mateai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mateai/subscriptions", "organizations_url": "https://api.github.com/users/mateai/orgs", "repos_url": "https://api.github.com/users/mateai/repos", "events_url": "https://api.github.com/users/mateai/events{/privacy}", "received_events_url": "https://api.github.com/users/mateai/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-09-18T19:55:19
2023-09-20T03:32:44
2023-09-20T03:32:44
CONTRIBUTOR
null
**Description:** Possible to filter with substrings in similarity_search_with_score, for example: filter={'user_id': {'substring': 'user'}}
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10746/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10746/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10746", "html_url": "https://github.com/langchain-ai/langchain/pull/10746", "diff_url": "https://github.com/langchain-ai/langchain/pull/10746.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10746.patch", "merged_at": "2023-09-20T03:32:44" }
https://api.github.com/repos/langchain-ai/langchain/issues/10745
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10745/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10745/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10745/events
https://github.com/langchain-ai/langchain/issues/10745
1,901,534,677
I_kwDOIPDwls5xVx3V
10,745
Support of Gradient.ai LLM
{ "login": "michaelfeil", "id": 63565275, "node_id": "MDQ6VXNlcjYzNTY1Mjc1", "avatar_url": "https://avatars.githubusercontent.com/u/63565275?v=4", "gravatar_id": "", "url": "https://api.github.com/users/michaelfeil", "html_url": "https://github.com/michaelfeil", "followers_url": "https://api.github.com/users/michaelfeil/followers", "following_url": "https://api.github.com/users/michaelfeil/following{/other_user}", "gists_url": "https://api.github.com/users/michaelfeil/gists{/gist_id}", "starred_url": "https://api.github.com/users/michaelfeil/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/michaelfeil/subscriptions", "organizations_url": "https://api.github.com/users/michaelfeil/orgs", "repos_url": "https://api.github.com/users/michaelfeil/repos", "events_url": "https://api.github.com/users/michaelfeil/events{/privacy}", "received_events_url": "https://api.github.com/users/michaelfeil/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-09-18T18:42:19
2023-09-22T09:33:42
2023-09-22T09:33:42
CONTRIBUTOR
null
### Feature request I propose to add the Python client of gradient.ai as a `LLM`. `gradient_ai.py` under https://github.com/langchain-ai/langchain/tree/master/libs/langchain/langchain/llms ```python class GradientAI(LLM): # client for Large Language Models on gradient.ai # ``` See: API docs https://docs.gradient.ai/reference/listmodels ### Motivation Gradient.ai offers fine-tuning and inference of models without paying for the server costs. I fine-tuned a model with a specific RAG template based on llama2 on gradient.ai, now i want to use it from Langchain. ### Your contribution I would submit a PR.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10745/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10745/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10744
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10744/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10744/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10744/events
https://github.com/langchain-ai/langchain/issues/10744
1,901,513,550
I_kwDOIPDwls5xVstO
10,744
Cannot use LangChain Tools with GPT4ALL and LLaMA model
{ "login": "N3RDIUM", "id": 74598401, "node_id": "MDQ6VXNlcjc0NTk4NDAx", "avatar_url": "https://avatars.githubusercontent.com/u/74598401?v=4", "gravatar_id": "", "url": "https://api.github.com/users/N3RDIUM", "html_url": "https://github.com/N3RDIUM", "followers_url": "https://api.github.com/users/N3RDIUM/followers", "following_url": "https://api.github.com/users/N3RDIUM/following{/other_user}", "gists_url": "https://api.github.com/users/N3RDIUM/gists{/gist_id}", "starred_url": "https://api.github.com/users/N3RDIUM/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/N3RDIUM/subscriptions", "organizations_url": "https://api.github.com/users/N3RDIUM/orgs", "repos_url": "https://api.github.com/users/N3RDIUM/repos", "events_url": "https://api.github.com/users/N3RDIUM/events{/privacy}", "received_events_url": "https://api.github.com/users/N3RDIUM/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
2
2023-09-18T18:28:42
2023-10-14T15:55:25
null
NONE
null
### System Info LangChain 0.0.292 Python 3.11.5 GPT4ALL with LLAMA q4_0 3b model running on CPU ### Who can help? @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction My code is: ```from langchain.llms import GPT4All from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler from langchain.agents import AgentType, initialize_agent from langchain.tools import Tool from pydantic import BaseModel, Field class JokeInput(BaseModel): confidence: float = Field(default=0.0) import pyjokes import langchain langchain.debug = True import os os.environ["LANGCHAIN_TRACING"] = "true" # If you want to trace the execution of the program, set to "true" # There are many CallbackHandlers supported, such as # from langchain.callbacks.streamlit import StreamlitCallbackHandler callbacks = [StreamingStdOutCallbackHandler()] model = GPT4All(model=".cache/llama-2-7b-chat.ggmlv3.q4_0.bin", n_threads=6) # Generate text. Tokens are streamed through the callback manager. tools = [] tools.append( Tool.from_function( func=pyjokes.get_joke, name="Joke", description="useful for when you need to tell the user a joke", args_schema=JokeInput ) ) # Init the agent agent = initialize_agent( tools, model, agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION, verbose=True ) # Start the agent while True: user_prompt = input("You: ") agent(user_prompt, callbacks=callbacks)``` ``` ### Expected behavior It should use the Joke tool and return a joke, but instead it gives me this error: ``` Found model file at .cache/llama-2-7b-chat.ggmlv3.q4_0.bin llama.cpp: loading model from .cache/llama-2-7b-chat.ggmlv3.q4_0.bin llama_model_load_internal: format = ggjt v3 (latest) llama_model_load_internal: n_vocab = 32000 llama_model_load_internal: n_ctx = 2048 llama_model_load_internal: n_embd = 4096 llama_model_load_internal: n_mult = 256 llama_model_load_internal: n_head = 32 llama_model_load_internal: n_head_kv = 32 llama_model_load_internal: n_layer = 32 llama_model_load_internal: n_rot = 128 llama_model_load_internal: n_gqa = 1 llama_model_load_internal: rnorm_eps = 5.0e-06 llama_model_load_internal: n_ff = 11008 llama_model_load_internal: freq_base = 10000.0 llama_model_load_internal: freq_scale = 1 llama_model_load_internal: ftype = 2 (mostly Q4_0) llama_model_load_internal: model size = 7B llama_model_load_internal: ggml ctx size = 3615.73 MB llama_model_load_internal: mem required = 4013.73 MB (+ 1024.00 MB per state) llama_new_context_with_model: kv self size = 1024.00 MB You: Tell me a joke Failed to load default session, using empty session: HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /sessions?name=default (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff8fc87d290>: Failed to establish a new connection: [Errno 111] Connection refused')) [chain/start] [1:chain:AgentExecutor] Entering Chain run with input: { "input": "Tell me a joke" } [chain/start] [1:chain:AgentExecutor > 2:chain:LLMChain] Entering Chain run with input: { "input": "Tell me a joke", "agent_scratchpad": "", "stop": [ "Observation:" ] } [llm/start] [1:chain:AgentExecutor > 2:chain:LLMChain > 3:llm:GPT4All] Entering LLM run with input: { "prompts": [ "System: Answer the following questions as best you can. You have access to the following tools:\n\nJoke: useful for when you need to tell the user a joke\n\nThe way you use the tools is by specifying a json blob.\nSpecifically, this json should have a `action` key (with the name of the tool to use) and a `action_input` key (with the input to the tool going here).\n\nThe only values that should be in the \"action\" field are: Joke\n\nThe $JSON_BLOB should only contain a SINGLE action, do NOT return a list of multiple actions. Here is an example of a valid $JSON_BLOB:\n\n```\n{\n \"action\": $TOOL_NAME,\n \"action_input\": $INPUT\n}\n```\n\nALWAYS use the following format:\n\nQuestion: the input question you must answer\nThought: you should always think about what to do\nAction:\n```\n$JSON_BLOB\n```\nObservation: the result of the action\n... (this Thought/Action/Observation can repeat N times)\nThought: I now know the final answer\nFinal Answer: the final answer to the original input question\n\nBegin! Reminder to always use the exact characters `Final Answer` when responding.\nHuman: Tell me a joke" ] } $JSON_BLOB[llm/end] [1:chain:AgentExecutor > 2:chain:LLMChain > 3:llm:GPT4All] [18.05s] Exiting LLM run with output: { "generations": [ [ { "text": "$JSON_BLOB", "generation_info": null } ] ], "llm_output": null, "run": null } [chain/end] [1:chain:AgentExecutor > 2:chain:LLMChain] [18.05s] Exiting Chain run with output: { "text": "$JSON_BLOB" } [chain/error] [1:chain:AgentExecutor] [18.05s] Chain run errored with error: "OutputParserException('Could not parse LLM output: $JSON_BLOB')" Failed to persist run: HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /chain-runs (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff8fc24f9d0>: Failed to establish a new connection: [Errno 111] Connection refused')) Traceback (most recent call last): File "/mnt/0A956B927E2FFFE8/Code/jarvis/.venv/lib/python3.11/site-packages/langchain/agents/chat/output_parser.py", line 27, in parse raise ValueError("action not found") ValueError: action not found During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/mnt/0A956B927E2FFFE8/Code/jarvis/langchain_try.py", line 41, in <module> agent(user_prompt, callbacks=callbacks) File "/mnt/0A956B927E2FFFE8/Code/jarvis/.venv/lib/python3.11/site-packages/langchain/chains/base.py", line 292, in __call__ raise e File "/mnt/0A956B927E2FFFE8/Code/jarvis/.venv/lib/python3.11/site-packages/langchain/chains/base.py", line 286, in __call__ self._call(inputs, run_manager=run_manager) File "/mnt/0A956B927E2FFFE8/Code/jarvis/.venv/lib/python3.11/site-packages/langchain/agents/agent.py", line 1122, in _call next_step_output = self._take_next_step( ^^^^^^^^^^^^^^^^^^^^^ File "/mnt/0A956B927E2FFFE8/Code/jarvis/.venv/lib/python3.11/site-packages/langchain/agents/agent.py", line 930, in _take_next_step raise e File "/mnt/0A956B927E2FFFE8/Code/jarvis/.venv/lib/python3.11/site-packages/langchain/agents/agent.py", line 919, in _take_next_step output = self.agent.plan( ^^^^^^^^^^^^^^^^ File "/mnt/0A956B927E2FFFE8/Code/jarvis/.venv/lib/python3.11/site-packages/langchain/agents/agent.py", line 532, in plan return self.output_parser.parse(full_output) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/mnt/0A956B927E2FFFE8/Code/jarvis/.venv/lib/python3.11/site-packages/langchain/agents/chat/output_parser.py", line 42, in parse raise OutputParserException(f"Could not parse LLM output: {text}") langchain.schema.output_parser.OutputParserException: Could not parse LLM output: $JSON_BLOB ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10744/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/10744/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10743
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10743/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10743/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10743/events
https://github.com/langchain-ai/langchain/pull/10743
1,901,459,037
PR_kwDOIPDwls5amO9F
10,743
Updated return parameter of YouTubeSearchTool
{ "login": "ansilmbabl", "id": 86063895, "node_id": "MDQ6VXNlcjg2MDYzODk1", "avatar_url": "https://avatars.githubusercontent.com/u/86063895?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ansilmbabl", "html_url": "https://github.com/ansilmbabl", "followers_url": "https://api.github.com/users/ansilmbabl/followers", "following_url": "https://api.github.com/users/ansilmbabl/following{/other_user}", "gists_url": "https://api.github.com/users/ansilmbabl/gists{/gist_id}", "starred_url": "https://api.github.com/users/ansilmbabl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ansilmbabl/subscriptions", "organizations_url": "https://api.github.com/users/ansilmbabl/orgs", "repos_url": "https://api.github.com/users/ansilmbabl/repos", "events_url": "https://api.github.com/users/ansilmbabl/events{/privacy}", "received_events_url": "https://api.github.com/users/ansilmbabl/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-09-18T17:52:24
2023-09-20T04:01:03
2023-09-20T00:04:07
CONTRIBUTOR
null
**Description:** changed return parameter of YouTubeSearchTool 1. changed the returning links of youtube videos by adding prefix "https://www.youtube.com", now this will return the exact links to the videos 2. updated the returning type from 'string' to 'list', which will be more suited for further processings **Issue:** Fixes #10742 **Dependencies:** None <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** changed return parameter of YouTubeSearchTool - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** None - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10743/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10743/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10743", "html_url": "https://github.com/langchain-ai/langchain/pull/10743", "diff_url": "https://github.com/langchain-ai/langchain/pull/10743.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10743.patch", "merged_at": "2023-09-20T00:04:07" }
https://api.github.com/repos/langchain-ai/langchain/issues/10742
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10742/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10742/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10742/events
https://github.com/langchain-ai/langchain/issues/10742
1,901,452,804
I_kwDOIPDwls5xVd4E
10,742
Update return parameter of YouTubeSearchTool
{ "login": "ansilmbabl", "id": 86063895, "node_id": "MDQ6VXNlcjg2MDYzODk1", "avatar_url": "https://avatars.githubusercontent.com/u/86063895?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ansilmbabl", "html_url": "https://github.com/ansilmbabl", "followers_url": "https://api.github.com/users/ansilmbabl/followers", "following_url": "https://api.github.com/users/ansilmbabl/following{/other_user}", "gists_url": "https://api.github.com/users/ansilmbabl/gists{/gist_id}", "starred_url": "https://api.github.com/users/ansilmbabl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ansilmbabl/subscriptions", "organizations_url": "https://api.github.com/users/ansilmbabl/orgs", "repos_url": "https://api.github.com/users/ansilmbabl/repos", "events_url": "https://api.github.com/users/ansilmbabl/events{/privacy}", "received_events_url": "https://api.github.com/users/ansilmbabl/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-09-18T17:47:53
2023-09-20T00:04:08
2023-09-20T00:04:08
CONTRIBUTOR
null
### Feature request Return the Youtube video links in full format like `https://www.youtube.com/watch?v=VIDEO_ID` Currently the links are like `/watch?v=VIDEO_ID` Return the links as List like `['link1, 'link2']` Currently it is returning the whole list as string ` "['link1, 'link2']" ` ### Motivation If the links returned are exact same as **direct links to youtube in a list** rather than a string, i can avoid the hustle and bustle of processing it agian to convert to the required format ### Your contribution I will change the code a bit and pull it.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10742/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10742/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10740
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10740/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10740/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10740/events
https://github.com/langchain-ai/langchain/pull/10740
1,901,188,404
PR_kwDOIPDwls5alTiZ
10,740
bump 293
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-09-18T15:24:25
2023-09-18T15:41:39
2023-09-18T15:41:38
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10740/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10740/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10740", "html_url": "https://github.com/langchain-ai/langchain/pull/10740", "diff_url": "https://github.com/langchain-ai/langchain/pull/10740.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10740.patch", "merged_at": "2023-09-18T15:41:38" }
https://api.github.com/repos/langchain-ai/langchain/issues/10739
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10739/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10739/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10739/events
https://github.com/langchain-ai/langchain/issues/10739
1,900,951,737
I_kwDOIPDwls5xTji5
10,739
Issue: How to update Pinecone vectors data using langchain
{ "login": "Satenderpal", "id": 133625646, "node_id": "U_kgDOB_b3Lg", "avatar_url": "https://avatars.githubusercontent.com/u/133625646?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Satenderpal", "html_url": "https://github.com/Satenderpal", "followers_url": "https://api.github.com/users/Satenderpal/followers", "following_url": "https://api.github.com/users/Satenderpal/following{/other_user}", "gists_url": "https://api.github.com/users/Satenderpal/gists{/gist_id}", "starred_url": "https://api.github.com/users/Satenderpal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Satenderpal/subscriptions", "organizations_url": "https://api.github.com/users/Satenderpal/orgs", "repos_url": "https://api.github.com/users/Satenderpal/repos", "events_url": "https://api.github.com/users/Satenderpal/events{/privacy}", "received_events_url": "https://api.github.com/users/Satenderpal/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5932474361, "node_id": "LA_kwDOIPDwls8AAAABYZpf-Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone", "name": "integration: pinecone", "color": "BC53BE", "default": false, "description": "Related to Pinecone vector store integration" } ]
open
false
null
[]
null
4
2023-09-18T13:31:20
2023-10-10T09:22:54
null
NONE
null
### Issue you'd like to raise. I am using langchain with Pinecone to push the embedding into the Pincone vector db. using below code. But I see that there is too many IDs created for the single PDF file in Pincone Browswer(My PDF file more than 250 pages). I want to update my PDF for the same Index. How can I do ? `from langchain.document_loaders import UnstructuredPDFLoader, OnlinePDFLoader, PyPDFLoader from langchain.text_splitter import RecursiveCharacterTextSplitter from langchain.vectorstores import Chroma, Pinecone from langchain.embeddings.openai import OpenAIEmbeddings import pinecone import os from langchain.llms import OpenAI from langchain.chains.question_answering import load_qa_chain loader = UnstructuredPDFLoader("example.pdf") data = loader.load() text_splitter = RecursiveCharacterTextSplitter(chunk_size=2000, chunk_overlap=0) texts = text_splitter.split_documents(data) type(texts) OPENAI_API_KEY = "sk-xxxxx" PINECONE_API_KEY = "xxxx" PINECONE_API_ENV = "us-west-gcp-free" embeddings = OpenAIEmbeddings(openai_api_key=OPENAI_API_KEY) pinecone.init( api_key=PINECONE_API_KEY, environment=PINECONE_API_ENV ) index_name = "langchaintest" docsearch = Pinecone.from_texts([t.page_content for t in texts], embeddings, index_name=index_name)` I want to update my vectors Due to multiple IDs I am not able to get the ID to update the New one PDF file ### Suggestion: ID should be one for the single PDF file.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10739/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10739/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10738
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10738/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10738/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10738/events
https://github.com/langchain-ai/langchain/pull/10738
1,900,937,275
PR_kwDOIPDwls5akcl4
10,738
Bug fixes for runnables
{ "login": "nfcampos", "id": 56902, "node_id": "MDQ6VXNlcjU2OTAy", "avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nfcampos", "html_url": "https://github.com/nfcampos", "followers_url": "https://api.github.com/users/nfcampos/followers", "following_url": "https://api.github.com/users/nfcampos/following{/other_user}", "gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}", "starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions", "organizations_url": "https://api.github.com/users/nfcampos/orgs", "repos_url": "https://api.github.com/users/nfcampos/repos", "events_url": "https://api.github.com/users/nfcampos/events{/privacy}", "received_events_url": "https://api.github.com/users/nfcampos/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false } ]
null
1
2023-09-18T13:24:30
2023-09-18T14:36:58
2023-09-18T14:36:57
COLLABORATOR
null
- tools invoked in async methods would not work due to missing await - RunnableSequence.stream() was creating an extra root run by mistake, and it can simplified due to existence of default implementation for .transform() <!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10738/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10738/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10738", "html_url": "https://github.com/langchain-ai/langchain/pull/10738", "diff_url": "https://github.com/langchain-ai/langchain/pull/10738.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10738.patch", "merged_at": "2023-09-18T14:36:57" }
https://api.github.com/repos/langchain-ai/langchain/issues/10737
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10737/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10737/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10737/events
https://github.com/langchain-ai/langchain/issues/10737
1,900,924,280
I_kwDOIPDwls5xTc14
10,737
Issue: <Langchain Retriever Agent Function Not Passing “ChatMessageHistory” When Called in Console - Python>
{ "login": "CankatSarac", "id": 41361484, "node_id": "MDQ6VXNlcjQxMzYxNDg0", "avatar_url": "https://avatars.githubusercontent.com/u/41361484?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CankatSarac", "html_url": "https://github.com/CankatSarac", "followers_url": "https://api.github.com/users/CankatSarac/followers", "following_url": "https://api.github.com/users/CankatSarac/following{/other_user}", "gists_url": "https://api.github.com/users/CankatSarac/gists{/gist_id}", "starred_url": "https://api.github.com/users/CankatSarac/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CankatSarac/subscriptions", "organizations_url": "https://api.github.com/users/CankatSarac/orgs", "repos_url": "https://api.github.com/users/CankatSarac/repos", "events_url": "https://api.github.com/users/CankatSarac/events{/privacy}", "received_events_url": "https://api.github.com/users/CankatSarac/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5932474361, "node_id": "LA_kwDOIPDwls8AAAABYZpf-Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone", "name": "integration: pinecone", "color": "BC53BE", "default": false, "description": "Related to Pinecone vector store integration" } ]
closed
false
null
[]
null
2
2023-09-18T13:17:46
2023-09-21T10:06:11
2023-09-21T10:06:11
NONE
null
### Issue you'd like to raise. Hello everyone, I am facing an issue with a Python function that I have created to handle some chat functionality with the ChatGPT model. The function is part of a bigger project that aims to use Pinecone to search and retrieve similar documents. Here is a simplified version of my code: > def pineconeGPT(system, user, questions, answers, instruction, metadata={}): llm = ChatOpenAI(model='gpt-3.5-turbo-16k', temperature=0, openai_api_key="key") embeddings = OpenAIEmbeddings( openai_api_key="key", model="text-embedding-ada-002") pinecone.init(api_key='key', environment='region') index = Pinecone.from_existing_index('index_name', embeddings) history = ChatMessageHistory() if len(questions) > 0: for i in range(len(questions)): history.add_ai_message(questions[i]) history.add_user_message(answers[i]) retriever = index.as_retriever( search_type="similarity", search_kwargs={'filter': metadata} ) pineconeIndex = create_retriever_tool( retriever, "search_pinecone", "Searches and returns documents regarding the similarity." ) tools = [pineconeIndex] system_message = SystemMessage( content=(system) prompt = OpenAIFunctionsAgent.create_prompt( system_message=system_message ) agent = OpenAIFunctionsAgent(llm=llm, tools=tools, prompt=prompt) agent_executor = AgentExecutor( agent=agent, tools=tools, memory=ConversationBufferMemory(chat_memory=history), verbose=True, return_intermediate_steps=False, return_only_outputs=False) result = agent_executor({"input" : instruction}) The history is included in the result but for example: If the question is: What is your name? Answer: My name is Bob And the instruction says "what is my name" ChatGPT response is saying I have not provided name. This suggest that ChatGPT has not being passed the history by the agent. I would appreciate any insights on what might be causing this issue and how to resolve it. Thank you in advance! ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10737/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10737/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10736
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10736/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10736/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10736/events
https://github.com/langchain-ai/langchain/issues/10736
1,900,884,697
I_kwDOIPDwls5xTTLZ
10,736
Typing error in WebResearchRetriever
{ "login": "pprados", "id": 204694, "node_id": "MDQ6VXNlcjIwNDY5NA==", "avatar_url": "https://avatars.githubusercontent.com/u/204694?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pprados", "html_url": "https://github.com/pprados", "followers_url": "https://api.github.com/users/pprados/followers", "following_url": "https://api.github.com/users/pprados/following{/other_user}", "gists_url": "https://api.github.com/users/pprados/gists{/gist_id}", "starred_url": "https://api.github.com/users/pprados/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pprados/subscriptions", "organizations_url": "https://api.github.com/users/pprados/orgs", "repos_url": "https://api.github.com/users/pprados/repos", "events_url": "https://api.github.com/users/pprados/events{/privacy}", "received_events_url": "https://api.github.com/users/pprados/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-09-18T12:58:58
2023-09-19T07:29:37
2023-09-19T07:29:37
CONTRIBUTOR
null
### System Info langchain 0.0.292 The type of text_splitter must be TextSplitter and not RecursiveCharacterTextSplitter ``` class WebResearchRetriever(BaseRetriever): ... text_splitter: **TextSplitter** = Field( RecursiveCharacterTextSplitter(chunk_size=1500, chunk_overlap=50), description="Text splitter for splitting web pages into chunks", ) ``` ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Use WebResearchRetriever with a simple TextRetriver. It's run. Now `make lint` => Error ### Expected behavior No error with `make lint` Pull request [here](https://github.com/langchain-ai/langchain/pull/10734)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10736/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10736/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10735
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10735/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10735/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10735/events
https://github.com/langchain-ai/langchain/issues/10735
1,900,847,417
I_kwDOIPDwls5xTKE5
10,735
bug: map_reduce (RetrievalQAWithSourcesChain.from_chain_type) with embeddings - reproducible
{ "login": "ventz", "id": 901168, "node_id": "MDQ6VXNlcjkwMTE2OA==", "avatar_url": "https://avatars.githubusercontent.com/u/901168?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ventz", "html_url": "https://github.com/ventz", "followers_url": "https://api.github.com/users/ventz/followers", "following_url": "https://api.github.com/users/ventz/following{/other_user}", "gists_url": "https://api.github.com/users/ventz/gists{/gist_id}", "starred_url": "https://api.github.com/users/ventz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ventz/subscriptions", "organizations_url": "https://api.github.com/users/ventz/orgs", "repos_url": "https://api.github.com/users/ventz/repos", "events_url": "https://api.github.com/users/ventz/events{/privacy}", "received_events_url": "https://api.github.com/users/ventz/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 5924999838, "node_id": "LA_kwDOIPDwls8AAAABYShSng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma", "name": "integration: chroma", "color": "B78AF8", "default": false, "description": "Related to ChromaDB" } ]
open
false
null
[]
null
6
2023-09-18T12:38:22
2023-12-18T23:56:32
null
NONE
null
### System Info ``` langchain==0.0.291 chromadb==0.4.10 Python 3.10.0 22.6.0 Darwin Kernel ``` ### Who can help? @agola11 @hwchase17 bug map_reduce - reproducible ### Information - [X] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ## Description The bug arrises when using `map_reduce` with `RetrievalQAWithSourcesChain.from_chain_type` and `Chroma,` and adding more than 1 document. Specifically, we have `paper.pdf` and `paper2.pdf`. `paper.pdf` talks about `'x=3'` `paper2.pdf` talks about `'y=5'` *This is key*: Embedding and searching for each one individually with just *one* works perfectly. If you embed and add the two (or anything more than 1) back to back, and you search with `map_reduce` get this error: (NOTE: *this is also key*, for the same embedding, if you switch to using `RetrievalQAWithSourcesChain.from_chain_type` with `stuff`, it also *works perfectly*) ## Example of Error: ``` --------------> PDF1 [Document(page_content='This is a sample paper!This paper talks about x.In this case, we are going to say that "x = 3"', metadata={'source': '/Users/user/Desktop/paper.pdf', 'page': 0, 'start_index': 0})] Number of requested results 4 is greater than number of elements in index 1, updating n_results = 1 ======================== {'question': 'what is x?', 'answer': 'x = 3.\n', 'sources': '/Users/user/Desktop/paper.pdf', 'source_documents': [Document(page_content='This is a sample paper!This paper talks about x.In this case, we are going to say that "x = 3"', metadata={'page': 0, 'source': '/Users/user/Desktop/paper.pdf', 'start_index': 0})]} ======================== --------------> PDF2 [Document(page_content='This is another sample paper! This paper talks about y. In this case, we are going to say that "y = 5"', metadata={'source': '/Users/user/Desktop/paper2.pdf', 'page': 0, 'start_index': 0})] Number of requested results 4 is greater than number of elements in index 2, updating n_results = 2 ======================== {'question': 'what is y?', 'answer': 'There is no relevant text provided to answer the question "what is y?"\n', 'sources': '/Users/user/Desktop/paper.pdf', 'source_documents': [Document(page_content='This is another sample paper! This paper talks about y. In this case, we are going to say that "y = 5"', metadata={'page': 0, 'source': '/Users/user/Desktop/paper2.pdf', 'start_index': 0}), Document(page_content='This is a sample paper!This paper talks about x.In this case, we are going to say that "x = 3"', metadata={'page': 0, 'source': '/Users/user/Desktop/paper.pdf', 'start_index': 0})]} ======================== ``` Again, -- each one by itself works. (both `paper.pdf` and `paper2.pdf` produces the correct answer individually). Also, moving to the `stuff` chain, produces the correct result for both or more documents. ``` --------------> PDF1 [Document(page_content='This is a sample paper!\r\nThis paper talks about x.\r\nIn this case, we are going to say that "x = 3"', metadata={'source': '/Users/user/Desktop/paper.pdf', 'page': 0, 'start_index': 0})] Number of requested results 4 is greater than number of elements in index 1, updating n_results = 1 ======================== {'question': 'what is x?', 'answer': 'x = 3\n', 'sources': '/Users/user/Desktop/paper.pdf', 'source_documents': [Document(page_content='This is a sample paper!\r\nThis paper talks about x.\r\nIn this case, we are going to say that "x = 3"', metadata={'page': 0, 'source': '/Users/user/Desktop/paper.pdf', 'start_index': 0})]} ======================== --------------> PDF2 [Document(page_content='This is another sample paper!\r\nThis paper talks about y.\r\nIn this case, we are going to say that "y = 5"', metadata={'source': '/Users/user/Desktop/paper2.pdf', 'page': 0, 'start_index': 0})] Number of requested results 4 is greater than number of elements in index 2, updating n_results = 2 ======================== {'question': 'what is y?', 'answer': 'y = 5\n', 'sources': '/Users/user/Desktop/paper2.pdf', 'source_documents': [Document(page_content='This is another sample paper!\r\nThis paper talks about y.\r\nIn this case, we are going to say that "y = 5"', metadata={'page': 0, 'source': '/Users/user/Desktop/paper2.pdf', 'start_index': 0}), Document(page_content='This is a sample paper!\r\nThis paper talks about x.\r\nIn this case, we are going to say that "x = 3"', metadata={'page': 0, 'source': '/Users/user/Desktop/paper.pdf', 'start_index': 0})]} ======================== ``` ## Reproduce: Create a llm (OpenAI or AzureChatOpenAI): 1.) ``` llm = AzureChatOpenAI( temperature=0, openai_api_base=openai_api_base, openai_api_version=openai_api_version, openai_api_key=openai_api_key, openai_api_type=openai_api_type, deployment_name=openai_model ) ``` 2.) Create embeddings: ``` embeddings = OpenAIEmbeddings(deployment=openai_embedding_model, chunk_size=1) text_splitter = RecursiveCharacterTextSplitter(chunk_size=200, chunk_overlap=20, length_function = len, add_start_index = True) ``` 3.) Setup Chroma and Retriever ``` db = Chroma(embedding_function=embeddings) # Again a note: if you replace `map_reduce` with `stuff` -- works perfectly! qa = RetrievalQAWithSourcesChain.from_chain_type(llm=llm, chain_type="map_reduce", retriever=db.as_retriever(search_kwargs={"k": 4}), return_source_documents=True) ``` 4.) Embed the files `db.add_documents()` and search! ``` NOTE: I have tried with multiple PDF loaders and the same problem exists even with plain text -- so this is not the issue print("--------------> PDF1") loader = PyPDFium2Loader('/Users/user/Desktop/paper.pdf') docs = loader.load_and_split(text_splitter) print(docs) db.add_documents(docs) text = 'what is x?' result = qa({"question": text}) print("========================") print(result) print("========================") print("--------------> PDF2") loader = PyPDFium2Loader('/Users/user/Desktop/paper2.pdf') docs = loader.load_and_split(text_splitter) print(docs) db.add_documents(docs) text = 'what is y?' result = qa({"question": text}) print("========================") print(result) print("========================") ``` ## Key Summary: * As you will see, the correct documents are retrieved -- it's just the injections/`map_reduce` that's causing a problem * With `map_reduce` - if there is a single `Document()` it works fine -- for both `paper.pdf` and `paper2.pdf` * With `map_reduce`, more than 1 document causes the issue. * If you use the same embeddings and the same code with `stuff` chain it works perfectly with multiple documents. ## Files Attached for testing: [paper.pdf](https://github.com/langchain-ai/langchain/files/12647756/paper.pdf) [paper2.pdf](https://github.com/langchain-ai/langchain/files/12647750/paper2.pdf) see a self-contained example here: https://github.com/langchain-ai/langchain/issues/10735#issuecomment-1723595341 ### Expected behavior For `RetrievalQAWithSourcesChain.from_chain_type` to be able to inject the correct documents that it finds with `map_reduce` (similar to `stuff` which works): ``` --------------> PDF1 [Document(page_content='This is a sample paper!\r\nThis paper talks about x.\r\nIn this case, we are going to say that "x = 3"', metadata={'source': '/Users/user/Desktop/paper.pdf', 'page': 0, 'start_index': 0})] Number of requested results 4 is greater than number of elements in index 1, updating n_results = 1 ======================== {'question': 'what is x?', 'answer': 'x = 3\n', 'sources': '/Users/user/Desktop/paper.pdf', 'source_documents': [Document(page_content='This is a sample paper!\r\nThis paper talks about x.\r\nIn this case, we are going to say that "x = 3"', metadata={'page': 0, 'source': '/Users/user/Desktop/paper.pdf', 'start_index': 0})]} ======================== --------------> PDF2 [Document(page_content='This is another sample paper!\r\nThis paper talks about y.\r\nIn this case, we are going to say that "y = 5"', metadata={'source': '/Users/user/Desktop/paper2.pdf', 'page': 0, 'start_index': 0})] Number of requested results 4 is greater than number of elements in index 2, updating n_results = 2 ======================== {'question': 'what is y?', 'answer': 'y = 5\n', 'sources': '/Users/user/Desktop/paper2.pdf', 'source_documents': [Document(page_content='This is another sample paper!\r\nThis paper talks about y.\r\nIn this case, we are going to say that "y = 5"', metadata={'page': 0, 'source': '/Users/user/Desktop/paper2.pdf', 'start_index': 0}), Document(page_content='This is a sample paper!\r\nThis paper talks about x.\r\nIn this case, we are going to say that "x = 3"', metadata={'page': 0, 'source': '/Users/user/Desktop/paper.pdf', 'start_index': 0})]} ======================== ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10735/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10735/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10734
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10734/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10734/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10734/events
https://github.com/langchain-ai/langchain/pull/10734
1,900,763,208
PR_kwDOIPDwls5aj2gI
10,734
Fix typing in WebResearchRetriver
{ "login": "pprados", "id": 204694, "node_id": "MDQ6VXNlcjIwNDY5NA==", "avatar_url": "https://avatars.githubusercontent.com/u/204694?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pprados", "html_url": "https://github.com/pprados", "followers_url": "https://api.github.com/users/pprados/followers", "following_url": "https://api.github.com/users/pprados/following{/other_user}", "gists_url": "https://api.github.com/users/pprados/gists{/gist_id}", "starred_url": "https://api.github.com/users/pprados/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pprados/subscriptions", "organizations_url": "https://api.github.com/users/pprados/orgs", "repos_url": "https://api.github.com/users/pprados/repos", "events_url": "https://api.github.com/users/pprados/events{/privacy}", "received_events_url": "https://api.github.com/users/pprados/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
2
2023-09-18T11:48:54
2023-09-18T15:17:11
2023-09-18T15:17:11
CONTRIBUTOR
null
Hello @hwchase17 **Issue**: The class WebResearchRetriever accept only RecursiveCharacterTextSplitter, but never uses a specification of this class. I propose to change the type to TextSplitter. Then, the lint can accept all subtypes.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10734/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10734/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10734", "html_url": "https://github.com/langchain-ai/langchain/pull/10734", "diff_url": "https://github.com/langchain-ai/langchain/pull/10734.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10734.patch", "merged_at": "2023-09-18T15:17:11" }
https://api.github.com/repos/langchain-ai/langchain/issues/10733
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10733/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10733/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10733/events
https://github.com/langchain-ai/langchain/issues/10733
1,900,747,180
I_kwDOIPDwls5xSxms
10,733
get_openapi_chain throws error when running example from docs
{ "login": "rubensmau", "id": 4109821, "node_id": "MDQ6VXNlcjQxMDk4MjE=", "avatar_url": "https://avatars.githubusercontent.com/u/4109821?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rubensmau", "html_url": "https://github.com/rubensmau", "followers_url": "https://api.github.com/users/rubensmau/followers", "following_url": "https://api.github.com/users/rubensmau/following{/other_user}", "gists_url": "https://api.github.com/users/rubensmau/gists{/gist_id}", "starred_url": "https://api.github.com/users/rubensmau/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rubensmau/subscriptions", "organizations_url": "https://api.github.com/users/rubensmau/orgs", "repos_url": "https://api.github.com/users/rubensmau/repos", "events_url": "https://api.github.com/users/rubensmau/events{/privacy}", "received_events_url": "https://api.github.com/users/rubensmau/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
18
2023-09-18T11:39:49
2023-12-26T04:40:34
null
CONTRIBUTOR
null
### System Info pydantic '1.10.0' or '2.3.0' langchain '0.0.292' python '3.11.5' ### Who can help? @hwchase17 @agola11 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from langchain.chains.openai_functions.openapi import get_openapi_chain chain = get_openapi_chain("https://www.klarna.com/us/shopping/public/openai/v0/api-docs/") chain("What are some options for a men's large blue button down shirt") Error message when running with pydantic 1 Unable to parse spec from source https://chat-web3-plugin.alchemy.com/openapi.yaml error Error message when running with pydantic 2 AttributeError: type object 'OpenAPISpec' has no attribute 'from_url' ### Expected behavior normal execution without errors
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10733/reactions", "total_count": 4, "+1": 4, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10733/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10732
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10732/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10732/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10732/events
https://github.com/langchain-ai/langchain/pull/10732
1,900,689,023
PR_kwDOIPDwls5ajmJL
10,732
Update ContextCallbackHandler Docstring & metadata key
{ "login": "BarberAlec", "id": 42246229, "node_id": "MDQ6VXNlcjQyMjQ2MjI5", "avatar_url": "https://avatars.githubusercontent.com/u/42246229?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BarberAlec", "html_url": "https://github.com/BarberAlec", "followers_url": "https://api.github.com/users/BarberAlec/followers", "following_url": "https://api.github.com/users/BarberAlec/following{/other_user}", "gists_url": "https://api.github.com/users/BarberAlec/gists{/gist_id}", "starred_url": "https://api.github.com/users/BarberAlec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BarberAlec/subscriptions", "organizations_url": "https://api.github.com/users/BarberAlec/orgs", "repos_url": "https://api.github.com/users/BarberAlec/repos", "events_url": "https://api.github.com/users/BarberAlec/events{/privacy}", "received_events_url": "https://api.github.com/users/BarberAlec/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
4
2023-09-18T11:02:55
2023-09-19T05:04:13
2023-09-19T05:04:13
CONTRIBUTOR
null
- **Description:** Updating URL in Context Callback Docstrings and update metadata key Context CallbackHandler uses to send model names. - **Issue:** The URL in ContextCallbackHandler is out of date. Model data being sent to Context should be under the "model" key and not "llm_model". This allows Context to do more sophisticated analysis. - **Dependencies:** None Tagging @agamble.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10732/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10732/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10732", "html_url": "https://github.com/langchain-ai/langchain/pull/10732", "diff_url": "https://github.com/langchain-ai/langchain/pull/10732.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10732.patch", "merged_at": "2023-09-19T05:04:13" }
https://api.github.com/repos/langchain-ai/langchain/issues/10731
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10731/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10731/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10731/events
https://github.com/langchain-ai/langchain/issues/10731
1,900,607,849
I_kwDOIPDwls5xSPlp
10,731
data_manager not working with cache init for chatOpenAI
{ "login": "Coditas-Vikas-Tiwari", "id": 69078837, "node_id": "MDQ6VXNlcjY5MDc4ODM3", "avatar_url": "https://avatars.githubusercontent.com/u/69078837?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Coditas-Vikas-Tiwari", "html_url": "https://github.com/Coditas-Vikas-Tiwari", "followers_url": "https://api.github.com/users/Coditas-Vikas-Tiwari/followers", "following_url": "https://api.github.com/users/Coditas-Vikas-Tiwari/following{/other_user}", "gists_url": "https://api.github.com/users/Coditas-Vikas-Tiwari/gists{/gist_id}", "starred_url": "https://api.github.com/users/Coditas-Vikas-Tiwari/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Coditas-Vikas-Tiwari/subscriptions", "organizations_url": "https://api.github.com/users/Coditas-Vikas-Tiwari/orgs", "repos_url": "https://api.github.com/users/Coditas-Vikas-Tiwari/repos", "events_url": "https://api.github.com/users/Coditas-Vikas-Tiwari/events{/privacy}", "received_events_url": "https://api.github.com/users/Coditas-Vikas-Tiwari/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-09-18T10:15:38
2023-12-25T16:05:54
2023-12-25T16:05:54
NONE
null
### System Info langchain-0.0.292, python-3, vsCode ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from langchain.schema import HumanMessage, SystemMessage from langchain.chat_models import ChatOpenAI import os from dotenv import load_dotenv from gptcache import cache from gptcache.manager import get_data_manager,manager_factory, CacheBase, VectorBase from gptcache.similarity_evaluation.distance import SearchDistanceEvaluation from gptcache.embedding import Onnx from gptcache.processor.pre import get_messages_last_content from langchain.chat_models import ChatOpenAI from gptcache.adapter.langchain_models import LangChainChat import time print("Cache loading.....") onnx = Onnx() cache_base = CacheBase('mysql', sql_url='your_mysql_url') vector_base = VectorBase('faiss', dimension=128) data_manager = get_data_manager(cache_base, vector_base) cache.init(pre_embedding_func=get_messages_last_content, data_manager=data_manager, ) cache.set_openai_key() load_dotenv() def generate_res(user_input): chat = LangChainChat(chat=ChatOpenAI(model_name=os.environ.get('GPT_MODEL'), temperature=0.7, openai_api_key=os.environ.get('OPEN_AI_API_KEY'))) prompt="" start_time = time.time() message = [ SystemMessage(content=prompt), HumanMessage(content=user_input), ] response = chat(message) generate_res("hey there!") print("Time consuming: {:.2f}s".format(time.time() - start_time)) ### Expected behavior I'm trying to store the cache into mysql db using chatopenai and gptcache. but getting this error: super().__init__(**kwargs) File "pydantic\main.py", line 339, in pydantic.main.BaseModel.__init__ File "pydantic\main.py", line 1066, in pydantic.main.validate_model File "pydantic\fields.py", line 439, in pydantic.fields.ModelField.get_default File "pydantic\utils.py", line 693, in pydantic.utils.smart_deepcopy File "C:\Program Files\Python311\Lib\copy.py", line 172, in deepcopy y = _reconstruct(x, memo, *rv) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 271, in _reconstruct state = deepcopy(state, memo) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 146, in deepcopy y = copier(x, memo) ^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 231, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 172, in deepcopy y = _reconstruct(x, memo, *rv) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 271, in _reconstruct state = deepcopy(state, memo) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 146, in deepcopy y = copier(x, memo) ^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 231, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 172, in deepcopy y = _reconstruct(x, memo, *rv) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 271, in _reconstruct state = deepcopy(state, memo) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 146, in deepcopy y = copier(x, memo) ^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 231, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 172, in deepcopy y = _reconstruct(x, memo, *rv) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 271, in _reconstruct state = deepcopy(state, memo) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 146, in deepcopy y = copier(x, memo) ^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 231, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 172, in deepcopy y = _reconstruct(x, memo, *rv) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 271, in _reconstruct state = deepcopy(state, memo) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 146, in deepcopy y = copier(x, memo) ^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 231, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 172, in deepcopy y = _reconstruct(x, memo, *rv) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 271, in _reconstruct state = deepcopy(state, memo) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 146, in deepcopy y = copier(x, memo) ^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 231, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\copy.py", line 161, in deepcopy rv = reductor(4) ^^^^^^^^^^^ TypeError: cannot pickle 'module' object
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10731/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10731/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10730
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10730/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10730/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10730/events
https://github.com/langchain-ai/langchain/issues/10730
1,900,506,801
I_kwDOIPDwls5xR26x
10,730
Tool request how to know response status code
{ "login": "easontsai", "id": 19547472, "node_id": "MDQ6VXNlcjE5NTQ3NDcy", "avatar_url": "https://avatars.githubusercontent.com/u/19547472?v=4", "gravatar_id": "", "url": "https://api.github.com/users/easontsai", "html_url": "https://github.com/easontsai", "followers_url": "https://api.github.com/users/easontsai/followers", "following_url": "https://api.github.com/users/easontsai/following{/other_user}", "gists_url": "https://api.github.com/users/easontsai/gists{/gist_id}", "starred_url": "https://api.github.com/users/easontsai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/easontsai/subscriptions", "organizations_url": "https://api.github.com/users/easontsai/orgs", "repos_url": "https://api.github.com/users/easontsai/repos", "events_url": "https://api.github.com/users/easontsai/events{/privacy}", "received_events_url": "https://api.github.com/users/easontsai/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
2
2023-09-18T09:15:46
2023-12-25T16:06:00
2023-12-25T16:05:59
NONE
null
In intermediateSteps, how to get the response status code if I using the tool request_get or post..
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10730/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10730/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10729
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10729/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10729/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10729/events
https://github.com/langchain-ai/langchain/issues/10729
1,900,370,220
I_kwDOIPDwls5xRVks
10,729
async mongodb chat message history
{ "login": "ma2za", "id": 59370937, "node_id": "MDQ6VXNlcjU5MzcwOTM3", "avatar_url": "https://avatars.githubusercontent.com/u/59370937?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ma2za", "html_url": "https://github.com/ma2za", "followers_url": "https://api.github.com/users/ma2za/followers", "following_url": "https://api.github.com/users/ma2za/following{/other_user}", "gists_url": "https://api.github.com/users/ma2za/gists{/gist_id}", "starred_url": "https://api.github.com/users/ma2za/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ma2za/subscriptions", "organizations_url": "https://api.github.com/users/ma2za/orgs", "repos_url": "https://api.github.com/users/ma2za/repos", "events_url": "https://api.github.com/users/ma2za/events{/privacy}", "received_events_url": "https://api.github.com/users/ma2za/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
3
2023-09-18T07:53:53
2024-01-04T14:01:15
2023-12-25T16:06:04
NONE
null
### Feature request Switch to motor in the [MongoDBChatMessageHistory](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/memory/chat_message_histories/mongodb.py) class for asyncio support. ### Motivation There is already a PR #10645 for async Document Loader for MongoDB, this way we can keep consistency in the mongodb clients. ### Your contribution I already implemented it, if you want I can submit a PR.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10729/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10729/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10728
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10728/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10728/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10728/events
https://github.com/langchain-ai/langchain/pull/10728
1,900,313,720
PR_kwDOIPDwls5aiURi
10,728
Sagemaker endpoint capability to inject boto3 client for cross account scenarios
{ "login": "vikramshitole", "id": 1484349, "node_id": "MDQ6VXNlcjE0ODQzNDk=", "avatar_url": "https://avatars.githubusercontent.com/u/1484349?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vikramshitole", "html_url": "https://github.com/vikramshitole", "followers_url": "https://api.github.com/users/vikramshitole/followers", "following_url": "https://api.github.com/users/vikramshitole/following{/other_user}", "gists_url": "https://api.github.com/users/vikramshitole/gists{/gist_id}", "starred_url": "https://api.github.com/users/vikramshitole/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vikramshitole/subscriptions", "organizations_url": "https://api.github.com/users/vikramshitole/orgs", "repos_url": "https://api.github.com/users/vikramshitole/repos", "events_url": "https://api.github.com/users/vikramshitole/events{/privacy}", "received_events_url": "https://api.github.com/users/vikramshitole/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 5959659008, "node_id": "LA_kwDOIPDwls8AAAABYzkuAA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws", "name": "integration: aws", "color": "C5DEF5", "default": false, "description": "Related to Amazon Web Services (AWS) integrations" } ]
closed
false
null
[]
null
4
2023-09-18T07:15:05
2023-10-21T14:56:20
2023-09-19T15:06:13
CONTRIBUTOR
null
- **Description: Allow to inject boto3 client for Cross account access type of scenarios in using Sagemaker Endpoint ** - **Issue:#10634 #10184** - **Dependencies: None** - **Tag maintainer:** - **Twitter handle:lethargicoder**
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10728/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10728/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10728", "html_url": "https://github.com/langchain-ai/langchain/pull/10728", "diff_url": "https://github.com/langchain-ai/langchain/pull/10728.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10728.patch", "merged_at": "2023-09-19T15:06:13" }
https://api.github.com/repos/langchain-ai/langchain/issues/10727
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10727/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10727/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10727/events
https://github.com/langchain-ai/langchain/pull/10727
1,900,227,383
PR_kwDOIPDwls5aiBjq
10,727
mention how-to in LCEL index
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-09-18T06:01:30
2023-09-18T06:01:48
2023-09-18T06:01:47
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10727/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10727/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10727", "html_url": "https://github.com/langchain-ai/langchain/pull/10727", "diff_url": "https://github.com/langchain-ai/langchain/pull/10727.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10727.patch", "merged_at": "2023-09-18T06:01:47" }
https://api.github.com/repos/langchain-ai/langchain/issues/10726
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10726/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10726/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10726/events
https://github.com/langchain-ai/langchain/pull/10726
1,900,224,494
PR_kwDOIPDwls5aiA8f
10,726
Add async sql record manager and async indexing API
{ "login": "jvelezmagic", "id": 46458320, "node_id": "MDQ6VXNlcjQ2NDU4MzIw", "avatar_url": "https://avatars.githubusercontent.com/u/46458320?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jvelezmagic", "html_url": "https://github.com/jvelezmagic", "followers_url": "https://api.github.com/users/jvelezmagic/followers", "following_url": "https://api.github.com/users/jvelezmagic/following{/other_user}", "gists_url": "https://api.github.com/users/jvelezmagic/gists{/gist_id}", "starred_url": "https://api.github.com/users/jvelezmagic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jvelezmagic/subscriptions", "organizations_url": "https://api.github.com/users/jvelezmagic/orgs", "repos_url": "https://api.github.com/users/jvelezmagic/repos", "events_url": "https://api.github.com/users/jvelezmagic/events{/privacy}", "received_events_url": "https://api.github.com/users/jvelezmagic/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false } ]
null
12
2023-09-18T05:58:22
2023-10-06T13:38:45
2023-10-06T13:38:45
CONTRIBUTOR
null
- **Description:** Add support for a SQLRecordManager in async environments. It includes the creation of `RecorManagerAsync` abstract class. - **Issue:** None - **Dependencies:** Optional `aiosqlite`. - **Tag maintainer:** @nfcampos - **Twitter handle:** @jvelezmagic
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10726/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/10726/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10726", "html_url": "https://github.com/langchain-ai/langchain/pull/10726", "diff_url": "https://github.com/langchain-ai/langchain/pull/10726.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10726.patch", "merged_at": "2023-10-06T13:38:45" }
https://api.github.com/repos/langchain-ai/langchain/issues/10724
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10724/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10724/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10724/events
https://github.com/langchain-ai/langchain/pull/10724
1,900,131,048
PR_kwDOIPDwls5ahsSi
10,724
Make anthropic_api_key a secret str
{ "login": "joshuasundance-swca", "id": 84336755, "node_id": "MDQ6VXNlcjg0MzM2NzU1", "avatar_url": "https://avatars.githubusercontent.com/u/84336755?v=4", "gravatar_id": "", "url": "https://api.github.com/users/joshuasundance-swca", "html_url": "https://github.com/joshuasundance-swca", "followers_url": "https://api.github.com/users/joshuasundance-swca/followers", "following_url": "https://api.github.com/users/joshuasundance-swca/following{/other_user}", "gists_url": "https://api.github.com/users/joshuasundance-swca/gists{/gist_id}", "starred_url": "https://api.github.com/users/joshuasundance-swca/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/joshuasundance-swca/subscriptions", "organizations_url": "https://api.github.com/users/joshuasundance-swca/orgs", "repos_url": "https://api.github.com/users/joshuasundance-swca/repos", "events_url": "https://api.github.com/users/joshuasundance-swca/events{/privacy}", "received_events_url": "https://api.github.com/users/joshuasundance-swca/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false } ]
null
8
2023-09-18T04:13:04
2023-09-27T04:24:12
2023-09-23T02:06:20
CONTRIBUTOR
null
This PR makes `ChatAnthropic.anthropic_api_key` a `pydantic.SecretStr` to avoid inadvertently exposing API keys when the `ChatAnthropic` object is represented as a str.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10724/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10724/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10724", "html_url": "https://github.com/langchain-ai/langchain/pull/10724", "diff_url": "https://github.com/langchain-ai/langchain/pull/10724.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10724.patch", "merged_at": "2023-09-23T02:06:20" }
https://api.github.com/repos/langchain-ai/langchain/issues/10723
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10723/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10723/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10723/events
https://github.com/langchain-ai/langchain/issues/10723
1,900,123,795
I_kwDOIPDwls5xQZaT
10,723
Issue: unexpected keyword argument 'stop'
{ "login": "anmol9868", "id": 134666279, "node_id": "U_kgDOCAbYJw", "avatar_url": "https://avatars.githubusercontent.com/u/134666279?v=4", "gravatar_id": "", "url": "https://api.github.com/users/anmol9868", "html_url": "https://github.com/anmol9868", "followers_url": "https://api.github.com/users/anmol9868/followers", "following_url": "https://api.github.com/users/anmol9868/following{/other_user}", "gists_url": "https://api.github.com/users/anmol9868/gists{/gist_id}", "starred_url": "https://api.github.com/users/anmol9868/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/anmol9868/subscriptions", "organizations_url": "https://api.github.com/users/anmol9868/orgs", "repos_url": "https://api.github.com/users/anmol9868/repos", "events_url": "https://api.github.com/users/anmol9868/events{/privacy}", "received_events_url": "https://api.github.com/users/anmol9868/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
8
2023-09-18T04:03:36
2024-01-05T10:48:25
2023-09-18T06:59:47
NONE
null
### Issue you'd like to raise. ERROR: Exception in ASGI application Traceback (most recent call last): File "D:\Users\DHANKA01\vox-usecase-wrdm-nco-dev\src\backend\api.py", line 49, in nco_generate result=final_run(Paths.prompt_lib,Paths.sdpk_path) File "D:\Users\DHANKA01\vox-usecase-wrdm-nco-dev\src\backend\llm_run.py", line 126, in final_run answer_resp,content_resp,question_covered=file_run(prompt_idx,index_temp,LLM_MODEL,EMBEDDING_MODEL,max_tokens,question_covered) File "D:\Users\DHANKA01\vox-usecase-wrdm-nco-dev\src\backend\llm_run.py", line 71, in file_run Ans_line, res_text=get_queryAnswer(llm_model,embedding_model,index_name,max_tokens,query,flag) File "D:\Users\DHANKA01\vox-usecase-wrdm-nco-dev\src\backend\llm_run.py", line 43, in get_queryAnswer output1=chain.run(question) File "D:\Users\DHANKA01\anaconda3\envs\pls_final\lib\site-packages\langchain\chains\base.py", line 290, in run return self(args[0], callbacks=callbacks, tags=tags)[_output_key] File "D:\Users\DHANKA01\anaconda3\envs\pls_final\lib\site-packages\langchain\chains\base.py", line 166, in __call__ raise e File "D:\Users\DHANKA01\anaconda3\envs\pls_final\lib\site-packages\langchain\chains\base.py", line 160, in __call__ self._call(inputs, run_manager=run_manager) File "D:\Users\DHANKA01\anaconda3\envs\pls_final\lib\site-packages\langchain\chains\llm.py", line 92, in _call response = self.generate([inputs], run_manager=run_manager) File "D:\Users\DHANKA01\anaconda3\envs\pls_final\lib\site-packages\langchain\chains\llm.py", line 102, in generate return self.llm.generate_prompt( File "D:\Users\DHANKA01\anaconda3\envs\pls_final\lib\site-packages\langchain\llms\base.py", line 141, in generate_prompt return self.generate(prompt_strings, stop=stop, callbacks=callbacks, **kwargs) File "D:\Users\DHANKA01\anaconda3\envs\pls_final\lib\site-packages\langchain\llms\base.py", line 227, in generate output = self._generate_helper( File "D:\Users\DHANKA01\anaconda3\envs\pls_final\lib\site-packages\langchain\llms\base.py", line 178, in _generate_helper raise e File "D:\Users\DHANKA01\anaconda3\envs\pls_final\lib\site-packages\langchain\llms\base.py", line 165, in _generate_helper self._generate( File "D:\Users\DHANKA01\anaconda3\envs\pls_final\lib\site-packages\langchain\llms\base.py", line 527, in _generate else self._call(prompt, stop=stop, **kwargs) TypeError: _call() got an unexpected keyword argument 'stop' ### Suggestion: hi, while running the same code with jupyter notebook, it's running fine but after integration with fastapi getting error. from langchain.chains import LLMChain chain=LLMChain(llm=llm,prompt=prompt) chain.run(query) Fastapi version=0.103.1 langchain version tried= 0.0.292,0.0.267,0.0.215 please suggest a fix for the same.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10723/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10723/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10722
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10722/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10722/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10722/events
https://github.com/langchain-ai/langchain/pull/10722
1,900,117,054
PR_kwDOIPDwls5ahpO8
10,722
Update LangSmith Version
{ "login": "hinthornw", "id": 13333726, "node_id": "MDQ6VXNlcjEzMzMzNzI2", "avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hinthornw", "html_url": "https://github.com/hinthornw", "followers_url": "https://api.github.com/users/hinthornw/followers", "following_url": "https://api.github.com/users/hinthornw/following{/other_user}", "gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}", "starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions", "organizations_url": "https://api.github.com/users/hinthornw/orgs", "repos_url": "https://api.github.com/users/hinthornw/repos", "events_url": "https://api.github.com/users/hinthornw/events{/privacy}", "received_events_url": "https://api.github.com/users/hinthornw/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-09-18T03:54:02
2023-09-18T14:12:49
2023-09-18T14:12:48
COLLABORATOR
null
And assign dataset ID upon project creation
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10722/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10722/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10722", "html_url": "https://github.com/langchain-ai/langchain/pull/10722", "diff_url": "https://github.com/langchain-ai/langchain/pull/10722.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10722.patch", "merged_at": "2023-09-18T14:12:48" }
https://api.github.com/repos/langchain-ai/langchain/issues/10721
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10721/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10721/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10721/events
https://github.com/langchain-ai/langchain/issues/10721
1,900,116,688
I_kwDOIPDwls5xQXrQ
10,721
How to custom prompt in agent type CHAT_CONVERSATIONAL_REACT_DESCRIPTION
{ "login": "easontsai", "id": 19547472, "node_id": "MDQ6VXNlcjE5NTQ3NDcy", "avatar_url": "https://avatars.githubusercontent.com/u/19547472?v=4", "gravatar_id": "", "url": "https://api.github.com/users/easontsai", "html_url": "https://github.com/easontsai", "followers_url": "https://api.github.com/users/easontsai/followers", "following_url": "https://api.github.com/users/easontsai/following{/other_user}", "gists_url": "https://api.github.com/users/easontsai/gists{/gist_id}", "starred_url": "https://api.github.com/users/easontsai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/easontsai/subscriptions", "organizations_url": "https://api.github.com/users/easontsai/orgs", "repos_url": "https://api.github.com/users/easontsai/repos", "events_url": "https://api.github.com/users/easontsai/events{/privacy}", "received_events_url": "https://api.github.com/users/easontsai/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
5
2023-09-18T03:53:27
2024-01-08T23:13:35
null
NONE
null
``` agent_chain = initialize_agent( tools, llm, agent=AgentType.CHAT_CONVERSATIONAL_REACT_DESCRIPTION, verbose=True, return_intermediate_steps=True, handle_parsing_errors=True, memory=memory ) ``` how to overwrite the PREFIX, SUFFIX and FORMAT_INSTRUCTIONS when I using the CHAT_CONVERSATIONAL_REACT_DESCRIPTION and creating agent by ```initialize_agent``` function?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10721/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/10721/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10720
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10720/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10720/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10720/events
https://github.com/langchain-ai/langchain/pull/10720
1,900,110,894
PR_kwDOIPDwls5ahn4W
10,720
feat(vectorstore): :sparkles: Create new integration with PGVector async
{ "login": "jvelezmagic", "id": 46458320, "node_id": "MDQ6VXNlcjQ2NDU4MzIw", "avatar_url": "https://avatars.githubusercontent.com/u/46458320?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jvelezmagic", "html_url": "https://github.com/jvelezmagic", "followers_url": "https://api.github.com/users/jvelezmagic/followers", "following_url": "https://api.github.com/users/jvelezmagic/following{/other_user}", "gists_url": "https://api.github.com/users/jvelezmagic/gists{/gist_id}", "starred_url": "https://api.github.com/users/jvelezmagic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jvelezmagic/subscriptions", "organizations_url": "https://api.github.com/users/jvelezmagic/orgs", "repos_url": "https://api.github.com/users/jvelezmagic/repos", "events_url": "https://api.github.com/users/jvelezmagic/events{/privacy}", "received_events_url": "https://api.github.com/users/jvelezmagic/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
open
false
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false } ]
null
1
2023-09-18T03:45:09
2023-11-27T02:23:06
null
CONTRIBUTOR
null
- **Description:** Add PGVector integration with support for async connections. - **Issue:** None - **Dependencies:** Optionally, `asyncpg` and `greenlet`. - **Tag maintainer:** @nfcampos - **Twitter handle:** @jvelezmagic Note: I added `adelete` method to the `VectorStore` base class. It would be useful when integrating with the `SQLRecordManager`. It shouldn't have any impact on preexisting vectorstores.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10720/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10720/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10720", "html_url": "https://github.com/langchain-ai/langchain/pull/10720", "diff_url": "https://github.com/langchain-ai/langchain/pull/10720.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10720.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/10719
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10719/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10719/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10719/events
https://github.com/langchain-ai/langchain/issues/10719
1,900,100,967
I_kwDOIPDwls5xQT1n
10,719
using the OpenAPI toolkit, override the headers for each request
{ "login": "chadongho", "id": 124663865, "node_id": "U_kgDOB244OQ", "avatar_url": "https://avatars.githubusercontent.com/u/124663865?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chadongho", "html_url": "https://github.com/chadongho", "followers_url": "https://api.github.com/users/chadongho/followers", "following_url": "https://api.github.com/users/chadongho/following{/other_user}", "gists_url": "https://api.github.com/users/chadongho/gists{/gist_id}", "starred_url": "https://api.github.com/users/chadongho/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chadongho/subscriptions", "organizations_url": "https://api.github.com/users/chadongho/orgs", "repos_url": "https://api.github.com/users/chadongho/repos", "events_url": "https://api.github.com/users/chadongho/events{/privacy}", "received_events_url": "https://api.github.com/users/chadongho/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5774514459, "node_id": "LA_kwDOIPDwls8AAAABWDAZGw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/stale", "name": "stale", "color": "dadada", "default": false, "description": "Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed" } ]
open
false
null
[]
null
4
2023-09-18T03:30:15
2023-12-25T16:02:10
null
NONE
null
### Issue you'd like to raise. I configured it to use the OpenAPI toolkit by merging various APIs, but I could not solve the problem of having to redefine the header at the request stage. ### Suggestion: I'm not sure if there is a way to solve this in langchain or if I need to apply a separate module such as a request interceptor. Thank you in advance for your reply :)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10719/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10719/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10718
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10718/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10718/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10718/events
https://github.com/langchain-ai/langchain/pull/10718
1,900,038,332
PR_kwDOIPDwls5ahYSp
10,718
runnable bind how to nit
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-09-18T01:57:01
2023-09-18T01:57:12
2023-09-18T01:57:07
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10718/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10718/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10718", "html_url": "https://github.com/langchain-ai/langchain/pull/10718", "diff_url": "https://github.com/langchain-ai/langchain/pull/10718.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10718.patch", "merged_at": "2023-09-18T01:57:07" }
https://api.github.com/repos/langchain-ai/langchain/issues/10717
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10717/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10717/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10717/events
https://github.com/langchain-ai/langchain/pull/10717
1,900,024,753
PR_kwDOIPDwls5ahVTV
10,717
Runnable fallbacks howto
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-09-18T01:35:56
2023-09-18T01:50:09
2023-09-18T01:50:09
COLLABORATOR
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10717/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10717/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10717", "html_url": "https://github.com/langchain-ai/langchain/pull/10717", "diff_url": "https://github.com/langchain-ai/langchain/pull/10717.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10717.patch", "merged_at": "2023-09-18T01:50:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/10716
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10716/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10716/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10716/events
https://github.com/langchain-ai/langchain/pull/10716
1,900,017,536
PR_kwDOIPDwls5ahTuJ
10,716
Runnable binding how to
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-09-18T01:25:22
2023-09-18T01:49:17
2023-09-18T01:49:16
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10716/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10716/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10716", "html_url": "https://github.com/langchain-ai/langchain/pull/10716", "diff_url": "https://github.com/langchain-ai/langchain/pull/10716.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10716.patch", "merged_at": "2023-09-18T01:49:16" }
https://api.github.com/repos/langchain-ai/langchain/issues/10715
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10715/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10715/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10715/events
https://github.com/langchain-ai/langchain/pull/10715
1,899,962,999
PR_kwDOIPDwls5ahIJh
10,715
add runnable map how to
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-09-17T23:33:44
2023-09-17T23:49:46
2023-09-17T23:49:45
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10715/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10715/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10715", "html_url": "https://github.com/langchain-ai/langchain/pull/10715", "diff_url": "https://github.com/langchain-ai/langchain/pull/10715.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10715.patch", "merged_at": "2023-09-17T23:49:45" }
https://api.github.com/repos/langchain-ai/langchain/issues/10714
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10714/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10714/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10714/events
https://github.com/langchain-ai/langchain/issues/10714
1,899,959,947
I_kwDOIPDwls5xPxaL
10,714
Custom Tool Return Direct BUT only if it doesnt raise a Tool Exception
{ "login": "Hsgngr", "id": 32769732, "node_id": "MDQ6VXNlcjMyNzY5NzMy", "avatar_url": "https://avatars.githubusercontent.com/u/32769732?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Hsgngr", "html_url": "https://github.com/Hsgngr", "followers_url": "https://api.github.com/users/Hsgngr/followers", "following_url": "https://api.github.com/users/Hsgngr/following{/other_user}", "gists_url": "https://api.github.com/users/Hsgngr/gists{/gist_id}", "starred_url": "https://api.github.com/users/Hsgngr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Hsgngr/subscriptions", "organizations_url": "https://api.github.com/users/Hsgngr/orgs", "repos_url": "https://api.github.com/users/Hsgngr/repos", "events_url": "https://api.github.com/users/Hsgngr/events{/privacy}", "received_events_url": "https://api.github.com/users/Hsgngr/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
3
2023-09-17T23:22:13
2023-11-24T18:51:48
null
NONE
null
### System Info 0.0.287 langchain ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Currently I have a Custom Tool like this: ``` def _handle_error(error: ToolException) -> str: return ( "The following errors occurred during tool execution:" + error.args[0] + "please try another tool." ) tools = [ Tool.from_function( name="GetCurrentWeather", func=get_current_weather, description="useful for getting the current weather for a location", return_direct=True, handle_tool_error=_handle_error)] ``` It works unless I add the return_direct=True. When I do return_direct= True instead of trying other tools it just returns this: ``` > Entering new AgentExecutor chain... 16 AgentAction --> Thought: The question is asking about the current weather in Uludağ. 17 Action: GetCurrentWeather 18 Action Input: Uludağ 19 Thought: The question is asking about the current weather in Uludağ. 20 Action: GetCurrentWeather 21 Action Input: Uludağ 22 Observation:The following errors occurred during tool execution:the location is not found. please try another tool. 23 > Finished chain. 24 The following errors occurred during tool execution:location is not found.please try another tool. ``` ### Expected behavior Let's see the same thing without the `return_direct=True`: ``` > Entering new AgentExecutor chain... Thought: The question is asking about the current weather in Uludağ. Action: GetCurrentWeather Action Input: Uludağ Observation:The following errors occurred during tool execution:location is not found. please try another tool. I couldn't find the current weather for Uludağ. I should try another tool. Action: DuckDuckSearch Action Input: "Uludağ current weather" Observation:Current Weather. 7:35 PM. 78° F. RealFeel® 74°. RealFeel Shade™ 74°. Air Quality Fair. Wind W 14 mph. Wind Gusts 24 mph. Sunny More Details. 7:14. —. This table gives the weather forecast for Uludag at the specific elevation of 2543 m. Our advanced weather models allow us to provide distinct weather forecasts for several elevations of Uludag. .. ``` So it goes for the other tools. It should be like this for return_direct. It should return directly only if it doesn't get an error.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10714/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10714/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/10713
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/10713/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/10713/comments
https://api.github.com/repos/langchain-ai/langchain/issues/10713/events
https://github.com/langchain-ai/langchain/pull/10713
1,899,954,386
PR_kwDOIPDwls5ahGZ2
10,713
Mv LCEL routing doc
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-09-17T23:04:45
2023-09-17T23:33:32
2023-09-17T23:33:31
COLLABORATOR
null
Move to how-to
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/10713/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/10713/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10713", "html_url": "https://github.com/langchain-ai/langchain/pull/10713", "diff_url": "https://github.com/langchain-ai/langchain/pull/10713.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/10713.patch", "merged_at": "2023-09-17T23:33:31" }