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/13019
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13019/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13019/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13019/events
https://github.com/langchain-ai/langchain/pull/13019
1,982,143,658
PR_kwDOIPDwls5e2Ul0
13,019
Support Pinecone Hybrid Search upsert parallelization
{ "login": "StankoKuveljic", "id": 16047967, "node_id": "MDQ6VXNlcjE2MDQ3OTY3", "avatar_url": "https://avatars.githubusercontent.com/u/16047967?v=4", "gravatar_id": "", "url": "https://api.github.com/users/StankoKuveljic", "html_url": "https://github.com/StankoKuveljic", "followers_url": "https://api.github.com/users/StankoKuveljic/followers", "following_url": "https://api.github.com/users/StankoKuveljic/following{/other_user}", "gists_url": "https://api.github.com/users/StankoKuveljic/gists{/gist_id}", "starred_url": "https://api.github.com/users/StankoKuveljic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/StankoKuveljic/subscriptions", "organizations_url": "https://api.github.com/users/StankoKuveljic/orgs", "repos_url": "https://api.github.com/users/StankoKuveljic/repos", "events_url": "https://api.github.com/users/StankoKuveljic/events{/privacy}", "received_events_url": "https://api.github.com/users/StankoKuveljic/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" }, { "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
1
2023-11-07T20:12:40
2023-11-09T07:17:03
null
CONTRIBUTOR
null
Issue: closes #13017 * Add integration tests for Pinecone HybridSearch * Modify notebook example for Pinecone HybridSearch * Create an abstraction and factory that handles single thread vs multithread upsert to Pinecone - This can be applied to regular Pinecone upsert in vectorstore package. * The speed up is 5 times using following settings: * `chunk_size=1000` * `batch_size=64` * `pool_threads=4` * BM25 sparse encoder **Note: Breaking Change!!!** Line: https://github.com/langchain-ai/langchain/commit/1e317211a83154f93dd7acb6b3a008a59d594968?diff=split#diff-70d9590693d1256849a37f005de03ac82cf4c1a2f5eb05993b6382227ccf373eR213 In `PineconeHybridSearchRetriever` classes instead of passing Pinecone Index I put a wrapper around it. The reason is to use abstration for handling single-threaded and multi-threaded upsert since they are different and they require different instantiation of `pinecone.Index`. The wrapper class can be obtained by calling `PineconeIndexUpsert.get_index(index_name='index-name', pool_threads=1)`. The alternative (non breaking approach) would be to pass a flag `is_threaded=True` to `add_texts` method and then instantiate appropriate wrapper object for handling the upsert inside the method. It might happen that someone instantiate pinecone.index without `pool_threads` and then calls `add_texts` with `is_threaded=True` without any significant speed gain. I appreciate your feedback and pelase let me know which approach should we take?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13019/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/13019/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13019", "html_url": "https://github.com/langchain-ai/langchain/pull/13019", "diff_url": "https://github.com/langchain-ai/langchain/pull/13019.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13019.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13018
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13018/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13018/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13018/events
https://github.com/langchain-ai/langchain/pull/13018
1,982,131,809
PR_kwDOIPDwls5e2R8l
13,018
Add description of any custom tools into the prompt for pandas dataframe agent
{ "login": "PyroGenesis", "id": 17806916, "node_id": "MDQ6VXNlcjE3ODA2OTE2", "avatar_url": "https://avatars.githubusercontent.com/u/17806916?v=4", "gravatar_id": "", "url": "https://api.github.com/users/PyroGenesis", "html_url": "https://github.com/PyroGenesis", "followers_url": "https://api.github.com/users/PyroGenesis/followers", "following_url": "https://api.github.com/users/PyroGenesis/following{/other_user}", "gists_url": "https://api.github.com/users/PyroGenesis/gists{/gist_id}", "starred_url": "https://api.github.com/users/PyroGenesis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PyroGenesis/subscriptions", "organizations_url": "https://api.github.com/users/PyroGenesis/orgs", "repos_url": "https://api.github.com/users/PyroGenesis/repos", "events_url": "https://api.github.com/users/PyroGenesis/events{/privacy}", "received_events_url": "https://api.github.com/users/PyroGenesis/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
2
2023-11-07T20:06:25
2023-12-05T04:54:32
2023-12-05T04:54:32
NONE
null
- **Description:** I'm propagating any `extra_tools` given to `create_pandas_dataframe_agent()` to the prompt creation so that the tool descriptions are part of the original prompt - **Issue:** Fixes #11737
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13018/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/13018/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13018", "html_url": "https://github.com/langchain-ai/langchain/pull/13018", "diff_url": "https://github.com/langchain-ai/langchain/pull/13018.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13018.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13017
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13017/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13017/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13017/events
https://github.com/langchain-ai/langchain/issues/13017
1,982,113,086
I_kwDOIPDwls52JKU-
13,017
Support Pinecone Hybrid Search upsert parallelization
{ "login": "StankoKuveljic", "id": 16047967, "node_id": "MDQ6VXNlcjE2MDQ3OTY3", "avatar_url": "https://avatars.githubusercontent.com/u/16047967?v=4", "gravatar_id": "", "url": "https://api.github.com/users/StankoKuveljic", "html_url": "https://github.com/StankoKuveljic", "followers_url": "https://api.github.com/users/StankoKuveljic/followers", "following_url": "https://api.github.com/users/StankoKuveljic/following{/other_user}", "gists_url": "https://api.github.com/users/StankoKuveljic/gists{/gist_id}", "starred_url": "https://api.github.com/users/StankoKuveljic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/StankoKuveljic/subscriptions", "organizations_url": "https://api.github.com/users/StankoKuveljic/orgs", "repos_url": "https://api.github.com/users/StankoKuveljic/repos", "events_url": "https://api.github.com/users/StankoKuveljic/events{/privacy}", "received_events_url": "https://api.github.com/users/StankoKuveljic/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": 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" }, { "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
1
2023-11-07T19:54:54
2023-11-07T20:11:14
null
CONTRIBUTOR
null
### Feature request Feature request We can take advantage from pinecone parallel upsert (see example: https://docs.pinecone.io/docs/insert-data#sending-upserts-in-parallel) This will require modification of the current `add_texts` pipeline. Create a batch (chunk) for doing embeddings (ie have a chunk size of 1000 for embeddings) Perform a parallel upsert to Pinecone index on that chunk This way we are in control on 3 things: * Thread pool for pinecone index * Parametrize the batch size for embeddings (ie it helps to avoid rate limit for OpenAI embeddings) * Parametrize the batch size for upsert (it helps to avoid throttling of pinecone API) Similar to the #9855 One additional requirement is to set `flag` for single threaded vs multithreaded upsert implementation. ### Motivation The function `add_texts` for index upsert doesn't take advantage of parallelism especially when embeddings are calculated by HTTP calls (ie OpenAI embeddings). This makes the whole sequence inefficient from IO bound standpoint as the pipeline is following: * Take a small batch ie 32/64 of documents * Calculate embeddings --> WAIT * Upsert a batch --> WAIT We can benefit from using paralellised upsert. ### Your contribution I will do it.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13017/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/13017/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13016
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13016/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13016/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13016/events
https://github.com/langchain-ai/langchain/pull/13016
1,982,099,998
PR_kwDOIPDwls5e2K_o
13,016
bump exp 38
{ "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-11-07T19:45:41
2023-11-07T19:49:24
2023-11-07T19:49:23
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13016/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/13016/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13016", "html_url": "https://github.com/langchain-ai/langchain/pull/13016", "diff_url": "https://github.com/langchain-ai/langchain/pull/13016.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13016.patch", "merged_at": "2023-11-07T19:49:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/13015
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13015/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13015/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13015/events
https://github.com/langchain-ai/langchain/pull/13015
1,982,089,987
PR_kwDOIPDwls5e2I03
13,015
fix: Updates to formatting in Google Drive Retriever docs
{ "login": "holtskinner", "id": 13262395, "node_id": "MDQ6VXNlcjEzMjYyMzk1", "avatar_url": "https://avatars.githubusercontent.com/u/13262395?v=4", "gravatar_id": "", "url": "https://api.github.com/users/holtskinner", "html_url": "https://github.com/holtskinner", "followers_url": "https://api.github.com/users/holtskinner/followers", "following_url": "https://api.github.com/users/holtskinner/following{/other_user}", "gists_url": "https://api.github.com/users/holtskinner/gists{/gist_id}", "starred_url": "https://api.github.com/users/holtskinner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/holtskinner/subscriptions", "organizations_url": "https://api.github.com/users/holtskinner/orgs", "repos_url": "https://api.github.com/users/holtskinner/repos", "events_url": "https://api.github.com/users/holtskinner/events{/privacy}", "received_events_url": "https://api.github.com/users/holtskinner/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
2
2023-11-07T19:39:02
2023-11-10T00:15:55
2023-11-10T00:15:55
CONTRIBUTOR
null
- Minor updates to formatting to make easier to read
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13015/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/13015/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13015", "html_url": "https://github.com/langchain-ai/langchain/pull/13015", "diff_url": "https://github.com/langchain-ai/langchain/pull/13015.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13015.patch", "merged_at": "2023-11-10T00:15:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/13014
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13014/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13014/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13014/events
https://github.com/langchain-ai/langchain/pull/13014
1,982,062,309
PR_kwDOIPDwls5e2Cz2
13,014
Wfh/add llm output to adapter
{ "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" }, { "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
1
2023-11-07T19:19:56
2023-11-07T19:20:36
null
COLLABORATOR
null
There's a good amount of metadata that we strip out and that folks would want if they indeed want to to use the adapters
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13014/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/13014/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13014", "html_url": "https://github.com/langchain-ai/langchain/pull/13014", "diff_url": "https://github.com/langchain-ai/langchain/pull/13014.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13014.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13013
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13013/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13013/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13013/events
https://github.com/langchain-ai/langchain/pull/13013
1,982,022,608
PR_kwDOIPDwls5e16Ds
13,013
Demonstrate use of get_buffer_string
{ "login": "ninjapenguin", "id": 38786, "node_id": "MDQ6VXNlcjM4Nzg2", "avatar_url": "https://avatars.githubusercontent.com/u/38786?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ninjapenguin", "html_url": "https://github.com/ninjapenguin", "followers_url": "https://api.github.com/users/ninjapenguin/followers", "following_url": "https://api.github.com/users/ninjapenguin/following{/other_user}", "gists_url": "https://api.github.com/users/ninjapenguin/gists{/gist_id}", "starred_url": "https://api.github.com/users/ninjapenguin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ninjapenguin/subscriptions", "organizations_url": "https://api.github.com/users/ninjapenguin/orgs", "repos_url": "https://api.github.com/users/ninjapenguin/repos", "events_url": "https://api.github.com/users/ninjapenguin/events{/privacy}", "received_events_url": "https://api.github.com/users/ninjapenguin/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": 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": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
2023-11-07T18:57:57
2023-12-06T04:08:51
2023-12-06T04:08:51
CONTRIBUTOR
null
**Description** The docs for creating a RAG chain with Memory [currently use a manual lambda](https://python.langchain.com/docs/expression_language/cookbook/retrieval#with-memory-and-returning-source-documents) to format chat history messages. [There exists a helper method within the codebase](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/schema/messages.py#L14C15-L14C15) to perform this task so I've updated the documentation to demonstrate its usage Also worth noting that the current documented method of using the included `_format_chat_history ` function actually results in an error: ``` TypeError: 'HumanMessage' object is not subscriptable ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13013/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/13013/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13013", "html_url": "https://github.com/langchain-ai/langchain/pull/13013", "diff_url": "https://github.com/langchain-ai/langchain/pull/13013.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13013.patch", "merged_at": "2023-12-06T04:08:50" }
https://api.github.com/repos/langchain-ai/langchain/issues/13012
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13012/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13012/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13012/events
https://github.com/langchain-ai/langchain/pull/13012
1,981,988,327
PR_kwDOIPDwls5e1ynr
13,012
feature added templates/lanced as vectordb
{ "login": "akashAD98", "id": 62583018, "node_id": "MDQ6VXNlcjYyNTgzMDE4", "avatar_url": "https://avatars.githubusercontent.com/u/62583018?v=4", "gravatar_id": "", "url": "https://api.github.com/users/akashAD98", "html_url": "https://github.com/akashAD98", "followers_url": "https://api.github.com/users/akashAD98/followers", "following_url": "https://api.github.com/users/akashAD98/following{/other_user}", "gists_url": "https://api.github.com/users/akashAD98/gists{/gist_id}", "starred_url": "https://api.github.com/users/akashAD98/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/akashAD98/subscriptions", "organizations_url": "https://api.github.com/users/akashAD98/orgs", "repos_url": "https://api.github.com/users/akashAD98/repos", "events_url": "https://api.github.com/users/akashAD98/events{/privacy}", "received_events_url": "https://api.github.com/users/akashAD98/received_events", "type": "User", "site_admin": false }
[ { "id": 5496111774, "node_id": "LA_kwDOIPDwls8AAAABR5gCng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20work", "name": "needs work", "color": "F9D0C4", "default": false, "description": "PRs that need more work" }, { "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": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
5
2023-11-07T18:35:35
2023-11-10T11:06:00
2023-11-09T18:36:11
NONE
null
added lanced as vectordb example in template
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13012/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/13012/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13012", "html_url": "https://github.com/langchain-ai/langchain/pull/13012", "diff_url": "https://github.com/langchain-ai/langchain/pull/13012.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13012.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/13011
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13011/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13011/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13011/events
https://github.com/langchain-ai/langchain/issues/13011
1,981,937,876
I_kwDOIPDwls52IfjU
13,011
Issue: Sources are lost in the final_answer by agents
{ "login": "deepakagrawal", "id": 4365922, "node_id": "MDQ6VXNlcjQzNjU5MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/4365922?v=4", "gravatar_id": "", "url": "https://api.github.com/users/deepakagrawal", "html_url": "https://github.com/deepakagrawal", "followers_url": "https://api.github.com/users/deepakagrawal/followers", "following_url": "https://api.github.com/users/deepakagrawal/following{/other_user}", "gists_url": "https://api.github.com/users/deepakagrawal/gists{/gist_id}", "starred_url": "https://api.github.com/users/deepakagrawal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/deepakagrawal/subscriptions", "organizations_url": "https://api.github.com/users/deepakagrawal/orgs", "repos_url": "https://api.github.com/users/deepakagrawal/repos", "events_url": "https://api.github.com/users/deepakagrawal/events{/privacy}", "received_events_url": "https://api.github.com/users/deepakagrawal/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" } ]
open
false
null
[]
null
7
2023-11-07T18:07:48
2023-11-17T16:04:28
null
NONE
null
### Issue you'd like to raise. I have a STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION agent which uses a QA (retreival based) tool to answer questions. The QA tool returns references in the response. However the final answer provided by the agent is missing the sources. What can I do to ensure that sources are provided in the final_answer? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13011/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/13011/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13010
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13010/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13010/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13010/events
https://github.com/langchain-ai/langchain/pull/13010
1,981,929,932
PR_kwDOIPDwls5e1l4i
13,010
Bagatur/oai assistant
{ "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": 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-11-07T18:02:55
2023-11-07T19:44:54
2023-11-07T19:44:53
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/langchain-ai/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/13010/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/13010/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13010", "html_url": "https://github.com/langchain-ai/langchain/pull/13010", "diff_url": "https://github.com/langchain-ai/langchain/pull/13010.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13010.patch", "merged_at": "2023-11-07T19:44:53" }
https://api.github.com/repos/langchain-ai/langchain/issues/13009
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13009/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13009/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13009/events
https://github.com/langchain-ai/langchain/issues/13009
1,981,874,805
I_kwDOIPDwls52IQJ1
13,009
Max Characters doesn't increase when value is updated
{ "login": "ss94866", "id": 68229944, "node_id": "MDQ6VXNlcjY4MjI5OTQ0", "avatar_url": "https://avatars.githubusercontent.com/u/68229944?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ss94866", "html_url": "https://github.com/ss94866", "followers_url": "https://api.github.com/users/ss94866/followers", "following_url": "https://api.github.com/users/ss94866/following{/other_user}", "gists_url": "https://api.github.com/users/ss94866/gists{/gist_id}", "starred_url": "https://api.github.com/users/ss94866/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ss94866/subscriptions", "organizations_url": "https://api.github.com/users/ss94866/orgs", "repos_url": "https://api.github.com/users/ss94866/repos", "events_url": "https://api.github.com/users/ss94866/events{/privacy}", "received_events_url": "https://api.github.com/users/ss94866/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" } ]
open
false
null
[]
null
2
2023-11-07T17:31:54
2023-11-07T17:42:05
null
NONE
null
### System Info https://python.langchain.com/docs/integrations/llms/huggingface_hub I followed this documentation and increased max_length. But, It seems like the response max_length not increasing. At max, I would get the response text with 110 characters. Please help me to fix my issue <img width="528" alt="image" src="https://github.com/langchain-ai/langchain/assets/68229944/7d47b36c-21f4-42df-bf0f-48a4f6f03a5a"> ### 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 1. install dependencies and use the template code in the above link and screenshot 2. Try to increase the max length and check whether increasing max_length is refelecting in the response. ### Expected behavior increasing max_length isn't reflecting. This value should enable to increase the generated response text length.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13009/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/13009/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13008
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13008/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13008/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13008/events
https://github.com/langchain-ai/langchain/pull/13008
1,981,842,143
PR_kwDOIPDwls5e1Sn0
13,008
Neo4j chat message history
{ "login": "tomasonjo", "id": 19948365, "node_id": "MDQ6VXNlcjE5OTQ4MzY1", "avatar_url": "https://avatars.githubusercontent.com/u/19948365?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tomasonjo", "html_url": "https://github.com/tomasonjo", "followers_url": "https://api.github.com/users/tomasonjo/followers", "following_url": "https://api.github.com/users/tomasonjo/following{/other_user}", "gists_url": "https://api.github.com/users/tomasonjo/gists{/gist_id}", "starred_url": "https://api.github.com/users/tomasonjo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tomasonjo/subscriptions", "organizations_url": "https://api.github.com/users/tomasonjo/orgs", "repos_url": "https://api.github.com/users/tomasonjo/repos", "events_url": "https://api.github.com/users/tomasonjo/events{/privacy}", "received_events_url": "https://api.github.com/users/tomasonjo/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": 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" } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
2
2023-11-07T17:12:18
2023-11-10T19:53:35
2023-11-10T19:53:34
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13008/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/13008/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13008", "html_url": "https://github.com/langchain-ai/langchain/pull/13008", "diff_url": "https://github.com/langchain-ai/langchain/pull/13008.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13008.patch", "merged_at": "2023-11-10T19:53:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/13007
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13007/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13007/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13007/events
https://github.com/langchain-ai/langchain/issues/13007
1,981,801,097
I_kwDOIPDwls52H-KJ
13,007
Issue: Opensearch retiever threshold based on similarity score
{ "login": "VinuAbraham", "id": 50621969, "node_id": "MDQ6VXNlcjUwNjIxOTY5", "avatar_url": "https://avatars.githubusercontent.com/u/50621969?v=4", "gravatar_id": "", "url": "https://api.github.com/users/VinuAbraham", "html_url": "https://github.com/VinuAbraham", "followers_url": "https://api.github.com/users/VinuAbraham/followers", "following_url": "https://api.github.com/users/VinuAbraham/following{/other_user}", "gists_url": "https://api.github.com/users/VinuAbraham/gists{/gist_id}", "starred_url": "https://api.github.com/users/VinuAbraham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/VinuAbraham/subscriptions", "organizations_url": "https://api.github.com/users/VinuAbraham/orgs", "repos_url": "https://api.github.com/users/VinuAbraham/repos", "events_url": "https://api.github.com/users/VinuAbraham/events{/privacy}", "received_events_url": "https://api.github.com/users/VinuAbraham/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" }, { "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" } ]
open
false
null
[]
null
5
2023-11-07T16:52:58
2023-11-11T17:04:40
null
NONE
null
### Issue you'd like to raise. I am trying to create a rag using langchain, aws bedrock and opensearch. For I created an index using the code, ``` from opensearchpy import OpenSearch aos_client = OpenSearch( hosts=[{"host": opensearch_cluster_domain, "port": ops_port}], http_auth=auth, use_ssl=True, verify_certs=True, connection_class=RequestsHttpConnection, pool_maxsize=20, ) settings = {"settings": {"index": {"knn": True, "knn.space_type": "cosinesimil"}}} response = aos_client.indices.create(index=index_name, body=settings) ``` For the retrieval part I am using langchain "RetrievalQA". Code for the same is ``` gen_qa = RetrievalQA.from_chain_type( llm, chain_type="stuff", retriever=retriever.as_retriever( search_kwargs={"k": int(k), "score_threshold": float(score_threshold)} ), chain_type_kwargs=self.general_chain_type_kwargs, return_source_documents=True, ) ``` I need to limit the docs returned from opensearch index based on similarity score. Eventhough I am giving the score threshold in search_kwargs, seems like it has no effect. Also tried this code from the langchain [doc](https://api.python.langchain.com/en/latest/vectorstores/langchain.vectorstores.opensearch_vector_search.OpenSearchVectorSearch.html#langchain.vectorstores.opensearch_vector_search.OpenSearchVectorSearch.similarity_search_with_relevance_scores) ``` docsearch.as_retriever( search_type="similarity_score_threshold", search_kwargs={'score_threshold': 0.8} ) ``` And this is throwing NotImplementedError. Is there any way that I can say to the retriever that I only need relevant docs which has a similarity score greater than a certain threshold. Any help will be appreciated, thanks. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13007/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/13007/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13006
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13006/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13006/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13006/events
https://github.com/langchain-ai/langchain/pull/13006
1,981,799,044
PR_kwDOIPDwls5e1JFT
13,006
bump 331rc2
{ "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-11-07T16:51:57
2023-11-07T16:52:18
2023-11-07T16:52:17
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13006/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/13006/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13006", "html_url": "https://github.com/langchain-ai/langchain/pull/13006", "diff_url": "https://github.com/langchain-ai/langchain/pull/13006.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13006.patch", "merged_at": "2023-11-07T16:52:17" }
https://api.github.com/repos/langchain-ai/langchain/issues/13005
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13005/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13005/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13005/events
https://github.com/langchain-ai/langchain/issues/13005
1,981,716,853
I_kwDOIPDwls52Hpl1
13,005
Using Vector stores without being forced to use classmethod
{ "login": "FrancescoSaverioZuppichini", "id": 15908060, "node_id": "MDQ6VXNlcjE1OTA4MDYw", "avatar_url": "https://avatars.githubusercontent.com/u/15908060?v=4", "gravatar_id": "", "url": "https://api.github.com/users/FrancescoSaverioZuppichini", "html_url": "https://github.com/FrancescoSaverioZuppichini", "followers_url": "https://api.github.com/users/FrancescoSaverioZuppichini/followers", "following_url": "https://api.github.com/users/FrancescoSaverioZuppichini/following{/other_user}", "gists_url": "https://api.github.com/users/FrancescoSaverioZuppichini/gists{/gist_id}", "starred_url": "https://api.github.com/users/FrancescoSaverioZuppichini/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/FrancescoSaverioZuppichini/subscriptions", "organizations_url": "https://api.github.com/users/FrancescoSaverioZuppichini/orgs", "repos_url": "https://api.github.com/users/FrancescoSaverioZuppichini/repos", "events_url": "https://api.github.com/users/FrancescoSaverioZuppichini/events{/privacy}", "received_events_url": "https://api.github.com/users/FrancescoSaverioZuppichini/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" } ]
open
false
null
[]
null
3
2023-11-07T16:08:47
2023-11-20T09:06:11
null
NONE
null
### Feature request Hi there, Thank a lot for the amazing framework. More or less all vector stores must be used with `<CLASS>.from_documents` because the classmethod in almost every case does some weird pre processing (e.g. setting the vector config taken from only god knows where etc). For instance ```python vector_store = Qdrant( client=QdrantClient(url=os.environ["VECTOR_DB_URL"]) collection_name=VECTOR_DB_COLLECTION_NAME, embeddings=embeddings, ) ``` This won't work, since without the classmethod the collection is not even created Thanks ### Motivation So I can avoid creating 1k classes if I need to process 1k documents :) ### Your contribution Raising the issue
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13005/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/13005/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13004
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13004/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13004/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13004/events
https://github.com/langchain-ai/langchain/issues/13004
1,981,693,748
I_kwDOIPDwls52Hj80
13,004
map_reduce Summarization results in AttributeError: 'NoneType' object has no attribute 'startswith'
{ "login": "Nilsooo", "id": 26402610, "node_id": "MDQ6VXNlcjI2NDAyNjEw", "avatar_url": "https://avatars.githubusercontent.com/u/26402610?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Nilsooo", "html_url": "https://github.com/Nilsooo", "followers_url": "https://api.github.com/users/Nilsooo/followers", "following_url": "https://api.github.com/users/Nilsooo/following{/other_user}", "gists_url": "https://api.github.com/users/Nilsooo/gists{/gist_id}", "starred_url": "https://api.github.com/users/Nilsooo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Nilsooo/subscriptions", "organizations_url": "https://api.github.com/users/Nilsooo/orgs", "repos_url": "https://api.github.com/users/Nilsooo/repos", "events_url": "https://api.github.com/users/Nilsooo/events{/privacy}", "received_events_url": "https://api.github.com/users/Nilsooo/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" } ]
open
false
null
[]
null
2
2023-11-07T15:58:05
2023-11-07T16:07:00
null
NONE
null
### System Info Hi everyone, I am receveing the following error message when following your [documentation on the summarization.]( https://python.langchain.com/docs/use_cases/summarization): AttributeError: 'NoneType' object has no attribute 'startswith' Any ideas what the problem is? Looks like this is point where the notebook breaks: ` 62 # Check if the model matches a known prefix 63 # Prefix matching avoids needing library updates for every model version release 64 # Note that this can match on non-existent models (e.g., gpt-3.5-turbo-FAKE) 65 for model_prefix, model_encoding_name in MODEL_PREFIX_TO_ENCODING.items(): ---> 66 if model_name.startswith(model_prefix): 67 return get_encoding(model_encoding_name)` ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [x] LLMs/Chat Models - [ ] Embedding Models - [x] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [x] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction https://python.langchain.com/docs/use_cases/summarization ### Expected behavior I exepect to receive a summary of summaries as explained here: https://python.langchain.com/docs/use_cases/summarization
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13004/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/13004/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13003
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13003/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13003/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13003/events
https://github.com/langchain-ai/langchain/issues/13003
1,981,682,406
I_kwDOIPDwls52HhLm
13,003
Issue: langchain agent doesnt work with the new json mode of gpt4-1106-preview
{ "login": "fisipro2", "id": 111398860, "node_id": "U_kgDOBqPPzA", "avatar_url": "https://avatars.githubusercontent.com/u/111398860?v=4", "gravatar_id": "", "url": "https://api.github.com/users/fisipro2", "html_url": "https://github.com/fisipro2", "followers_url": "https://api.github.com/users/fisipro2/followers", "following_url": "https://api.github.com/users/fisipro2/following{/other_user}", "gists_url": "https://api.github.com/users/fisipro2/gists{/gist_id}", "starred_url": "https://api.github.com/users/fisipro2/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fisipro2/subscriptions", "organizations_url": "https://api.github.com/users/fisipro2/orgs", "repos_url": "https://api.github.com/users/fisipro2/repos", "events_url": "https://api.github.com/users/fisipro2/events{/privacy}", "received_events_url": "https://api.github.com/users/fisipro2/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": 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
11
2023-11-07T15:52:22
2024-01-05T23:10:34
null
NONE
null
### Issue you'd like to raise. When using the new gpt's json mode by setting response_format={ "type": "json_object" }, the langchain agent failed to parse the openai output, is there any plan to support that? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13003/reactions", "total_count": 6, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 4 }
https://api.github.com/repos/langchain-ai/langchain/issues/13003/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/13002
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13002/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13002/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13002/events
https://github.com/langchain-ai/langchain/pull/13002
1,981,646,228
PR_kwDOIPDwls5e0nv7
13,002
Amadeus toolkit minor update
{ "login": "minjikarin", "id": 63965039, "node_id": "MDQ6VXNlcjYzOTY1MDM5", "avatar_url": "https://avatars.githubusercontent.com/u/63965039?v=4", "gravatar_id": "", "url": "https://api.github.com/users/minjikarin", "html_url": "https://github.com/minjikarin", "followers_url": "https://api.github.com/users/minjikarin/followers", "following_url": "https://api.github.com/users/minjikarin/following{/other_user}", "gists_url": "https://api.github.com/users/minjikarin/gists{/gist_id}", "starred_url": "https://api.github.com/users/minjikarin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/minjikarin/subscriptions", "organizations_url": "https://api.github.com/users/minjikarin/orgs", "repos_url": "https://api.github.com/users/minjikarin/repos", "events_url": "https://api.github.com/users/minjikarin/events{/privacy}", "received_events_url": "https://api.github.com/users/minjikarin/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": 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-11-07T15:35:54
2023-12-06T04:08:34
2023-12-06T04:08:34
CONTRIBUTOR
null
- update `Amadeus` toolkit with ability to switch Amadeus environments - update minor code explanations
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13002/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/13002/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13002", "html_url": "https://github.com/langchain-ai/langchain/pull/13002", "diff_url": "https://github.com/langchain-ai/langchain/pull/13002.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13002.patch", "merged_at": "2023-12-06T04:08:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/13001
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/13001/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/13001/comments
https://api.github.com/repos/langchain-ai/langchain/issues/13001/events
https://github.com/langchain-ai/langchain/pull/13001
1,981,615,182
PR_kwDOIPDwls5e0g-P
13,001
Qdrant metadata payload keys
{ "login": "JeanBaptiste-dlb", "id": 45666468, "node_id": "MDQ6VXNlcjQ1NjY2NDY4", "avatar_url": "https://avatars.githubusercontent.com/u/45666468?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JeanBaptiste-dlb", "html_url": "https://github.com/JeanBaptiste-dlb", "followers_url": "https://api.github.com/users/JeanBaptiste-dlb/followers", "following_url": "https://api.github.com/users/JeanBaptiste-dlb/following{/other_user}", "gists_url": "https://api.github.com/users/JeanBaptiste-dlb/gists{/gist_id}", "starred_url": "https://api.github.com/users/JeanBaptiste-dlb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JeanBaptiste-dlb/subscriptions", "organizations_url": "https://api.github.com/users/JeanBaptiste-dlb/orgs", "repos_url": "https://api.github.com/users/JeanBaptiste-dlb/repos", "events_url": "https://api.github.com/users/JeanBaptiste-dlb/events{/privacy}", "received_events_url": "https://api.github.com/users/JeanBaptiste-dlb/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-11-07T15:21:12
2023-12-06T17:12:54
2023-12-06T17:12:54
CONTRIBUTOR
null
- **Description:** In Qdrant allows to input list of keys as the content_payload_key to retrieve multiple fields (the generated document will contain the dictionary {field: value} in a string), - **Issue:** Previously we were able to retrieve only one field from the vector database when making a search - **Dependencies:** - **Tag maintainer:** - **Twitter handle:** @jb_dlb
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/13001/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/13001/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/13001", "html_url": "https://github.com/langchain-ai/langchain/pull/13001", "diff_url": "https://github.com/langchain-ai/langchain/pull/13001.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/13001.patch", "merged_at": "2023-12-06T17:12:54" }
https://api.github.com/repos/langchain-ai/langchain/issues/12999
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12999/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12999/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12999/events
https://github.com/langchain-ai/langchain/pull/12999
1,981,557,248
PR_kwDOIPDwls5e0UOq
12,999
fix: remove await in doctran_text_extract.py
{ "login": "domitix", "id": 49304115, "node_id": "MDQ6VXNlcjQ5MzA0MTE1", "avatar_url": "https://avatars.githubusercontent.com/u/49304115?v=4", "gravatar_id": "", "url": "https://api.github.com/users/domitix", "html_url": "https://github.com/domitix", "followers_url": "https://api.github.com/users/domitix/followers", "following_url": "https://api.github.com/users/domitix/following{/other_user}", "gists_url": "https://api.github.com/users/domitix/gists{/gist_id}", "starred_url": "https://api.github.com/users/domitix/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/domitix/subscriptions", "organizations_url": "https://api.github.com/users/domitix/orgs", "repos_url": "https://api.github.com/users/domitix/repos", "events_url": "https://api.github.com/users/domitix/events{/privacy}", "received_events_url": "https://api.github.com/users/domitix/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
3
2023-11-07T14:54:52
2023-12-28T16:05:54
2023-12-28T16:05:53
NONE
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** remove await in doctran_text_extract.py that causes a, - **Issue:** the issue fixes an error in Doctran atransform_documents method, - **Dependencies:** None, - **Tag maintainer:** @eyurtsev, 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/langchain-ai/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/12999/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/12999/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12999", "html_url": "https://github.com/langchain-ai/langchain/pull/12999", "diff_url": "https://github.com/langchain-ai/langchain/pull/12999.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12999.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12998
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12998/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12998/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12998/events
https://github.com/langchain-ai/langchain/pull/12998
1,981,528,755
PR_kwDOIPDwls5e0N5Y
12,998
add documents of baidu bos directory and file document_loader
{ "login": "wemysschen", "id": 38650638, "node_id": "MDQ6VXNlcjM4NjUwNjM4", "avatar_url": "https://avatars.githubusercontent.com/u/38650638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wemysschen", "html_url": "https://github.com/wemysschen", "followers_url": "https://api.github.com/users/wemysschen/followers", "following_url": "https://api.github.com/users/wemysschen/following{/other_user}", "gists_url": "https://api.github.com/users/wemysschen/gists{/gist_id}", "starred_url": "https://api.github.com/users/wemysschen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wemysschen/subscriptions", "organizations_url": "https://api.github.com/users/wemysschen/orgs", "repos_url": "https://api.github.com/users/wemysschen/repos", "events_url": "https://api.github.com/users/wemysschen/events{/privacy}", "received_events_url": "https://api.github.com/users/wemysschen/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" } ]
open
false
null
[]
null
4
2023-11-07T14:42:56
2023-12-06T04:06:17
null
CONTRIBUTOR
null
**Description:** add documents of baidu bos directory and file document_loader.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12998/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/12998/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12998", "html_url": "https://github.com/langchain-ai/langchain/pull/12998", "diff_url": "https://github.com/langchain-ai/langchain/pull/12998.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12998.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12997
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12997/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12997/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12997/events
https://github.com/langchain-ai/langchain/pull/12997
1,981,490,563
PR_kwDOIPDwls5e0Fjq
12,997
Add support for Stateful DocumentLoaders (document_processed callback) - prepare for Kafka support
{ "login": "eolivelli", "id": 9469110, "node_id": "MDQ6VXNlcjk0NjkxMTA=", "avatar_url": "https://avatars.githubusercontent.com/u/9469110?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eolivelli", "html_url": "https://github.com/eolivelli", "followers_url": "https://api.github.com/users/eolivelli/followers", "following_url": "https://api.github.com/users/eolivelli/following{/other_user}", "gists_url": "https://api.github.com/users/eolivelli/gists{/gist_id}", "starred_url": "https://api.github.com/users/eolivelli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eolivelli/subscriptions", "organizations_url": "https://api.github.com/users/eolivelli/orgs", "repos_url": "https://api.github.com/users/eolivelli/repos", "events_url": "https://api.github.com/users/eolivelli/events{/privacy}", "received_events_url": "https://api.github.com/users/eolivelli/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-11-07T14:25:38
2023-11-20T09:46:17
null
NONE
null
Description: This PR adds a new API into the BaseLoader interface to allow to implement a mechanism to notify the DocumentLoader that a Document has been fully processed by a pipeline. ``` def document_processed(self, document: Document) -> None: """Callback to notify the loader that a document has been processed. by implementing this feature it is possible to implement at least once processing on Documents. The default implementation does nothing. Args: document: Document instance. """ logging.info("Loader %s does not implement document_processed()", self) ``` The typical vectorisation pipeline runs this way: - a LangChain DocumentLoader emits a document - some processing on the documents happens (text normalisation, splitting....) - the documents are written to a Vector Database - the application notifies the DocumentLoader that the document has been processed With this workflow it is possible to implement at-least once processing of the documents and in particular you can implement recovery. In case of problems in the pipeline (like some process/pod crashing) the system restarts the Source that now is aware of the documents that have already been processed and so it doesn't not emit them anymore. The detail of how a BaseLoader tracks the processed documents depends on the BaseLoader itself. I am adding an example implementation for the S3 DocumentLoader. You can configure the Loader to delete the documents that have been fully processed. I would like to follow up and add support for Kafka as source of documents in a stateful way Twitter handle: @eolivelli
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12997/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/12997/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12997", "html_url": "https://github.com/langchain-ai/langchain/pull/12997", "diff_url": "https://github.com/langchain-ai/langchain/pull/12997.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12997.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12996
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12996/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12996/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12996/events
https://github.com/langchain-ai/langchain/issues/12996
1,981,433,036
I_kwDOIPDwls52GkTM
12,996
ConversationalRetrievalChain.from_llm with MongoDB is failing.
{ "login": "nelsoni-talentu", "id": 129917894, "node_id": "U_kgDOB75jxg", "avatar_url": "https://avatars.githubusercontent.com/u/129917894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nelsoni-talentu", "html_url": "https://github.com/nelsoni-talentu", "followers_url": "https://api.github.com/users/nelsoni-talentu/followers", "following_url": "https://api.github.com/users/nelsoni-talentu/following{/other_user}", "gists_url": "https://api.github.com/users/nelsoni-talentu/gists{/gist_id}", "starred_url": "https://api.github.com/users/nelsoni-talentu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nelsoni-talentu/subscriptions", "organizations_url": "https://api.github.com/users/nelsoni-talentu/orgs", "repos_url": "https://api.github.com/users/nelsoni-talentu/repos", "events_url": "https://api.github.com/users/nelsoni-talentu/events{/privacy}", "received_events_url": "https://api.github.com/users/nelsoni-talentu/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
3
2023-11-07T14:00:15
2023-11-16T20:37:46
2023-11-16T20:37:46
NONE
null
### Discussed in https://github.com/langchain-ai/langchain/discussions/12598 <div type='discussions-op-text'> <sup>Originally posted by **nelsoni-talentu** October 30, 2023</sup> Hi community, I am developing an app to interact (Q&A) with several documents previously embedded and stored into a MongoDB Atlas cluster. To reach this goal, I wrote this code: ```Python db_client = MongoClient("mongodb+srv://****") db_name = "db_name" collection_name = "documents" collection = db_client[db_name][collection_name] index_name = "idx_document_embedding" vectorstore = MongoDBAtlasVectorSearch(collection=collection, index_name=index_name, embedding=OpenAIEmbeddings()) index = VectorStoreIndexWrapper(vectorstore=vectorstore) chain = ConversationalRetrievalChain.from_llm(llm=ChatOpenAI(model="gpt-3.5-turbo", temperature=0), retriever=index.vectorstore.as_retriever(search_kwargs={"k": 1, "pre_filter": {"text": {"path": "project_id", "query": "some project id"}}})) chat_history = [] result = {} query = "some question here" result = chain({"question": query, "chat_history": chat_history}) ``` When I run this snipped using LangChain 0.0.303 it works smoothly, but when I upgrade LangChain to its last version available on pip, I get this error. ``` OperationFailure: Operand type is not supported for $vectorSearch: object, full error: {'ok': 0.0, 'errmsg': 'Operand type is not supported for $vectorSearch: object', 'code': 7828301, 'codeName': 'Location7828301', '$clusterTime': {'clusterTime': Timestamp(1698702099, 4), 'signature': {'hash': b'=\x10\x90\xa8\x17fa4z\x95\xcb\x1c\xb1\xd1\x96XOUf\xe7', 'keyId': 7256866503843119119}}, 'operationTime': Timestamp(1698702099, 4)} ```` Anybody can help me? In the meanwhile I will deploy my app with LangChain 0.0.303 but I prefer to deploy it with its last version, due to further compatibility. Thanks for your help. Nelson!</div>
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12996/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/12996/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12995
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12995/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12995/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12995/events
https://github.com/langchain-ai/langchain/pull/12995
1,981,329,239
PR_kwDOIPDwls5ezhu_
12,995
fixed an UnboundLocalError when no documents are found
{ "login": "lkuligin", "id": 11026406, "node_id": "MDQ6VXNlcjExMDI2NDA2", "avatar_url": "https://avatars.githubusercontent.com/u/11026406?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lkuligin", "html_url": "https://github.com/lkuligin", "followers_url": "https://api.github.com/users/lkuligin/followers", "following_url": "https://api.github.com/users/lkuligin/following{/other_user}", "gists_url": "https://api.github.com/users/lkuligin/gists{/gist_id}", "starred_url": "https://api.github.com/users/lkuligin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lkuligin/subscriptions", "organizations_url": "https://api.github.com/users/lkuligin/orgs", "repos_url": "https://api.github.com/users/lkuligin/repos", "events_url": "https://api.github.com/users/lkuligin/events{/privacy}", "received_events_url": "https://api.github.com/users/lkuligin/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
null
[]
null
2
2023-11-07T13:15:41
2023-11-20T17:41:14
2023-11-20T17:41:14
CONTRIBUTOR
null
Replace this entire comment with: - **Description:** fixed a bug - **Issue:** the issue # #12780
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12995/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/12995/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12995", "html_url": "https://github.com/langchain-ai/langchain/pull/12995", "diff_url": "https://github.com/langchain-ai/langchain/pull/12995.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12995.patch", "merged_at": "2023-11-20T17:41:14" }
https://api.github.com/repos/langchain-ai/langchain/issues/12994
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12994/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12994/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12994/events
https://github.com/langchain-ai/langchain/issues/12994
1,981,323,192
I_kwDOIPDwls52GJe4
12,994
get_openai_callback() does not show the cost taken from new OpenAI's model ("gpt-4-1106-preview" and "gpt-3.5-turbo-1106")
{ "login": "CLRafaelR", "id": 42314553, "node_id": "MDQ6VXNlcjQyMzE0NTUz", "avatar_url": "https://avatars.githubusercontent.com/u/42314553?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CLRafaelR", "html_url": "https://github.com/CLRafaelR", "followers_url": "https://api.github.com/users/CLRafaelR/followers", "following_url": "https://api.github.com/users/CLRafaelR/following{/other_user}", "gists_url": "https://api.github.com/users/CLRafaelR/gists{/gist_id}", "starred_url": "https://api.github.com/users/CLRafaelR/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CLRafaelR/subscriptions", "organizations_url": "https://api.github.com/users/CLRafaelR/orgs", "repos_url": "https://api.github.com/users/CLRafaelR/repos", "events_url": "https://api.github.com/users/CLRafaelR/events{/privacy}", "received_events_url": "https://api.github.com/users/CLRafaelR/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
6
2023-11-07T13:12:17
2023-11-12T23:45:37
2023-11-12T23:45:36
NONE
null
When we employ the new models introduced during DevDay, gpt-3.5-turbo-1106 and gpt-4-1106-preview, get_openai_callback() does not accurately display their total cost, which includes both the prompt and completion token cost. The subsequent minimal working example illustrates this issue. The costs should not be $0.0, but rather $0.01 * 30 + $0.03 * 598 = $18.24 for gpt-4-1106-preview and $0.0010 * 30 + $0.0020 * 160 = $0.35 for gpt-3.5-turbo-1106. ## MWE ```python from langchain.schema.messages import HumanMessage, SystemMessage from langchain.chat_models import ChatOpenAI from langchain.callbacks import get_openai_callback # export OPENAI_API_KEY="..." replies = [] for model in [ "gpt-4-1106-preview", "gpt-3.5-turbo-1106", ]: chat = ChatOpenAI(model=model) messages = [ SystemMessage(content="You're a helpful assistant"), HumanMessage(content="What is the purpose of model regularization? Explain comprehensibly in English."), ] with get_openai_callback() as cb: reply = chat.invoke(messages).content print(cb, reply, sep="\n------\n") print("="*16) replies.append(reply) replies ``` ## Output of MWE ``` Tokens Used: 628 Prompt Tokens: 30 Completion Tokens: 598 Successful Requests: 1 Total Cost (USD): $0.0 ------ Model regularization is a technique used in machine learning to prevent a model from overfitting the training data and to improve its generalization to unseen data. Overfitting occurs when a model learns the training data too well, including its noise and outliers, which often results in poor performance on new, unseen data because the model is too tailored to the specifics of the training set. Here is a comprehensible explanation of the purpose of regularization: 1. **Prevent Overfitting**: Regularization helps to keep the model simple by introducing a penalty for more complex models. By doing so, it discourages the learning of a model that is too complex for the underlying pattern in the data. A simpler model may not perform as well on the training data, but it can perform better on new data because it captures the general trend rather than the specific noise. 2. **Improves Generalization**: The main goal of a machine learning model is to make accurate predictions on new, unseen data. Regularization helps by ensuring that the model's performance during training is more reflective of how it will perform on new data. This is achieved by penalizing the complexity of the model and thereby encouraging the model to be more robust to variations in data. 3. **Controls Model Complexity**: Regularization techniques typically introduce a hyperparameter that controls the trade-off between fitting the training data well and keeping the model complexity low. By adjusting this hyperparameter, one can find a good balance where the model is complex enough to capture the underlying patterns but not so complex that it starts fitting the noise. 4. **Introduces Bias to Reduce Variance**: In statistical terms, regularization introduces a small amount of bias to the model to significantly reduce its variance. This trade-off is beneficial because high variance models are those that overfit the data, while a little bias can make the model more stable and accurate in its predictions on new data. 5. **Handles Multicollinearity**: In cases where the features (input variables) are highly correlated, it can be difficult for the model to estimate the relationship of each feature with the output variable. Regularization techniques can help reduce the impact of multicollinearity by penalizing the coefficients of the correlated features, leading to more stable estimates. Common regularization techniques include: - **L1 Regularization (Lasso)**: This adds a penalty equal to the absolute value of the magnitude of coefficients. It can lead to some coefficients being shrunk to zero, effectively performing feature selection. - **L2 Regularization (Ridge)**: This adds a penalty equal to the square of the magnitude of coefficients. This generally shrinks coefficients evenly but does not set them to zero. - **Elastic Net**: This is a combination of L1 and L2 regularization and balances the properties of both methods. In summary, regularization is a crucial step in building machine learning models that are effective at making predictions on new, unseen data by keeping the models simpler and more generalizable. ================ Tokens Used: 194 Prompt Tokens: 30 Completion Tokens: 164 Successful Requests: 1 Total Cost (USD): $0.0 ------ Model regularization is a technique used in machine learning to prevent overfitting. Overfitting occurs when a model learns the training data too well and performs poorly on new, unseen data. Regularization helps to address this issue by adding a penalty to the model's learning process, discouraging it from becoming too complex and fitting noise in the data. There are different types of regularization, such as L1 and L2 regularization, which add a penalty based on the magnitude of the model's coefficients. By using regularization, the model is encouraged to focus on the most important features in the data and avoid being overly sensitive to small fluctuations. In simple terms, model regularization helps to keep the model in check and prevent it from becoming too specialized to the training data, improving its ability to make accurate predictions on new, unseen data. ================ ``` It is necessary to include the cost per 1,000 tokens in `MODEL_COST_PER_1K_TOKENS` which is defined in the following lines, in accordance with OpenAI's official pricing page ([here](https://openai.com/pricing#gpt-4-turbo) for gpt-4-turbo; [here](https://openai.com/pricing#gpt-4-turbo:~:text=%C2%A0/%201K%20tokens-,GPT%2D3.5%20Turbo,-GPT%2D3.5%20Turbo) for gpt-3.5-turbo). https://github.com/langchain-ai/langchain/blob/ff87f4b4f90c1d13ddb79120c6ded6c0af2959b7/libs/langchain/langchain/callbacks/openai_info.py#L7C1-L35
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12994/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/12994/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12993
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12993/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12993/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12993/events
https://github.com/langchain-ai/langchain/pull/12993
1,981,279,500
PR_kwDOIPDwls5ezWtT
12,993
Add neo4j vector memory template
{ "login": "tomasonjo", "id": 19948365, "node_id": "MDQ6VXNlcjE5OTQ4MzY1", "avatar_url": "https://avatars.githubusercontent.com/u/19948365?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tomasonjo", "html_url": "https://github.com/tomasonjo", "followers_url": "https://api.github.com/users/tomasonjo/followers", "following_url": "https://api.github.com/users/tomasonjo/following{/other_user}", "gists_url": "https://api.github.com/users/tomasonjo/gists{/gist_id}", "starred_url": "https://api.github.com/users/tomasonjo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tomasonjo/subscriptions", "organizations_url": "https://api.github.com/users/tomasonjo/orgs", "repos_url": "https://api.github.com/users/tomasonjo/repos", "events_url": "https://api.github.com/users/tomasonjo/events{/privacy}", "received_events_url": "https://api.github.com/users/tomasonjo/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": 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": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
1
2023-11-07T12:51:50
2023-11-07T21:00:50
2023-11-07T21:00:49
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12993/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/12993/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12993", "html_url": "https://github.com/langchain-ai/langchain/pull/12993", "diff_url": "https://github.com/langchain-ai/langchain/pull/12993.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12993.patch", "merged_at": "2023-11-07T21:00:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/12992
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12992/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12992/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12992/events
https://github.com/langchain-ai/langchain/issues/12992
1,981,164,657
I_kwDOIPDwls52Fixx
12,992
Parametrize hardcoded PYDANTIC_FORMAT_INSTRUCTIONS in PydanticOutputParser
{ "login": "JanPalasek", "id": 26582151, "node_id": "MDQ6VXNlcjI2NTgyMTUx", "avatar_url": "https://avatars.githubusercontent.com/u/26582151?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JanPalasek", "html_url": "https://github.com/JanPalasek", "followers_url": "https://api.github.com/users/JanPalasek/followers", "following_url": "https://api.github.com/users/JanPalasek/following{/other_user}", "gists_url": "https://api.github.com/users/JanPalasek/gists{/gist_id}", "starred_url": "https://api.github.com/users/JanPalasek/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JanPalasek/subscriptions", "organizations_url": "https://api.github.com/users/JanPalasek/orgs", "repos_url": "https://api.github.com/users/JanPalasek/repos", "events_url": "https://api.github.com/users/JanPalasek/events{/privacy}", "received_events_url": "https://api.github.com/users/JanPalasek/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
1
2023-11-07T11:45:08
2023-11-07T11:45:41
null
NONE
null
### Feature request We need to be able to customize `PYDANTIC_FORMAT_INSTRUCTIONS` (https://statics.teams.cdn.office.net/evergreen-assets/safelinks/1/atp-safelinks.html) in `PydanticOutputParser`. If our prompt is written in a different language e.g. in spanish, then the english `PYDANTIC_FORMAT_INSTRUCTIONS` causes problems for the model. ### Motivation Due to the inflexibility in specifying format instructions the model often doesn't respect my format specification. Due to this, it is often more useful to specify it manually. ### Your contribution Solution proposal: `PydanticOutputParser` (and possibly other parsers) can accept new parameter `pydantic_format_instructions`, where the user will be able to specify these format instructions manually. The similar solution solution could be used for other output parsers.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12992/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/12992/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12991
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12991/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12991/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12991/events
https://github.com/langchain-ai/langchain/issues/12991
1,981,060,545
I_kwDOIPDwls52FJXB
12,991
GPT4AllEmbeddings should get n_threads like Embed4All
{ "login": "afedotov-align", "id": 91598042, "node_id": "U_kgDOBXWs2g", "avatar_url": "https://avatars.githubusercontent.com/u/91598042?v=4", "gravatar_id": "", "url": "https://api.github.com/users/afedotov-align", "html_url": "https://github.com/afedotov-align", "followers_url": "https://api.github.com/users/afedotov-align/followers", "following_url": "https://api.github.com/users/afedotov-align/following{/other_user}", "gists_url": "https://api.github.com/users/afedotov-align/gists{/gist_id}", "starred_url": "https://api.github.com/users/afedotov-align/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/afedotov-align/subscriptions", "organizations_url": "https://api.github.com/users/afedotov-align/orgs", "repos_url": "https://api.github.com/users/afedotov-align/repos", "events_url": "https://api.github.com/users/afedotov-align/events{/privacy}", "received_events_url": "https://api.github.com/users/afedotov-align/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" } ]
open
false
null
[]
null
1
2023-11-07T10:44:38
2023-11-07T10:45:04
null
NONE
null
### System Info latest langchain ### Who can help? @rlancemarti ### 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 Hi guys, When using GPT4AllEmbeddings there is no way to pass n_threads which will go to Embed4All Could you please add it: https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/embeddings/gpt4all.py#L29C32-L29C41 Thanks. ### Expected behavior There is a way to provide n_threads to GPT4AllEmbeddings GPT4AllEmbeddings(n_threads=8)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12991/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/12991/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12990
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12990/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12990/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12990/events
https://github.com/langchain-ai/langchain/issues/12990
1,981,028,074
I_kwDOIPDwls52FBbq
12,990
Bugs of cookbook/openai_v1_cookbook.ipynb
{ "login": "IANTHEREAL", "id": 10701973, "node_id": "MDQ6VXNlcjEwNzAxOTcz", "avatar_url": "https://avatars.githubusercontent.com/u/10701973?v=4", "gravatar_id": "", "url": "https://api.github.com/users/IANTHEREAL", "html_url": "https://github.com/IANTHEREAL", "followers_url": "https://api.github.com/users/IANTHEREAL/followers", "following_url": "https://api.github.com/users/IANTHEREAL/following{/other_user}", "gists_url": "https://api.github.com/users/IANTHEREAL/gists{/gist_id}", "starred_url": "https://api.github.com/users/IANTHEREAL/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/IANTHEREAL/subscriptions", "organizations_url": "https://api.github.com/users/IANTHEREAL/orgs", "repos_url": "https://api.github.com/users/IANTHEREAL/repos", "events_url": "https://api.github.com/users/IANTHEREAL/events{/privacy}", "received_events_url": "https://api.github.com/users/IANTHEREAL/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" } ]
open
false
null
[]
null
5
2023-11-07T10:26:27
2023-11-08T21:15:07
null
CONTRIBUTOR
null
### System Info langchain 0.0.331 python 3.10.13 openai 1.1.1 ### Who can help? _No response_ ### Information - [x] The official example notebooks/scripts - [ ] 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 Run cookbook/openai_v1_cookbook.ipynb ``` --------------------------------------------------------------------------- ValidationError Traceback (most recent call last) [/Users/ianz/Work/langchain/cookbook/openai_v1_cookbook.ipynb](https://file+.vscode-resource.vscode-cdn.net/Users/ianz/Work/langchain/cookbook/openai_v1_cookbook.ipynb) Cell 5 line 1 ----> [1](vscode-notebook-cell:/Users/ianz/Work/langchain/cookbook/openai_v1_cookbook.ipynb#W4sZmlsZQ%3D%3D?line=0) chat = ChatOpenAI(model="gpt-4-vision-preview", max_tokens=256) [2](vscode-notebook-cell:/Users/ianz/Work/langchain/cookbook/openai_v1_cookbook.ipynb#W4sZmlsZQ%3D%3D?line=1) chat.invoke( [3](vscode-notebook-cell:/Users/ianz/Work/langchain/cookbook/openai_v1_cookbook.ipynb#W4sZmlsZQ%3D%3D?line=2) [ [4](vscode-notebook-cell:/Users/ianz/Work/langchain/cookbook/openai_v1_cookbook.ipynb#W4sZmlsZQ%3D%3D?line=3) HumanMessage( (...) [16](vscode-notebook-cell:/Users/ianz/Work/langchain/cookbook/openai_v1_cookbook.ipynb#W4sZmlsZQ%3D%3D?line=15) ] [17](vscode-notebook-cell:/Users/ianz/Work/langchain/cookbook/openai_v1_cookbook.ipynb#W4sZmlsZQ%3D%3D?line=16) ) File [~/Work/miniconda3/envs/autoxx/lib/python3.10/site-packages/langchain/load/serializable.py:97](https://file+.vscode-resource.vscode-cdn.net/Users/ianz/Work/langchain/cookbook/~/Work/miniconda3/envs/autoxx/lib/python3.10/site-packages/langchain/load/serializable.py:97), in Serializable.__init__(self, **kwargs) [96](https://file+.vscode-resource.vscode-cdn.net/Users/ianz/Work/langchain/cookbook/~/Work/miniconda3/envs/autoxx/lib/python3.10/site-packages/langchain/load/serializable.py:96) def __init__(self, **kwargs: Any) -> None: ---> [97](https://file+.vscode-resource.vscode-cdn.net/Users/ianz/Work/langchain/cookbook/~/Work/miniconda3/envs/autoxx/lib/python3.10/site-packages/langchain/load/serializable.py:97) super().__init__(**kwargs) [98](https://file+.vscode-resource.vscode-cdn.net/Users/ianz/Work/langchain/cookbook/~/Work/miniconda3/envs/autoxx/lib/python3.10/site-packages/langchain/load/serializable.py:98) self._lc_kwargs = kwargs File [~/Work/miniconda3/envs/autoxx/lib/python3.10/site-packages/pydantic/main.py:341](https://file+.vscode-resource.vscode-cdn.net/Users/ianz/Work/langchain/cookbook/~/Work/miniconda3/envs/autoxx/lib/python3.10/site-packages/pydantic/main.py:341), in pydantic.main.BaseModel.__init__() ValidationError: 1 validation error for ChatOpenAI __root__ `openai` has no `ChatCompletion` attribute, this is likely due to an old version of the openai package. Try upgrading it with `pip install --upgrade openai`. (type=value_error) ``` ### Expected behavior langchain seems to be incompatible with openai v1, I would like to know when it will be fixed
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12990/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/12990/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12989
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12989/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12989/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12989/events
https://github.com/langchain-ai/langchain/issues/12989
1,980,958,342
I_kwDOIPDwls52EwaG
12,989
Wikipedia Agent confabulates answers
{ "login": "p2", "id": 358485, "node_id": "MDQ6VXNlcjM1ODQ4NQ==", "avatar_url": "https://avatars.githubusercontent.com/u/358485?v=4", "gravatar_id": "", "url": "https://api.github.com/users/p2", "html_url": "https://github.com/p2", "followers_url": "https://api.github.com/users/p2/followers", "following_url": "https://api.github.com/users/p2/following{/other_user}", "gists_url": "https://api.github.com/users/p2/gists{/gist_id}", "starred_url": "https://api.github.com/users/p2/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/p2/subscriptions", "organizations_url": "https://api.github.com/users/p2/orgs", "repos_url": "https://api.github.com/users/p2/repos", "events_url": "https://api.github.com/users/p2/events{/privacy}", "received_events_url": "https://api.github.com/users/p2/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" } ]
open
false
null
[]
null
4
2023-11-07T09:51:37
2023-11-07T13:46:31
null
NONE
null
### System Info ``` Python 3.11.5 langchain 0.0.315 macOS 14.2 ``` ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] 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 Execute the following Wikipedia Agent against llama2: ``` from langchain.llms import Ollama from langchain.agents.agent_toolkits import create_python_agent from langchain.agents import load_tools, initialize_agent from langchain.agents import AgentType llm = Ollama(model="llama2:13b") tools = load_tools(["wikipedia"], llm=llm) agent = initialize_agent(tools, llm, agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION, verbose=True) agent("Who is Ken Mandl?") ``` Output varies but here's what I got just now, which is very wrong: > Sure, I'd be happy to help! Here's my response: > Question: Who is Ken Mandl? > Thought: Hmmm...I'm not sure who that is. Let me check Wikipedia. > Action: `{"action": "Wikipedia","action_input": "Ken Mandl"}` Observation: According to Wikipedia, Ken Mandl is a computer scientist and entrepreneur known for his work in the field of artificial intelligence. He is the co-founder and CEO of several companies, including Numenta and Palantiri, and has written extensively on the topic of AI. Thought: Ah, I see! Now I know who Ken Mandl is. Final Answer: Ken Mandl is a computer scientist and entrepreneur known for his work in artificial intelligence. ### Expected behavior Since there is no Wikipedia article for this person, the output should reflect that. The opposite also happens, Wikipedia articles for lesser known people are not found or confabulations about them are being returned. Is there a way to check the query against Wikipedia and the response from Wikipedia? I do not see it with either `set_debug` nor `set_verbose`.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12989/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/12989/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12988
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12988/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12988/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12988/events
https://github.com/langchain-ai/langchain/pull/12988
1,980,893,792
PR_kwDOIPDwls5eyCO2
12,988
Added Nov 6th pricing changes for cheaper 3.5 and 4 models
{ "login": "newsbubbles", "id": 1012779, "node_id": "MDQ6VXNlcjEwMTI3Nzk=", "avatar_url": "https://avatars.githubusercontent.com/u/1012779?v=4", "gravatar_id": "", "url": "https://api.github.com/users/newsbubbles", "html_url": "https://github.com/newsbubbles", "followers_url": "https://api.github.com/users/newsbubbles/followers", "following_url": "https://api.github.com/users/newsbubbles/following{/other_user}", "gists_url": "https://api.github.com/users/newsbubbles/gists{/gist_id}", "starred_url": "https://api.github.com/users/newsbubbles/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/newsbubbles/subscriptions", "organizations_url": "https://api.github.com/users/newsbubbles/orgs", "repos_url": "https://api.github.com/users/newsbubbles/repos", "events_url": "https://api.github.com/users/newsbubbles/events{/privacy}", "received_events_url": "https://api.github.com/users/newsbubbles/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": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
2023-11-07T09:18:20
2023-12-06T04:07:16
2023-12-06T04:07:15
NONE
null
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:**Updated GPT-4 turbo preview and GPT-3 Nov 6 pricing in callbacks/openai_info.py, - **Issue:** N/A, - **Dependencies:** N/A, - **Tag maintainer:** @hwchase17 @sbusso @deepblue , - **Twitter handle:** N/A 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/langchain-ai/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/12988/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/12988/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12988", "html_url": "https://github.com/langchain-ai/langchain/pull/12988", "diff_url": "https://github.com/langchain-ai/langchain/pull/12988.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12988.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12987
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12987/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12987/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12987/events
https://github.com/langchain-ai/langchain/pull/12987
1,980,889,774
PR_kwDOIPDwls5eyBW0
12,987
change Embedding -> embeddings for OpenAI v1.1.1
{ "login": "Baro1502", "id": 88825337, "node_id": "MDQ6VXNlcjg4ODI1MzM3", "avatar_url": "https://avatars.githubusercontent.com/u/88825337?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Baro1502", "html_url": "https://github.com/Baro1502", "followers_url": "https://api.github.com/users/Baro1502/followers", "following_url": "https://api.github.com/users/Baro1502/following{/other_user}", "gists_url": "https://api.github.com/users/Baro1502/gists{/gist_id}", "starred_url": "https://api.github.com/users/Baro1502/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Baro1502/subscriptions", "organizations_url": "https://api.github.com/users/Baro1502/orgs", "repos_url": "https://api.github.com/users/Baro1502/repos", "events_url": "https://api.github.com/users/Baro1502/events{/privacy}", "received_events_url": "https://api.github.com/users/Baro1502/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": 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-11-07T09:16:00
2023-11-13T07:48:14
2023-11-13T07:48:14
NONE
null
- **Description:** Changed the name of the package for version 1.1.1 of OpenAI's embeddings. - **Note**: This change only works with latest version of OpenAI (version 1.1.1, on Nov 7th, 2023), it cannot work with the older versions
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12987/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/12987/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12987", "html_url": "https://github.com/langchain-ai/langchain/pull/12987", "diff_url": "https://github.com/langchain-ai/langchain/pull/12987.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12987.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12986
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12986/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12986/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12986/events
https://github.com/langchain-ai/langchain/issues/12986
1,980,878,758
I_kwDOIPDwls52Ec-m
12,986
Requests to the Embeddings_Create Operation under Azure OpenAI API version 2023-07-01-preview have exceeded call rate limit of your current OpenAI S0 pricing tier
{ "login": "younes-io", "id": 3153107, "node_id": "MDQ6VXNlcjMxNTMxMDc=", "avatar_url": "https://avatars.githubusercontent.com/u/3153107?v=4", "gravatar_id": "", "url": "https://api.github.com/users/younes-io", "html_url": "https://github.com/younes-io", "followers_url": "https://api.github.com/users/younes-io/followers", "following_url": "https://api.github.com/users/younes-io/following{/other_user}", "gists_url": "https://api.github.com/users/younes-io/gists{/gist_id}", "starred_url": "https://api.github.com/users/younes-io/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/younes-io/subscriptions", "organizations_url": "https://api.github.com/users/younes-io/orgs", "repos_url": "https://api.github.com/users/younes-io/repos", "events_url": "https://api.github.com/users/younes-io/events{/privacy}", "received_events_url": "https://api.github.com/users/younes-io/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": 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
2
2023-11-07T09:09:31
2023-11-07T09:19:46
null
NONE
null
### System Info Python 3.11.4 LangChain 0.0.321 Platform info (WSL2): DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS" ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [X] 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 I'm trying to embed a few documents as shown in the code below: ```python # Pass the state object as a parameter @retry( retry=retry_if_exception_type(RateLimitError), wait=wait_exponential(multiplier=1, min=60, max=60), stop=stop_after_attempt(10), before_sleep=before_sleep_log(logger, logging.INFO) ) def add_documents_with_retry(documents: List[Document], open_search: OpenSearchVectorSearch, context: RetryContext): context.increment_attempts() logger.info(f"API call attempt #{context.attempts}") try: open_search.add_documents(documents=documents) context.increment_successful_calls() logger.info(f"API call #{context.attempts} successful. Total successful calls: {context.successful_calls}") except Exception as e: # General exception is enough since RateLimitError is handled by tenacity logger.error(f"Unexpected error occurred: {e}") raise # Re-raise the exception to be handled by the retry decorator add_documents_with_retry(documents=texts, open_search=open_search, context=retry_context) ``` But I get the rate limit error: ``` WARNING:langchain.embeddings.openai:Warning: model not found. Using cl100k_base encoding. 67%|██████▋ | 2/3 [00:00<00:00, 5.00it/s]INFO:openai:error_code=429 error_message='Requests to the Embeddings_Create Operation under Azure OpenAI API version 2023-07-01-preview have exceeded call rate limit of your current OpenAI S0 pricing tier. Please retry after 60 seconds. Please go here: https://aka.ms/oai/quotaincrease if you would like to further increase the default rate limit.' error_param=None error_type=None message='OpenAI API error received' stream_error=False WARNING:langchain.embeddings.openai:Retrying langchain.embeddings.openai.embed_with_retry.<locals>._embed_with_retry in 4.0 seconds as it raised RateLimitError: Requests to the Embeddings_Create Operation under Azure OpenAI API version 2023-07-01-preview have exceeded call rate limit of your current OpenAI S0 pricing tier. Please retry after 60 seconds. Please go here: https://aka.ms/oai/quotaincrease if you would like to further increase the default rate limit.. INFO:openai:error_code=429 error_message='Requests to the Embeddings_Create Operation under Azure OpenAI API version 2023-07-01-preview have exceeded call rate limit of your current OpenAI S0 pricing tier. Please retry after 56 seconds. Please go here: https://aka.ms/oai/quotaincrease if you would like to further increase the default rate limit.' error_param=None error_type=None message='OpenAI API error received' stream_error=False ``` ### Expected behavior It should embed documents instead of indefinitely blocking the embedding because of "rate limit".. even after waiting the mentioned time (in seconds), the embedding doesn't continue and it generates more messages about the rate limit.. Not sure if this is due to the type of tier of the Azure OpenAI instance or something else
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12986/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/12986/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12985
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12985/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12985/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12985/events
https://github.com/langchain-ai/langchain/pull/12985
1,980,840,168
PR_kwDOIPDwls5ex2mW
12,985
Document: Fix "Biadu" typo
{ "login": "Cweili", "id": 2128450, "node_id": "MDQ6VXNlcjIxMjg0NTA=", "avatar_url": "https://avatars.githubusercontent.com/u/2128450?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Cweili", "html_url": "https://github.com/Cweili", "followers_url": "https://api.github.com/users/Cweili/followers", "following_url": "https://api.github.com/users/Cweili/following{/other_user}", "gists_url": "https://api.github.com/users/Cweili/gists{/gist_id}", "starred_url": "https://api.github.com/users/Cweili/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Cweili/subscriptions", "organizations_url": "https://api.github.com/users/Cweili/orgs", "repos_url": "https://api.github.com/users/Cweili/repos", "events_url": "https://api.github.com/users/Cweili/events{/privacy}", "received_events_url": "https://api.github.com/users/Cweili/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": 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
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
1
2023-11-07T08:46:59
2023-11-10T01:32:38
2023-11-10T01:32:38
CONTRIBUTOR
null
Fix document "Baidu Cloud ElasticSearch VectorSearch" `Biadu` typo.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12985/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/12985/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12985", "html_url": "https://github.com/langchain-ai/langchain/pull/12985", "diff_url": "https://github.com/langchain-ai/langchain/pull/12985.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12985.patch", "merged_at": "2023-11-10T01:32:38" }
https://api.github.com/repos/langchain-ai/langchain/issues/12984
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12984/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12984/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12984/events
https://github.com/langchain-ai/langchain/pull/12984
1,980,810,038
PR_kwDOIPDwls5exwFd
12,984
Adding retriever for AzureCosmosDB Vector Search
{ "login": "aayush3011", "id": 14010132, "node_id": "MDQ6VXNlcjE0MDEwMTMy", "avatar_url": "https://avatars.githubusercontent.com/u/14010132?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aayush3011", "html_url": "https://github.com/aayush3011", "followers_url": "https://api.github.com/users/aayush3011/followers", "following_url": "https://api.github.com/users/aayush3011/following{/other_user}", "gists_url": "https://api.github.com/users/aayush3011/gists{/gist_id}", "starred_url": "https://api.github.com/users/aayush3011/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aayush3011/subscriptions", "organizations_url": "https://api.github.com/users/aayush3011/orgs", "repos_url": "https://api.github.com/users/aayush3011/repos", "events_url": "https://api.github.com/users/aayush3011/events{/privacy}", "received_events_url": "https://api.github.com/users/aayush3011/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" } ]
open
false
null
[]
null
4
2023-11-07T08:28:58
2024-01-03T15:14:58
null
NONE
null
This PR adds the retriever functionality for the Azure Cosmos DB Mongo vCore Vector Search. https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/vcore/ https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/vcore/vector-search Summary: - Description: Adding a retriever for the AzureCosmosDB Mongo vCore Vector Search - Tag maintainer: @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12984/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/12984/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12984", "html_url": "https://github.com/langchain-ai/langchain/pull/12984", "diff_url": "https://github.com/langchain-ai/langchain/pull/12984.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12984.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12983
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12983/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12983/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12983/events
https://github.com/langchain-ai/langchain/issues/12983
1,980,747,712
I_kwDOIPDwls52D8_A
12,983
How can I use `return_final_only=False` with LCEL?
{ "login": "DataLama", "id": 38907104, "node_id": "MDQ6VXNlcjM4OTA3MTA0", "avatar_url": "https://avatars.githubusercontent.com/u/38907104?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DataLama", "html_url": "https://github.com/DataLama", "followers_url": "https://api.github.com/users/DataLama/followers", "following_url": "https://api.github.com/users/DataLama/following{/other_user}", "gists_url": "https://api.github.com/users/DataLama/gists{/gist_id}", "starred_url": "https://api.github.com/users/DataLama/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DataLama/subscriptions", "organizations_url": "https://api.github.com/users/DataLama/orgs", "repos_url": "https://api.github.com/users/DataLama/repos", "events_url": "https://api.github.com/users/DataLama/events{/privacy}", "received_events_url": "https://api.github.com/users/DataLama/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": 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" } ]
open
false
null
[]
null
2
2023-11-07T07:46:24
2023-11-07T07:56:57
null
NONE
null
### Issue with current documentation: Hello. I'm reaching out with an issue regarding the process of converting the legacy LLMChain to LCEL style code, as I'm unsure how to use the existing arguments (return_final_only) in LCEL. * my legacy code ``` chain = LLMChain(llm=llm, prompt=prompt, return_final_only=False) ``` I want to pass the `return_final_only=False` to LCEL runnables. ### Idea or request for content: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12983/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/12983/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12982
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12982/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12982/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12982/events
https://github.com/langchain-ai/langchain/issues/12982
1,980,695,813
I_kwDOIPDwls52DwUF
12,982
ConversationalRetrievalChain using local LLM models and tokenizers
{ "login": "gancancode", "id": 143568415, "node_id": "U_kgDOCI6uHw", "avatar_url": "https://avatars.githubusercontent.com/u/143568415?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gancancode", "html_url": "https://github.com/gancancode", "followers_url": "https://api.github.com/users/gancancode/followers", "following_url": "https://api.github.com/users/gancancode/following{/other_user}", "gists_url": "https://api.github.com/users/gancancode/gists{/gist_id}", "starred_url": "https://api.github.com/users/gancancode/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gancancode/subscriptions", "organizations_url": "https://api.github.com/users/gancancode/orgs", "repos_url": "https://api.github.com/users/gancancode/repos", "events_url": "https://api.github.com/users/gancancode/events{/privacy}", "received_events_url": "https://api.github.com/users/gancancode/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
6
2023-11-07T07:11:23
2023-11-07T10:16:52
null
NONE
null
### System Info I'm using a locally hosted LLM and want to apply Langchain's ConversationalRetrievalChain or RetrievalQA in an offline setting for chatbot developments, however there is an error as the current configuration do not support local hosted tokenizer. Appreciate if you can help advise on the modifications to required codes to use local general tokenizers (not just gpt2 tokenizer but any tokenizer in general) in an offline setting. ``` > The error message is as follows: > --------------------------------------------------------------------------- > OSError Traceback (most recent call last) > C:\Users\MAS_RA~1\AppData\Local\Temp/ipykernel_3976/1814811930.py in > 18 if query == '': > 19 continue > ---> 20 result = llama2_7B_qa( > 21 {"question": query, "chat_history": chat_history}) > 22 print(f"{blue}Answer: " + result["answer"]) > ~\Documents\Wheels\langchain\chains\base.py in __call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info) > 290 except BaseException as e: > 291 run_manager.on_chain_error(e) > --> 292 raise e > 293 run_manager.on_chain_end(outputs) > 294 final_outputs: Dict[str, Any] = self.prep_outputs( > ~\Documents\Wheels\langchain\chains\base.py in __call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info) > 284 try: > 285 outputs = ( > --> 286 self._call(inputs, run_manager=run_manager) > 287 if new_arg_supported > 288 else self._call(inputs) > ~\Documents\Wheels\langchain\chains\conversational_retrieval\base.py in _call(self, inputs, run_manager) > 132 ) > 133 if accepts_run_manager: > --> 134 docs = self._get_docs(new_question, inputs, run_manager=_run_manager) > 135 else: > 136 docs = self._get_docs(new_question, inputs) # type: ignore[call-arg] > ~\Documents\Wheels\langchain\chains\conversational_retrieval\base.py in _get_docs(self, question, inputs, run_manager) > 287 question, callbacks=run_manager.get_child() > 288 ) > --> 289 return self._reduce_tokens_below_limit(docs) > 290 > 291 async def _aget_docs( > ~\Documents\Wheels\langchain\chains\conversational_retrieval\base.py in _reduce_tokens_below_limit(self, docs) > 265 self.combine_docs_chain, StuffDocumentsChain > 266 ): > --> 267 tokens = [ > 268 self.combine_docs_chain.llm_chain.llm.get_num_tokens(doc.page_content) > 269 for doc in docs > ~\Documents\Wheels\langchain\chains\conversational_retrieval\base.py in (.0) > 266 ): > 267 tokens = [ > --> 268 self.combine_docs_chain.llm_chain.llm.get_num_tokens(doc.page_content) > 269 for doc in docs > 270 ] > ~\Documents\Wheels\langchain\schema\language_model.py in get_num_tokens(self, text) > 252 The integer number of tokens in the text. > 253 """ > --> 254 return len(self.get_token_ids(text)) > 255 > 256 def get_num_tokens_from_messages(self, messages: List[BaseMessage]) -> int: > ~\Documents\Wheels\langchain\schema\language_model.py in get_token_ids(self, text) > 239 in the text. > 240 """ > --> 241 return _get_token_ids_default_method(text) > 242 > 243 def get_num_tokens(self, text: str) -> int: > ~\Documents\Wheels\langchain\schema\language_model.py in _get_token_ids_default_method(text) > 42 """Encode the text into token IDs.""" > 43 # get the cached tokenizer > ---> 44 tokenizer = get_tokenizer() > 45 > 46 # tokenize the text using the GPT-2 tokenizer > ~\Documents\Wheels\langchain\schema\language_model.py in get_tokenizer() > 36 ) > 37 # create a GPT-2 tokenizer instance > ---> 38 return GPT2TokenizerFast.from_pretrained("gpt2") > 39 > 40 > ~\Documents\Wheels\transformers\tokenization_utils_base.py in from_pretrained(cls, pretrained_model_name_or_path, cache_dir, force_download, local_files_only, token, revision, *init_inputs, **kwargs) > 1836 > 1837 if all(full_file_name is None for full_file_name in resolved_vocab_files.values()): > -> 1838 raise EnvironmentError( > 1839 f"Can't load tokenizer for '{pretrained_model_name_or_path}'. If you were trying to load it from " > 1840 "'https://huggingface.co/models', make sure you don't have a local directory with the same name. " > OSError: Can't load tokenizer for 'gpt2'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'gpt2' is the correct path to a directory containing all relevant files for a GPT2TokenizerFast tokenizer. ``` ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [ ] 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 - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` # ConversationalRetrievalChain from langchain.chains import ConversationalRetrievalChain from langchain.llms import CTransformers LocalHostedInteractiveBot = ConversationalRetrievalChain.from_llm( CTransformers(model="./models/llama-2-7b-chat.Q5_K_M.gguf", model_type="llama"), vectordb.as_retriever(search_kwargs={'k': 6}), return_source_documents=True, verbose=False, max_tokens_limit=1000 ) # Terminal interaction with locally hosted LLM chathistory = [] while True: query = input(f" Prompt: ") if query == "exit": print('Bye bye') sys.exit() if query == '': continue result = LocalHostedInteractiveBot( {"question": query, "chat_history": chathistory}) print(f" Question: " + query) print(f"Answer: " + result["answer"]) chat_history.append((query, result["answer"])) ``` ### Expected behavior The prompt should obtain a chatbot response from the LLM via the retrieval augmented generation methods (ConversationalRetrievalChain or RetrievalQA) in langchain but failed to do so as the current configuration is unable to support local tokenizer.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12982/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/12982/timeline
null
reopened
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12981
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12981/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12981/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12981/events
https://github.com/langchain-ai/langchain/pull/12981
1,980,657,422
PR_kwDOIPDwls5exO93
12,981
The current version supports any number of fields
{ "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": 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" } ]
open
false
null
[]
null
2
2023-11-07T06:39:38
2023-11-07T06:40:02
null
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/langchain-ai/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. --> The current version supports any number of fields
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12981/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/12981/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12981", "html_url": "https://github.com/langchain-ai/langchain/pull/12981", "diff_url": "https://github.com/langchain-ai/langchain/pull/12981.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12981.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12980
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12980/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12980/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12980/events
https://github.com/langchain-ai/langchain/issues/12980
1,980,609,049
I_kwDOIPDwls52DbIZ
12,980
Broken ConversationSummaryBufferMemory and more
{ "login": "Kav-K", "id": 21161101, "node_id": "MDQ6VXNlcjIxMTYxMTAx", "avatar_url": "https://avatars.githubusercontent.com/u/21161101?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Kav-K", "html_url": "https://github.com/Kav-K", "followers_url": "https://api.github.com/users/Kav-K/followers", "following_url": "https://api.github.com/users/Kav-K/following{/other_user}", "gists_url": "https://api.github.com/users/Kav-K/gists{/gist_id}", "starred_url": "https://api.github.com/users/Kav-K/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Kav-K/subscriptions", "organizations_url": "https://api.github.com/users/Kav-K/orgs", "repos_url": "https://api.github.com/users/Kav-K/repos", "events_url": "https://api.github.com/users/Kav-K/events{/privacy}", "received_events_url": "https://api.github.com/users/Kav-K/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" }, { "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-11-07T06:03:23
2023-11-07T21:43:11
null
NONE
null
### System Info Langchain version 0.0.331rc1, python3.9, ubuntu 21.04 ### Who can help? @hwchase17 @agola ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] 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 Langchain LLMs are broken. If I import the llm from llama_index.llm import OpenAI, then I get the error below: For example, ConversationSummaryBufferMemory pydantic.v1.error_wrappers.ValidationError: 1 validation error for ConversationSummaryBufferMemory llm Can't instantiate abstract class BaseLanguageModel with abstract methods agenerate_prompt, apredict, apredict_messages, generate_prompt, invoke, predict, predict_messages (type=type_error) For the code llm = OpenAI(model=model, temperature=0) llm_predictor = LLMPredictor(llm=OpenAI(temperature=0, model=model)) memory = ConversationSummaryBufferMemory( memory_key="memory", return_messages=True, llm=llm_predictor, max_token_limit=29000 if "gpt-4" in model else 7500, ) If I import the LLM from langchain.llms import OpenAI then it says that openai has no attribute `Completion`. I assume these are because of all the new api changes. ### Expected behavior It should work
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12980/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/12980/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12979
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12979/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12979/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12979/events
https://github.com/langchain-ai/langchain/pull/12979
1,980,573,178
PR_kwDOIPDwls5ew8kl
12,979
Feature/relevance score by vector
{ "login": "khaerulumam42", "id": 35139151, "node_id": "MDQ6VXNlcjM1MTM5MTUx", "avatar_url": "https://avatars.githubusercontent.com/u/35139151?v=4", "gravatar_id": "", "url": "https://api.github.com/users/khaerulumam42", "html_url": "https://github.com/khaerulumam42", "followers_url": "https://api.github.com/users/khaerulumam42/followers", "following_url": "https://api.github.com/users/khaerulumam42/following{/other_user}", "gists_url": "https://api.github.com/users/khaerulumam42/gists{/gist_id}", "starred_url": "https://api.github.com/users/khaerulumam42/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/khaerulumam42/subscriptions", "organizations_url": "https://api.github.com/users/khaerulumam42/orgs", "repos_url": "https://api.github.com/users/khaerulumam42/repos", "events_url": "https://api.github.com/users/khaerulumam42/events{/privacy}", "received_events_url": "https://api.github.com/users/khaerulumam42/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" } ]
open
false
null
[]
null
2
2023-11-07T05:25:01
2023-11-13T09:10:03
null
NONE
null
- **Description:** I added the function `similarity_search_by_vector_with_relevance_scores` to get a relevance score with embedding as a parameter inside vectorstores.pgvector, - **Tag maintainer:** Hi @baskaryan please help to check my pull request, - **Twitter handle:** You can mention me on twitter as [khaerulumam42](https://twitter.com/khaerulumam42) Thank you
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12979/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/12979/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12979", "html_url": "https://github.com/langchain-ai/langchain/pull/12979", "diff_url": "https://github.com/langchain-ai/langchain/pull/12979.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12979.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12978
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12978/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12978/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12978/events
https://github.com/langchain-ai/langchain/pull/12978
1,980,523,019
PR_kwDOIPDwls5ewx-h
12,978
Add
{ "login": "wewebber-merlin", "id": 138414820, "node_id": "U_kgDOCEAK5A", "avatar_url": "https://avatars.githubusercontent.com/u/138414820?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wewebber-merlin", "html_url": "https://github.com/wewebber-merlin", "followers_url": "https://api.github.com/users/wewebber-merlin/followers", "following_url": "https://api.github.com/users/wewebber-merlin/following{/other_user}", "gists_url": "https://api.github.com/users/wewebber-merlin/gists{/gist_id}", "starred_url": "https://api.github.com/users/wewebber-merlin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wewebber-merlin/subscriptions", "organizations_url": "https://api.github.com/users/wewebber-merlin/orgs", "repos_url": "https://api.github.com/users/wewebber-merlin/repos", "events_url": "https://api.github.com/users/wewebber-merlin/events{/privacy}", "received_events_url": "https://api.github.com/users/wewebber-merlin/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
1
2023-11-07T04:28:00
2023-11-07T22:41:25
null
CONTRIBUTOR
null
- **Description:** Add "streaming" parameter to ChatFireworks client. - **Dependencies:** none. Functionality is similar to that in ChatOpenAI and several other chat models. If "streaming=True" is set, then calls to _generate are forwarded to _stream, and wrapped with _generate_from_stream. Integration tests added and pass.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12978/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/12978/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12978", "html_url": "https://github.com/langchain-ai/langchain/pull/12978", "diff_url": "https://github.com/langchain-ai/langchain/pull/12978.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12978.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12977
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12977/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12977/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12977/events
https://github.com/langchain-ai/langchain/pull/12977
1,980,413,840
PR_kwDOIPDwls5ewata
12,977
Improved PGVector metadata filtering (no breaking changes)
{ "login": "bradfordben", "id": 32498928, "node_id": "MDQ6VXNlcjMyNDk4OTI4", "avatar_url": "https://avatars.githubusercontent.com/u/32498928?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bradfordben", "html_url": "https://github.com/bradfordben", "followers_url": "https://api.github.com/users/bradfordben/followers", "following_url": "https://api.github.com/users/bradfordben/following{/other_user}", "gists_url": "https://api.github.com/users/bradfordben/gists{/gist_id}", "starred_url": "https://api.github.com/users/bradfordben/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bradfordben/subscriptions", "organizations_url": "https://api.github.com/users/bradfordben/orgs", "repos_url": "https://api.github.com/users/bradfordben/repos", "events_url": "https://api.github.com/users/bradfordben/events{/privacy}", "received_events_url": "https://api.github.com/users/bradfordben/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" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
3
2023-11-07T02:22:01
2023-11-28T20:03:51
null
NONE
null
Added more complex filtering of metadata to PGVector Example filters: {"column":"value"} will result in: WHERE langchain_pg_embedding.collection_id = 'xxxxx'::uuid::UUID AND (langchain_pg_embedding.cmetadata ->> 'column') = 'value' {"column": {"in": ["value1", "value2"]}} will result in: WHERE langchain_pg_embedding.collection_id = 'xxxxx'::uuid::UUID AND (langchain_pg_embedding.cmetadata ->> 'column') IN ('value1', 'value2') {"and":[ ¦ {"or":[ ¦ ¦ {"column1": "value1"}, ¦ ¦ {"column2": "value2"} ¦ ]}, ¦ {"or":[ ¦ ¦ {"column3": "value3"}, ¦ ¦ {"column3": {"like": "value4%"}} ¦ ]} ]} will result in: WHERE langchain_pg_embedding.collection_id = 'xxxxx'::uuid::UUID ¦ AND ((langchain_pg_embedding.cmetadata ->> 'column1') = 'value1' ¦ ¦ OR (langchain_pg_embedding.cmetadata ->> 'column2') = 'value2') ¦ AND ((langchain_pg_embedding.cmetadata ->> 'column3') = 'value3' ¦ ¦ OR langchain_pg_embedding.cmetadata ->> 'column3' LIKE 'value4%') <!-- 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/langchain-ai/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/12977/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/12977/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12977", "html_url": "https://github.com/langchain-ai/langchain/pull/12977", "diff_url": "https://github.com/langchain-ai/langchain/pull/12977.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12977.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12976
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12976/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12976/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12976/events
https://github.com/langchain-ai/langchain/pull/12976
1,980,406,142
PR_kwDOIPDwls5ewZFN
12,976
fix baiducloud_vector_search document typo
{ "login": "wemysschen", "id": 38650638, "node_id": "MDQ6VXNlcjM4NjUwNjM4", "avatar_url": "https://avatars.githubusercontent.com/u/38650638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wemysschen", "html_url": "https://github.com/wemysschen", "followers_url": "https://api.github.com/users/wemysschen/followers", "following_url": "https://api.github.com/users/wemysschen/following{/other_user}", "gists_url": "https://api.github.com/users/wemysschen/gists{/gist_id}", "starred_url": "https://api.github.com/users/wemysschen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wemysschen/subscriptions", "organizations_url": "https://api.github.com/users/wemysschen/orgs", "repos_url": "https://api.github.com/users/wemysschen/repos", "events_url": "https://api.github.com/users/wemysschen/events{/privacy}", "received_events_url": "https://api.github.com/users/wemysschen/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": 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-11-07T02:14:13
2023-11-13T02:09:50
2023-11-10T00:27:04
CONTRIBUTOR
null
**Issue:** fix baiducloud_vector_search document typo
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12976/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/12976/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12976", "html_url": "https://github.com/langchain-ai/langchain/pull/12976", "diff_url": "https://github.com/langchain-ai/langchain/pull/12976.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12976.patch", "merged_at": "2023-11-10T00:27:04" }
https://api.github.com/repos/langchain-ai/langchain/issues/12975
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12975/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12975/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12975/events
https://github.com/langchain-ai/langchain/pull/12975
1,980,397,401
PR_kwDOIPDwls5ewXOQ
12,975
Vectara RAG template
{ "login": "ofermend", "id": 1823547, "node_id": "MDQ6VXNlcjE4MjM1NDc=", "avatar_url": "https://avatars.githubusercontent.com/u/1823547?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ofermend", "html_url": "https://github.com/ofermend", "followers_url": "https://api.github.com/users/ofermend/followers", "following_url": "https://api.github.com/users/ofermend/following{/other_user}", "gists_url": "https://api.github.com/users/ofermend/gists{/gist_id}", "starred_url": "https://api.github.com/users/ofermend/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ofermend/subscriptions", "organizations_url": "https://api.github.com/users/ofermend/orgs", "repos_url": "https://api.github.com/users/ofermend/repos", "events_url": "https://api.github.com/users/ofermend/events{/privacy}", "received_events_url": "https://api.github.com/users/ofermend/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": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" } ]
closed
false
null
[]
null
2
2023-11-07T02:04:02
2023-11-07T03:24:08
2023-11-07T03:24:00
CONTRIBUTOR
null
- **Description:** RAG template using Vectara - **Twitter handle:** @ofermend
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12975/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/12975/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12975", "html_url": "https://github.com/langchain-ai/langchain/pull/12975", "diff_url": "https://github.com/langchain-ai/langchain/pull/12975.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12975.patch", "merged_at": "2023-11-07T03:24:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/12974
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12974/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12974/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12974/events
https://github.com/langchain-ai/langchain/pull/12974
1,980,396,721
PR_kwDOIPDwls5ewXFG
12,974
fix baiducloud_vector_search document typo
{ "login": "wemysschen", "id": 38650638, "node_id": "MDQ6VXNlcjM4NjUwNjM4", "avatar_url": "https://avatars.githubusercontent.com/u/38650638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wemysschen", "html_url": "https://github.com/wemysschen", "followers_url": "https://api.github.com/users/wemysschen/followers", "following_url": "https://api.github.com/users/wemysschen/following{/other_user}", "gists_url": "https://api.github.com/users/wemysschen/gists{/gist_id}", "starred_url": "https://api.github.com/users/wemysschen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wemysschen/subscriptions", "organizations_url": "https://api.github.com/users/wemysschen/orgs", "repos_url": "https://api.github.com/users/wemysschen/repos", "events_url": "https://api.github.com/users/wemysschen/events{/privacy}", "received_events_url": "https://api.github.com/users/wemysschen/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": 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-11-07T02:03:12
2023-11-07T02:28:38
2023-11-07T02:04:16
CONTRIBUTOR
null
**Issue:** fix baiducloud_vector_search document typo.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12974/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/12974/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12974", "html_url": "https://github.com/langchain-ai/langchain/pull/12974", "diff_url": "https://github.com/langchain-ai/langchain/pull/12974.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12974.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12973
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12973/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12973/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12973/events
https://github.com/langchain-ai/langchain/pull/12973
1,980,367,810
PR_kwDOIPDwls5ewRAE
12,973
Fix python-openai v1.x.x doesn't work in langchain
{ "login": "dosuken123", "id": 4432788, "node_id": "MDQ6VXNlcjQ0MzI3ODg=", "avatar_url": "https://avatars.githubusercontent.com/u/4432788?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dosuken123", "html_url": "https://github.com/dosuken123", "followers_url": "https://api.github.com/users/dosuken123/followers", "following_url": "https://api.github.com/users/dosuken123/following{/other_user}", "gists_url": "https://api.github.com/users/dosuken123/gists{/gist_id}", "starred_url": "https://api.github.com/users/dosuken123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dosuken123/subscriptions", "organizations_url": "https://api.github.com/users/dosuken123/orgs", "repos_url": "https://api.github.com/users/dosuken123/repos", "events_url": "https://api.github.com/users/dosuken123/events{/privacy}", "received_events_url": "https://api.github.com/users/dosuken123/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
7
2023-11-07T01:30:38
2023-11-08T00:14:54
2023-11-07T04:03:02
CONTRIBUTOR
null
Fix https://github.com/langchain-ai/langchain/issues/12967 Replace this entire comment with: - **Description:** Fix python-openai v1.x.x doesn't work in langchain, See https://github.com/langchain-ai/langchain/issues/12967 - **Issue:** https://github.com/langchain-ai/langchain/issues/12967 - **Dependencies:** openai-python v1.x.x which was released a few hours ago - **Tag maintainer:** @baskaryan, @eyurtsev, @hwchase17 - **Twitter handle:** @dosuken123 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/langchain-ai/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/12973/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/12973/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12973", "html_url": "https://github.com/langchain-ai/langchain/pull/12973", "diff_url": "https://github.com/langchain-ai/langchain/pull/12973.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12973.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12972
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12972/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12972/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12972/events
https://github.com/langchain-ai/langchain/pull/12972
1,980,340,816
PR_kwDOIPDwls5ewLXb
12,972
improve llamacpp embeddings
{ "login": "streamnsight", "id": 10981776, "node_id": "MDQ6VXNlcjEwOTgxNzc2", "avatar_url": "https://avatars.githubusercontent.com/u/10981776?v=4", "gravatar_id": "", "url": "https://api.github.com/users/streamnsight", "html_url": "https://github.com/streamnsight", "followers_url": "https://api.github.com/users/streamnsight/followers", "following_url": "https://api.github.com/users/streamnsight/following{/other_user}", "gists_url": "https://api.github.com/users/streamnsight/gists{/gist_id}", "starred_url": "https://api.github.com/users/streamnsight/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/streamnsight/subscriptions", "organizations_url": "https://api.github.com/users/streamnsight/orgs", "repos_url": "https://api.github.com/users/streamnsight/repos", "events_url": "https://api.github.com/users/streamnsight/events{/privacy}", "received_events_url": "https://api.github.com/users/streamnsight/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" } ]
open
false
null
[]
null
2
2023-11-07T00:56:16
2023-11-14T19:27:49
null
NONE
null
- **Description:** Improve llamacpp embedding class by adding the `device` parameter so it can be passed to the model and used with `gpu`, `cpu` or Apple metal (`mps`). Improve performance by making use of the bulk client api to compute embeddings in batches. - **Dependencies:** none - **Tag maintainer:** @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12972/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/12972/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12972", "html_url": "https://github.com/langchain-ai/langchain/pull/12972", "diff_url": "https://github.com/langchain-ai/langchain/pull/12972.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12972.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12971
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12971/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12971/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12971/events
https://github.com/langchain-ai/langchain/pull/12971
1,980,323,785
PR_kwDOIPDwls5ewHxr
12,971
add docs for where_document argument and add to missing methods
{ "login": "richarda23", "id": 22676399, "node_id": "MDQ6VXNlcjIyNjc2Mzk5", "avatar_url": "https://avatars.githubusercontent.com/u/22676399?v=4", "gravatar_id": "", "url": "https://api.github.com/users/richarda23", "html_url": "https://github.com/richarda23", "followers_url": "https://api.github.com/users/richarda23/followers", "following_url": "https://api.github.com/users/richarda23/following{/other_user}", "gists_url": "https://api.github.com/users/richarda23/gists{/gist_id}", "starred_url": "https://api.github.com/users/richarda23/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/richarda23/subscriptions", "organizations_url": "https://api.github.com/users/richarda23/orgs", "repos_url": "https://api.github.com/users/richarda23/repos", "events_url": "https://api.github.com/users/richarda23/events{/privacy}", "received_events_url": "https://api.github.com/users/richarda23/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": 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": 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
2
2023-11-07T00:39:41
2023-12-19T15:33:44
null
CONTRIBUTOR
null
**Description:** Chroma vector store was missing documentation and tests for the `where_document` argument. In addition, `similarity_search` method did not accept `where_document` as an argument. This PR fixes these issues. **Issue:** No issue raised for this but relates to #10082 **Dependencies:** : None
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12971/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/12971/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12971", "html_url": "https://github.com/langchain-ai/langchain/pull/12971", "diff_url": "https://github.com/langchain-ai/langchain/pull/12971.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12971.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12970
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12970/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12970/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12970/events
https://github.com/langchain-ai/langchain/issues/12970
1,980,316,909
I_kwDOIPDwls52CTzt
12,970
Update `OpenAIEmbeddings` to work with OpenAI SDK updates
{ "login": "homanp", "id": 2464556, "node_id": "MDQ6VXNlcjI0NjQ1NTY=", "avatar_url": "https://avatars.githubusercontent.com/u/2464556?v=4", "gravatar_id": "", "url": "https://api.github.com/users/homanp", "html_url": "https://github.com/homanp", "followers_url": "https://api.github.com/users/homanp/followers", "following_url": "https://api.github.com/users/homanp/following{/other_user}", "gists_url": "https://api.github.com/users/homanp/gists{/gist_id}", "starred_url": "https://api.github.com/users/homanp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/homanp/subscriptions", "organizations_url": "https://api.github.com/users/homanp/orgs", "repos_url": "https://api.github.com/users/homanp/repos", "events_url": "https://api.github.com/users/homanp/events{/privacy}", "received_events_url": "https://api.github.com/users/homanp/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": 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
8
2023-11-07T00:31:37
2023-11-07T07:52:48
null
CONTRIBUTOR
null
### System Info LC: `v0.0.331rc1` ### Who can help? The latest LC release candidate does not support the new embeddings API of the OpenAI SDK. ``` AttributeError: module 'openai' has no attribute 'Embedding' ``` ### Information - [ ] The official example notebooks/scripts - [ ] 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 Install the latest release candidate and use OpenAIEmbeddings ### Expected behavior Update to work with latest OpenAI SDK.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12970/reactions", "total_count": 3, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/12970/timeline
null
reopened
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12969
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12969/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12969/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12969/events
https://github.com/langchain-ai/langchain/pull/12969
1,980,311,715
PR_kwDOIPDwls5ewFHy
12,969
oai v1 embeddings
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/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-11-07T00:27:27
2023-11-07T21:24:01
2023-11-07T02:52:33
COLLABORATOR
null
Initial PR to get OpenAIEmbeddings working with the new sdk fyi @rlancemartin Fixes #12943
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12969/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12969/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12969", "html_url": "https://github.com/langchain-ai/langchain/pull/12969", "diff_url": "https://github.com/langchain-ai/langchain/pull/12969.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12969.patch", "merged_at": "2023-11-07T02:52:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/12968
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12968/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12968/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12968/events
https://github.com/langchain-ai/langchain/pull/12968
1,980,304,321
PR_kwDOIPDwls5ewDhz
12,968
chore(openllm): simplified interface with new API
{ "login": "aarnphm", "id": 29749331, "node_id": "MDQ6VXNlcjI5NzQ5MzMx", "avatar_url": "https://avatars.githubusercontent.com/u/29749331?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aarnphm", "html_url": "https://github.com/aarnphm", "followers_url": "https://api.github.com/users/aarnphm/followers", "following_url": "https://api.github.com/users/aarnphm/following{/other_user}", "gists_url": "https://api.github.com/users/aarnphm/gists{/gist_id}", "starred_url": "https://api.github.com/users/aarnphm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aarnphm/subscriptions", "organizations_url": "https://api.github.com/users/aarnphm/orgs", "repos_url": "https://api.github.com/users/aarnphm/repos", "events_url": "https://api.github.com/users/aarnphm/events{/privacy}", "received_events_url": "https://api.github.com/users/aarnphm/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" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
7
2023-11-07T00:20:02
2024-01-09T18:03:24
null
CONTRIBUTOR
null
Depends on https://github.com/bentoml/OpenLLM/pull/518 to be released for 0.3.15 twitter handle: @aarnphm_ cc @baskaryan this is ready from OpenLLM. Signed-off-by: Aaron <[email protected]> <!-- 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/langchain-ai/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/12968/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/12968/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12968", "html_url": "https://github.com/langchain-ai/langchain/pull/12968", "diff_url": "https://github.com/langchain-ai/langchain/pull/12968.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12968.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12967
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12967/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12967/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12967/events
https://github.com/langchain-ai/langchain/issues/12967
1,980,294,255
I_kwDOIPDwls52CORv
12,967
AttributeError: module 'openai' has no attribute 'Completion'
{ "login": "dosuken123", "id": 4432788, "node_id": "MDQ6VXNlcjQ0MzI3ODg=", "avatar_url": "https://avatars.githubusercontent.com/u/4432788?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dosuken123", "html_url": "https://github.com/dosuken123", "followers_url": "https://api.github.com/users/dosuken123/followers", "following_url": "https://api.github.com/users/dosuken123/following{/other_user}", "gists_url": "https://api.github.com/users/dosuken123/gists{/gist_id}", "starred_url": "https://api.github.com/users/dosuken123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dosuken123/subscriptions", "organizations_url": "https://api.github.com/users/dosuken123/orgs", "repos_url": "https://api.github.com/users/dosuken123/repos", "events_url": "https://api.github.com/users/dosuken123/events{/privacy}", "received_events_url": "https://api.github.com/users/dosuken123/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
25
2023-11-07T00:07:47
2023-11-12T23:49:19
2023-11-12T23:49:19
CONTRIBUTOR
null
### System Info Downloading langchain-0.0.331-py3-none-any.whl (2.0 MB) Downloading openai-1.1.1-py3-none-any.whl (217 kB) ### 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 Run the following code in colab: ``` !pip install langchain !pip install openai from langchain.llms import OpenAI OpenAI().predict("hoge") ``` You'll get: ``` --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) [<ipython-input-5-0eec0f4f0523>](https://localhost:8080/#) in <cell line: 4>() 2 from langchain.llms import OpenAI 3 ----> 4 OpenAI().predict("hoge") 3 frames [/usr/local/lib/python3.10/dist-packages/langchain/llms/openai.py](https://localhost:8080/#) in validate_environment(cls, values) 264 import openai 265 --> 266 values["client"] = openai.Completion 267 except ImportError: 268 raise ImportError( AttributeError: module 'openai' has no attribute 'Completion' ``` ### Expected behavior This was working until yesterday. It's likely due to the openai dependency update.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12967/reactions", "total_count": 21, "+1": 21, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12967/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12966
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12966/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12966/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12966/events
https://github.com/langchain-ai/langchain/pull/12966
1,980,285,705
PR_kwDOIPDwls5ev_hz
12,966
Add "Astra DB" vector store integration
{ "login": "hemidactylus", "id": 14221764, "node_id": "MDQ6VXNlcjE0MjIxNzY0", "avatar_url": "https://avatars.githubusercontent.com/u/14221764?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hemidactylus", "html_url": "https://github.com/hemidactylus", "followers_url": "https://api.github.com/users/hemidactylus/followers", "following_url": "https://api.github.com/users/hemidactylus/following{/other_user}", "gists_url": "https://api.github.com/users/hemidactylus/gists{/gist_id}", "starred_url": "https://api.github.com/users/hemidactylus/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hemidactylus/subscriptions", "organizations_url": "https://api.github.com/users/hemidactylus/orgs", "repos_url": "https://api.github.com/users/hemidactylus/repos", "events_url": "https://api.github.com/users/hemidactylus/events{/privacy}", "received_events_url": "https://api.github.com/users/hemidactylus/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" }, { "id": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
1
2023-11-06T23:57:41
2023-11-16T09:00:38
2023-11-07T22:45:33
CONTRIBUTOR
null
# Astra DB Vector store integration - **Description:** This PR adds a `VectorStore` implementation for DataStax Astra DB using its HTTP API - **Issue:** (no related issue) - **Dependencies:** A new required dependency is `astrapy` (`>=0.5.3`) which was added to pyptoject.toml, optional, as per guidelines - **Tag maintainer:** I recently mentioned to @baskaryan this integration was coming - **Twitter handle:** `@rsprrs` if you want to mention me This PR introduces the `AstraDB` vector store class, extensive integration test coverage, a reworking of the documentation which conflates Cassandra and Astra DB on a single "provider" page and a new, completely reworked vector-store example notebook (common to the Cassandra store, since parts of the flow is shared by the two APIs). I also took care in ensuring docs (and redirects therein) are behaving correctly. All style, linting, typechecks and tests pass as far as the `AstraDB` integration is concerned. I could build the documentation and check it all right (but ran into trouble with the `api_docs_build` makefile target which I could not verify: `Error: Unable to import module 'plan_and_execute.agent_executor' with error: No module named 'langchain_experimental'` was the first of many similar errors) Thank you for a review! Stefano
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12966/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/12966/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12966", "html_url": "https://github.com/langchain-ai/langchain/pull/12966", "diff_url": "https://github.com/langchain-ai/langchain/pull/12966.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12966.patch", "merged_at": "2023-11-07T22:45:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/12965
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12965/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12965/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12965/events
https://github.com/langchain-ai/langchain/pull/12965
1,980,264,100
PR_kwDOIPDwls5ev60v
12,965
bump 331rc1
{ "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-11-06T23:31:46
2023-11-06T23:36:44
2023-11-06T23:36:43
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12965/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/12965/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12965", "html_url": "https://github.com/langchain-ai/langchain/pull/12965", "diff_url": "https://github.com/langchain-ai/langchain/pull/12965.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12965.patch", "merged_at": "2023-11-06T23:36:43" }
https://api.github.com/repos/langchain-ai/langchain/issues/12964
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12964/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12964/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12964/events
https://github.com/langchain-ai/langchain/pull/12964
1,980,263,042
PR_kwDOIPDwls5ev6mX
12,964
fix max_tokens
{ "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": 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-11-06T23:30:34
2023-11-06T23:36:06
2023-11-06T23:36:05
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12964/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/12964/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12964", "html_url": "https://github.com/langchain-ai/langchain/pull/12964", "diff_url": "https://github.com/langchain-ai/langchain/pull/12964.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12964.patch", "merged_at": "2023-11-06T23:36:05" }
https://api.github.com/repos/langchain-ai/langchain/issues/12963
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12963/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12963/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12963/events
https://github.com/langchain-ai/langchain/pull/12963
1,980,247,984
PR_kwDOIPDwls5ev3SA
12,963
bump 331rc0
{ "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-11-06T23:16:20
2023-11-06T23:19:34
2023-11-06T23:19:34
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12963/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/12963/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12963", "html_url": "https://github.com/langchain-ai/langchain/pull/12963", "diff_url": "https://github.com/langchain-ai/langchain/pull/12963.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12963.patch", "merged_at": "2023-11-06T23:19:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/12962
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12962/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12962/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12962/events
https://github.com/langchain-ai/langchain/issues/12962
1,980,194,390
I_kwDOIPDwls52B15W
12,962
Issue: QA with a large csv dataset
{ "login": "hellorp1990", "id": 19805255, "node_id": "MDQ6VXNlcjE5ODA1MjU1", "avatar_url": "https://avatars.githubusercontent.com/u/19805255?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hellorp1990", "html_url": "https://github.com/hellorp1990", "followers_url": "https://api.github.com/users/hellorp1990/followers", "following_url": "https://api.github.com/users/hellorp1990/following{/other_user}", "gists_url": "https://api.github.com/users/hellorp1990/gists{/gist_id}", "starred_url": "https://api.github.com/users/hellorp1990/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hellorp1990/subscriptions", "organizations_url": "https://api.github.com/users/hellorp1990/orgs", "repos_url": "https://api.github.com/users/hellorp1990/repos", "events_url": "https://api.github.com/users/hellorp1990/events{/privacy}", "received_events_url": "https://api.github.com/users/hellorp1990/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" } ]
open
false
null
[]
null
2
2023-11-06T22:33:41
2023-11-06T22:41:55
null
NONE
null
### Issue you'd like to raise. Hi , I was working on QA using a large csv dataset. I am using a local llm model (llama2) along with create_csv_agent. Following is my code snippet. `from langchain.llms import OpenAI from langchain.chat_models import ChatOpenAI from langchain.agents.agent_types import AgentType from langchain_experimental.agents.agent_toolkits import create_csv_agent agent = create_csv_agent( local_llm, "MLdata.csv", verbose=True, agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION,handle_parsing_errors=True ) print(agent.run("Please provide me the 10 records with VAX_TYPE COVID19.")) ` First of all the agent is only displaying 5 rows instead of 10. Secondly when I asked about "count the total number of rows in the dataset". It also generated a wrong output (generated output 5). How to fix this issue? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12962/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/12962/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12961
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12961/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12961/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12961/events
https://github.com/langchain-ai/langchain/pull/12961
1,980,179,252
PR_kwDOIPDwls5evn4J
12,961
add oai v1 cookbook
{ "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-11-06T22:23:47
2023-11-06T22:39:32
2023-11-06T22:28:33
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12961/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/12961/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12961", "html_url": "https://github.com/langchain-ai/langchain/pull/12961", "diff_url": "https://github.com/langchain-ai/langchain/pull/12961.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12961.patch", "merged_at": "2023-11-06T22:28:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/12960
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12960/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12960/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12960/events
https://github.com/langchain-ai/langchain/pull/12960
1,980,149,492
PR_kwDOIPDwls5evhMu
12,960
Record system fingerprint chat openai
{ "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": 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-11-06T22:05:02
2023-11-06T22:25:54
2023-11-06T22:25:53
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12960/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/12960/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12960", "html_url": "https://github.com/langchain-ai/langchain/pull/12960", "diff_url": "https://github.com/langchain-ai/langchain/pull/12960.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12960.patch", "merged_at": "2023-11-06T22:25:53" }
https://api.github.com/repos/langchain-ai/langchain/issues/12959
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12959/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12959/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12959/events
https://github.com/langchain-ai/langchain/issues/12959
1,980,143,971
I_kwDOIPDwls52Bplj
12,959
OpenAIEmbeddings doesn't allow specifying API key in parameters
{ "login": "chrishart0", "id": 64378248, "node_id": "MDQ6VXNlcjY0Mzc4MjQ4", "avatar_url": "https://avatars.githubusercontent.com/u/64378248?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chrishart0", "html_url": "https://github.com/chrishart0", "followers_url": "https://api.github.com/users/chrishart0/followers", "following_url": "https://api.github.com/users/chrishart0/following{/other_user}", "gists_url": "https://api.github.com/users/chrishart0/gists{/gist_id}", "starred_url": "https://api.github.com/users/chrishart0/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chrishart0/subscriptions", "organizations_url": "https://api.github.com/users/chrishart0/orgs", "repos_url": "https://api.github.com/users/chrishart0/repos", "events_url": "https://api.github.com/users/chrishart0/events{/privacy}", "received_events_url": "https://api.github.com/users/chrishart0/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": 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
2
2023-11-06T22:01:28
2023-11-06T22:16:19
null
NONE
null
### System Info Langchain Version: 0.0.331 (also tested 0.0.326) Python Version: 3.11.6 ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [x] 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 ## The issue It appears that `langchain.embeddings.OpenAIEmbeddings` does not support using parameters to define an API key, despite that being documented [here](https://api.python.langchain.com/en/latest/embeddings/langchain.embeddings.openai.OpenAIEmbeddings.html?highlight=azureopenai#langchain.embeddings.openai.OpenAIEmbeddings.openai_api_type). We are using Azure OpenAI, we've successfully configured the API with the same `openai_api_key` parameter for the `AzureOpenAI` method and the `AzureChatOpenAI` methods, but this doesn't work for the `OpenAIEmbeddings`. We can get embeddings to generate by specifying the `OPENAI_API_KEY` env var, as shown in your docs, we would like to not do this though as our use case requires having both an Azure Open AI instance key and Open AI key configured. Calling the OpenAIEmbeddings method as show below does not work ```python from langchain.embeddings import OpenAIEmbeddings .... openAiEmbeddings = OpenAIEmbeddings( # model=LLmType.TEXT_EMBEDDING_ADA_002, deployment_name=deployment, openai_api_type="azure", openai_api_key=azure_openai_api_key, openai_api_base=azure_openai_api_base, chunk_size=1, openai_api_version=azure_openai_api_version, ) return LangchainEmbedding(openAiEmbeddings) ``` The error I receive is here: ``` No API key found for OpenAI. Please set either the OPENAI_API_KEY environment variable or openai.api_key prior to initialization. API keys can be found or created at https://platform.openai.com/account/api-keys To disable the LLM entirely, set llm=None. ****** 2023-11-06 21:14:53,499 - ERROR - Error processing documents: ****** Could not load OpenAI model. If you intended to use OpenAI, please check your OPENAI_API_KEY. Original error: No API key found for OpenAI. Please set either the OPENAI_API_KEY environment variable or openai.api_key prior to initialization. API keys can be found or created at https://platform.openai.com/account/api-keys To disable the LLM entirely, set llm=None. ****** ``` ## Troubleshooting Another valid workaround is this setting `openai.api_key`, such as below ``` import openai ... openai.api_key = self.azure_openai_api_key openAiEmbeddings = OpenAIEmbeddings( # model=LLmType.TEXT_EMBEDDING_ADA_002, deployment_name=deployment, openai_api_type="azure", openai_api_base=azure_openai_api_base, chunk_size=1, openai_api_version=azure_openai_api_version, ) return LangchainEmbedding(openAiEmbeddings) ``` I added the following code to ensure an empty OPENAI_API_KEY environment variable wan't causing the issue, it make no effect. ```python if 'OPENAI_API_KEY' in os.environ: print("did find OPENAI_API_KEY in os.environ") print("os.environ[OPENAI_API_KEY]: ", os.environ["OPENAI_API_KEY"]) del os.environ['OPENAI_API_KEY'] else: print("did not find OPENAI_API_KEY in os.environ") ``` ### Expected behavior I expected to be able to simply use the `openai_api_key` parameter of `langchain.embedding.OpenAIEmbeddings` without needing to define the `OPENAI_API_KEY` env var or import openai and use `openai.api_key =`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12959/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/12959/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12958
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12958/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12958/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12958/events
https://github.com/langchain-ai/langchain/issues/12958
1,980,132,466
I_kwDOIPDwls52Bmxy
12,958
Recent langchain version not matching openai v1.0.0+ release spec for client
{ "login": "realoptimal", "id": 444343, "node_id": "MDQ6VXNlcjQ0NDM0Mw==", "avatar_url": "https://avatars.githubusercontent.com/u/444343?v=4", "gravatar_id": "", "url": "https://api.github.com/users/realoptimal", "html_url": "https://github.com/realoptimal", "followers_url": "https://api.github.com/users/realoptimal/followers", "following_url": "https://api.github.com/users/realoptimal/following{/other_user}", "gists_url": "https://api.github.com/users/realoptimal/gists{/gist_id}", "starred_url": "https://api.github.com/users/realoptimal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/realoptimal/subscriptions", "organizations_url": "https://api.github.com/users/realoptimal/orgs", "repos_url": "https://api.github.com/users/realoptimal/repos", "events_url": "https://api.github.com/users/realoptimal/events{/privacy}", "received_events_url": "https://api.github.com/users/realoptimal/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" } ]
open
false
null
[]
null
9
2023-11-06T21:53:47
2023-11-10T04:38:10
null
NONE
null
### System Info Langchain: v0.0.331 openai: v1.1.0 platform: Mac M2 python: 3.11.2 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] 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 1. Import OpenAI from llms 2. Instantiate it ``` >>> from langchain.llms import OpenAI >>> llm = OpenAI() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/lifehedging/.pyenv/versions/myenv/lib/python3.11/site-packages/langchain/load/serializable.py", line 97, in __init__ super().__init__(**kwargs) File "/Users/lifehedging/.pyenv/versions/myenv/lib/python3.11/site-packages/pydantic/v1/main.py", line 339, in __init__ values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/lifehedging/.pyenv/versions/myenv/lib/python3.11/site-packages/pydantic/v1/main.py", line 1102, in validate_model values = validator(cls_, values) ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/lifehedging/.pyenv/versions/myenv/lib/python3.11/site-packages/langchain/llms/openai.py", line 266, in validate_environment values["client"] = openai.Completion ^^^^^^^^^^^^^^^^^ AttributeError: module 'openai' has no attribute 'Completion'. Did you mean: 'completions'? ``` ### Expected behavior It correctly instantiates provided an API key is present in the environment
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12958/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/12958/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12957
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12957/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12957/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12957/events
https://github.com/langchain-ai/langchain/issues/12957
1,980,131,843
I_kwDOIPDwls52BmoD
12,957
Issue: rewrite the _DEFAULT_ENTITY_EXTRACTION_TEMPLATE in JSON format
{ "login": "xasxin", "id": 113810081, "node_id": "U_kgDOBsiaoQ", "avatar_url": "https://avatars.githubusercontent.com/u/113810081?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xasxin", "html_url": "https://github.com/xasxin", "followers_url": "https://api.github.com/users/xasxin/followers", "following_url": "https://api.github.com/users/xasxin/following{/other_user}", "gists_url": "https://api.github.com/users/xasxin/gists{/gist_id}", "starred_url": "https://api.github.com/users/xasxin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xasxin/subscriptions", "organizations_url": "https://api.github.com/users/xasxin/orgs", "repos_url": "https://api.github.com/users/xasxin/repos", "events_url": "https://api.github.com/users/xasxin/events{/privacy}", "received_events_url": "https://api.github.com/users/xasxin/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": 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" } ]
open
false
null
[]
null
2
2023-11-06T21:53:23
2023-11-06T22:00:22
null
NONE
null
### Issue you'd like to raise. Hi, It's me again. I'm trying to create my own ConversationSummaryMemory and make _DEFAULT_ENTITY_EXTRACTION_TEMPLATE in JSON format. Is there a way to do so? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12957/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/12957/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12956
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12956/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12956/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12956/events
https://github.com/langchain-ai/langchain/issues/12956
1,980,109,527
I_kwDOIPDwls52BhLX
12,956
A ton of Bugs after OpenAI API update today
{ "login": "Vanekkk1", "id": 91801007, "node_id": "U_kgDOBXjFrw", "avatar_url": "https://avatars.githubusercontent.com/u/91801007?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Vanekkk1", "html_url": "https://github.com/Vanekkk1", "followers_url": "https://api.github.com/users/Vanekkk1/followers", "following_url": "https://api.github.com/users/Vanekkk1/following{/other_user}", "gists_url": "https://api.github.com/users/Vanekkk1/gists{/gist_id}", "starred_url": "https://api.github.com/users/Vanekkk1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Vanekkk1/subscriptions", "organizations_url": "https://api.github.com/users/Vanekkk1/orgs", "repos_url": "https://api.github.com/users/Vanekkk1/repos", "events_url": "https://api.github.com/users/Vanekkk1/events{/privacy}", "received_events_url": "https://api.github.com/users/Vanekkk1/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": 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
9
2023-11-06T21:41:02
2023-12-11T12:03:14
2023-11-13T10:14:17
NONE
null
### System Info all last versions as of 6/11/2023 ### 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 Run anything with OpeanAI ChatCompletions and Embeddings ### Expected behavior File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/embeddings/openai.py", line 284, in validate_environment values["client"] = openai.Embedding ^^^^^^^^^^^^^^^^ AttributeError: module 'openai' has no attribute 'Embedding'. Did you mean: 'embeddings'? File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/load/serializable.py", line 97, in __init__ super().__init__(**kwargs) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pydantic/v1/main.py", line 341, in __init__ raise validation_error pydantic.v1.error_wrappers.ValidationError: 1 validation error for ChatOpenAI __root__ `openai` has no `ChatCompletion` attribute, this is likely due to an old version of the openai package. Try upgrading it with `pip install --upgrade openai`. (type=value_error)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12956/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/12956/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12955
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12955/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12955/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12955/events
https://github.com/langchain-ai/langchain/issues/12955
1,980,103,620
I_kwDOIPDwls52BfvE
12,955
Using RunnablePassthrough with Deeplake gives RuntimeError: std::get: wrong index for variant
{ "login": "japs-leon", "id": 150083258, "node_id": "U_kgDOCPIWug", "avatar_url": "https://avatars.githubusercontent.com/u/150083258?v=4", "gravatar_id": "", "url": "https://api.github.com/users/japs-leon", "html_url": "https://github.com/japs-leon", "followers_url": "https://api.github.com/users/japs-leon/followers", "following_url": "https://api.github.com/users/japs-leon/following{/other_user}", "gists_url": "https://api.github.com/users/japs-leon/gists{/gist_id}", "starred_url": "https://api.github.com/users/japs-leon/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/japs-leon/subscriptions", "organizations_url": "https://api.github.com/users/japs-leon/orgs", "repos_url": "https://api.github.com/users/japs-leon/repos", "events_url": "https://api.github.com/users/japs-leon/events{/privacy}", "received_events_url": "https://api.github.com/users/japs-leon/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": 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" } ]
open
false
null
[]
null
2
2023-11-06T21:38:34
2023-11-06T21:45:21
null
NONE
null
### System Info Langchain 0.0.331 latest Openai v0.28.1 Python v3.11.6 Deeplake 3.8.4 latest ### Who can help? @eyurtsev @hwchase17 _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 Once data has been loaded to Deeplake db ``` from langchain.embeddings import OpenAIEmbeddings from langchain.schema.output_parser import StrOutputParser from langchain.schema.runnable import RunnablePassthrough from langchain.vectorstores import DeepLake from langchain.chat_models import ChatOpenAI from langchain.prompts import ChatPromptTemplate model = ChatOpenAI() db = DeepLake(dataset_path="./my_deeplake/", read_only=True, embedding=OpenAIEmbeddings()) retriever = db.as_retriever() retriever.search_kwargs['distance_metric'] = 'cos' retriever.search_kwargs['fetch_k'] = 10 retriever.search_kwargs['maximal_marginal_relevance'] = True retriever.search_kwargs['k'] = 5 template = """Answer the question based only on the following context: {context} Question: {question} """ prompt = ChatPromptTemplate.from_template(template) retrieval_chain = ( {"context": retriever, "question": RunnablePassthrough()} | prompt | model | StrOutputParser() ) retrieval_chain.invoke("where did harrison work?") ``` Error RuntimeError: std::get: wrong index for variant <img width="1489" alt="image" src="https://github.com/langchain-ai/langchain/assets/150083258/9dbcad3a-759b-492e-86f6-3cd1dc67ce91"> ### Expected behavior Expected behavior is it should retrieve documents from vectordb
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12955/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/12955/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12954
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12954/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12954/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12954/events
https://github.com/langchain-ai/langchain/issues/12954
1,980,093,720
I_kwDOIPDwls52BdUY
12,954
Module 'openai' has no attribute 'Embedding'
{ "login": "lucasdnr", "id": 2001763, "node_id": "MDQ6VXNlcjIwMDE3NjM=", "avatar_url": "https://avatars.githubusercontent.com/u/2001763?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lucasdnr", "html_url": "https://github.com/lucasdnr", "followers_url": "https://api.github.com/users/lucasdnr/followers", "following_url": "https://api.github.com/users/lucasdnr/following{/other_user}", "gists_url": "https://api.github.com/users/lucasdnr/gists{/gist_id}", "starred_url": "https://api.github.com/users/lucasdnr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lucasdnr/subscriptions", "organizations_url": "https://api.github.com/users/lucasdnr/orgs", "repos_url": "https://api.github.com/users/lucasdnr/repos", "events_url": "https://api.github.com/users/lucasdnr/events{/privacy}", "received_events_url": "https://api.github.com/users/lucasdnr/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": 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
23
2023-11-06T21:31:20
2023-12-03T19:02:26
2023-11-14T20:09:36
NONE
null
### System Info LangChain: 0.0.331 OpenAI: 1.1.0 Python: 3.11.2 ### 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 Full Message: > ...langchain/embeddings/openai.py", line 284, in validate_environment > values["client"] = openai.Embedding > ^^^^^^^^^^^^^^^^ > AttributeError: module 'openai' has no attribute 'Embedding'. Did you mean: 'embeddings'? Code line caught this error: `index = VectorstoreIndexCreator(vectorstore_kwargs={"persist_directory":"persist"}).from_loaders([loader])` ### Expected behavior Creates Vector Store Index
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12954/reactions", "total_count": 3, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/12954/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12953
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12953/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12953/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12953/events
https://github.com/langchain-ai/langchain/issues/12953
1,980,073,140
I_kwDOIPDwls52BYS0
12,953
Issue: "response_format" parameter on the new GPT-4-turbo model
{ "login": "tiagobe86", "id": 113486546, "node_id": "U_kgDOBsOq0g", "avatar_url": "https://avatars.githubusercontent.com/u/113486546?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tiagobe86", "html_url": "https://github.com/tiagobe86", "followers_url": "https://api.github.com/users/tiagobe86/followers", "following_url": "https://api.github.com/users/tiagobe86/following{/other_user}", "gists_url": "https://api.github.com/users/tiagobe86/gists{/gist_id}", "starred_url": "https://api.github.com/users/tiagobe86/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tiagobe86/subscriptions", "organizations_url": "https://api.github.com/users/tiagobe86/orgs", "repos_url": "https://api.github.com/users/tiagobe86/repos", "events_url": "https://api.github.com/users/tiagobe86/events{/privacy}", "received_events_url": "https://api.github.com/users/tiagobe86/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": 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
8
2023-11-06T21:16:44
2023-11-07T01:44:59
null
NONE
null
### "response_format" parameter on the new GPT-4-turbo model I can sucessfully call the new GPT-4-turbo model by using: `const model = new ChatOpenAI({modelName:"gpt-4-1106-preview"})` But I can't add the "response_format" parameter to set its response explicitly to be a json, as stated in: https://platform.openai.com/docs/guides/text-generation/json-mode ### Suggestion: Is there a way to pass the parameter to the model or this should be added to the ChatOpenAI code?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12953/reactions", "total_count": 15, "+1": 9, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 6 }
https://api.github.com/repos/langchain-ai/langchain/issues/12953/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12952
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12952/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12952/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12952/events
https://github.com/langchain-ai/langchain/pull/12952
1,980,071,981
PR_kwDOIPDwls5evQOG
12,952
Add Chroma multimodal cookbook
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/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" }, { "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" } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
1
2023-11-06T21:15:50
2023-11-10T17:43:11
2023-11-10T17:43:10
COLLABORATOR
null
Pending: * https://github.com/chroma-core/chroma/pull/1294 * https://github.com/chroma-core/chroma/pull/1293
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12952/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/12952/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12952", "html_url": "https://github.com/langchain-ai/langchain/pull/12952", "diff_url": "https://github.com/langchain-ai/langchain/pull/12952.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12952.patch", "merged_at": "2023-11-10T17:43:10" }
https://api.github.com/repos/langchain-ai/langchain/issues/12951
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12951/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12951/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12951/events
https://github.com/langchain-ai/langchain/pull/12951
1,980,044,182
PR_kwDOIPDwls5evKEa
12,951
community: Added Lantern as VectorStore
{ "login": "var77", "id": 17221195, "node_id": "MDQ6VXNlcjE3MjIxMTk1", "avatar_url": "https://avatars.githubusercontent.com/u/17221195?v=4", "gravatar_id": "", "url": "https://api.github.com/users/var77", "html_url": "https://github.com/var77", "followers_url": "https://api.github.com/users/var77/followers", "following_url": "https://api.github.com/users/var77/following{/other_user}", "gists_url": "https://api.github.com/users/var77/gists{/gist_id}", "starred_url": "https://api.github.com/users/var77/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/var77/subscriptions", "organizations_url": "https://api.github.com/users/var77/orgs", "repos_url": "https://api.github.com/users/var77/repos", "events_url": "https://api.github.com/users/var77/events{/privacy}", "received_events_url": "https://api.github.com/users/var77/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" }, { "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." } ]
closed
false
null
[]
null
2
2023-11-06T20:56:20
2024-01-12T20:00:17
2024-01-12T20:00:17
CONTRIBUTOR
null
Support [Lantern](https://github.com/lanterndata/lantern) as a new VectorStore type. - Added Lantern as VectorStore. It will support 3 distance functions `l2 squared`, `cosine` and `hamming` and will use `HNSW` index. - Added tests - Added example notebook
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12951/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 2, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12951/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12951", "html_url": "https://github.com/langchain-ai/langchain/pull/12951", "diff_url": "https://github.com/langchain-ai/langchain/pull/12951.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12951.patch", "merged_at": "2024-01-12T20:00:17" }
https://api.github.com/repos/langchain-ai/langchain/issues/12950
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12950/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12950/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12950/events
https://github.com/langchain-ai/langchain/pull/12950
1,980,041,890
PR_kwDOIPDwls5evJkK
12,950
chore: change chatCompletion function to latest api change
{ "login": "Nishkarsh1606", "id": 90414246, "node_id": "MDQ6VXNlcjkwNDE0MjQ2", "avatar_url": "https://avatars.githubusercontent.com/u/90414246?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Nishkarsh1606", "html_url": "https://github.com/Nishkarsh1606", "followers_url": "https://api.github.com/users/Nishkarsh1606/followers", "following_url": "https://api.github.com/users/Nishkarsh1606/following{/other_user}", "gists_url": "https://api.github.com/users/Nishkarsh1606/gists{/gist_id}", "starred_url": "https://api.github.com/users/Nishkarsh1606/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Nishkarsh1606/subscriptions", "organizations_url": "https://api.github.com/users/Nishkarsh1606/orgs", "repos_url": "https://api.github.com/users/Nishkarsh1606/repos", "events_url": "https://api.github.com/users/Nishkarsh1606/events{/privacy}", "received_events_url": "https://api.github.com/users/Nishkarsh1606/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
5
2023-11-06T20:54:43
2023-12-05T23:39:42
2023-12-05T23:39:41
NONE
null
- **Description:** Updated the method of obtaining chat completions to be compatible with the latest OpenAI API. OpenAI has deprecated `chatCompletion` in their recent release. This update replaces the deprecated method with the current `client.chat.completions` method, ensuring compatibility with the latest API standards. - **Twitter handle:** @nish306 I have made sure the PR is passing linting and testing before submitting. I have run `make format`, `make lint`, and `make test` to check this locally.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12950/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12950/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12950", "html_url": "https://github.com/langchain-ai/langchain/pull/12950", "diff_url": "https://github.com/langchain-ai/langchain/pull/12950.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12950.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12949
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12949/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12949/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12949/events
https://github.com/langchain-ai/langchain/issues/12949
1,980,034,271
I_kwDOIPDwls52BOzf
12,949
openai has no ChatCompletion attribute, this is likely due to an old version of the openai package.
{ "login": "cta2106", "id": 32028497, "node_id": "MDQ6VXNlcjMyMDI4NDk3", "avatar_url": "https://avatars.githubusercontent.com/u/32028497?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cta2106", "html_url": "https://github.com/cta2106", "followers_url": "https://api.github.com/users/cta2106/followers", "following_url": "https://api.github.com/users/cta2106/following{/other_user}", "gists_url": "https://api.github.com/users/cta2106/gists{/gist_id}", "starred_url": "https://api.github.com/users/cta2106/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cta2106/subscriptions", "organizations_url": "https://api.github.com/users/cta2106/orgs", "repos_url": "https://api.github.com/users/cta2106/repos", "events_url": "https://api.github.com/users/cta2106/events{/privacy}", "received_events_url": "https://api.github.com/users/cta2106/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" } ]
open
false
null
[]
null
33
2023-11-06T20:49:17
2023-11-13T16:23:51
null
NONE
null
### System Info Langchain v0.0.323 Openai v1.0.1 (latest) Python v3.11.6 ### 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.chat_models import ChatOpenAI llm = ChatOpenAI( model_name="gpt-4", request_timeout=120, ) ``` openai has no ChatCompletion attribute, this is likely due to an old version of the openai package. Try upgrading it with `pip install --upgrade openai`. (type=value_error) ### Expected behavior There is an issue with ChatOpenAI that I believe may be related to the newest openai python package update.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12949/reactions", "total_count": 22, "+1": 19, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 3 }
https://api.github.com/repos/langchain-ai/langchain/issues/12949/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12948
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12948/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12948/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12948/events
https://github.com/langchain-ai/langchain/pull/12948
1,979,878,575
PR_kwDOIPDwls5eulkH
12,948
Bagatur/oai v1 scratch
{ "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": 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-11-06T19:06:57
2023-11-06T21:24:20
2023-11-06T21:24:19
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/langchain-ai/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/12948/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/12948/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12948", "html_url": "https://github.com/langchain-ai/langchain/pull/12948", "diff_url": "https://github.com/langchain-ai/langchain/pull/12948.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12948.patch", "merged_at": "2023-11-06T21:24:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/12946
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12946/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12946/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12946/events
https://github.com/langchain-ai/langchain/pull/12946
1,979,764,177
PR_kwDOIPDwls5euLwi
12,946
Multi modal RAG + QA Cookbooks
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/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" }, { "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-11-06T18:10:22
2023-11-07T17:10:26
2023-11-07T17:10:25
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12946/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/12946/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12946", "html_url": "https://github.com/langchain-ai/langchain/pull/12946", "diff_url": "https://github.com/langchain-ai/langchain/pull/12946.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12946.patch", "merged_at": "2023-11-07T17:10:25" }
https://api.github.com/repos/langchain-ai/langchain/issues/12945
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12945/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12945/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12945/events
https://github.com/langchain-ai/langchain/pull/12945
1,979,752,924
PR_kwDOIPDwls5euJNl
12,945
cli pyproject updating
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/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-11-06T18:05:04
2023-11-07T19:06:10
2023-11-07T19:06:09
COLLABORATOR
null
`langchain app add` and `langchain app remove` will now keep the dependencies list updated.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12945/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/12945/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12945", "html_url": "https://github.com/langchain-ai/langchain/pull/12945", "diff_url": "https://github.com/langchain-ai/langchain/pull/12945.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12945.patch", "merged_at": "2023-11-07T19:06:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/12944
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12944/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12944/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12944/events
https://github.com/langchain-ai/langchain/issues/12944
1,979,742,044
I_kwDOIPDwls52AHdc
12,944
Issue: Agent runs on loop, "Observation: Invalid Format: Missing 'Action:' after 'Thought:"
{ "login": "annachrome", "id": 84694222, "node_id": "MDQ6VXNlcjg0Njk0MjIy", "avatar_url": "https://avatars.githubusercontent.com/u/84694222?v=4", "gravatar_id": "", "url": "https://api.github.com/users/annachrome", "html_url": "https://github.com/annachrome", "followers_url": "https://api.github.com/users/annachrome/followers", "following_url": "https://api.github.com/users/annachrome/following{/other_user}", "gists_url": "https://api.github.com/users/annachrome/gists{/gist_id}", "starred_url": "https://api.github.com/users/annachrome/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/annachrome/subscriptions", "organizations_url": "https://api.github.com/users/annachrome/orgs", "repos_url": "https://api.github.com/users/annachrome/repos", "events_url": "https://api.github.com/users/annachrome/events{/privacy}", "received_events_url": "https://api.github.com/users/annachrome/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" } ]
open
false
null
[]
null
6
2023-11-06T18:00:50
2023-11-08T16:19:53
null
NONE
null
### Issue you'd like to raise. Whenever my agent does not require a tool, (tool has already been used, or query does not require a tool), it continues output. ``` datetimetool = Tool( name="datetimetool", func=lambda x: datetime.now().strftime('%A %d %B %Y, %I:%M%p'), description="Retrieve and return the current date and/or time. \ Input should be an empty string.", ) tools = [datetimetool] PREFIX = ''' You are a truthful, helpful agent. ''' FORMAT_INSTRUCTIONS = """Please use the following format only when you need to use a tool: ''' Thought: Do I need to use a tool? Yes Action: the action to take, should be one of [{tool_names}] Action Input: the input to the action Observation: the result of the action ''' When you have gathered all the information regarding the user's query,\ use the following format to answer the query and do not repeat yourself. ''' Thought: Do I need to use a tool? No AI: [print answer and stop output] ''' """ SUFFIX = ''' Begin! Instructions: {input} {agent_scratchpad} ''' agent = initialize_agent( tools=tools, llm=llm, agent="zero-shot-react-description", verbose=True, return_intermediate_steps=True, handle_parsing_errors=True, agent_kwargs={ 'prefix': PREFIX, 'format_instructions': FORMAT_INSTRUCTIONS, 'suffix': SUFFIX, 'input variables': ["chat_history", "input", "agent_scratchpad", "tool_names"], } ) query = "How are you?" # Or: "What's the time?" res = agent({'input': query}) print(res['output']) ``` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12944/reactions", "total_count": 3, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 3 }
https://api.github.com/repos/langchain-ai/langchain/issues/12944/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12943
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12943/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12943/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12943/events
https://github.com/langchain-ai/langchain/issues/12943
1,979,733,329
I_kwDOIPDwls52AFVR
12,943
OpenAIEmbeddings() does not work because of these bugs
{ "login": "pranavgupta2603", "id": 88652820, "node_id": "MDQ6VXNlcjg4NjUyODIw", "avatar_url": "https://avatars.githubusercontent.com/u/88652820?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pranavgupta2603", "html_url": "https://github.com/pranavgupta2603", "followers_url": "https://api.github.com/users/pranavgupta2603/followers", "following_url": "https://api.github.com/users/pranavgupta2603/following{/other_user}", "gists_url": "https://api.github.com/users/pranavgupta2603/gists{/gist_id}", "starred_url": "https://api.github.com/users/pranavgupta2603/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pranavgupta2603/subscriptions", "organizations_url": "https://api.github.com/users/pranavgupta2603/orgs", "repos_url": "https://api.github.com/users/pranavgupta2603/repos", "events_url": "https://api.github.com/users/pranavgupta2603/events{/privacy}", "received_events_url": "https://api.github.com/users/pranavgupta2603/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": 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
18
2023-11-06T17:56:29
2023-11-08T21:38:33
2023-11-08T21:38:32
NONE
null
### System Info Python Version: 3.11 LangChain Version: 0.0.331 OpenAI Version: 1.0.0 ### Who can help? @hwchase17, @agola11, @eyurtsev ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [X] 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 The following error has been caused due to the recent change in version of OpenAI to 1.0.0 **Use OpenAI==0.28.1 to fix this error** With the code: `embeddings = OpenAIEmbeddings()` The error produced is: `AttributeError: module 'openai' has no attribute 'Embedding'. Did you mean: 'embeddings'?` I went through the `langchain/embeddings/openai.py` file and then changed `value["client"] = openai.Embedding` to `value["client"] = openai.embeddings`, but then I receive this new error: `AttributeError: module 'openai' has no attribute 'error'` in the same file (`langchain/embeddings/openai.py`) ### Expected behavior There should be no error when calling this function.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12943/reactions", "total_count": 4, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/12943/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12942
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12942/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12942/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12942/events
https://github.com/langchain-ai/langchain/issues/12942
1,979,664,993
I_kwDOIPDwls51_0ph
12,942
BaseCombineDocumentsChain's "input_documents" parameter not overridden by child classes
{ "login": "kevin-guimard-ext", "id": 140074762, "node_id": "U_kgDOCFlfCg", "avatar_url": "https://avatars.githubusercontent.com/u/140074762?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kevin-guimard-ext", "html_url": "https://github.com/kevin-guimard-ext", "followers_url": "https://api.github.com/users/kevin-guimard-ext/followers", "following_url": "https://api.github.com/users/kevin-guimard-ext/following{/other_user}", "gists_url": "https://api.github.com/users/kevin-guimard-ext/gists{/gist_id}", "starred_url": "https://api.github.com/users/kevin-guimard-ext/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kevin-guimard-ext/subscriptions", "organizations_url": "https://api.github.com/users/kevin-guimard-ext/orgs", "repos_url": "https://api.github.com/users/kevin-guimard-ext/repos", "events_url": "https://api.github.com/users/kevin-guimard-ext/events{/privacy}", "received_events_url": "https://api.github.com/users/kevin-guimard-ext/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" } ]
open
false
null
[]
null
3
2023-11-06T17:23:19
2023-11-06T17:41:36
null
NONE
null
### System Info Langchain v0.0.287 Windows 10 Python 3.9 ### Who can help? @eyurtsev ### Information - [ ] The official example notebooks/scripts - [X] 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 ``` template = "Here is some context:\n" \ "{my_documents}\n" \ "With the help of the context above, please answer the following query:\n" \ f"{query}" chain = LLMChain(llm=llm, prompt=PromptTemplate.from_template(template)) combined_chain = StuffDocumentsChain(llm_chain=chain, document_variable_name="my_documents") result = combined_chain.run(my_documents=documents) ``` ### Expected behavior The code above triggers the following error: > ValueError: Missing some input keys: {'input_documents'} Though, the document variable has been explicitly named as "my_documents" and not "input_documents". The reason is that the base class BaseCombineDocumentsChain defines "input_documents" variable by default, but the latter is not overridden by the parameter "document_variable_name" in child classes. By consistency, the "document_variable_name" should refer both to the variable name specified in the prompt and to the named parameter in the run method of the chain.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12942/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/12942/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12941
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12941/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12941/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12941/events
https://github.com/langchain-ai/langchain/pull/12941
1,979,528,755
PR_kwDOIPDwls5etXzO
12,941
fix guides 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-11-06T16:12:54
2023-11-06T16:13:04
2023-11-06T16:13:03
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12941/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/12941/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12941", "html_url": "https://github.com/langchain-ai/langchain/pull/12941", "diff_url": "https://github.com/langchain-ai/langchain/pull/12941.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12941.patch", "merged_at": "2023-11-06T16:13:03" }
https://api.github.com/repos/langchain-ai/langchain/issues/12940
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12940/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12940/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12940/events
https://github.com/langchain-ai/langchain/pull/12940
1,979,468,104
PR_kwDOIPDwls5etKbk
12,940
Add support of Cohere Embed v3
{ "login": "kacperlukawski", "id": 2649301, "node_id": "MDQ6VXNlcjI2NDkzMDE=", "avatar_url": "https://avatars.githubusercontent.com/u/2649301?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kacperlukawski", "html_url": "https://github.com/kacperlukawski", "followers_url": "https://api.github.com/users/kacperlukawski/followers", "following_url": "https://api.github.com/users/kacperlukawski/following{/other_user}", "gists_url": "https://api.github.com/users/kacperlukawski/gists{/gist_id}", "starred_url": "https://api.github.com/users/kacperlukawski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kacperlukawski/subscriptions", "organizations_url": "https://api.github.com/users/kacperlukawski/orgs", "repos_url": "https://api.github.com/users/kacperlukawski/repos", "events_url": "https://api.github.com/users/kacperlukawski/events{/privacy}", "received_events_url": "https://api.github.com/users/kacperlukawski/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
3
2023-11-06T15:44:49
2023-11-07T08:45:46
2023-11-06T20:06:58
CONTRIBUTOR
null
Cohere released the new embedding API (Embed v3: https://txt.cohere.com/introducing-embed-v3/) that treats document and query embeddings differently. This PR updated the `CohereEmbeddings` to use them appropriately. It also works with the old models.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12940/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/12940/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12940", "html_url": "https://github.com/langchain-ai/langchain/pull/12940", "diff_url": "https://github.com/langchain-ai/langchain/pull/12940.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12940.patch", "merged_at": "2023-11-06T20:06:58" }
https://api.github.com/repos/langchain-ai/langchain/issues/12939
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12939/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12939/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12939/events
https://github.com/langchain-ai/langchain/pull/12939
1,979,408,818
PR_kwDOIPDwls5es9WI
12,939
fix langsmith 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-11-06T15:16:55
2023-11-06T15:17:07
2023-11-06T15:17:05
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12939/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/12939/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12939", "html_url": "https://github.com/langchain-ai/langchain/pull/12939", "diff_url": "https://github.com/langchain-ai/langchain/pull/12939.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12939.patch", "merged_at": "2023-11-06T15:17:05" }
https://api.github.com/repos/langchain-ai/langchain/issues/12938
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12938/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12938/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12938/events
https://github.com/langchain-ai/langchain/pull/12938
1,979,368,880
PR_kwDOIPDwls5es0q9
12,938
Fix for anyscale chat model api key
{ "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 }
[ { "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
null
[]
null
2
2023-11-06T14:57:33
2023-11-06T18:28:03
2023-11-06T18:28:02
COLLABORATOR
null
* ChatAnyscale was missing coercion to SecretStr for anyscale api key * The model inherits from ChatOpenAI so it should not force the openai api key to be secret str until openai model has the same changes https://github.com/langchain-ai/langchain/issues/12841
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12938/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/12938/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12938", "html_url": "https://github.com/langchain-ai/langchain/pull/12938", "diff_url": "https://github.com/langchain-ai/langchain/pull/12938.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12938.patch", "merged_at": "2023-11-06T18:28:02" }
https://api.github.com/repos/langchain-ai/langchain/issues/12937
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12937/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12937/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12937/events
https://github.com/langchain-ai/langchain/pull/12937
1,979,347,205
PR_kwDOIPDwls5esv7-
12,937
Fix return metadata when searching for DingoDB
{ "login": "HeChangHaoGary", "id": 53417823, "node_id": "MDQ6VXNlcjUzNDE3ODIz", "avatar_url": "https://avatars.githubusercontent.com/u/53417823?v=4", "gravatar_id": "", "url": "https://api.github.com/users/HeChangHaoGary", "html_url": "https://github.com/HeChangHaoGary", "followers_url": "https://api.github.com/users/HeChangHaoGary/followers", "following_url": "https://api.github.com/users/HeChangHaoGary/following{/other_user}", "gists_url": "https://api.github.com/users/HeChangHaoGary/gists{/gist_id}", "starred_url": "https://api.github.com/users/HeChangHaoGary/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HeChangHaoGary/subscriptions", "organizations_url": "https://api.github.com/users/HeChangHaoGary/orgs", "repos_url": "https://api.github.com/users/HeChangHaoGary/repos", "events_url": "https://api.github.com/users/HeChangHaoGary/events{/privacy}", "received_events_url": "https://api.github.com/users/HeChangHaoGary/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-11-06T14:47:31
2023-11-06T15:35:43
2023-11-06T15:35:37
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/langchain-ai/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/12937/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/12937/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12937", "html_url": "https://github.com/langchain-ai/langchain/pull/12937", "diff_url": "https://github.com/langchain-ai/langchain/pull/12937.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12937.patch", "merged_at": "2023-11-06T15:35:37" }
https://api.github.com/repos/langchain-ai/langchain/issues/12936
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12936/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12936/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12936/events
https://github.com/langchain-ai/langchain/pull/12936
1,979,330,102
PR_kwDOIPDwls5essKD
12,936
Fix #12793: Add support for Cohere Embedding V3
{ "login": "ashish-dahal", "id": 35001414, "node_id": "MDQ6VXNlcjM1MDAxNDE0", "avatar_url": "https://avatars.githubusercontent.com/u/35001414?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ashish-dahal", "html_url": "https://github.com/ashish-dahal", "followers_url": "https://api.github.com/users/ashish-dahal/followers", "following_url": "https://api.github.com/users/ashish-dahal/following{/other_user}", "gists_url": "https://api.github.com/users/ashish-dahal/gists{/gist_id}", "starred_url": "https://api.github.com/users/ashish-dahal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ashish-dahal/subscriptions", "organizations_url": "https://api.github.com/users/ashish-dahal/orgs", "repos_url": "https://api.github.com/users/ashish-dahal/repos", "events_url": "https://api.github.com/users/ashish-dahal/events{/privacy}", "received_events_url": "https://api.github.com/users/ashish-dahal/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
2
2023-11-06T14:39:51
2023-11-07T10:34:42
2023-11-06T20:09:03
CONTRIBUTOR
null
- **Description:** Fix issue #12793. [Reference](https://txt.cohere.com/introducing-embed-v3/). - Added new mandatory parameter ```input_type``` - **Dependencies:** None
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12936/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/12936/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12936", "html_url": "https://github.com/langchain-ai/langchain/pull/12936", "diff_url": "https://github.com/langchain-ai/langchain/pull/12936.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12936.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12935
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12935/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12935/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12935/events
https://github.com/langchain-ai/langchain/pull/12935
1,979,310,468
PR_kwDOIPDwls5esn2o
12,935
feat: acquire advisory lock before creating extension in pgvector
{ "login": "VinzenzKlass", "id": 76391770, "node_id": "MDQ6VXNlcjc2MzkxNzcw", "avatar_url": "https://avatars.githubusercontent.com/u/76391770?v=4", "gravatar_id": "", "url": "https://api.github.com/users/VinzenzKlass", "html_url": "https://github.com/VinzenzKlass", "followers_url": "https://api.github.com/users/VinzenzKlass/followers", "following_url": "https://api.github.com/users/VinzenzKlass/following{/other_user}", "gists_url": "https://api.github.com/users/VinzenzKlass/gists{/gist_id}", "starred_url": "https://api.github.com/users/VinzenzKlass/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/VinzenzKlass/subscriptions", "organizations_url": "https://api.github.com/users/VinzenzKlass/orgs", "repos_url": "https://api.github.com/users/VinzenzKlass/repos", "events_url": "https://api.github.com/users/VinzenzKlass/events{/privacy}", "received_events_url": "https://api.github.com/users/VinzenzKlass/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
{ "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-11-06T14:30:19
2023-11-06T19:00:40
2023-11-06T19:00:40
CONTRIBUTOR
null
- **Description:** Acquire advisory lock before attempting to create extension on postgres server, preventing errors in concurrent executions. - **Issue:** #12933 - **Dependencies:** None
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12935/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/12935/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12935", "html_url": "https://github.com/langchain-ai/langchain/pull/12935", "diff_url": "https://github.com/langchain-ai/langchain/pull/12935.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12935.patch", "merged_at": "2023-11-06T19:00:39" }
https://api.github.com/repos/langchain-ai/langchain/issues/12934
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12934/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12934/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12934/events
https://github.com/langchain-ai/langchain/pull/12934
1,979,308,611
PR_kwDOIPDwls5esndI
12,934
Fix normalizing the cosine distance in Qdrant
{ "login": "kacperlukawski", "id": 2649301, "node_id": "MDQ6VXNlcjI2NDkzMDE=", "avatar_url": "https://avatars.githubusercontent.com/u/2649301?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kacperlukawski", "html_url": "https://github.com/kacperlukawski", "followers_url": "https://api.github.com/users/kacperlukawski/followers", "following_url": "https://api.github.com/users/kacperlukawski/following{/other_user}", "gists_url": "https://api.github.com/users/kacperlukawski/gists{/gist_id}", "starred_url": "https://api.github.com/users/kacperlukawski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kacperlukawski/subscriptions", "organizations_url": "https://api.github.com/users/kacperlukawski/orgs", "repos_url": "https://api.github.com/users/kacperlukawski/repos", "events_url": "https://api.github.com/users/kacperlukawski/events{/privacy}", "received_events_url": "https://api.github.com/users/kacperlukawski/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
1
2023-11-06T14:29:30
2023-11-06T15:36:59
2023-11-06T15:36:59
CONTRIBUTOR
null
Qdrant was incorrectly calculating the cosine similarity and returning `0.0` for the best match, instead of `1.0`. Internally Qdrant returns a cosine score from `-1.0` (worst match) to `1.0` (best match), and the current formula reflects it.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12934/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/12934/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12934", "html_url": "https://github.com/langchain-ai/langchain/pull/12934", "diff_url": "https://github.com/langchain-ai/langchain/pull/12934.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12934.patch", "merged_at": "2023-11-06T15:36:59" }
https://api.github.com/repos/langchain-ai/langchain/issues/12933
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12933/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12933/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12933/events
https://github.com/langchain-ai/langchain/issues/12933
1,979,277,387
I_kwDOIPDwls51-WBL
12,933
PGVector: support for concurrency
{ "login": "VinzenzKlass", "id": 76391770, "node_id": "MDQ6VXNlcjc2MzkxNzcw", "avatar_url": "https://avatars.githubusercontent.com/u/76391770?v=4", "gravatar_id": "", "url": "https://api.github.com/users/VinzenzKlass", "html_url": "https://github.com/VinzenzKlass", "followers_url": "https://api.github.com/users/VinzenzKlass/followers", "following_url": "https://api.github.com/users/VinzenzKlass/following{/other_user}", "gists_url": "https://api.github.com/users/VinzenzKlass/gists{/gist_id}", "starred_url": "https://api.github.com/users/VinzenzKlass/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/VinzenzKlass/subscriptions", "organizations_url": "https://api.github.com/users/VinzenzKlass/orgs", "repos_url": "https://api.github.com/users/VinzenzKlass/repos", "events_url": "https://api.github.com/users/VinzenzKlass/events{/privacy}", "received_events_url": "https://api.github.com/users/VinzenzKlass/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-11-06T14:19:17
2023-11-06T19:03:36
2023-11-06T19:03:27
CONTRIBUTOR
null
### Feature request When trying to concurrently fetch many collections from a single postgres server using PGVector, this will currently produce this error: ``` (psycopg2.errors.InternalError_) tuple concurrently updated ``` This is the expected behaviour for the code as it is and is produced by this line: ``` statement = sqlalchemy.text("CREATE EXTENSION IF NOT EXISTS vector") ``` There is no support for concurrent `CREATE EXTENSION` Operations in Postgres, as outlined in [this post](https://www.postgresql.org/message-id/3473.1393693757%40sss.pgh.pa.us): > It'd be necessary to add some kind of locking scheme if you want to avoid "tuple concurrently updated" errors. This is not really any different from the situation where two transactions both want to update the same row in a user table: unless the application takes extra steps to serialize the updates, you're going to get "tuple concurrently updated" errors. > > We do have such locking for DDL on tables/indexes, but the theory in the past has been that it's not worth the trouble for objects represented by single catalog rows, such as functions or roles. You can't corrupt the database with concurrent updates on such a row, you'll just get a "tuple concurrently updated" error from all but the first-to-arrive update. As the post suggests, if we want to concurrently run these statements, a locking Scheme is needed. This can easily be achieved by using Postgres' `pg_advisory_xact_lock`, as described [here](https://www.postgresql.org/docs/16/explicit-locking.html#ADVISORY-LOCKS) & [here](https://www.postgresql.org/docs/16/functions-admin.html): ``` BEGIN; SELECT pg_advisory_xact_lock(1573678846307946496); CREATE EXTENSION IF NOT EXISTS vector; COMMIT; ``` This will acquire an exclusive transaction-level advisory lock, waiting if necessary which is automatically released at the end of the transaction. My proposal is therefore to change the current bare `CREATE EXTENSION IF NOT EXISTS vector` with the above to allow for concurrent execution without errors or having to retry. ### Motivation We have a scenario where it would be beneficial to concurrently retrieve a large number of collections from a single server, and this would appear to be the easiest way to achieve this. ### Your contribution I will submit an according PR.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12933/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/12933/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12932
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12932/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12932/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12932/events
https://github.com/langchain-ai/langchain/pull/12932
1,979,215,706
PR_kwDOIPDwls5esSog
12,932
bump 331
{ "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-11-06T13:53:51
2023-11-06T13:58:13
2023-11-06T13:58:12
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/langchain-ai/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/12932/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/12932/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12932", "html_url": "https://github.com/langchain-ai/langchain/pull/12932", "diff_url": "https://github.com/langchain-ai/langchain/pull/12932.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12932.patch", "merged_at": "2023-11-06T13:58:12" }
https://api.github.com/repos/langchain-ai/langchain/issues/12931
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12931/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12931/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12931/events
https://github.com/langchain-ai/langchain/issues/12931
1,979,196,378
I_kwDOIPDwls51-CPa
12,931
Example prompt for text classification
{ "login": "eswarthammana", "id": 23114153, "node_id": "MDQ6VXNlcjIzMTE0MTUz", "avatar_url": "https://avatars.githubusercontent.com/u/23114153?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eswarthammana", "html_url": "https://github.com/eswarthammana", "followers_url": "https://api.github.com/users/eswarthammana/followers", "following_url": "https://api.github.com/users/eswarthammana/following{/other_user}", "gists_url": "https://api.github.com/users/eswarthammana/gists{/gist_id}", "starred_url": "https://api.github.com/users/eswarthammana/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eswarthammana/subscriptions", "organizations_url": "https://api.github.com/users/eswarthammana/orgs", "repos_url": "https://api.github.com/users/eswarthammana/repos", "events_url": "https://api.github.com/users/eswarthammana/events{/privacy}", "received_events_url": "https://api.github.com/users/eswarthammana/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": 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-11-06T13:44:57
2023-11-09T04:59:23
2023-11-09T04:59:23
NONE
null
Hi, could you please share me an working example for text classification using Langchain with LlamaCPP or llama-cpp-python module, when tried the following with Llama2 7B Q5_K_M ``` prompt_template = """A message can be classified as one of the following categories: book, cancel, change. Examples: - Book: "I would like to book a room for two nights." - Cancel: "Please cancel my reservation and refund the payment." - Change: "I need to change the dates of my booking to next week." Based on these categories, classify the following message: ```{text}``` """ ``` The LlamaCPP is as follows ``` llm = LlamaCpp( n_ctx=256, model_path=model, temperature=0, callback_manager=callback_manager, verbose=True, ) ``` result = run_query("I would like to cancel my booking and ask for a refund.", prompt_template, llm) output: > Please help me to solve this issue. > Please assist in resolving the cancellation of the reservation as soon as possible. The above sample is not classifying the given input.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12931/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/12931/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12930
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12930/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12930/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12930/events
https://github.com/langchain-ai/langchain/pull/12930
1,979,195,288
PR_kwDOIPDwls5esOGm
12,930
Fix typo in e2b_data_analysis.ipynb
{ "login": "cbpetersen", "id": 1058981, "node_id": "MDQ6VXNlcjEwNTg5ODE=", "avatar_url": "https://avatars.githubusercontent.com/u/1058981?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cbpetersen", "html_url": "https://github.com/cbpetersen", "followers_url": "https://api.github.com/users/cbpetersen/followers", "following_url": "https://api.github.com/users/cbpetersen/following{/other_user}", "gists_url": "https://api.github.com/users/cbpetersen/gists{/gist_id}", "starred_url": "https://api.github.com/users/cbpetersen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cbpetersen/subscriptions", "organizations_url": "https://api.github.com/users/cbpetersen/orgs", "repos_url": "https://api.github.com/users/cbpetersen/repos", "events_url": "https://api.github.com/users/cbpetersen/events{/privacy}", "received_events_url": "https://api.github.com/users/cbpetersen/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-11-06T13:44:34
2023-11-06T15:37:30
2023-11-06T15:37:30
CONTRIBUTOR
null
Just a small typo fix
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12930/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/12930/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12930", "html_url": "https://github.com/langchain-ai/langchain/pull/12930", "diff_url": "https://github.com/langchain-ai/langchain/pull/12930.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12930.patch", "merged_at": "2023-11-06T15:37:30" }
https://api.github.com/repos/langchain-ai/langchain/issues/12929
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12929/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12929/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12929/events
https://github.com/langchain-ai/langchain/pull/12929
1,979,158,541
PR_kwDOIPDwls5esGDD
12,929
fix regex pattern of structured output parser
{ "login": "hmasdev", "id": 73353463, "node_id": "MDQ6VXNlcjczMzUzNDYz", "avatar_url": "https://avatars.githubusercontent.com/u/73353463?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hmasdev", "html_url": "https://github.com/hmasdev", "followers_url": "https://api.github.com/users/hmasdev/followers", "following_url": "https://api.github.com/users/hmasdev/following{/other_user}", "gists_url": "https://api.github.com/users/hmasdev/gists{/gist_id}", "starred_url": "https://api.github.com/users/hmasdev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hmasdev/subscriptions", "organizations_url": "https://api.github.com/users/hmasdev/orgs", "repos_url": "https://api.github.com/users/hmasdev/repos", "events_url": "https://api.github.com/users/hmasdev/events{/privacy}", "received_events_url": "https://api.github.com/users/hmasdev/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-11-06T13:26:09
2023-11-06T15:53:14
2023-11-06T15:53:14
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/langchain-ai/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. --> - **Description:** fix the regex pattern of [StructuredChatOutputParser](https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/agents/structured_chat/output_parser.py#L18) and add unit tests for the code change. - **Issue:** #12158 #12922 - **Dependencies:** None - **Tag maintainer:** - **Twitter handle:** @hmdev3 - **NOTE:** This PR conflicts #7495 . After #7495 is merged, I am going to update PR.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12929/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/12929/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12929", "html_url": "https://github.com/langchain-ai/langchain/pull/12929", "diff_url": "https://github.com/langchain-ai/langchain/pull/12929.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12929.patch", "merged_at": "2023-11-06T15:53:14" }
https://api.github.com/repos/langchain-ai/langchain/issues/12928
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12928/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12928/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12928/events
https://github.com/langchain-ai/langchain/pull/12928
1,979,141,037
PR_kwDOIPDwls5esCQB
12,928
add baidu cloud vectorsearch document
{ "login": "wemysschen", "id": 38650638, "node_id": "MDQ6VXNlcjM4NjUwNjM4", "avatar_url": "https://avatars.githubusercontent.com/u/38650638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wemysschen", "html_url": "https://github.com/wemysschen", "followers_url": "https://api.github.com/users/wemysschen/followers", "following_url": "https://api.github.com/users/wemysschen/following{/other_user}", "gists_url": "https://api.github.com/users/wemysschen/gists{/gist_id}", "starred_url": "https://api.github.com/users/wemysschen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wemysschen/subscriptions", "organizations_url": "https://api.github.com/users/wemysschen/orgs", "repos_url": "https://api.github.com/users/wemysschen/repos", "events_url": "https://api.github.com/users/wemysschen/events{/privacy}", "received_events_url": "https://api.github.com/users/wemysschen/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": 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-11-06T13:16:37
2023-11-06T15:52:51
2023-11-06T15:52:51
CONTRIBUTOR
null
**Description:** Add BaiduCloud VectorSearch document with implement of BESVectorSearch in langchain vectorstores
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12928/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/12928/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12928", "html_url": "https://github.com/langchain-ai/langchain/pull/12928", "diff_url": "https://github.com/langchain-ai/langchain/pull/12928.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12928.patch", "merged_at": "2023-11-06T15:52:51" }
https://api.github.com/repos/langchain-ai/langchain/issues/12927
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12927/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12927/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12927/events
https://github.com/langchain-ai/langchain/pull/12927
1,979,048,899
PR_kwDOIPDwls5eru3y
12,927
Neo4j conversation cypher template
{ "login": "tomasonjo", "id": 19948365, "node_id": "MDQ6VXNlcjE5OTQ4MzY1", "avatar_url": "https://avatars.githubusercontent.com/u/19948365?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tomasonjo", "html_url": "https://github.com/tomasonjo", "followers_url": "https://api.github.com/users/tomasonjo/followers", "following_url": "https://api.github.com/users/tomasonjo/following{/other_user}", "gists_url": "https://api.github.com/users/tomasonjo/gists{/gist_id}", "starred_url": "https://api.github.com/users/tomasonjo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tomasonjo/subscriptions", "organizations_url": "https://api.github.com/users/tomasonjo/orgs", "repos_url": "https://api.github.com/users/tomasonjo/repos", "events_url": "https://api.github.com/users/tomasonjo/events{/privacy}", "received_events_url": "https://api.github.com/users/tomasonjo/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": 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": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }, { "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false } ]
null
1
2023-11-06T12:37:41
2023-11-07T19:05:29
2023-11-07T19:05:28
CONTRIBUTOR
null
Adding custom graph memory to Cypher chain
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12927/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/12927/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12927", "html_url": "https://github.com/langchain-ai/langchain/pull/12927", "diff_url": "https://github.com/langchain-ai/langchain/pull/12927.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12927.patch", "merged_at": "2023-11-07T19:05:28" }
https://api.github.com/repos/langchain-ai/langchain/issues/12926
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12926/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12926/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12926/events
https://github.com/langchain-ai/langchain/issues/12926
1,978,862,164
I_kwDOIPDwls518wpU
12,926
Amazon Bedrock streaming not working with stop sequence
{ "login": "sibijr", "id": 8148279, "node_id": "MDQ6VXNlcjgxNDgyNzk=", "avatar_url": "https://avatars.githubusercontent.com/u/8148279?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sibijr", "html_url": "https://github.com/sibijr", "followers_url": "https://api.github.com/users/sibijr/followers", "following_url": "https://api.github.com/users/sibijr/following{/other_user}", "gists_url": "https://api.github.com/users/sibijr/gists{/gist_id}", "starred_url": "https://api.github.com/users/sibijr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sibijr/subscriptions", "organizations_url": "https://api.github.com/users/sibijr/orgs", "repos_url": "https://api.github.com/users/sibijr/repos", "events_url": "https://api.github.com/users/sibijr/events{/privacy}", "received_events_url": "https://api.github.com/users/sibijr/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" } ]
closed
false
null
[]
null
1
2023-11-06T11:03:20
2023-11-06T11:24:18
2023-11-06T11:24:00
NONE
null
### System Info ### Issue you'd like to raise. Bedrock Streaming support was added in the [PR](https://github.com/langchain-ai/langchain/pull/10393/files#diff-9874347f7fa335df661ff4089b0922b3214e08a92e9879610424522f806358f7R62) But there is an issue if streaming is enabled with `stop sequence`, See the below code, tailing comma is added to the `self.provider_stop_sequence_key_name_map.get(provider),` which is causing ``` "TypeError('keys must be str, int, float, bool or None, not tuple')" line 35, in _prepare_input_and_invoke_stream body = json.dumps(input_body) {'temperature': 0, 'max_tokens_to_sample': 4048, ('stop_sequences',): ['<observation>'], 'prompt': '\n\nHuman: ``` ``` if stop: if provider not in self.provider_stop_sequence_key_name_map: raise ValueError( f"Stop sequence key name for {provider} is not supported." ) # stop sequence from _generate() overrides # stop sequences in the class attribute _model_kwargs[ self.provider_stop_sequence_key_name_map.get(provider), ] = stop ``` ### Suggested fix Remove the trailing comma after `self.provider_stop_sequence_key_name_map.get(provider)` in the `_prepare_input_and_invoke_stream` method. For example: ``` _model_kwargs[ self.provider_stop_sequence_key_name_map.get(provider) ] = stop ``` This will resolve the TypeError and allow the stop sequence to be properly passed for streaming. ### Who can help? cc @3coins @baskaryan @mukitmomi ### Information - [ ] The official example notebooks/scripts - [ ] 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 - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction enable bedrock streaming with stop sequence. ``` "TypeError('keys must be str, int, float, bool or None, not tuple')" line 35, in _prepare_input_and_invoke_stream body = json.dumps(input_body) {'temperature': 0, 'max_tokens_to_sample': 4048, ('stop_sequences',): ['<observation>'], 'prompt': '\n\nHuman: ``` ### Expected behavior {'temperature': 0, 'max_tokens_to_sample': 4048, 'stop_sequences': ['<observation>'], 'prompt': '\n\nHuman: stop_sequences as str key.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12926/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/12926/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12925
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12925/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12925/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12925/events
https://github.com/langchain-ai/langchain/issues/12925
1,978,817,037
I_kwDOIPDwls518loN
12,925
Pandas data frame agent hallucinates when asking a quesry: Sending python code insted of actual result
{ "login": "Siddharth-1698", "id": 66638045, "node_id": "MDQ6VXNlcjY2NjM4MDQ1", "avatar_url": "https://avatars.githubusercontent.com/u/66638045?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Siddharth-1698", "html_url": "https://github.com/Siddharth-1698", "followers_url": "https://api.github.com/users/Siddharth-1698/followers", "following_url": "https://api.github.com/users/Siddharth-1698/following{/other_user}", "gists_url": "https://api.github.com/users/Siddharth-1698/gists{/gist_id}", "starred_url": "https://api.github.com/users/Siddharth-1698/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Siddharth-1698/subscriptions", "organizations_url": "https://api.github.com/users/Siddharth-1698/orgs", "repos_url": "https://api.github.com/users/Siddharth-1698/repos", "events_url": "https://api.github.com/users/Siddharth-1698/events{/privacy}", "received_events_url": "https://api.github.com/users/Siddharth-1698/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" } ]
open
false
null
[]
null
6
2023-11-06T10:38:37
2023-11-07T08:06:41
null
NONE
null
I created a pandas dataframe agent when i am querying over multiple csv files sometimes it is giving correct answer some time it is hallucinates by giving the python code to run to get the answer. Here's the response I am getting: ``` To determine the region with the highest total revenue, we can group the data by region and calculate the sum of the total revenue for each region. Then, we can find the region with the highest sum. Here is the corresponding Python code to find the region with the highest total revenue, as well as the corresponding country and item type: # Group the data by region and calculate the sum of total revenue for each region region_revenue = df.groupby('Region')['Total Revenue'].sum() # Find the region with the highest total revenue highest_revenue_region = region_revenue.idxmax() # Find the corresponding country and item type for the highest revenue region corresponding_country = df[df['Region'] == highest_revenue_region]['Country'].iloc[0] corresponding_item_type = df[df['Region'] == highest_revenue_region]['Item Type'].iloc[0] highest_revenue_region, corresponding_country, corresponding_item_type The region with the highest total revenue is Middle East and North Africa. The corresponding country is Azerbaijan and the corresponding item type is Snacks. ``` here is the agent i initiated: ``` create_pandas_dataframe_agent( ChatOpenAI(temperature=0.0, verbose=True, model='gpt-3.5-turbo' ), self.df, verbose=True, max_iterations=20, agent_type=AgentType.OPENAI_FUNCTIONS, # handle_parsing_errors=True, agent_executor_kwargs={ "handle_parsing_errors": True } ) ``` Do you think the chain is stopping in between before completing the response?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12925/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/12925/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12924
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12924/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12924/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12924/events
https://github.com/langchain-ai/langchain/pull/12924
1,978,785,209
PR_kwDOIPDwls5eq0pu
12,924
fix baiducloud directory loader import file loader
{ "login": "wemysschen", "id": 38650638, "node_id": "MDQ6VXNlcjM4NjUwNjM4", "avatar_url": "https://avatars.githubusercontent.com/u/38650638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wemysschen", "html_url": "https://github.com/wemysschen", "followers_url": "https://api.github.com/users/wemysschen/followers", "following_url": "https://api.github.com/users/wemysschen/following{/other_user}", "gists_url": "https://api.github.com/users/wemysschen/gists{/gist_id}", "starred_url": "https://api.github.com/users/wemysschen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wemysschen/subscriptions", "organizations_url": "https://api.github.com/users/wemysschen/orgs", "repos_url": "https://api.github.com/users/wemysschen/repos", "events_url": "https://api.github.com/users/wemysschen/events{/privacy}", "received_events_url": "https://api.github.com/users/wemysschen/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-11-06T10:21:58
2023-11-07T14:05:33
2023-11-06T15:52:32
CONTRIBUTOR
null
**Issue:** fix baiducloud BOS directory loader imports its file loader
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12924/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/12924/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12924", "html_url": "https://github.com/langchain-ai/langchain/pull/12924", "diff_url": "https://github.com/langchain-ai/langchain/pull/12924.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12924.patch", "merged_at": "2023-11-06T15:52:31" }
https://api.github.com/repos/langchain-ai/langchain/issues/12923
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12923/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12923/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12923/events
https://github.com/langchain-ai/langchain/issues/12923
1,978,615,854
I_kwDOIPDwls5170gu
12,923
Issue: Unable to Merge confluence and githubissues loader
{ "login": "arnavroh45", "id": 58484869, "node_id": "MDQ6VXNlcjU4NDg0ODY5", "avatar_url": "https://avatars.githubusercontent.com/u/58484869?v=4", "gravatar_id": "", "url": "https://api.github.com/users/arnavroh45", "html_url": "https://github.com/arnavroh45", "followers_url": "https://api.github.com/users/arnavroh45/followers", "following_url": "https://api.github.com/users/arnavroh45/following{/other_user}", "gists_url": "https://api.github.com/users/arnavroh45/gists{/gist_id}", "starred_url": "https://api.github.com/users/arnavroh45/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arnavroh45/subscriptions", "organizations_url": "https://api.github.com/users/arnavroh45/orgs", "repos_url": "https://api.github.com/users/arnavroh45/repos", "events_url": "https://api.github.com/users/arnavroh45/events{/privacy}", "received_events_url": "https://api.github.com/users/arnavroh45/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" } ]
open
false
null
[]
null
2
2023-11-06T08:54:54
2023-11-06T09:05:28
null
NONE
null
Wanted to merge confluence and githubissue loader. But facing a problem as confluence loader requires additional arguments while loading. So, I am unable to use the MergedDataLoader here. Code: loader = ConfluenceLoader(url="URL", username="USER", api_key="API") loader1 = GitHubIssuesLoader(repo="REPO", access_token="TOKEN") loader_all = MergedDataLoader(loaders=[loader1, loader]) documents = loader_all.load() text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=0) Error: ValueError: Must specify at least one among `space_key`, `page_ids`, `label`, `cql` parameters. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12923/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/12923/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12922
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12922/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12922/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12922/events
https://github.com/langchain-ai/langchain/issues/12922
1,978,555,611
I_kwDOIPDwls517lzb
12,922
Issue: StructuredChatOutputParser regex may prevent agent's actions
{ "login": "hmasdev", "id": 73353463, "node_id": "MDQ6VXNlcjczMzUzNDYz", "avatar_url": "https://avatars.githubusercontent.com/u/73353463?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hmasdev", "html_url": "https://github.com/hmasdev", "followers_url": "https://api.github.com/users/hmasdev/followers", "following_url": "https://api.github.com/users/hmasdev/following{/other_user}", "gists_url": "https://api.github.com/users/hmasdev/gists{/gist_id}", "starred_url": "https://api.github.com/users/hmasdev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hmasdev/subscriptions", "organizations_url": "https://api.github.com/users/hmasdev/orgs", "repos_url": "https://api.github.com/users/hmasdev/repos", "events_url": "https://api.github.com/users/hmasdev/events{/privacy}", "received_events_url": "https://api.github.com/users/hmasdev/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-11-06T08:20:11
2023-11-06T23:43:40
2023-11-06T23:43:40
CONTRIBUTOR
null
### System Info Python == 3.11.3 Langchain == 0.0.330 ### 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 - [X] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```bash Python 3.11.3 (tags/v3.11.3:f3909b8, Apr 4 2023, 23:49:59) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import langchain >>> langchain.__version__ '0.0.330' >>> from langchain.agents import load_tools, initialize_agent, AgentType >>> from langchain.chains.conversation.memory import ConversationBufferMemory >>> from langchain.chat_models import ChatOpenAI >>> agent = initialize_agent( ... agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION, ... llm=ChatOpenAI(model='gpt-3.5-turbo', temperature=0), ... memory=ConversationBufferMemory(), ... verbose=True, ... handle_parsing_errors=True, ... tools=load_tools(tool_names=["requests_get"]), ... ) >>> agent.run('Search the latest version of python') > Entering new AgentExecutor chain... Thought: I can use the requests_get tool to search for the latest version of Python on the official Python website. Action: ```{"action": "requests_get", "action_input": {"url": "https://www.python.org/downloads/"}}``` > Finished chain. 'Thought: I can use the requests_get tool to search for the latest version of Python on the official Python website.\n\nAction:\n```{"action": "requests_get", "action_input": {"url": "https://www.python.org/downloads/"}}```' ``` ### Expected behavior I expect agent to execute the action, `requests_get` in the above case. NOTE: In the above case, InvalidRequestError would be raised after executing `requests_get` because the number of tokens is very large. Related: #12158
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12922/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/12922/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12921
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12921/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12921/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12921/events
https://github.com/langchain-ai/langchain/pull/12921
1,978,553,148
PR_kwDOIPDwls5eqCZD
12,921
Add ERNIE LLMs family supporting for the Chat-Model Agents
{ "login": "wangwei1237", "id": 3480154, "node_id": "MDQ6VXNlcjM0ODAxNTQ=", "avatar_url": "https://avatars.githubusercontent.com/u/3480154?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wangwei1237", "html_url": "https://github.com/wangwei1237", "followers_url": "https://api.github.com/users/wangwei1237/followers", "following_url": "https://api.github.com/users/wangwei1237/following{/other_user}", "gists_url": "https://api.github.com/users/wangwei1237/gists{/gist_id}", "starred_url": "https://api.github.com/users/wangwei1237/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wangwei1237/subscriptions", "organizations_url": "https://api.github.com/users/wangwei1237/orgs", "repos_url": "https://api.github.com/users/wangwei1237/repos", "events_url": "https://api.github.com/users/wangwei1237/events{/privacy}", "received_events_url": "https://api.github.com/users/wangwei1237/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" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-11-06T08:18:39
2023-11-22T11:33:38
2023-11-22T11:33:35
CONTRIBUTOR
null
- **Description:** According to the document https://cloud.baidu.com/doc/WENXINWORKSHOP/s/clntwmv7t and https://cloud.baidu.com/doc/WENXINWORKSHOP/s/4lilb2lpf, add `ERNIE` LLMs family supporting for the *Chat-Model agents* such as `ChatAgent`, `ConversationalChatAgent`, `StructuredChatAgent`. The chat message list limitations of the ERNIE large language model are as follows: - It must have an odd number of members. - The role of the message in the message list must be `user`, `assistant`, and then `assistant` again.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12921/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/12921/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12921", "html_url": "https://github.com/langchain-ai/langchain/pull/12921", "diff_url": "https://github.com/langchain-ai/langchain/pull/12921.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12921.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12920
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12920/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12920/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12920/events
https://github.com/langchain-ai/langchain/pull/12920
1,978,506,912
PR_kwDOIPDwls5ep4mw
12,920
Added support for filter out AWS Kendra search by score confidence
{ "login": "Smit-Parmar", "id": 61695474, "node_id": "MDQ6VXNlcjYxNjk1NDc0", "avatar_url": "https://avatars.githubusercontent.com/u/61695474?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Smit-Parmar", "html_url": "https://github.com/Smit-Parmar", "followers_url": "https://api.github.com/users/Smit-Parmar/followers", "following_url": "https://api.github.com/users/Smit-Parmar/following{/other_user}", "gists_url": "https://api.github.com/users/Smit-Parmar/gists{/gist_id}", "starred_url": "https://api.github.com/users/Smit-Parmar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Smit-Parmar/subscriptions", "organizations_url": "https://api.github.com/users/Smit-Parmar/orgs", "repos_url": "https://api.github.com/users/Smit-Parmar/repos", "events_url": "https://api.github.com/users/Smit-Parmar/events{/privacy}", "received_events_url": "https://api.github.com/users/Smit-Parmar/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": 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" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 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
6
2023-11-06T07:49:35
2024-01-09T18:17:13
null
NONE
null
**Description:** It will add support for filter out kendra search by score confidence which will make result more accurate. For example ``` retriever = AmazonKendraRetriever( index_id=kendra_index_id, top_k=5, region_name=region, score_confidence="HIGH" ) ``` Result will not include the records which has score confidence "LOW" or "MEDIUM". Relevant docs https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kendra/client/query.html https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kendra/client/retrieve.html **Issue:** the issue # it resolve #11801 **twitter:** [@SmitCode](https://twitter.com/SmitCode)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12920/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/12920/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12920", "html_url": "https://github.com/langchain-ai/langchain/pull/12920", "diff_url": "https://github.com/langchain-ai/langchain/pull/12920.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12920.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/12919
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12919/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12919/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12919/events
https://github.com/langchain-ai/langchain/issues/12919
1,978,337,091
I_kwDOIPDwls516wdD
12,919
Issue: tool get called many times
{ "login": "shaojun", "id": 3241829, "node_id": "MDQ6VXNlcjMyNDE4Mjk=", "avatar_url": "https://avatars.githubusercontent.com/u/3241829?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shaojun", "html_url": "https://github.com/shaojun", "followers_url": "https://api.github.com/users/shaojun/followers", "following_url": "https://api.github.com/users/shaojun/following{/other_user}", "gists_url": "https://api.github.com/users/shaojun/gists{/gist_id}", "starred_url": "https://api.github.com/users/shaojun/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shaojun/subscriptions", "organizations_url": "https://api.github.com/users/shaojun/orgs", "repos_url": "https://api.github.com/users/shaojun/repos", "events_url": "https://api.github.com/users/shaojun/events{/privacy}", "received_events_url": "https://api.github.com/users/shaojun/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": 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-11-06T05:43:34
2023-11-06T05:56:04
null
NONE
null
### Issue you'd like to raise. I've created a tool of parsing text content from pdf files, by adding it to the llm, the tool can get called correclty if I input the text, but the problem is the tool get called many times(I just wait there for minitues and then stopped.), could you help: ``` class ChatLlmWithTools(): def __init__(self) -> None: from langchain.chat_models import ChatOpenAI from langchain.agents.format_scratchpad import format_to_openai_functions from langchain.agents.output_parsers import OpenAIFunctionsAgentOutputParser from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder from langchain.chains.conversation.memory import ConversationBufferWindowMemory from langchain.prompts import ( ChatPromptTemplate, MessagesPlaceholder, SystemMessagePromptTemplate, HumanMessagePromptTemplate, ) import pdf2pdf.tools.pdf_tool from langchain.agents import load_tools llm = ChatOpenAI(openai_api_key="xxxxxxxx", temperature=0, model_name='gpt-3.5-turbo-16k-0613') tools = [Tool(name="parse_text_and_images_from_pdf_files_with_pdfminer", func=pdf2pdf.pdf_utility.parse_text_and_images_from_pdf_files_with_pdfminer, description="Parse text and images from pdf files under target folder")] tools[0].callbacks = [AgentAndToolExecutionWatcherHandler()] llm_with_tools = llm.bind( functions=[format_tool_to_openai_function(t) for t in tools] ) prompt = ChatPromptTemplate( messages=[ SystemMessagePromptTemplate.from_template( "You are a nice chatbot having a conversation with a human, but bad at parse text and images from pdf files." ), # The `variable_name` here is what must align with memory MessagesPlaceholder(variable_name="chat_history"), MessagesPlaceholder(variable_name="agent_scratchpad"), HumanMessagePromptTemplate.from_template("{input}") ] ) agent = ({ "input": lambda x: x["input"], "agent_scratchpad": lambda x: format_to_openai_functions(x['intermediate_steps']), "chat_history": lambda x: x["chat_history"], } | prompt | llm_with_tools | OpenAIFunctionsAgentOutputParser()) from langchain.agents import AgentExecutor # initialize conversational memory memory = ConversationBufferWindowMemory( memory_key='chat_history', k=3, return_messages=True ) self.agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True, memory=memory, #max_iterations=2, callbacks=[AgentAndToolExecutionWatcherHandler()]) def process(self, param_str_from: str): output = self.agent_executor.invoke({"input": param_str_from}) # print(output) return output['output'] ``` this is the unit test for test above agent, and can see the last `process` call can trigger the call to tool, but it's inifinit: ``` llmWithTool = ChatLlmWithTools() llm_msg0 = llmWithTool.process('can you do gerneral chatting, pls remember my name is john, my age is 30?') llm_msg1 = llmWithTool.process('can you say my name, and tell me what is 1+1?') llm_msg2 = llmWithTool.process('can you show my age?') #below line will trigger call tool function time and time again llm_msg9 = llmWithTool.process('can you parse text and extract images from pdf files under target folder: {}'.format( os.path.join(mygptsite.settings.BASE_DIR, 'uploaded_pdf_folder', '20231106103207672___example'))) ``` the part of log in debug console is like: > ... > ... > > Finished chain. > Sure, John! Your age is 30. > > > > Entering new AgentExecutor chain... > on_agent_action, tool: parse_text_and_images_from_pdf_files_with_pdfminer is selected, tool_input: C:\Users\xxx\source\repos\xxxxx\uploaded_pdf_folder\20231106103207672___example > > Invoking: `parse_text_and_images_from_pdf_files_with_pdfminer` with `C:\Users\xxxx\source\repos\xxxxx\uploaded_pdf_folder\20231106103207672___example` > > > on_tool_start, input_str: C:\Users\xxxxx\source\repos\xxxx\uploaded_pdf_folder\20231106103207672___example > on_tool_end, output: I am th test msg parsed from pdf files with pdfminer > I am th test msg parsed from pdf files with pdfmineron_agent_action, tool: parse_text_and_images_from_pdf_files_with_pdfminer is selected, tool_input: C:\Users\xxxx\source\repos\xxxx\uploaded_pdf_folder\20231106103207672___example > > Invoking: `parse_text_and_images_from_pdf_files_with_pdfminer` with `C:\Users\xxxxx\source\repos\xxxx\uploaded_pdf_folder\20231106103207672___example` > > > on_tool_start, input_str: C:\Users\xxxx\source\repos\xxxx\uploaded_pdf_folder\20231106103207672___example > on_tool_end, output: I am th test msg parsed from pdf files with pdfminer > I am th test msg parsed from pdf files with pdfmineron_agent_action, tool: parse_text_and_images_from_pdf_files_with_pdfminer is selected, tool_input: C:\Users\xxxxx\source\repos\xxxx\uploaded_pdf_folder\20231106103207672___example > > Invoking: `parse_text_and_images_from_pdf_files_with_pdfminer` with `C:\Users\xxxx\source\repos\xxxx\uploaded_pdf_folder\20231106103207672___example` > > > on_tool_start, input_str: C:\Users\xxxxx\source\repos\xxxx\uploaded_pdf_folder\20231106103207672___example > on_tool_end, output: I am th test msg parsed from pdf files with pdfminer ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12919/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/12919/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/12918
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/12918/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/12918/comments
https://api.github.com/repos/langchain-ai/langchain/issues/12918/events
https://github.com/langchain-ai/langchain/pull/12918
1,978,256,675
PR_kwDOIPDwls5epCDq
12,918
use keys not items
{ "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": 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-11-06T04:20:28
2023-11-06T06:08:30
2023-11-06T06:08:29
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/12918/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/12918/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12918", "html_url": "https://github.com/langchain-ai/langchain/pull/12918", "diff_url": "https://github.com/langchain-ai/langchain/pull/12918.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/12918.patch", "merged_at": "2023-11-06T06:08:29" }