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/6100
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6100/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6100/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6100/events
https://github.com/langchain-ai/langchain/pull/6100
1,755,357,859
PR_kwDOIPDwls5S6Z5K
6,100
convert tools to openai
{ "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 }
[]
closed
false
null
[]
null
0
2023-06-13T17:28:40
2023-06-13T17:40:50
2023-06-13T17:40:49
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6100/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/6100/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6100", "html_url": "https://github.com/langchain-ai/langchain/pull/6100", "diff_url": "https://github.com/langchain-ai/langchain/pull/6100.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6100.patch", "merged_at": "2023-06-13T17:40:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/6099
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6099/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6099/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6099/events
https://github.com/langchain-ai/langchain/pull/6099
1,755,353,986
PR_kwDOIPDwls5S6ZD1
6,099
support functions
{ "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 }
[]
closed
false
null
[]
null
0
2023-06-13T17:25:57
2023-06-13T17:32:59
2023-06-13T17:32:58
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6099/reactions", "total_count": 8, "+1": 8, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6099/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6099", "html_url": "https://github.com/langchain-ai/langchain/pull/6099", "diff_url": "https://github.com/langchain-ai/langchain/pull/6099.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6099.patch", "merged_at": "2023-06-13T17:32:58" }
https://api.github.com/repos/langchain-ai/langchain/issues/6098
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6098/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6098/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6098/events
https://github.com/langchain-ai/langchain/issues/6098
1,755,327,431
I_kwDOIPDwls5ooCvH
6,098
This new feature return_intermediate_steps=True is not working as intended, can you please update
{ "login": "sarath-nalluri", "id": 72062105, "node_id": "MDQ6VXNlcjcyMDYyMTA1", "avatar_url": "https://avatars.githubusercontent.com/u/72062105?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sarath-nalluri", "html_url": "https://github.com/sarath-nalluri", "followers_url": "https://api.github.com/users/sarath-nalluri/followers", "following_url": "https://api.github.com/users/sarath-nalluri/following{/other_user}", "gists_url": "https://api.github.com/users/sarath-nalluri/gists{/gist_id}", "starred_url": "https://api.github.com/users/sarath-nalluri/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sarath-nalluri/subscriptions", "organizations_url": "https://api.github.com/users/sarath-nalluri/orgs", "repos_url": "https://api.github.com/users/sarath-nalluri/repos", "events_url": "https://api.github.com/users/sarath-nalluri/events{/privacy}", "received_events_url": "https://api.github.com/users/sarath-nalluri/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-13T17:05:24
2023-06-14T05:59:32
2023-06-14T05:59:31
NONE
null
https://github.com/hwchase17/langchain/blame/ee3d0513addae0680a30afa384431a032244e76b/langchain/chains/graph_qa/cypher.py#L40 @tomasonjo This new feature **return_intermediate_steps=True** is not working as intended, can you please update There is some issue in line number 258 of "langchain\chains\base.py" **return self(args[0], callbacks=callbacks)[self.output_keys[0]]** the above line always makes it to return only the result and not the intermediate steps. As a temporary solution I modified line no: 130 of "langchain\chains\graph_qa\cypher.py" to return **{"result":chain_result}** which works. Thanks in advance!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6098/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/6098/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6097
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6097/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6097/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6097/events
https://github.com/langchain-ai/langchain/issues/6097
1,755,322,847
I_kwDOIPDwls5ooBnf
6,097
OpenAI Cost calculation could have a bug!
{ "login": "medram", "id": 24493753, "node_id": "MDQ6VXNlcjI0NDkzNzUz", "avatar_url": "https://avatars.githubusercontent.com/u/24493753?v=4", "gravatar_id": "", "url": "https://api.github.com/users/medram", "html_url": "https://github.com/medram", "followers_url": "https://api.github.com/users/medram/followers", "following_url": "https://api.github.com/users/medram/following{/other_user}", "gists_url": "https://api.github.com/users/medram/gists{/gist_id}", "starred_url": "https://api.github.com/users/medram/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/medram/subscriptions", "organizations_url": "https://api.github.com/users/medram/orgs", "repos_url": "https://api.github.com/users/medram/repos", "events_url": "https://api.github.com/users/medram/events{/privacy}", "received_events_url": "https://api.github.com/users/medram/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-13T17:02:34
2023-09-19T16:08:11
2023-09-19T16:08:10
NONE
null
### System Info I've run a prompt that said `1 + 1 = ?` with my agent, I've used `get_openai_callback` to show some metric (see the image): ![test](https://i.imgur.com/YS2pBh7.png) Used LLM model is `GPT-3.5-turbo` On OpenAI website we have for `GPT-3.5-turbo` model a `0.002/1k tokens`, that means my test/prompt should cost: 2206 ÷ 1000 x 0.002 = 0.004412 The weird thing based on my test is the cost, it shows `$0.04412` and not `$0.004412` It could be a bug, Any ideas? Here is the code: ```python with get_openai_callback() as cb: response = agent.run(prompt) # Show OpenAI Cost print(f"Total Tokens: {cb.total_tokens}") print(f"Prompt Tokens: {cb.prompt_tokens}") print(f"Completion Tokens: {cb.completion_tokens}") print(f"Total Cost (USD): ${cb.total_cost}") ``` Can anyone please explain what's going on? Thanks in advance. ### 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 - [X] Callbacks/Tracing - [ ] Async @agola11 @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6097/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/6097/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6096
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6096/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6096/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6096/events
https://github.com/langchain-ai/langchain/issues/6096
1,755,240,397
I_kwDOIPDwls5ontfN
6,096
A change in the output format of documents loaded with CSVLoader: (+ weird redundancy in the output)
{ "login": "mohamedjihedriahi", "id": 73398782, "node_id": "MDQ6VXNlcjczMzk4Nzgy", "avatar_url": "https://avatars.githubusercontent.com/u/73398782?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mohamedjihedriahi", "html_url": "https://github.com/mohamedjihedriahi", "followers_url": "https://api.github.com/users/mohamedjihedriahi/followers", "following_url": "https://api.github.com/users/mohamedjihedriahi/following{/other_user}", "gists_url": "https://api.github.com/users/mohamedjihedriahi/gists{/gist_id}", "starred_url": "https://api.github.com/users/mohamedjihedriahi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mohamedjihedriahi/subscriptions", "organizations_url": "https://api.github.com/users/mohamedjihedriahi/orgs", "repos_url": "https://api.github.com/users/mohamedjihedriahi/repos", "events_url": "https://api.github.com/users/mohamedjihedriahi/events{/privacy}", "received_events_url": "https://api.github.com/users/mohamedjihedriahi/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-13T16:08:21
2023-09-26T16:05:53
2023-09-26T16:05:52
NONE
null
### System Info from this format (example): [Document(page_content='Team: **Athletics**'', metadata={'source': '**my source1**', 'row': **0**}, lookup_index=0), Document(page_content='Team: **Rangers**', lookup_str='', metadata={'source': '**my source2**', 'row': **1**}, lookup_index=0), Document(page_content='Team: **Yankees**', lookup_str='', metadata={'source': '**my source3**', 'row': **2**},lookup_index=0)] To this: [Document(**lc_kwargs**={page_content='Team: **Athletics**'', metadata={'source': '**my source1**', 'row': **0**}, lookup_index=0), page_content='Team: **Athletics**'', metadata={'source': '**my source1**', 'row': **0**}, lookup_index=0), Document(**lc_kwargs**={page_content='Team: **Rangers**', lookup_str='', metadata={'source': '**my source2**', 'row': **1**}, lookup_index=0),page_content='Team: **Rangers**', lookup_str='', metadata={'source': '**my source2**', 'row': **1**}, lookup_index=0), Document(**lc_kwargs**={page_content='Team: **Yankees**', lookup_str='', metadata={'source': '**my source3**', 'row': **2**},lookup_index=0), page_content='Team: **Yankees**', lookup_str='', metadata={'source': '**my source3**', 'row': **2**},lookup_index=0)] ### Who can help? @hwchase17 @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 - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Check out my colab notebook for better understanding: https://colab.research.google.com/drive/1w8ZTAkapRev8KHI9w4IAk37T9GfFGWW2?usp=drive_link#scrollTo=tl502z9-RRJC ### Expected behavior expected output (as you can see in the official doc: [https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/csv.html] ) : [Document(page_content='Team: Nationals\n"Payroll (millions)": 81.34\n"Wins": 98', lookup_str='', metadata={'source': './example_data/mlb_teams_2012.csv', 'row': 0}, lookup_index=0), Document(page_content='Team: Reds\n"Payroll (millions)": 82.20\n"Wins": 97', lookup_str='', metadata={'source': './example_data/mlb_teams_2012.csv', 'row': 1}, lookup_index=0)]
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6096/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/6096/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6095
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6095/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6095/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6095/events
https://github.com/langchain-ai/langchain/pull/6095
1,755,210,307
PR_kwDOIPDwls5S55dR
6,095
Run event handler inline if it's not an async function
{ "login": "mariokostelac", "id": 1917451, "node_id": "MDQ6VXNlcjE5MTc0NTE=", "avatar_url": "https://avatars.githubusercontent.com/u/1917451?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mariokostelac", "html_url": "https://github.com/mariokostelac", "followers_url": "https://api.github.com/users/mariokostelac/followers", "following_url": "https://api.github.com/users/mariokostelac/following{/other_user}", "gists_url": "https://api.github.com/users/mariokostelac/gists{/gist_id}", "starred_url": "https://api.github.com/users/mariokostelac/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mariokostelac/subscriptions", "organizations_url": "https://api.github.com/users/mariokostelac/orgs", "repos_url": "https://api.github.com/users/mariokostelac/repos", "events_url": "https://api.github.com/users/mariokostelac/events{/privacy}", "received_events_url": "https://api.github.com/users/mariokostelac/received_events", "type": "User", "site_admin": false }
[]
closed
false
{ "login": "agola11", "id": 9536492, "node_id": "MDQ6VXNlcjk1MzY0OTI=", "avatar_url": "https://avatars.githubusercontent.com/u/9536492?v=4", "gravatar_id": "", "url": "https://api.github.com/users/agola11", "html_url": "https://github.com/agola11", "followers_url": "https://api.github.com/users/agola11/followers", "following_url": "https://api.github.com/users/agola11/following{/other_user}", "gists_url": "https://api.github.com/users/agola11/gists{/gist_id}", "starred_url": "https://api.github.com/users/agola11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/agola11/subscriptions", "organizations_url": "https://api.github.com/users/agola11/orgs", "repos_url": "https://api.github.com/users/agola11/repos", "events_url": "https://api.github.com/users/agola11/events{/privacy}", "received_events_url": "https://api.github.com/users/agola11/received_events", "type": "User", "site_admin": false }
[ { "login": "agola11", "id": 9536492, "node_id": "MDQ6VXNlcjk1MzY0OTI=", "avatar_url": "https://avatars.githubusercontent.com/u/9536492?v=4", "gravatar_id": "", "url": "https://api.github.com/users/agola11", "html_url": "https://github.com/agola11", "followers_url": "https://api.github.com/users/agola11/followers", "following_url": "https://api.github.com/users/agola11/following{/other_user}", "gists_url": "https://api.github.com/users/agola11/gists{/gist_id}", "starred_url": "https://api.github.com/users/agola11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/agola11/subscriptions", "organizations_url": "https://api.github.com/users/agola11/orgs", "repos_url": "https://api.github.com/users/agola11/repos", "events_url": "https://api.github.com/users/agola11/events{/privacy}", "received_events_url": "https://api.github.com/users/agola11/received_events", "type": "User", "site_admin": false } ]
null
4
2023-06-13T15:54:52
2023-06-19T14:20:41
2023-06-19T14:20:41
CONTRIBUTOR
null
When we try to run a callback as part of an async call, we can potentially get an async function. - If that's the case, we should call await on it to make sure it's finished before we move on. - If it's not an async function, is a plain old function, and we should just call it. This makes the setup slightly cleaner because it's not creating a new context several times for one callback. @hwchase17, @agola11. Twitter username is @mariokostelac.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6095/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/6095/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6095", "html_url": "https://github.com/langchain-ai/langchain/pull/6095", "diff_url": "https://github.com/langchain-ai/langchain/pull/6095.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6095.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6094
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6094/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6094/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6094/events
https://github.com/langchain-ai/langchain/pull/6094
1,755,115,718
PR_kwDOIPDwls5S5kbk
6,094
Firestore supported matchingengine
{ "login": "Majidbadal", "id": 114956600, "node_id": "U_kgDOBtoZOA", "avatar_url": "https://avatars.githubusercontent.com/u/114956600?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Majidbadal", "html_url": "https://github.com/Majidbadal", "followers_url": "https://api.github.com/users/Majidbadal/followers", "following_url": "https://api.github.com/users/Majidbadal/following{/other_user}", "gists_url": "https://api.github.com/users/Majidbadal/gists{/gist_id}", "starred_url": "https://api.github.com/users/Majidbadal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Majidbadal/subscriptions", "organizations_url": "https://api.github.com/users/Majidbadal/orgs", "repos_url": "https://api.github.com/users/Majidbadal/repos", "events_url": "https://api.github.com/users/Majidbadal/events{/privacy}", "received_events_url": "https://api.github.com/users/Majidbadal/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
7
2023-06-13T15:08:52
2023-09-15T15:30:54
null
NONE
null
So far the matching engine vector store module only supported GCS as backend storage. I have added support for firestore as it is a nicer option for document storage. The corresponding matching engine notebook example is adjusted accordingly. #### Who can review? Tag maintainers/contributors who might be interested: @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6094/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/6094/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6094", "html_url": "https://github.com/langchain-ai/langchain/pull/6094", "diff_url": "https://github.com/langchain-ai/langchain/pull/6094.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6094.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6093
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6093/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6093/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6093/events
https://github.com/langchain-ai/langchain/pull/6093
1,754,944,305
PR_kwDOIPDwls5S4-lf
6,093
Fix little typo in summarize.ipynb
{ "login": "Quentinchampenois", "id": 26109239, "node_id": "MDQ6VXNlcjI2MTA5MjM5", "avatar_url": "https://avatars.githubusercontent.com/u/26109239?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Quentinchampenois", "html_url": "https://github.com/Quentinchampenois", "followers_url": "https://api.github.com/users/Quentinchampenois/followers", "following_url": "https://api.github.com/users/Quentinchampenois/following{/other_user}", "gists_url": "https://api.github.com/users/Quentinchampenois/gists{/gist_id}", "starred_url": "https://api.github.com/users/Quentinchampenois/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Quentinchampenois/subscriptions", "organizations_url": "https://api.github.com/users/Quentinchampenois/orgs", "repos_url": "https://api.github.com/users/Quentinchampenois/repos", "events_url": "https://api.github.com/users/Quentinchampenois/events{/privacy}", "received_events_url": "https://api.github.com/users/Quentinchampenois/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
1
2023-06-13T13:49:47
2023-06-17T18:07:08
2023-06-17T18:07:08
NONE
null
#### Description Hello, I found a little typo while reading your documentation. This PR is just fixing a typo in the documentation at `Chains > How-To guides > Summarization`.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6093/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/6093/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6093", "html_url": "https://github.com/langchain-ai/langchain/pull/6093", "diff_url": "https://github.com/langchain-ai/langchain/pull/6093.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6093.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6092
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6092/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6092/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6092/events
https://github.com/langchain-ai/langchain/issues/6092
1,754,787,976
I_kwDOIPDwls5ol_CI
6,092
when comparison.value is int the "valueText" should change to "valueInt"
{ "login": "lw3259111", "id": 12690488, "node_id": "MDQ6VXNlcjEyNjkwNDg4", "avatar_url": "https://avatars.githubusercontent.com/u/12690488?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lw3259111", "html_url": "https://github.com/lw3259111", "followers_url": "https://api.github.com/users/lw3259111/followers", "following_url": "https://api.github.com/users/lw3259111/following{/other_user}", "gists_url": "https://api.github.com/users/lw3259111/gists{/gist_id}", "starred_url": "https://api.github.com/users/lw3259111/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lw3259111/subscriptions", "organizations_url": "https://api.github.com/users/lw3259111/orgs", "repos_url": "https://api.github.com/users/lw3259111/repos", "events_url": "https://api.github.com/users/lw3259111/events{/privacy}", "received_events_url": "https://api.github.com/users/lw3259111/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-13T12:36:27
2023-09-19T16:08:03
2023-09-19T16:08:03
NONE
null
### Feature request when comparison.value is int the "valueText" should change to "valueInt" ### Motivation when comparison.value is int the "valueText" should change to "valueInt" ### Your contribution self_query.weaviate ```python def visit_comparison(self, comparison: Comparison) -> Dict: if isinstance(comparison.value,(int,float)): return { "path": [comparison.attribute], "operator": self._format_func(comparison.comparator), "valueInt": comparison.value, } else: return { "path": [comparison.attribute], "operator": self._format_func(comparison.comparator), "valueText": comparison.value, } ``
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6092/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/6092/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6091
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6091/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6091/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6091/events
https://github.com/langchain-ai/langchain/issues/6091
1,754,597,112
I_kwDOIPDwls5olQb4
6,091
'ValueError: "SQLiteEntityStore" object has no field "conn"' error for tutorial "Entity Memory with SQLite storage"
{ "login": "labdmitriy", "id": 9625027, "node_id": "MDQ6VXNlcjk2MjUwMjc=", "avatar_url": "https://avatars.githubusercontent.com/u/9625027?v=4", "gravatar_id": "", "url": "https://api.github.com/users/labdmitriy", "html_url": "https://github.com/labdmitriy", "followers_url": "https://api.github.com/users/labdmitriy/followers", "following_url": "https://api.github.com/users/labdmitriy/following{/other_user}", "gists_url": "https://api.github.com/users/labdmitriy/gists{/gist_id}", "starred_url": "https://api.github.com/users/labdmitriy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/labdmitriy/subscriptions", "organizations_url": "https://api.github.com/users/labdmitriy/orgs", "repos_url": "https://api.github.com/users/labdmitriy/repos", "events_url": "https://api.github.com/users/labdmitriy/events{/privacy}", "received_events_url": "https://api.github.com/users/labdmitriy/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
8
2023-06-13T10:50:00
2023-12-29T14:52:29
null
NONE
null
### System Info LangChain version: 0.0.198 Platform: Ubuntu 20.04 LTS Python version: 3.10.4 ### Who can help? _No response_ ### 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 - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. Reproduce tutorial ["Entity Memory with SQLite storage"](https://python.langchain.com/en/latest/modules/memory/examples/entity_memory_with_sqlite.html) 2. While executing the following code: ```entity_store = SQLiteEntityStore()```, get the error: ValueError: "SQLiteEntityStore" object has no field "conn" ### Expected behavior SQLiteEntityStore() must be executed correctly.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6091/reactions", "total_count": 6, "+1": 6, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6091/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6090
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6090/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6090/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6090/events
https://github.com/langchain-ai/langchain/issues/6090
1,754,499,202
I_kwDOIPDwls5ok4iC
6,090
Non English Language Support in GoogleSearchAPIWrapper
{ "login": "gautamm20", "id": 10697239, "node_id": "MDQ6VXNlcjEwNjk3MjM5", "avatar_url": "https://avatars.githubusercontent.com/u/10697239?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gautamm20", "html_url": "https://github.com/gautamm20", "followers_url": "https://api.github.com/users/gautamm20/followers", "following_url": "https://api.github.com/users/gautamm20/following{/other_user}", "gists_url": "https://api.github.com/users/gautamm20/gists{/gist_id}", "starred_url": "https://api.github.com/users/gautamm20/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gautamm20/subscriptions", "organizations_url": "https://api.github.com/users/gautamm20/orgs", "repos_url": "https://api.github.com/users/gautamm20/repos", "events_url": "https://api.github.com/users/gautamm20/events{/privacy}", "received_events_url": "https://api.github.com/users/gautamm20/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-13T09:55:50
2023-09-20T16:08:20
2023-09-20T16:08:20
NONE
null
### Feature request While, I could pass gl and hl parameters in SerperAPI, one cannot do it for the GoogleSearchAPIWrapper even though the CSE API supports it. ### Motivation This should be a priority addition to make the library more inclusive. I have tried passing it with serper and it does a great job at language likes German, Hindi, French, Spanish. ### Your contribution I tried to see the base utility, but couldn't figure out a way to add the gl, hl parameters in the base utility file.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6090/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/6090/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6089
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6089/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6089/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6089/events
https://github.com/langchain-ai/langchain/pull/6089
1,754,479,687
PR_kwDOIPDwls5S3Xd0
6,089
Guardrails output parser: Pass LLM api for reasking
{ "login": "irgolic", "id": 24586651, "node_id": "MDQ6VXNlcjI0NTg2NjUx", "avatar_url": "https://avatars.githubusercontent.com/u/24586651?v=4", "gravatar_id": "", "url": "https://api.github.com/users/irgolic", "html_url": "https://github.com/irgolic", "followers_url": "https://api.github.com/users/irgolic/followers", "following_url": "https://api.github.com/users/irgolic/following{/other_user}", "gists_url": "https://api.github.com/users/irgolic/gists{/gist_id}", "starred_url": "https://api.github.com/users/irgolic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/irgolic/subscriptions", "organizations_url": "https://api.github.com/users/irgolic/orgs", "repos_url": "https://api.github.com/users/irgolic/repos", "events_url": "https://api.github.com/users/irgolic/events{/privacy}", "received_events_url": "https://api.github.com/users/irgolic/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-13T09:45:35
2023-06-18T17:50:21
2023-06-18T17:50:21
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> Fixes https://github.com/ShreyaR/guardrails/issues/155 Enables guardrails reasking by specifying an LLM api in the output parser.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6089/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/6089/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6089", "html_url": "https://github.com/langchain-ai/langchain/pull/6089", "diff_url": "https://github.com/langchain-ai/langchain/pull/6089.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6089.patch", "merged_at": "2023-06-18T17:50:21" }
https://api.github.com/repos/langchain-ai/langchain/issues/6088
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6088/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6088/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6088/events
https://github.com/langchain-ai/langchain/issues/6088
1,754,472,871
I_kwDOIPDwls5okyGn
6,088
Issue: If DynamoDB table does not exist conversation message history fails with "local variable 'response' referenced before assignment"
{ "login": "RyanFrench", "id": 979780, "node_id": "MDQ6VXNlcjk3OTc4MA==", "avatar_url": "https://avatars.githubusercontent.com/u/979780?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RyanFrench", "html_url": "https://github.com/RyanFrench", "followers_url": "https://api.github.com/users/RyanFrench/followers", "following_url": "https://api.github.com/users/RyanFrench/following{/other_user}", "gists_url": "https://api.github.com/users/RyanFrench/gists{/gist_id}", "starred_url": "https://api.github.com/users/RyanFrench/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RyanFrench/subscriptions", "organizations_url": "https://api.github.com/users/RyanFrench/orgs", "repos_url": "https://api.github.com/users/RyanFrench/repos", "events_url": "https://api.github.com/users/RyanFrench/events{/privacy}", "received_events_url": "https://api.github.com/users/RyanFrench/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-13T09:41:41
2023-06-19T00:39:20
2023-06-19T00:39:20
NONE
null
### System Info If the dyanamodb table does not exist when retrieving conversation history then a generic "local variable 'response' referenced before assignment" error is returned. This is due to the exception handling at https://github.com/hwchase17/langchain/blob/master/langchain/memory/chat_message_histories/dynamodb.py#L50 does not determine if the table does not exist ### 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. Create a dynamodb chat message history, initialised with a DynamoDB table name that doesn't exist 2. Interact with the message history ### Expected behavior An error should be logged stating that the dynamodb table was not found
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6088/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/6088/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6087
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6087/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6087/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6087/events
https://github.com/langchain-ai/langchain/issues/6087
1,754,459,647
I_kwDOIPDwls5oku3_
6,087
Conversational Retriever Chain - condense_question_prompt parameter is not being considered.
{ "login": "varuntejay", "id": 16127730, "node_id": "MDQ6VXNlcjE2MTI3NzMw", "avatar_url": "https://avatars.githubusercontent.com/u/16127730?v=4", "gravatar_id": "", "url": "https://api.github.com/users/varuntejay", "html_url": "https://github.com/varuntejay", "followers_url": "https://api.github.com/users/varuntejay/followers", "following_url": "https://api.github.com/users/varuntejay/following{/other_user}", "gists_url": "https://api.github.com/users/varuntejay/gists{/gist_id}", "starred_url": "https://api.github.com/users/varuntejay/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/varuntejay/subscriptions", "organizations_url": "https://api.github.com/users/varuntejay/orgs", "repos_url": "https://api.github.com/users/varuntejay/repos", "events_url": "https://api.github.com/users/varuntejay/events{/privacy}", "received_events_url": "https://api.github.com/users/varuntejay/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-13T09:35:40
2023-09-22T16:08:04
2023-09-22T16:08:03
NONE
null
### System Info Langchain 0.0.198, Python 3.10 AWS Sagemaker environment ### Who can help? @agola11, @hwchase17 ### 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 `from langchain.chains import ConversationalRetrievalChain import json from langchain.prompts.prompt import PromptTemplate prompt_template = """Answer based on context Context: {context} Question: {question}""" TEST_PROMPT = PromptTemplate( template=prompt_template, input_variables=["context", "question"] ) question = 'How do I bake cake?' chain = ConversationalRetrievalChain.from_llm(llm=llm, condense_question_prompt=TEST_PROMPT, retriever=retriever, return_source_documents=True, verbose=True) chat_history = [] chain({ "chat_history": chat_history, "question": question}) ` ### Expected behavior Expected behavior is that it should take the given TEST_PROMPT, while sending the PROMPT to LLM, which is not doing in the original behavior
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6087/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/6087/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6086
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6086/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6086/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6086/events
https://github.com/langchain-ai/langchain/pull/6086
1,754,453,579
PR_kwDOIPDwls5S3Ru5
6,086
Improve AnalyticDB Vector Store implementation without affecting user
{ "login": "wangxuqi", "id": 13748374, "node_id": "MDQ6VXNlcjEzNzQ4Mzc0", "avatar_url": "https://avatars.githubusercontent.com/u/13748374?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wangxuqi", "html_url": "https://github.com/wangxuqi", "followers_url": "https://api.github.com/users/wangxuqi/followers", "following_url": "https://api.github.com/users/wangxuqi/following{/other_user}", "gists_url": "https://api.github.com/users/wangxuqi/gists{/gist_id}", "starred_url": "https://api.github.com/users/wangxuqi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wangxuqi/subscriptions", "organizations_url": "https://api.github.com/users/wangxuqi/orgs", "repos_url": "https://api.github.com/users/wangxuqi/repos", "events_url": "https://api.github.com/users/wangxuqi/events{/privacy}", "received_events_url": "https://api.github.com/users/wangxuqi/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-13T09:32:35
2023-06-17T16:36:32
2023-06-17T16:36:31
CONTRIBUTOR
null
Hi there: As I implement the AnalyticDB VectorStore use two table to store the document before. It seems just use one table is a better way. So this commit is try to improve AnalyticDB VectorStore implementation without affecting user behavior: **1. Streamline the `post_init `behavior by creating a single table with vector indexing. 2. Update the `add_texts` API for document insertion. 3. Optimize `similarity_search_with_score_by_vector` to retrieve results directly from the table. 4. Implement `_similarity_search_with_relevance_scores`. 5. Add `embedding_dimension` parameter to support different dimension embedding functions.** Users can continue using the API as before. Test cases added before is enough to meet this commit.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6086/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/6086/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6086", "html_url": "https://github.com/langchain-ai/langchain/pull/6086", "diff_url": "https://github.com/langchain-ai/langchain/pull/6086.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6086.patch", "merged_at": "2023-06-17T16:36:31" }
https://api.github.com/repos/langchain-ai/langchain/issues/6085
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6085/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6085/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6085/events
https://github.com/langchain-ai/langchain/issues/6085
1,754,450,599
I_kwDOIPDwls5oksqn
6,085
Issue: <search tool only uses its snippets to answer the question, that is not sufficient>
{ "login": "samantha0-ops", "id": 44936161, "node_id": "MDQ6VXNlcjQ0OTM2MTYx", "avatar_url": "https://avatars.githubusercontent.com/u/44936161?v=4", "gravatar_id": "", "url": "https://api.github.com/users/samantha0-ops", "html_url": "https://github.com/samantha0-ops", "followers_url": "https://api.github.com/users/samantha0-ops/followers", "following_url": "https://api.github.com/users/samantha0-ops/following{/other_user}", "gists_url": "https://api.github.com/users/samantha0-ops/gists{/gist_id}", "starred_url": "https://api.github.com/users/samantha0-ops/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/samantha0-ops/subscriptions", "organizations_url": "https://api.github.com/users/samantha0-ops/orgs", "repos_url": "https://api.github.com/users/samantha0-ops/repos", "events_url": "https://api.github.com/users/samantha0-ops/events{/privacy}", "received_events_url": "https://api.github.com/users/samantha0-ops/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-13T09:31:24
2023-07-17T10:25:04
2023-07-17T10:25:03
NONE
null
### search tool only uses its snippets to answer the question, that is not sufficient I found that when calling search tools like 'bing search', 'google search' in an agent, these original api simply returns several urls and their snippets(main topic of the whole webpage). However, LangChain directly use these snippets to answer the question, like in bing search: ```python def run(self, query: str) -> str: """Run query through BingSearch and parse result.""" snippets = [] results = self._bing_search_results(query, count=self.k) if len(results) == 0: return "No good Bing Search Result was found" for result in results: snippets.append(result["snippet"]) return " ".join(snippets) ``` This concise message passed to the large language model is not sufficient to answer detailed questions, thus leading to bad answers. Does anyone has a solution to this? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6085/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/6085/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6084
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6084/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6084/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6084/events
https://github.com/langchain-ai/langchain/issues/6084
1,754,435,752
I_kwDOIPDwls5okpCo
6,084
Weird: Same prompt works with LLMChain but not with load_qa_with_sources Chain
{ "login": "LaxmanSinghTomar", "id": 37807897, "node_id": "MDQ6VXNlcjM3ODA3ODk3", "avatar_url": "https://avatars.githubusercontent.com/u/37807897?v=4", "gravatar_id": "", "url": "https://api.github.com/users/LaxmanSinghTomar", "html_url": "https://github.com/LaxmanSinghTomar", "followers_url": "https://api.github.com/users/LaxmanSinghTomar/followers", "following_url": "https://api.github.com/users/LaxmanSinghTomar/following{/other_user}", "gists_url": "https://api.github.com/users/LaxmanSinghTomar/gists{/gist_id}", "starred_url": "https://api.github.com/users/LaxmanSinghTomar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LaxmanSinghTomar/subscriptions", "organizations_url": "https://api.github.com/users/LaxmanSinghTomar/orgs", "repos_url": "https://api.github.com/users/LaxmanSinghTomar/repos", "events_url": "https://api.github.com/users/LaxmanSinghTomar/events{/privacy}", "received_events_url": "https://api.github.com/users/LaxmanSinghTomar/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-13T09:24:12
2023-09-19T16:08:19
2023-09-19T16:08:18
NONE
null
### Issue you'd like to raise. Custom Prompt formatted and used by `load_qa_with_sources` chain is not giving the answer and saying "Sorry, I am unable to answer" (message to be given in the prompt) but the same prompt when used with simple `LLMChain` or `LLM` directly gives back the expected answer. 1) custom prompt + retrieved documents provided to `load_qa_with_sources` (stuff) chain: ![Screenshot from 2023-06-13 10-22-04](https://github.com/hwchase17/langchain/assets/37807897/ba21feed-1207-4e22-86b1-733d107d6ca7) 2) Same prompt when used directly with `LLMChain`: ![Screenshot from 2023-06-13 10-21-48](https://github.com/hwchase17/langchain/assets/37807897/897de305-db29-4e09-b623-520d3095979b) Why the same prompt is causing two different results if the underlying LLM is the same? ### Suggestion: Following are the versions of the packages used for testing purposes: - OpenAI: 0.27.8 and 0.27.2 - LangChain: 0.0.198 and 0.0.142
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6084/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/6084/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6083
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6083/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6083/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6083/events
https://github.com/langchain-ai/langchain/issues/6083
1,754,411,684
I_kwDOIPDwls5okjKk
6,083
"Error in on_chain_start callback: 'name'" warning for tutorial "How to add Memory to an LLMChain"
{ "login": "labdmitriy", "id": 9625027, "node_id": "MDQ6VXNlcjk2MjUwMjc=", "avatar_url": "https://avatars.githubusercontent.com/u/9625027?v=4", "gravatar_id": "", "url": "https://api.github.com/users/labdmitriy", "html_url": "https://github.com/labdmitriy", "followers_url": "https://api.github.com/users/labdmitriy/followers", "following_url": "https://api.github.com/users/labdmitriy/following{/other_user}", "gists_url": "https://api.github.com/users/labdmitriy/gists{/gist_id}", "starred_url": "https://api.github.com/users/labdmitriy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/labdmitriy/subscriptions", "organizations_url": "https://api.github.com/users/labdmitriy/orgs", "repos_url": "https://api.github.com/users/labdmitriy/repos", "events_url": "https://api.github.com/users/labdmitriy/events{/privacy}", "received_events_url": "https://api.github.com/users/labdmitriy/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
13
2023-06-13T09:12:55
2023-06-29T15:34:59
2023-06-15T20:01:42
NONE
null
### System Info LangChain version: 0.0.198 Platform: Ubuntu 20.04 LTS Python version: 3.10.4 ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. Reproduce tutorial [How to add Memory to an LLMChain](https://python.langchain.com/en/latest/modules/memory/examples/adding_memory.html) 2. Get the same warning for each invocation of llm_chain.predict(): ```Error in on_chain_start callback: 'name'``` 3. The same warning will be for the following different configurations (only difference from original code is specified): 3.1.```llm = ChatOpenAI(temperature=0)``` 3.2 ```chain = ConversationChain( memory=memory, verbose=True, prompt=prompt_template, llm=llm, input_key='human_input' )``` 3.3 ```memory = ConversationBufferMemory(memory_key='chat_history', return_messages=True)``` ### Expected behavior There will be no such warnings (or the actions which resolved it must be specified in warning and/or in documentation).
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6083/reactions", "total_count": 10, "+1": 10, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6083/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6082
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6082/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6082/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6082/events
https://github.com/langchain-ai/langchain/issues/6082
1,754,224,763
I_kwDOIPDwls5oj1h7
6,082
Enhancement: Multiple calls of MapReduceDocumentsChain should run asynchronously
{ "login": "TomTom101", "id": 872712, "node_id": "MDQ6VXNlcjg3MjcxMg==", "avatar_url": "https://avatars.githubusercontent.com/u/872712?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TomTom101", "html_url": "https://github.com/TomTom101", "followers_url": "https://api.github.com/users/TomTom101/followers", "following_url": "https://api.github.com/users/TomTom101/following{/other_user}", "gists_url": "https://api.github.com/users/TomTom101/gists{/gist_id}", "starred_url": "https://api.github.com/users/TomTom101/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomTom101/subscriptions", "organizations_url": "https://api.github.com/users/TomTom101/orgs", "repos_url": "https://api.github.com/users/TomTom101/repos", "events_url": "https://api.github.com/users/TomTom101/events{/privacy}", "received_events_url": "https://api.github.com/users/TomTom101/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-06-13T07:28:16
2023-07-06T07:30:03
2023-06-23T19:21:29
CONTRIBUTOR
null
### Issue you'd like to raise. When executing `arun()` of the `MapReduceDocumentsChain` multiple times in an async loop, the requests are not run concurrently. Given the example: ```python import asyncio from langchain.llms import OpenAI from langchain.chains.summarize import load_summarize_chain from langchain.schema import Document summary_chain = load_summarize_chain( OpenAI(temperature=0), chain_type="map_reduce", ) docs = [ Document(page_content="A doc"), Document(page_content="Another doc"), ] tasks = [ summary_chain.arun({"input_documents": docs}), summary_chain.arun({"input_documents": docs}) ] await asyncio.gather(*tasks) ``` While the mapping step is run asynchronously, the combine step is not. We can see that that the last two requests run sequentially: <img width="817" alt="image" src="https://github.com/hwchase17/langchain/assets/872712/0472a000-4eb2-43bd-8f97-2e66869c857c"> This is due to the `async acombine()` method also calling the synchronous _process_results() method. ```python async def acombine_docs(…): … return self._process_results(...) def _process_results(…): ... ``` ### Suggestion: ## How I can contribute Will provide a PR! The fact that an redundant mapping call is made in case the `input_documents` array contains a single document, is addressed in https://github.com/hwchase17/langchain/pull/5942 @agola11
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6082/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/6082/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6081
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6081/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6081/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6081/events
https://github.com/langchain-ai/langchain/issues/6081
1,754,083,714
I_kwDOIPDwls5ojTGC
6,081
For web page loaders
{ "login": "jackfrost1411", "id": 48760936, "node_id": "MDQ6VXNlcjQ4NzYwOTM2", "avatar_url": "https://avatars.githubusercontent.com/u/48760936?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jackfrost1411", "html_url": "https://github.com/jackfrost1411", "followers_url": "https://api.github.com/users/jackfrost1411/followers", "following_url": "https://api.github.com/users/jackfrost1411/following{/other_user}", "gists_url": "https://api.github.com/users/jackfrost1411/gists{/gist_id}", "starred_url": "https://api.github.com/users/jackfrost1411/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jackfrost1411/subscriptions", "organizations_url": "https://api.github.com/users/jackfrost1411/orgs", "repos_url": "https://api.github.com/users/jackfrost1411/repos", "events_url": "https://api.github.com/users/jackfrost1411/events{/privacy}", "received_events_url": "https://api.github.com/users/jackfrost1411/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-06-13T05:45:49
2023-09-12T16:17:01
2023-09-12T16:17:01
CONTRIBUTOR
null
### Feature request It will be really cool if we can specify a website like : www.example.edu/* and it would get all the possible accessible pages from it and load it using WebBaseLoader. ### Motivation I'm always frustrated when I have to make a list of websites and pass it in the loader. Instead, using this way we can query the loader and we can get all the relevant web pages. ### Your contribution Not sure how I can contribute.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6081/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/6081/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6080
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6080/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6080/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6080/events
https://github.com/langchain-ai/langchain/issues/6080
1,754,080,865
I_kwDOIPDwls5ojSZh
6,080
Issue: HuggingFaceEmbeddings can not take trust_remote_code argument
{ "login": "jackfrost1411", "id": 48760936, "node_id": "MDQ6VXNlcjQ4NzYwOTM2", "avatar_url": "https://avatars.githubusercontent.com/u/48760936?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jackfrost1411", "html_url": "https://github.com/jackfrost1411", "followers_url": "https://api.github.com/users/jackfrost1411/followers", "following_url": "https://api.github.com/users/jackfrost1411/following{/other_user}", "gists_url": "https://api.github.com/users/jackfrost1411/gists{/gist_id}", "starred_url": "https://api.github.com/users/jackfrost1411/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jackfrost1411/subscriptions", "organizations_url": "https://api.github.com/users/jackfrost1411/orgs", "repos_url": "https://api.github.com/users/jackfrost1411/repos", "events_url": "https://api.github.com/users/jackfrost1411/events{/privacy}", "received_events_url": "https://api.github.com/users/jackfrost1411/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
10
2023-06-13T05:42:23
2023-12-17T07:33:06
null
CONTRIBUTOR
null
### HuggingFaceEmbeddings can not take trust_remote_code argument ![image](https://github.com/hwchase17/langchain/assets/48760936/5400f6ca-d06b-49f0-a889-68f4e8e41598) ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6080/reactions", "total_count": 4, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/6080/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6079
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6079/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6079/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6079/events
https://github.com/langchain-ai/langchain/issues/6079
1,754,079,026
I_kwDOIPDwls5ojR8y
6,079
Issue: Can't load a public webpage
{ "login": "jackfrost1411", "id": 48760936, "node_id": "MDQ6VXNlcjQ4NzYwOTM2", "avatar_url": "https://avatars.githubusercontent.com/u/48760936?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jackfrost1411", "html_url": "https://github.com/jackfrost1411", "followers_url": "https://api.github.com/users/jackfrost1411/followers", "following_url": "https://api.github.com/users/jackfrost1411/following{/other_user}", "gists_url": "https://api.github.com/users/jackfrost1411/gists{/gist_id}", "starred_url": "https://api.github.com/users/jackfrost1411/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jackfrost1411/subscriptions", "organizations_url": "https://api.github.com/users/jackfrost1411/orgs", "repos_url": "https://api.github.com/users/jackfrost1411/repos", "events_url": "https://api.github.com/users/jackfrost1411/events{/privacy}", "received_events_url": "https://api.github.com/users/jackfrost1411/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-13T05:40:52
2023-06-17T18:10:50
2023-06-17T18:10:50
CONTRIBUTOR
null
### I want to load in the webpage below. Hi, Trying to extract some webpage using webbaseloader: """ loader = WebBaseLoader("https://researchadmin.asu.edu/) data = loader.load() """ But gives the following error: SSLError: HTTPSConnectionPool(host='researchadmin.asu.edu', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)'))) It is a public web page. Can anyone help? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6079/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/6079/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6078
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6078/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6078/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6078/events
https://github.com/langchain-ai/langchain/pull/6078
1,754,076,568
PR_kwDOIPDwls5S2AIV
6,078
turn off repr
{ "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 }
[]
closed
false
null
[]
null
0
2023-06-13T05:38:07
2023-06-13T05:45:25
2023-06-13T05:45:25
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6078/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/6078/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6078", "html_url": "https://github.com/langchain-ai/langchain/pull/6078", "diff_url": "https://github.com/langchain-ai/langchain/pull/6078.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6078.patch", "merged_at": "2023-06-13T05:45:25" }
https://api.github.com/repos/langchain-ai/langchain/issues/6077
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6077/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6077/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6077/events
https://github.com/langchain-ai/langchain/pull/6077
1,754,059,636
PR_kwDOIPDwls5S18iu
6,077
Fix for ModuleNotFoundError while running langchain-server. Issue #5833
{ "login": "solidate", "id": 22544002, "node_id": "MDQ6VXNlcjIyNTQ0MDAy", "avatar_url": "https://avatars.githubusercontent.com/u/22544002?v=4", "gravatar_id": "", "url": "https://api.github.com/users/solidate", "html_url": "https://github.com/solidate", "followers_url": "https://api.github.com/users/solidate/followers", "following_url": "https://api.github.com/users/solidate/following{/other_user}", "gists_url": "https://api.github.com/users/solidate/gists{/gist_id}", "starred_url": "https://api.github.com/users/solidate/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/solidate/subscriptions", "organizations_url": "https://api.github.com/users/solidate/orgs", "repos_url": "https://api.github.com/users/solidate/repos", "events_url": "https://api.github.com/users/solidate/events{/privacy}", "received_events_url": "https://api.github.com/users/solidate/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-13T05:19:29
2023-06-13T15:37:08
2023-06-13T15:37:08
CONTRIBUTOR
null
This PR fixes the error `ModuleNotFoundError: No module named 'langchain.cli'` Fixes https://github.com/hwchase17/langchain/issues/5833 (issue)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6077/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/6077/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6077", "html_url": "https://github.com/langchain-ai/langchain/pull/6077", "diff_url": "https://github.com/langchain-ai/langchain/pull/6077.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6077.patch", "merged_at": "2023-06-13T15:37:07" }
https://api.github.com/repos/langchain-ai/langchain/issues/6076
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6076/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6076/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6076/events
https://github.com/langchain-ai/langchain/pull/6076
1,754,058,356
PR_kwDOIPDwls5S18RX
6,076
propogate kwargs fully
{ "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 }
[]
closed
false
null
[]
null
0
2023-06-13T05:18:03
2023-06-13T05:37:56
2023-06-13T05:37:56
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6076/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/6076/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6076", "html_url": "https://github.com/langchain-ai/langchain/pull/6076", "diff_url": "https://github.com/langchain-ai/langchain/pull/6076.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6076.patch", "merged_at": "2023-06-13T05:37:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/6075
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6075/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6075/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6075/events
https://github.com/langchain-ai/langchain/issues/6075
1,753,945,024
I_kwDOIPDwls5oixPA
6,075
unknown command `MODULE`, with args beginning with: `LIST`,
{ "login": "denisa-ms", "id": 123076110, "node_id": "U_kgDOB1X-Dg", "avatar_url": "https://avatars.githubusercontent.com/u/123076110?v=4", "gravatar_id": "", "url": "https://api.github.com/users/denisa-ms", "html_url": "https://github.com/denisa-ms", "followers_url": "https://api.github.com/users/denisa-ms/followers", "following_url": "https://api.github.com/users/denisa-ms/following{/other_user}", "gists_url": "https://api.github.com/users/denisa-ms/gists{/gist_id}", "starred_url": "https://api.github.com/users/denisa-ms/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/denisa-ms/subscriptions", "organizations_url": "https://api.github.com/users/denisa-ms/orgs", "repos_url": "https://api.github.com/users/denisa-ms/repos", "events_url": "https://api.github.com/users/denisa-ms/events{/privacy}", "received_events_url": "https://api.github.com/users/denisa-ms/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
11
2023-06-13T03:03:19
2023-12-20T16:07:41
2023-12-20T16:07:40
NONE
null
### System Info when trying to connect to azure redis I get the following error: unknown command `MODULE`, with args beginning with: `LIST`, Here is the code: fileName = "somefile.pdf" loader = PyPDFLoader(fileName) docs = loader.load_and_split() redis_conn = f"rediss://:{utils.REDIS_PWD}@{utils.REDIS_HOST}:{utils.REDIS_PORT}" rds = Redis.from_documents(docs, embeddings, redis_url=redis_conn, index_name='link') Important: Connecting to redis like this, works! r = redis.StrictRedis(host=utils.REDIS_HOST,port=utils.REDIS_PORT, db=0, password=utils.REDIS_PWD, ssl=True) r.set('foo', 'bar') r.get('foo') ### 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 - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction This works: import redis r = redis.StrictRedis(host=utils.REDIS_HOST,port=utils.REDIS_PORT, db=0, password=utils.REDIS_PWD, ssl=True) r.set('foo', 'bar') r.get('foo') This does not: from langchain.document_loaders import PyPDFLoader # for loading the pdf from langchain.vectorstores.redis import Redis from langchain.embeddings import OpenAIEmbeddings embeddings = OpenAIEmbeddings(model=OPENAI_EMBEDDING_MODEL_NAME, chunk_size=1) fileName = "somefile.pdf" loader = PyPDFLoader(fileName) docs = loader.load_and_split() redis_conn = f"rediss://:{utils.REDIS_PWD}@{utils.REDIS_HOST}:{utils.REDIS_PORT}" rds = Redis.from_documents(docs, embeddings, redis_url=redis_conn, index_name='link') ### Expected behavior save embeddings into REdis
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6075/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/6075/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6074
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6074/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6074/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6074/events
https://github.com/langchain-ai/langchain/pull/6074
1,753,938,421
PR_kwDOIPDwls5S1icm
6,074
Improve AnalyticDB VectorStore implementation without affecting user behavior
{ "login": "wangxuqi", "id": 13748374, "node_id": "MDQ6VXNlcjEzNzQ4Mzc0", "avatar_url": "https://avatars.githubusercontent.com/u/13748374?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wangxuqi", "html_url": "https://github.com/wangxuqi", "followers_url": "https://api.github.com/users/wangxuqi/followers", "following_url": "https://api.github.com/users/wangxuqi/following{/other_user}", "gists_url": "https://api.github.com/users/wangxuqi/gists{/gist_id}", "starred_url": "https://api.github.com/users/wangxuqi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wangxuqi/subscriptions", "organizations_url": "https://api.github.com/users/wangxuqi/orgs", "repos_url": "https://api.github.com/users/wangxuqi/repos", "events_url": "https://api.github.com/users/wangxuqi/events{/privacy}", "received_events_url": "https://api.github.com/users/wangxuqi/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-13T02:57:15
2023-06-13T09:16:03
2023-06-13T09:16:03
CONTRIBUTOR
null
Hi there: As I implement the AnalyticDB VectorStore use two table to store the document before. It seems just use one table is a better way after our user try to use it. So this commit is try to improve AnalyticDB VectorStore implementation without affecting user behavior behavior: 1) Streamline the __post_init__ behavior by creating a single table with automatic indexing 2) Update the add_texts API for document insertion 3) Optimize similarity_search_with_score_by_vector to retrieve results directly from the table. 4) Add an embedding_dimension parameter to support different dimension embedding functions. Users can continue using the API as before. And the test cases added before is enough to meet this commit.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6074/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/6074/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6074", "html_url": "https://github.com/langchain-ai/langchain/pull/6074", "diff_url": "https://github.com/langchain-ai/langchain/pull/6074.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6074.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6073
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6073/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6073/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6073/events
https://github.com/langchain-ai/langchain/issues/6073
1,753,930,104
I_kwDOIPDwls5oitl4
6,073
Issue: chroma where_document parameter passed in search_kwargs is invalid
{ "login": "wyirtrytpz003", "id": 122618171, "node_id": "U_kgDOB08BOw", "avatar_url": "https://avatars.githubusercontent.com/u/122618171?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wyirtrytpz003", "html_url": "https://github.com/wyirtrytpz003", "followers_url": "https://api.github.com/users/wyirtrytpz003/followers", "following_url": "https://api.github.com/users/wyirtrytpz003/following{/other_user}", "gists_url": "https://api.github.com/users/wyirtrytpz003/gists{/gist_id}", "starred_url": "https://api.github.com/users/wyirtrytpz003/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wyirtrytpz003/subscriptions", "organizations_url": "https://api.github.com/users/wyirtrytpz003/orgs", "repos_url": "https://api.github.com/users/wyirtrytpz003/repos", "events_url": "https://api.github.com/users/wyirtrytpz003/events{/privacy}", "received_events_url": "https://api.github.com/users/wyirtrytpz003/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-13T02:46:14
2023-12-08T16:06:50
2023-12-08T16:06:49
NONE
null
### Issue you'd like to raise. I want to use the chroma where_document parameter to do precise filtering of the content during data retrieval, but I found that the where_document parameter is not passed after the similarity_search_by_vector method is finally called in the source code ![image](https://github.com/hwchase17/langchain/assets/122618171/acada970-0432-465b-9541-a6214c50f773) ### Suggestion: I hope that I can generate where_document in the retrieval parameter of the retriever, just like the existing filter will be passed to where, the code is as follows: ```py search_kwargs = { "k": k, "filter": filter, "where_document": {"$contains": "1000001"} } retriever = vectordb.as_retriever( search_kwargs=search_kwargs ) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6073/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/6073/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6072
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6072/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6072/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6072/events
https://github.com/langchain-ai/langchain/pull/6072
1,753,802,812
PR_kwDOIPDwls5S1FPl
6,072
Minor: add StreamlitCallbackHandler to import and __all__
{ "login": "ryderwishart", "id": 19649268, "node_id": "MDQ6VXNlcjE5NjQ5MjY4", "avatar_url": "https://avatars.githubusercontent.com/u/19649268?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ryderwishart", "html_url": "https://github.com/ryderwishart", "followers_url": "https://api.github.com/users/ryderwishart/followers", "following_url": "https://api.github.com/users/ryderwishart/following{/other_user}", "gists_url": "https://api.github.com/users/ryderwishart/gists{/gist_id}", "starred_url": "https://api.github.com/users/ryderwishart/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ryderwishart/subscriptions", "organizations_url": "https://api.github.com/users/ryderwishart/orgs", "repos_url": "https://api.github.com/users/ryderwishart/repos", "events_url": "https://api.github.com/users/ryderwishart/events{/privacy}", "received_events_url": "https://api.github.com/users/ryderwishart/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
1
2023-06-13T00:34:21
2023-06-19T00:36:39
2023-06-19T00:36:38
NONE
null
I just wanted to add in the import for this callback handler. Thanks for making it! #### Who can review? @hwchase17 @agola11
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6072/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/6072/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6072", "html_url": "https://github.com/langchain-ai/langchain/pull/6072", "diff_url": "https://github.com/langchain-ai/langchain/pull/6072.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6072.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6071
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6071/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6071/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6071/events
https://github.com/langchain-ai/langchain/issues/6071
1,753,776,827
I_kwDOIPDwls5oiIK7
6,071
Langchain rate limit error while invoking OpenAI API
{ "login": "smith-co", "id": 102386930, "node_id": "U_kgDOBhpM8g", "avatar_url": "https://avatars.githubusercontent.com/u/102386930?v=4", "gravatar_id": "", "url": "https://api.github.com/users/smith-co", "html_url": "https://github.com/smith-co", "followers_url": "https://api.github.com/users/smith-co/followers", "following_url": "https://api.github.com/users/smith-co/following{/other_user}", "gists_url": "https://api.github.com/users/smith-co/gists{/gist_id}", "starred_url": "https://api.github.com/users/smith-co/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/smith-co/subscriptions", "organizations_url": "https://api.github.com/users/smith-co/orgs", "repos_url": "https://api.github.com/users/smith-co/repos", "events_url": "https://api.github.com/users/smith-co/events{/privacy}", "received_events_url": "https://api.github.com/users/smith-co/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-13T00:04:42
2023-09-20T16:08:31
2023-09-20T16:08:30
NONE
null
### System Info ## Description While using the Langchain application, I am frequently encountering an error that relates to rate limiting when invoking OpenAI's API. This tends to occur when I try to perform multiple translations consecutively or concurrently, causing a significant interruption to the user experience. ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] 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 ## Steps to Reproduce 1. Open the Langchain application. 2. Select a source language and enter some text for translation. 3. Choose the target language and submit for translation. 4. Repeat steps 2-3 multiple times in quick succession or concurrently. ### Expected behavior ## Expected Behavior The application should be able to handle multiple translation requests without any disruptions, including but not limited to rate limit errors from OpenAI's API. ## Actual Behavior When submitting multiple translation requests quickly or at the same time, a rate limit error is produced and no translations are returned. The error message is as follows: `Error: OpenAI API rate limit exceeded` How to implement retry logic with LangChain?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6071/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/6071/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6070
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6070/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6070/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6070/events
https://github.com/langchain-ai/langchain/pull/6070
1,753,763,529
PR_kwDOIPDwls5S08hK
6,070
Allow FAISS score_threshold
{ "login": "simonfromla", "id": 16441059, "node_id": "MDQ6VXNlcjE2NDQxMDU5", "avatar_url": "https://avatars.githubusercontent.com/u/16441059?v=4", "gravatar_id": "", "url": "https://api.github.com/users/simonfromla", "html_url": "https://github.com/simonfromla", "followers_url": "https://api.github.com/users/simonfromla/followers", "following_url": "https://api.github.com/users/simonfromla/following{/other_user}", "gists_url": "https://api.github.com/users/simonfromla/gists{/gist_id}", "starred_url": "https://api.github.com/users/simonfromla/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonfromla/subscriptions", "organizations_url": "https://api.github.com/users/simonfromla/orgs", "repos_url": "https://api.github.com/users/simonfromla/repos", "events_url": "https://api.github.com/users/simonfromla/events{/privacy}", "received_events_url": "https://api.github.com/users/simonfromla/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
4
2023-06-12T23:52:24
2023-06-19T08:53:41
2023-06-17T16:45:13
CONTRIBUTOR
null
Allow FAISS's similarity_search_with_score_by_vector to accept kwargs, specifically: `score_threshold`. Fixes error for document compression users in cases where there are no relevant docs - for instance: ``` human_message: "hi" (<-- will return no relevant docs depending on score_threshold) > IndexError: index 0 is out of bounds for axis 0 with size 0 ``` Combined with the new merger_retriever, FAISS users can now perform more granular vectorstore retrieving based on score_threshold: ``` store_1 = st[0][1].as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .8, "k": 3}) store_2 = st[1][1].as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .3, "k": 3}) store_3 = st[2][1].as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .5, "k": 3}) merged = MergerRetriever(retrievers=[store_1, store_2, store_3]) pipeline_compressor = prep_compressor() compression_retriever = ContextualCompressionRetriever(base_compressor=pipeline_compressor, base_retriever=merged) chain = ConversationalRetrievalChain.from_llm(OpenAI(temperature=0), chain_type="stuff", retriever=compression_retriever) ``` @dev2049 or @hwchase17 would appreciate a check if available. Thanks.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6070/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/6070/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6070", "html_url": "https://github.com/langchain-ai/langchain/pull/6070", "diff_url": "https://github.com/langchain-ai/langchain/pull/6070.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6070.patch", "merged_at": "2023-06-17T16:45:13" }
https://api.github.com/repos/langchain-ai/langchain/issues/6069
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6069/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6069/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6069/events
https://github.com/langchain-ai/langchain/pull/6069
1,753,760,132
PR_kwDOIPDwls5S070C
6,069
Add tests and update notebook for MarkdownHeaderTextSplitter
{ "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 }
[]
closed
false
null
[]
null
0
2023-06-12T23:45:52
2023-06-13T16:07:52
2023-06-13T16:07:52
COLLABORATOR
null
Add test and update notebook for `MarkdownHeaderTextSplitter`.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6069/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/6069/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6069", "html_url": "https://github.com/langchain-ai/langchain/pull/6069", "diff_url": "https://github.com/langchain-ai/langchain/pull/6069.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6069.patch", "merged_at": "2023-06-13T16:07:52" }
https://api.github.com/repos/langchain-ai/langchain/issues/6067
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6067/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6067/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6067/events
https://github.com/langchain-ai/langchain/pull/6067
1,753,732,015
PR_kwDOIPDwls5S01vL
6,067
Use Run object from SDK
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-12T23:06:50
2023-06-13T14:14:12
2023-06-13T14:14:11
CONTRIBUTOR
null
Update the Run object in the tracer to extend that in the SDK to include the parameters necessary for tracking/tracing
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6067/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/6067/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6067", "html_url": "https://github.com/langchain-ai/langchain/pull/6067", "diff_url": "https://github.com/langchain-ai/langchain/pull/6067.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6067.patch", "merged_at": "2023-06-13T14:14:11" }
https://api.github.com/repos/langchain-ai/langchain/issues/6066
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6066/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6066/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6066/events
https://github.com/langchain-ai/langchain/pull/6066
1,753,666,622
PR_kwDOIPDwls5S0nsN
6,066
Log tracer errors
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-12T22:03:38
2023-06-13T00:13:50
2023-06-13T00:13:49
CONTRIBUTOR
null
Example (would log several times if not for the helper fn. Would emit no logs due to mulithreading previously) ![image](https://github.com/hwchase17/langchain/assets/130414180/070d25ae-1f06-4487-9617-0a6f66f3f01e)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6066/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/6066/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6066", "html_url": "https://github.com/langchain-ai/langchain/pull/6066", "diff_url": "https://github.com/langchain-ai/langchain/pull/6066.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6066.patch", "merged_at": "2023-06-13T00:13:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/6065
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6065/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6065/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6065/events
https://github.com/langchain-ai/langchain/pull/6065
1,753,630,393
PR_kwDOIPDwls5S0fht
6,065
Fix Confluence loader doc headers
{ "login": "a-aznar", "id": 18106097, "node_id": "MDQ6VXNlcjE4MTA2MDk3", "avatar_url": "https://avatars.githubusercontent.com/u/18106097?v=4", "gravatar_id": "", "url": "https://api.github.com/users/a-aznar", "html_url": "https://github.com/a-aznar", "followers_url": "https://api.github.com/users/a-aznar/followers", "following_url": "https://api.github.com/users/a-aznar/following{/other_user}", "gists_url": "https://api.github.com/users/a-aznar/gists{/gist_id}", "starred_url": "https://api.github.com/users/a-aznar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/a-aznar/subscriptions", "organizations_url": "https://api.github.com/users/a-aznar/orgs", "repos_url": "https://api.github.com/users/a-aznar/repos", "events_url": "https://api.github.com/users/a-aznar/events{/privacy}", "received_events_url": "https://api.github.com/users/a-aznar/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
1
2023-06-12T21:33:37
2023-06-17T18:09:33
2023-06-17T18:09:32
NONE
null
SInce the page had two level 1 headers, it was showing two entries for the Confluence loader in the loader docs. This PR adjusts the header levels.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6065/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/6065/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6065", "html_url": "https://github.com/langchain-ai/langchain/pull/6065", "diff_url": "https://github.com/langchain-ai/langchain/pull/6065.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6065.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6064
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6064/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6064/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6064/events
https://github.com/langchain-ai/langchain/pull/6064
1,753,625,083
PR_kwDOIPDwls5S0eUz
6,064
feat: OpenLLM
{ "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": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 4899415699, "node_id": "LA_kwDOIPDwls8AAAABJAcmkw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/llms", "name": "llms", "color": "7CDBB2", "default": false, "description": "" } ]
closed
false
{ "login": "dev2049", "id": 130488702, "node_id": "U_kgDOB8cZfg", "avatar_url": "https://avatars.githubusercontent.com/u/130488702?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dev2049", "html_url": "https://github.com/dev2049", "followers_url": "https://api.github.com/users/dev2049/followers", "following_url": "https://api.github.com/users/dev2049/following{/other_user}", "gists_url": "https://api.github.com/users/dev2049/gists{/gist_id}", "starred_url": "https://api.github.com/users/dev2049/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dev2049/subscriptions", "organizations_url": "https://api.github.com/users/dev2049/orgs", "repos_url": "https://api.github.com/users/dev2049/repos", "events_url": "https://api.github.com/users/dev2049/events{/privacy}", "received_events_url": "https://api.github.com/users/dev2049/received_events", "type": "User", "site_admin": false }
[ { "login": "dev2049", "id": 130488702, "node_id": "U_kgDOB8cZfg", "avatar_url": "https://avatars.githubusercontent.com/u/130488702?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dev2049", "html_url": "https://github.com/dev2049", "followers_url": "https://api.github.com/users/dev2049/followers", "following_url": "https://api.github.com/users/dev2049/following{/other_user}", "gists_url": "https://api.github.com/users/dev2049/gists{/gist_id}", "starred_url": "https://api.github.com/users/dev2049/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dev2049/subscriptions", "organizations_url": "https://api.github.com/users/dev2049/orgs", "repos_url": "https://api.github.com/users/dev2049/repos", "events_url": "https://api.github.com/users/dev2049/events{/privacy}", "received_events_url": "https://api.github.com/users/dev2049/received_events", "type": "User", "site_admin": false } ]
null
11
2023-06-12T21:29:43
2023-06-22T13:21:21
2023-06-22T07:58:28
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> 🎉 OpenLLM 🤝 LangChain [OpenLLM](https://github.com/bentoml/OpenLLM) is a new open platform for operating large language models(LLMs) in production. Serve, deploy, and monitor any LLMs with ease. OpenLLM lets developers and researchers to easily run inference with any open-source LLMs, deploy to the cloud or on-premises, build powerful AI apps, and fine tune your own LLM (coming soon...) It currently supports ChatGLM, Dolly-v2, Flan-T5, Falcon, Starcoder, and more to come. One can also easily start either a REST/gRPC server, which is powered by BentoML. Now that's out of the way, lets dive in! The current depenedencies for this integration: `openllm` This integrations brings a `OpenLLM` llms to LangChain, that can be used for both running LLMs locally as well as interacting with a remote OpenLLM server. To quickly start a local LLM, simply do the following: ```python from langchain.llms import OpenLLM llm = OpenLLM(model_name="dolly-v2", model_id='databricks/dolly-v2-7b', device_map='auto') llm("What is the difference between a duck and a goose? And why there are so many Goose in Canada?") ``` `langchain.llms.OpenLLM`, as mentioned above also have the capabilities to interact with remote OpenLLM Server. Given there is a running OpenLLM server at http://44.23.123.1, you can do the following: ```python from langchain.llms import OpenLLM llm = OpenLLM(server_url='http://44.23.123.1:3000', server_type='grpc') llm("What is the difference between a duck and a goose? And why there are so many Goose in Canada?") ``` Features soon to be open-sourced: - OpenAI compatible API, allowing users to easily use LangChain's OpenAI llm. - SSE support for OpenLLM server, allowing users to stream inference results. - Last but not least, easily fine-tune your own LLMs with `LLM.tuning()` Last but not least, I would love to hear feedback and response from the community about the project, and feel free to reach out to me via Twitter @aarnphm_. Feel free to join our [Discord](https://l.bentoml.com/join-openllm-discord) to get the latest updates and developments. Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> I have added tests for this integration. #### Who can review? Tag maintainers/contributors who might be interested: <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 --> cc @hwchase17 @agola11
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6064/reactions", "total_count": 9, "+1": 4, "-1": 0, "laugh": 0, "hooray": 3, "confused": 0, "heart": 2, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6064/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6064", "html_url": "https://github.com/langchain-ai/langchain/pull/6064", "diff_url": "https://github.com/langchain-ai/langchain/pull/6064.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6064.patch", "merged_at": "2023-06-22T07:58:28" }
https://api.github.com/repos/langchain-ai/langchain/issues/6063
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6063/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6063/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6063/events
https://github.com/langchain-ai/langchain/pull/6063
1,753,624,260
PR_kwDOIPDwls5S0eJU
6,063
ArxivAPIWrapper - doc_content_chars_max
{ "login": "hp0404", "id": 39014459, "node_id": "MDQ6VXNlcjM5MDE0NDU5", "avatar_url": "https://avatars.githubusercontent.com/u/39014459?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hp0404", "html_url": "https://github.com/hp0404", "followers_url": "https://api.github.com/users/hp0404/followers", "following_url": "https://api.github.com/users/hp0404/following{/other_user}", "gists_url": "https://api.github.com/users/hp0404/gists{/gist_id}", "starred_url": "https://api.github.com/users/hp0404/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hp0404/subscriptions", "organizations_url": "https://api.github.com/users/hp0404/orgs", "repos_url": "https://api.github.com/users/hp0404/repos", "events_url": "https://api.github.com/users/hp0404/events{/privacy}", "received_events_url": "https://api.github.com/users/hp0404/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
4
2023-06-12T21:29:00
2023-06-16T05:16:42
2023-06-16T05:16:42
CONTRIBUTOR
null
This PR refactors the ArxivAPIWrapper class making `doc_content_chars_max` parameter optional. Additionally, tests have been added to ensure the functionality of the doc_content_chars_max parameter. Fixes #6027 (issue)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6063/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/6063/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6063", "html_url": "https://github.com/langchain-ai/langchain/pull/6063", "diff_url": "https://github.com/langchain-ai/langchain/pull/6063.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6063.patch", "merged_at": "2023-06-16T05:16:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/6062
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6062/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6062/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6062/events
https://github.com/langchain-ai/langchain/pull/6062
1,753,579,932
PR_kwDOIPDwls5S0UKd
6,062
improve tools
{ "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 }
[]
closed
false
null
[]
null
0
2023-06-12T21:01:18
2023-06-13T05:19:04
2023-06-13T05:19:04
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6062/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/6062/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6062", "html_url": "https://github.com/langchain-ai/langchain/pull/6062", "diff_url": "https://github.com/langchain-ai/langchain/pull/6062.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6062.patch", "merged_at": "2023-06-13T05:19:03" }
https://api.github.com/repos/langchain-ai/langchain/issues/6060
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6060/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6060/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6060/events
https://github.com/langchain-ai/langchain/pull/6060
1,753,441,247
PR_kwDOIPDwls5Sz1v0
6,060
Update output format of MosaicML endpoint to be more flexible
{ "login": "dakinggg", "id": 43149077, "node_id": "MDQ6VXNlcjQzMTQ5MDc3", "avatar_url": "https://avatars.githubusercontent.com/u/43149077?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dakinggg", "html_url": "https://github.com/dakinggg", "followers_url": "https://api.github.com/users/dakinggg/followers", "following_url": "https://api.github.com/users/dakinggg/following{/other_user}", "gists_url": "https://api.github.com/users/dakinggg/gists{/gist_id}", "starred_url": "https://api.github.com/users/dakinggg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dakinggg/subscriptions", "organizations_url": "https://api.github.com/users/dakinggg/orgs", "repos_url": "https://api.github.com/users/dakinggg/repos", "events_url": "https://api.github.com/users/dakinggg/events{/privacy}", "received_events_url": "https://api.github.com/users/dakinggg/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-12T19:37:06
2023-06-16T05:15:40
2023-06-16T05:15:39
CONTRIBUTOR
null
There will likely be another change or two coming over the next couple weeks as we stabilize the API, but putting this one in now which just makes the integration a bit more flexible with the response output format. ``` (langchain) danielking@MML-1B940F4333E2 langchain % pytest tests/integration_tests/llms/test_mosaicml.py tests/integration_tests/embeddings/test_mosaicml.py =================================================================================== test session starts =================================================================================== platform darwin -- Python 3.10.11, pytest-7.3.1, pluggy-1.0.0 rootdir: /Users/danielking/github/langchain configfile: pyproject.toml plugins: asyncio-0.20.3, mock-3.10.0, dotenv-0.5.2, cov-4.0.0, anyio-3.6.2 asyncio: mode=strict collected 12 items tests/integration_tests/llms/test_mosaicml.py ...... [ 50%] tests/integration_tests/embeddings/test_mosaicml.py ...... [100%] =================================================================================== slowest 5 durations =================================================================================== 4.76s call tests/integration_tests/llms/test_mosaicml.py::test_retry_logic 4.74s call tests/integration_tests/llms/test_mosaicml.py::test_mosaicml_llm_call 4.13s call tests/integration_tests/llms/test_mosaicml.py::test_instruct_prompt 0.91s call tests/integration_tests/llms/test_mosaicml.py::test_short_retry_does_not_loop 0.66s call tests/integration_tests/llms/test_mosaicml.py::test_mosaicml_extra_kwargs =================================================================================== 12 passed in 19.70s =================================================================================== ``` #### Who can review? @hwchase17 @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6060/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/6060/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6060", "html_url": "https://github.com/langchain-ai/langchain/pull/6060", "diff_url": "https://github.com/langchain-ai/langchain/pull/6060.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6060.patch", "merged_at": "2023-06-16T05:15:39" }
https://api.github.com/repos/langchain-ai/langchain/issues/6059
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6059/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6059/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6059/events
https://github.com/langchain-ai/langchain/issues/6059
1,753,439,350
I_kwDOIPDwls5og1x2
6,059
Issue: LangChain Plus Api Key
{ "login": "dsantiago", "id": 3484029, "node_id": "MDQ6VXNlcjM0ODQwMjk=", "avatar_url": "https://avatars.githubusercontent.com/u/3484029?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dsantiago", "html_url": "https://github.com/dsantiago", "followers_url": "https://api.github.com/users/dsantiago/followers", "following_url": "https://api.github.com/users/dsantiago/following{/other_user}", "gists_url": "https://api.github.com/users/dsantiago/gists{/gist_id}", "starred_url": "https://api.github.com/users/dsantiago/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsantiago/subscriptions", "organizations_url": "https://api.github.com/users/dsantiago/orgs", "repos_url": "https://api.github.com/users/dsantiago/repos", "events_url": "https://api.github.com/users/dsantiago/events{/privacy}", "received_events_url": "https://api.github.com/users/dsantiago/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-12T19:35:50
2023-09-23T16:05:18
2023-09-23T16:05:17
NONE
null
### Issue you'd like to raise. Started a local server just to learn more about with `langchain plus start`. It says that I can generate a new api as it appears to have an endpoint in port 1984. But when I click the menu there's no **Settings** option there. --- <img width="1787" alt="Screenshot 2023-06-12 at 16 32 31" src="https://github.com/hwchase17/langchain/assets/3484029/e42ef803-f216-486a-84f3-6c4026a37a8f"> ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6059/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/6059/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6058
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6058/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6058/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6058/events
https://github.com/langchain-ai/langchain/issues/6058
1,753,330,704
I_kwDOIPDwls5ogbQQ
6,058
Issue: ModuleNotFoundError: No module named 'langchain.callbacks.shared'
{ "login": "Arvind-4", "id": 81419892, "node_id": "MDQ6VXNlcjgxNDE5ODky", "avatar_url": "https://avatars.githubusercontent.com/u/81419892?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Arvind-4", "html_url": "https://github.com/Arvind-4", "followers_url": "https://api.github.com/users/Arvind-4/followers", "following_url": "https://api.github.com/users/Arvind-4/following{/other_user}", "gists_url": "https://api.github.com/users/Arvind-4/gists{/gist_id}", "starred_url": "https://api.github.com/users/Arvind-4/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Arvind-4/subscriptions", "organizations_url": "https://api.github.com/users/Arvind-4/orgs", "repos_url": "https://api.github.com/users/Arvind-4/repos", "events_url": "https://api.github.com/users/Arvind-4/events{/privacy}", "received_events_url": "https://api.github.com/users/Arvind-4/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-12T18:33:04
2023-09-27T16:06:14
2023-09-27T16:06:14
NONE
null
### Issue you'd like to raise. Hello, I am having trouble running my code due to an error that I encountered. The error message that I received is "ModuleNotFoundError: No module named 'langchain.callbacks.shared'". I am not sure how to resolve this issue and would appreciate any help or guidance. This line of code is using the `pickle` module to load data from a file. The `pickle.load(file)` function reads the pickled representation of an object from the open file object `file` and returns the reconstituted object hierarchy specified therein. In this case, the returned object is expected to be a tuple with two elements, which are assigned to the variables `self.chain` and `self.vectorstore`, respectively. This means that the first element of the tuple is assigned to `self.chain`, and the second element is assigned to `self.vectorstore`. Here is some information about my environment that may be helpful: - OS: Ubuntu - Python version: 3.10 - Langchain Version: 0.0.198 Issue Screen Shot: <br /> ![Screenshot from 2023-06-12 23-55-27](https://github.com/hwchase17/langchain/assets/81419892/33e0bdd1-2fd0-4570-ab6e-6100c1211eb7) Thank you in advance for your help and support in resolving this issue. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6058/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/6058/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6057
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6057/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6057/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6057/events
https://github.com/langchain-ai/langchain/pull/6057
1,753,321,160
PR_kwDOIPDwls5Sza-z
6,057
Replace self-built devcontainer with default python image
{ "login": "neo", "id": 9028430, "node_id": "MDQ6VXNlcjkwMjg0MzA=", "avatar_url": "https://avatars.githubusercontent.com/u/9028430?v=4", "gravatar_id": "", "url": "https://api.github.com/users/neo", "html_url": "https://github.com/neo", "followers_url": "https://api.github.com/users/neo/followers", "following_url": "https://api.github.com/users/neo/following{/other_user}", "gists_url": "https://api.github.com/users/neo/gists{/gist_id}", "starred_url": "https://api.github.com/users/neo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/neo/subscriptions", "organizations_url": "https://api.github.com/users/neo/orgs", "repos_url": "https://api.github.com/users/neo/repos", "events_url": "https://api.github.com/users/neo/events{/privacy}", "received_events_url": "https://api.github.com/users/neo/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
5
2023-06-12T18:26:39
2023-09-18T16:27:05
2023-09-18T16:18:52
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> This replaces the custom docker image for devcontainer with the official python one with the `poetry` feature and `black-formatter` extension added, because: - The current one is broken during building when opening in codespaces. I tried a few times and it errors out during poetry install colored for some reasons. - It's faster to build and load when opening in codespaces. - It's easier to maintain as it's composed from existing things pre-built by others. #### Who can review? Tag maintainers/contributors who might be interested: - @vowelparrot <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6057/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/6057/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6057", "html_url": "https://github.com/langchain-ai/langchain/pull/6057", "diff_url": "https://github.com/langchain-ai/langchain/pull/6057.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6057.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6056
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6056/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6056/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6056/events
https://github.com/langchain-ai/langchain/pull/6056
1,753,301,223
PR_kwDOIPDwls5SzWpI
6,056
Implement `max_marginal_relevance_search` in `VectorStore` of Pinecone
{ "login": "neo", "id": 9028430, "node_id": "MDQ6VXNlcjkwMjg0MzA=", "avatar_url": "https://avatars.githubusercontent.com/u/9028430?v=4", "gravatar_id": "", "url": "https://api.github.com/users/neo", "html_url": "https://github.com/neo", "followers_url": "https://api.github.com/users/neo/followers", "following_url": "https://api.github.com/users/neo/following{/other_user}", "gists_url": "https://api.github.com/users/neo/gists{/gist_id}", "starred_url": "https://api.github.com/users/neo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/neo/subscriptions", "organizations_url": "https://api.github.com/users/neo/orgs", "repos_url": "https://api.github.com/users/neo/repos", "events_url": "https://api.github.com/users/neo/events{/privacy}", "received_events_url": "https://api.github.com/users/neo/received_events", "type": "User", "site_admin": false }
[]
closed
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 }
[ { "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
6
2023-06-12T18:16:35
2023-06-13T17:46:46
2023-06-13T17:46:46
CONTRIBUTOR
null
This adds implementation of MMR search in pinecone; and I have two semi-related observations about this vector store class: - Maybe we should also have a `similarity_search_by_vector_returning_embeddings` like in supabase, but it's not in the base `VectorStore` class so I didn't implement - Talking about the base class, there's `similarity_search_with_relevance_scores`, but in pinecone it is called `similarity_search_with_score`; maybe we should consider renaming it to align with other `VectorStore` base and sub classes (or add that as an alias for backward compatibility) #### Who can review? Tag maintainers/contributors who might be interested: - VectorStores / Retrievers / Memory - @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6056/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/6056/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6056", "html_url": "https://github.com/langchain-ai/langchain/pull/6056", "diff_url": "https://github.com/langchain-ai/langchain/pull/6056.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6056.patch", "merged_at": "2023-06-13T17:46:46" }
https://api.github.com/repos/langchain-ai/langchain/issues/6055
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6055/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6055/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6055/events
https://github.com/langchain-ai/langchain/issues/6055
1,753,265,916
I_kwDOIPDwls5ogLb8
6,055
When using MongoDBAtlasVectorSearch i get KeyError: 'text' despite having the collection populated
{ "login": "greenomy-matteo", "id": 118450453, "node_id": "U_kgDOBw9pFQ", "avatar_url": "https://avatars.githubusercontent.com/u/118450453?v=4", "gravatar_id": "", "url": "https://api.github.com/users/greenomy-matteo", "html_url": "https://github.com/greenomy-matteo", "followers_url": "https://api.github.com/users/greenomy-matteo/followers", "following_url": "https://api.github.com/users/greenomy-matteo/following{/other_user}", "gists_url": "https://api.github.com/users/greenomy-matteo/gists{/gist_id}", "starred_url": "https://api.github.com/users/greenomy-matteo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/greenomy-matteo/subscriptions", "organizations_url": "https://api.github.com/users/greenomy-matteo/orgs", "repos_url": "https://api.github.com/users/greenomy-matteo/repos", "events_url": "https://api.github.com/users/greenomy-matteo/events{/privacy}", "received_events_url": "https://api.github.com/users/greenomy-matteo/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-06-12T17:58:39
2023-10-14T20:12:22
2023-10-14T20:12:21
NONE
null
### System Info Python version: 3.10.11 (main, May 17 2023, 14:30:36) [Clang 14.0.6 ] pymongo 4.3.3 langchain 0.0.190 ### Who can help? @eyurtsev @agola11 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [x] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I followed religiously the following tutorial: https://python.langchain.com/en/stable/modules/indexes/vectorstores/examples/mongodb_atlas_vector_search.html Despite that I get the following error. ``` --------------------------------------------------------------------------- KeyError Traceback (most recent call last) Cell In[14], line 12 10 # perform a similarity search between the embedding of the query and the embeddings of the documents 11 query = "my query?" ---> 12 docs = vectorStore.similarity_search(query) File ~/opt/miniconda3/envs/LLM_langchain_exploration/lib/python3.10/site-packages/langchain/vectorstores/mongodb_atlas.py:222, in MongoDBAtlasVectorSearch.similarity_search(self, query, k, pre_filter, post_filter_pipeline, **kwargs) 194 def similarity_search( 195 self, 196 query: str, (...) 200 **kwargs: Any, 201 ) -> List[Document]: 202 """Return MongoDB documents most similar to query. 203 204 Use the knnBeta Operator available in MongoDB Atlas Search (...) 220 List of Documents most similar to the query and score for each 221 """ --> 222 docs_and_scores = self.similarity_search_with_score( 223 query, 224 k=k, 225 pre_filter=pre_filter, 226 post_filter_pipeline=post_filter_pipeline, 227 ) 228 return [doc for doc, _ in docs_and_scores] File ~/opt/miniconda3/envs/LLM_langchain_exploration/lib/python3.10/site-packages/langchain/vectorstores/mongodb_atlas.py:189, in MongoDBAtlasVectorSearch.similarity_search_with_score(self, query, k, pre_filter, post_filter_pipeline) 187 docs = [] 188 for res in cursor: --> 189 text = res.pop(self._text_key) 190 score = res.pop("score") 191 docs.append((Document(page_content=text, metadata=res), score)) KeyError: 'text' ``` ### Expected behavior should get the docs back
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6055/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/6055/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6054
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6054/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6054/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6054/events
https://github.com/langchain-ai/langchain/pull/6054
1,753,188,999
PR_kwDOIPDwls5Sy-Cx
6,054
feat: Add support for the Solidity language
{ "login": "0xJord4n", "id": 74933942, "node_id": "MDQ6VXNlcjc0OTMzOTQy", "avatar_url": "https://avatars.githubusercontent.com/u/74933942?v=4", "gravatar_id": "", "url": "https://api.github.com/users/0xJord4n", "html_url": "https://github.com/0xJord4n", "followers_url": "https://api.github.com/users/0xJord4n/followers", "following_url": "https://api.github.com/users/0xJord4n/following{/other_user}", "gists_url": "https://api.github.com/users/0xJord4n/gists{/gist_id}", "starred_url": "https://api.github.com/users/0xJord4n/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/0xJord4n/subscriptions", "organizations_url": "https://api.github.com/users/0xJord4n/orgs", "repos_url": "https://api.github.com/users/0xJord4n/repos", "events_url": "https://api.github.com/users/0xJord4n/events{/privacy}", "received_events_url": "https://api.github.com/users/0xJord4n/received_events", "type": "User", "site_admin": false }
[]
closed
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 }
[ { "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
6
2023-06-12T17:07:58
2023-06-14T21:25:09
2023-06-14T21:25:03
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> ## Add Solidity programming language support for code splitter. Twitter: @0xjord4n_ <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review? Tag maintainers/contributors who might be interested: @hwchase17 <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6054/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/6054/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6054", "html_url": "https://github.com/langchain-ai/langchain/pull/6054", "diff_url": "https://github.com/langchain-ai/langchain/pull/6054.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6054.patch", "merged_at": "2023-06-14T21:25:02" }
https://api.github.com/repos/langchain-ai/langchain/issues/6053
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6053/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6053/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6053/events
https://github.com/langchain-ai/langchain/issues/6053
1,753,106,960
I_kwDOIPDwls5ofkoQ
6,053
Progress bar for LLMChain
{ "login": "louisoutin", "id": 25135521, "node_id": "MDQ6VXNlcjI1MTM1NTIx", "avatar_url": "https://avatars.githubusercontent.com/u/25135521?v=4", "gravatar_id": "", "url": "https://api.github.com/users/louisoutin", "html_url": "https://github.com/louisoutin", "followers_url": "https://api.github.com/users/louisoutin/followers", "following_url": "https://api.github.com/users/louisoutin/following{/other_user}", "gists_url": "https://api.github.com/users/louisoutin/gists{/gist_id}", "starred_url": "https://api.github.com/users/louisoutin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/louisoutin/subscriptions", "organizations_url": "https://api.github.com/users/louisoutin/orgs", "repos_url": "https://api.github.com/users/louisoutin/repos", "events_url": "https://api.github.com/users/louisoutin/events{/privacy}", "received_events_url": "https://api.github.com/users/louisoutin/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
4
2023-06-12T16:21:29
2023-10-31T12:20:58
2023-09-22T16:07:45
CONTRIBUTOR
null
Hello, Is there a way to track progress when giving a list of inputs to a LLMChain object using tqdm for example? I didn't see any parameter that would allow me to use tqdm. I also checked if I could write a Callback for this. But the hooks doesn't seem to allow for that. Anyone managed to use some progress bar?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6053/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/6053/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6052
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6052/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6052/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6052/events
https://github.com/langchain-ai/langchain/issues/6052
1,753,074,942
I_kwDOIPDwls5ofcz-
6,052
tables names are not case insensitive in the Snowflake Client
{ "login": "RoniFinTech2", "id": 109775507, "node_id": "U_kgDOBosKkw", "avatar_url": "https://avatars.githubusercontent.com/u/109775507?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RoniFinTech2", "html_url": "https://github.com/RoniFinTech2", "followers_url": "https://api.github.com/users/RoniFinTech2/followers", "following_url": "https://api.github.com/users/RoniFinTech2/following{/other_user}", "gists_url": "https://api.github.com/users/RoniFinTech2/gists{/gist_id}", "starred_url": "https://api.github.com/users/RoniFinTech2/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RoniFinTech2/subscriptions", "organizations_url": "https://api.github.com/users/RoniFinTech2/orgs", "repos_url": "https://api.github.com/users/RoniFinTech2/repos", "events_url": "https://api.github.com/users/RoniFinTech2/events{/privacy}", "received_events_url": "https://api.github.com/users/RoniFinTech2/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-12T16:01:50
2023-06-12T17:44:27
2023-06-12T17:44:27
NONE
null
### System Info langchain==0.0.195 python 3.9 the client doesn't recognize 'MY_TABLE' and 'my_table' as the same table. ### 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 - [X] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction when initializing the sql client, add the param `include_tables` and set the strings in upper case fashion. `sql_database = SQLDatabase(engine,view_support=True, include_tables=["MY_TRADE"])` you should see this error: `ValueError: include_tables {'MY_TRADE'} not found in database` However, everything should go through with: `sql_database = SQLDatabase(engine,view_support=True, include_tables=["my_trade"])` ### Expected behavior `sql_database = SQLDatabase(..., include_tables=["MY_TRADE"])` to be equal to `sql_database = SQLDatabase(..., include_tables=["my_trade"])`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6052/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/6052/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6051
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6051/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6051/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6051/events
https://github.com/langchain-ai/langchain/pull/6051
1,752,952,281
PR_kwDOIPDwls5SyKl5
6,051
Mitigate issue #5923 (Prompt injection -> SQL injection in SQLChain)
{ "login": "boazwasserman", "id": 49598618, "node_id": "MDQ6VXNlcjQ5NTk4NjE4", "avatar_url": "https://avatars.githubusercontent.com/u/49598618?v=4", "gravatar_id": "", "url": "https://api.github.com/users/boazwasserman", "html_url": "https://github.com/boazwasserman", "followers_url": "https://api.github.com/users/boazwasserman/followers", "following_url": "https://api.github.com/users/boazwasserman/following{/other_user}", "gists_url": "https://api.github.com/users/boazwasserman/gists{/gist_id}", "starred_url": "https://api.github.com/users/boazwasserman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/boazwasserman/subscriptions", "organizations_url": "https://api.github.com/users/boazwasserman/orgs", "repos_url": "https://api.github.com/users/boazwasserman/repos", "events_url": "https://api.github.com/users/boazwasserman/events{/privacy}", "received_events_url": "https://api.github.com/users/boazwasserman/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
4
2023-06-12T14:58:10
2023-08-28T17:27:34
2023-08-28T17:27:34
CONTRIBUTOR
null
Add validation controls to the SQL chain to mitigate SQL injection issues. Using sqlfluff to perform static analysis: 1. Disallow non select statement (INSERT, DROP) 2. Disallow wildcard select statement Some dialects that are supported by langchain are not supported by sqlfluff. It is possible to disallow usage of such dialects as well. Also fixed the SQL integration tests which were not working as expected Fixes #5923 BTW, looks like there is a huge diff on poetry.lock which doesn't look OK to me, would appreciate any advice on how to resovle it (I was following the instructions found here https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md) #### Who can review? @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6051/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/6051/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6051", "html_url": "https://github.com/langchain-ai/langchain/pull/6051", "diff_url": "https://github.com/langchain-ai/langchain/pull/6051.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6051.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6050
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6050/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6050/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6050/events
https://github.com/langchain-ai/langchain/pull/6050
1,752,930,109
PR_kwDOIPDwls5SyFvF
6,050
Implement RDF Graph and RDF QA Chain
{ "login": "lifan0127", "id": 7218193, "node_id": "MDQ6VXNlcjcyMTgxOTM=", "avatar_url": "https://avatars.githubusercontent.com/u/7218193?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lifan0127", "html_url": "https://github.com/lifan0127", "followers_url": "https://api.github.com/users/lifan0127/followers", "following_url": "https://api.github.com/users/lifan0127/following{/other_user}", "gists_url": "https://api.github.com/users/lifan0127/gists{/gist_id}", "starred_url": "https://api.github.com/users/lifan0127/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lifan0127/subscriptions", "organizations_url": "https://api.github.com/users/lifan0127/orgs", "repos_url": "https://api.github.com/users/lifan0127/repos", "events_url": "https://api.github.com/users/lifan0127/events{/privacy}", "received_events_url": "https://api.github.com/users/lifan0127/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
closed
false
{ "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 }
[ { "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 } ]
null
4
2023-06-12T14:46:05
2023-07-13T11:28:51
2023-07-13T11:28:51
NONE
null
This pull request adds support for RDF Graph-based QA Chain. It uses the same signature and provides similar functionalities as the current Neo4j and Nebula implementations. In theory, any RDF stores that support the W3C SPARQL Query Language 1.1 standard can be used, although only a few were tested during the development. https://github.com/lifan0127/langchain/blob/rdf-graph/docs/modules/chains/examples/graph_rdf_qa.ipynb This approach will not scale well for large, public RDF databases such as Wikidata, but that is a more general problem that requires more research. cc @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6050/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/6050/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6050", "html_url": "https://github.com/langchain-ai/langchain/pull/6050", "diff_url": "https://github.com/langchain-ai/langchain/pull/6050.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6050.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6049
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6049/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6049/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6049/events
https://github.com/langchain-ai/langchain/pull/6049
1,752,912,974
PR_kwDOIPDwls5SyB_7
6,049
Enable serialization for anthropic
{ "login": "nfcampos", "id": 56902, "node_id": "MDQ6VXNlcjU2OTAy", "avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nfcampos", "html_url": "https://github.com/nfcampos", "followers_url": "https://api.github.com/users/nfcampos/followers", "following_url": "https://api.github.com/users/nfcampos/following{/other_user}", "gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}", "starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions", "organizations_url": "https://api.github.com/users/nfcampos/orgs", "repos_url": "https://api.github.com/users/nfcampos/repos", "events_url": "https://api.github.com/users/nfcampos/events{/privacy}", "received_events_url": "https://api.github.com/users/nfcampos/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-12T14:37:04
2023-06-13T05:39:11
2023-06-13T05:39:10
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6049/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/6049/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6049", "html_url": "https://github.com/langchain-ai/langchain/pull/6049", "diff_url": "https://github.com/langchain-ai/langchain/pull/6049.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6049.patch", "merged_at": "2023-06-13T05:39:10" }
https://api.github.com/repos/langchain-ai/langchain/issues/6048
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6048/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6048/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6048/events
https://github.com/langchain-ai/langchain/pull/6048
1,752,908,747
PR_kwDOIPDwls5SyBFe
6,048
Add embaas document extraction api endpoints
{ "login": "juliuslipp", "id": 43986145, "node_id": "MDQ6VXNlcjQzOTg2MTQ1", "avatar_url": "https://avatars.githubusercontent.com/u/43986145?v=4", "gravatar_id": "", "url": "https://api.github.com/users/juliuslipp", "html_url": "https://github.com/juliuslipp", "followers_url": "https://api.github.com/users/juliuslipp/followers", "following_url": "https://api.github.com/users/juliuslipp/following{/other_user}", "gists_url": "https://api.github.com/users/juliuslipp/gists{/gist_id}", "starred_url": "https://api.github.com/users/juliuslipp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/juliuslipp/subscriptions", "organizations_url": "https://api.github.com/users/juliuslipp/orgs", "repos_url": "https://api.github.com/users/juliuslipp/repos", "events_url": "https://api.github.com/users/juliuslipp/events{/privacy}", "received_events_url": "https://api.github.com/users/juliuslipp/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)" } ]
closed
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 }
[ { "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
0
2023-06-12T14:34:35
2023-06-13T02:13:52
2023-06-13T02:13:52
CONTRIBUTOR
null
# Introduces embaas document extraction api endpoints In this PR, we add support for embaas document extraction endpoints to Text Embedding Models (with LLMs, in different PRs coming). We currently offer the MTEB leaderboard top performers, will continue to add top embedding models and soon add support for customers to deploy thier own models. Additional Documentation + Infomation can be found [here](https://embaas.io). While developing this integration, I closely followed the patterns established by other langchain integrations. Nonetheless, if there are any aspects that require adjustments or if there's a better way to present a new integration, let me know! :) Additionally, I fixed some docs in the embeddings integration. Related PR: #5976 #### Who can review? DataLoaders - @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6048/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/6048/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6048", "html_url": "https://github.com/langchain-ai/langchain/pull/6048", "diff_url": "https://github.com/langchain-ai/langchain/pull/6048.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6048.patch", "merged_at": "2023-06-13T02:13:52" }
https://api.github.com/repos/langchain-ai/langchain/issues/6046
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6046/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6046/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6046/events
https://github.com/langchain-ai/langchain/issues/6046
1,752,825,122
I_kwDOIPDwls5oef0i
6,046
similarity_search_with_score witn Chroma DB keeps higher score for less relevant documents.
{ "login": "1shershah", "id": 76887404, "node_id": "MDQ6VXNlcjc2ODg3NDA0", "avatar_url": "https://avatars.githubusercontent.com/u/76887404?v=4", "gravatar_id": "", "url": "https://api.github.com/users/1shershah", "html_url": "https://github.com/1shershah", "followers_url": "https://api.github.com/users/1shershah/followers", "following_url": "https://api.github.com/users/1shershah/following{/other_user}", "gists_url": "https://api.github.com/users/1shershah/gists{/gist_id}", "starred_url": "https://api.github.com/users/1shershah/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/1shershah/subscriptions", "organizations_url": "https://api.github.com/users/1shershah/orgs", "repos_url": "https://api.github.com/users/1shershah/repos", "events_url": "https://api.github.com/users/1shershah/events{/privacy}", "received_events_url": "https://api.github.com/users/1shershah/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-06-12T13:57:49
2023-12-30T08:59:06
2023-06-12T15:26:36
NONE
null
### System Info Python 3.10.6 chromadb==0.3.22 langchain==0.0.194 ### Who can help? similarity_search_with_score witn Chroma DB keeps higher score for less relevant documents. ``` embeddings = OpenAIEmbeddings( model="text-embedding-ada-002", openai_api_key = openai.api_key, chunk_size=1 ) db = Chroma(collection_name="docs", embedding_function=embeddings, persist_directory=vector_db_path) question = """What is the rate of arthralgia in the combined RCP and OLP inebilizumab population?""" [d[1] for d in db.similarity_search_with_score(question, k=5 )] ``` ``` [0.3035728335380554, 0.3159480392932892, 0.3345768451690674, 0.3543674945831299, 0.36075425148010254] ``` ``` [d[1] for d in db.similarity_search_with_score(question, k=10 )] [0.3035728335380554, 0.3159480392932892, 0.3345768451690674, 0.3543674945831299, 0.36075425148010254, 0.36337000131607056, 0.3656774163246155, 0.36993658542633057, 0.37518084049224854, 0.3755079507827759] ``` Seems more like i should be doing (1-score) , to filter more relevant documents. So i tried to test with similarity threshold of .35 , but then it returns the least similar docs ( as .30 was more similar ) ### 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 - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction question = """What is the rate of arthralgia in the combined RCP and OLP inebilizumab population?""" [d[1] for d in db.similarity_search_with_score(question, k=5 )] [d[1] for d in db.similarity_search_with_score(question, k=10 )] ### Expected behavior I would expect higher similarity score for the documents that are earlier in the retruned list ( which the document is more related but has a lower score )
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6046/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/6046/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6045
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6045/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6045/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6045/events
https://github.com/langchain-ai/langchain/issues/6045
1,752,773,658
I_kwDOIPDwls5oeTQa
6,045
Issue: langchain + pgvector fail to create new tables in postgresql db
{ "login": "mihailyanchev", "id": 34907806, "node_id": "MDQ6VXNlcjM0OTA3ODA2", "avatar_url": "https://avatars.githubusercontent.com/u/34907806?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mihailyanchev", "html_url": "https://github.com/mihailyanchev", "followers_url": "https://api.github.com/users/mihailyanchev/followers", "following_url": "https://api.github.com/users/mihailyanchev/following{/other_user}", "gists_url": "https://api.github.com/users/mihailyanchev/gists{/gist_id}", "starred_url": "https://api.github.com/users/mihailyanchev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mihailyanchev/subscriptions", "organizations_url": "https://api.github.com/users/mihailyanchev/orgs", "repos_url": "https://api.github.com/users/mihailyanchev/repos", "events_url": "https://api.github.com/users/mihailyanchev/events{/privacy}", "received_events_url": "https://api.github.com/users/mihailyanchev/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
8
2023-06-12T13:29:06
2023-07-29T04:11:48
2023-06-13T07:21:36
NONE
null
### Issue you'd like to raise. I am trying to load llama-ccp embeddings into a postgresql with the vector extension. The db has the vector extension installed. I am using a user that has the correct privileges to create a new table and insert the embeddings. The code runs smoothly without any errors, but the collection is not being created as a new table in the db. The db name is `embeddings` and the schema name is `vector_store`. From pgadmin I can see that the there is the following query, which means the embeddings are created and are ready to be loaded: `INSERT INTO langchain_pg_embedding (collection_id, embedding, document, cmetadata, custom_id, uuid) VALUES ('d10c0cd8-300f-4592-aa2a-42f827...` However, it seems that no new table is created and the table names do not correspond to the collection name I am setting - `vector_store.test_table`. Any help will be appreciated. packages: pgvector 0.1.8 psycopg2-binary 2.9.6 langchain 0.0.149 This is my code: ``` from langchain import PromptTemplate, LLMChain from langchain.llms import GPT4All from langchain.callbacks.base import CallbackManager from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler from langchain.document_loaders import TextLoader from langchain.document_loaders import UnstructuredPDFLoader from langchain.document_loaders import PyPDFLoader from langchain.document_loaders import DirectoryLoader from langchain.indexes import VectorstoreIndexCreator from langchain.embeddings import LlamaCppEmbeddings from langchain.vectorstores.faiss import FAISS import os import datetime from langchain.text_splitter import CharacterTextSplitter from langchain.vectorstores.pgvector import PGVector from langchain.docstore.document import Document gpt4all_path = '../models/gpt4all-converted.bin' llama_path = '../models/ggml-model-q4_0.bin' embeddings = LlamaCppEmbeddings(model_path=llama_path) loader = TextLoader('../data/test.txt') documents = loader.load() text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=100) docs = text_splitter.split_documents(documents) import os CONNECTION_STRING = PGVector.connection_string_from_db_params( driver=os.environ.get("PGVECTOR_DRIVER", "psycopg2"), host=os.environ.get("PGVECTOR_HOST", "xxxxxxxxxxx"), port=int(os.environ.get("PGVECTOR_PORT", "5432")), database=os.environ.get("PGVECTOR_DATABASE", "embeddings"), user=os.environ.get("PGVECTOR_USER", "xxxxxxxx"), password=os.environ.get("PGVECTOR_PASSWORD", "xxxxxxxxxxx"), ) db = PGVector.from_documents( embedding=embeddings, documents=docs, collection_name="vector_store.test_table", connection_string=CONNECTION_STRING, pre_delete_collection=True ) ``` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6045/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/6045/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6044
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6044/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6044/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6044/events
https://github.com/langchain-ai/langchain/pull/6044
1,752,751,470
PR_kwDOIPDwls5SxeVc
6,044
chore: spedd up integration test by using smaller model
{ "login": "JensMadsen", "id": 6726111, "node_id": "MDQ6VXNlcjY3MjYxMTE=", "avatar_url": "https://avatars.githubusercontent.com/u/6726111?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JensMadsen", "html_url": "https://github.com/JensMadsen", "followers_url": "https://api.github.com/users/JensMadsen/followers", "following_url": "https://api.github.com/users/JensMadsen/following{/other_user}", "gists_url": "https://api.github.com/users/JensMadsen/gists{/gist_id}", "starred_url": "https://api.github.com/users/JensMadsen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JensMadsen/subscriptions", "organizations_url": "https://api.github.com/users/JensMadsen/orgs", "repos_url": "https://api.github.com/users/JensMadsen/repos", "events_url": "https://api.github.com/users/JensMadsen/events{/privacy}", "received_events_url": "https://api.github.com/users/JensMadsen/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-12T13:16:56
2023-06-12T20:27:10
2023-06-12T20:27:10
CONTRIBUTOR
null
Adds a new parameter `relative_chunk_overlap` for the `SentenceTransformersTokenTextSplitter` constructor. The parameter sets the chunk overlap using a relative factor, e.g. for a model where the token limit is 100, a `relative_chunk_overlap=0.5` implies that `chunk_overlap=50` Tag maintainers/contributors who might be interested: @hwchase17, @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6044/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/6044/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6044", "html_url": "https://github.com/langchain-ai/langchain/pull/6044", "diff_url": "https://github.com/langchain-ai/langchain/pull/6044.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6044.patch", "merged_at": "2023-06-12T20:27:10" }
https://api.github.com/repos/langchain-ai/langchain/issues/6043
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6043/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6043/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6043/events
https://github.com/langchain-ai/langchain/pull/6043
1,752,748,352
PR_kwDOIPDwls5Sxdpl
6,043
qdrant: search by vector
{ "login": "otwieracz", "id": 108072, "node_id": "MDQ6VXNlcjEwODA3Mg==", "avatar_url": "https://avatars.githubusercontent.com/u/108072?v=4", "gravatar_id": "", "url": "https://api.github.com/users/otwieracz", "html_url": "https://github.com/otwieracz", "followers_url": "https://api.github.com/users/otwieracz/followers", "following_url": "https://api.github.com/users/otwieracz/following{/other_user}", "gists_url": "https://api.github.com/users/otwieracz/gists{/gist_id}", "starred_url": "https://api.github.com/users/otwieracz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/otwieracz/subscriptions", "organizations_url": "https://api.github.com/users/otwieracz/orgs", "repos_url": "https://api.github.com/users/otwieracz/repos", "events_url": "https://api.github.com/users/otwieracz/events{/privacy}", "received_events_url": "https://api.github.com/users/otwieracz/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
4
2023-06-12T13:15:19
2023-06-17T16:44:29
2023-06-17T16:44:29
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> Added support to `search_by_vector` to Qdrant Vector store. <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> ### Who can review VectorStores / Retrievers / Memory - @dev2049 <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6043/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/6043/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6043", "html_url": "https://github.com/langchain-ai/langchain/pull/6043", "diff_url": "https://github.com/langchain-ai/langchain/pull/6043.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6043.patch", "merged_at": "2023-06-17T16:44:29" }
https://api.github.com/repos/langchain-ai/langchain/issues/6042
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6042/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6042/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6042/events
https://github.com/langchain-ai/langchain/pull/6042
1,752,679,976
PR_kwDOIPDwls5SxOkP
6,042
Mongo db doc fix
{ "login": "bafMdb", "id": 55411495, "node_id": "MDQ6VXNlcjU1NDExNDk1", "avatar_url": "https://avatars.githubusercontent.com/u/55411495?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bafMdb", "html_url": "https://github.com/bafMdb", "followers_url": "https://api.github.com/users/bafMdb/followers", "following_url": "https://api.github.com/users/bafMdb/following{/other_user}", "gists_url": "https://api.github.com/users/bafMdb/gists{/gist_id}", "starred_url": "https://api.github.com/users/bafMdb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bafMdb/subscriptions", "organizations_url": "https://api.github.com/users/bafMdb/orgs", "repos_url": "https://api.github.com/users/bafMdb/repos", "events_url": "https://api.github.com/users/bafMdb/events{/privacy}", "received_events_url": "https://api.github.com/users/bafMdb/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-12T12:39:15
2023-06-12T14:29:28
2023-06-12T14:29:28
CONTRIBUTOR
null
I missed a few errors in my initial fix @hwchase1. Thanks!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6042/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/6042/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6042", "html_url": "https://github.com/langchain-ai/langchain/pull/6042", "diff_url": "https://github.com/langchain-ai/langchain/pull/6042.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6042.patch", "merged_at": "2023-06-12T14:29:28" }
https://api.github.com/repos/langchain-ai/langchain/issues/6041
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6041/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6041/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6041/events
https://github.com/langchain-ai/langchain/issues/6041
1,752,603,109
I_kwDOIPDwls5odpnl
6,041
Emiting events during processing of intermediate steps
{ "login": "Bilal143260", "id": 118292770, "node_id": "U_kgDOBw0BIg", "avatar_url": "https://avatars.githubusercontent.com/u/118292770?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Bilal143260", "html_url": "https://github.com/Bilal143260", "followers_url": "https://api.github.com/users/Bilal143260/followers", "following_url": "https://api.github.com/users/Bilal143260/following{/other_user}", "gists_url": "https://api.github.com/users/Bilal143260/gists{/gist_id}", "starred_url": "https://api.github.com/users/Bilal143260/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Bilal143260/subscriptions", "organizations_url": "https://api.github.com/users/Bilal143260/orgs", "repos_url": "https://api.github.com/users/Bilal143260/repos", "events_url": "https://api.github.com/users/Bilal143260/events{/privacy}", "received_events_url": "https://api.github.com/users/Bilal143260/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-12T12:00:43
2023-09-18T16:07:58
2023-09-18T16:07:57
NONE
null
### Feature request Langchain agent performs multiple intermediate steps before returning a response. We want to emit an event for every intermediate step during processing, so that the client-side can be updated about what's being processed at any given time. For example, if an intermediate steps involves searching Google, we can then emit an event that informs the client about the search taking place. This could massively improve UX. ### Motivation The motivation comes from wanting to improve UX. We're developing a langchain-based app and this feature is sorely missed. ### Your contribution We could definitely submit a PR if you give a little bit of guidance on how to go about with it.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6041/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/6041/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6040
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6040/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6040/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6040/events
https://github.com/langchain-ai/langchain/pull/6040
1,752,416,825
PR_kwDOIPDwls5SwVFW
6,040
make modelname_to_contextsize as a staticmethod
{ "login": "Ja-sonYun", "id": 46551097, "node_id": "MDQ6VXNlcjQ2NTUxMDk3", "avatar_url": "https://avatars.githubusercontent.com/u/46551097?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Ja-sonYun", "html_url": "https://github.com/Ja-sonYun", "followers_url": "https://api.github.com/users/Ja-sonYun/followers", "following_url": "https://api.github.com/users/Ja-sonYun/following{/other_user}", "gists_url": "https://api.github.com/users/Ja-sonYun/gists{/gist_id}", "starred_url": "https://api.github.com/users/Ja-sonYun/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ja-sonYun/subscriptions", "organizations_url": "https://api.github.com/users/Ja-sonYun/orgs", "repos_url": "https://api.github.com/users/Ja-sonYun/repos", "events_url": "https://api.github.com/users/Ja-sonYun/events{/privacy}", "received_events_url": "https://api.github.com/users/Ja-sonYun/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
0
2023-06-12T10:23:31
2023-06-17T16:13:09
2023-06-17T16:13:09
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> Fixes ##6039 #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review? Tag maintainers/contributors who might be interested: @hwchase17 @agola11 <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6040/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/6040/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6040", "html_url": "https://github.com/langchain-ai/langchain/pull/6040", "diff_url": "https://github.com/langchain-ai/langchain/pull/6040.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6040.patch", "merged_at": "2023-06-17T16:13:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/6039
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6039/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6039/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6039/events
https://github.com/langchain-ai/langchain/issues/6039
1,752,416,131
I_kwDOIPDwls5oc7-D
6,039
Make modelname_to_contextsize as a staticmethod to use it without create an object
{ "login": "Ja-sonYun", "id": 46551097, "node_id": "MDQ6VXNlcjQ2NTUxMDk3", "avatar_url": "https://avatars.githubusercontent.com/u/46551097?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Ja-sonYun", "html_url": "https://github.com/Ja-sonYun", "followers_url": "https://api.github.com/users/Ja-sonYun/followers", "following_url": "https://api.github.com/users/Ja-sonYun/following{/other_user}", "gists_url": "https://api.github.com/users/Ja-sonYun/gists{/gist_id}", "starred_url": "https://api.github.com/users/Ja-sonYun/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ja-sonYun/subscriptions", "organizations_url": "https://api.github.com/users/Ja-sonYun/orgs", "repos_url": "https://api.github.com/users/Ja-sonYun/repos", "events_url": "https://api.github.com/users/Ja-sonYun/events{/privacy}", "received_events_url": "https://api.github.com/users/Ja-sonYun/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-12T10:23:07
2023-06-23T11:58:44
2023-06-23T11:58:44
CONTRIBUTOR
null
### Feature request Make [modelname_to_contextsize](https://github.com/hwchase17/langchain/blob/289e9aeb9d122d689d68b2e77236ce3dfcd606a7/langchain/llms/openai.py#L503) as staticmethod to use it without create an object. ### Motivation While using ChatOpenAI or AzureChatOpenAI, to use modelname_to_contextsize we need to create OpenAI or AzureOpenAI object whether we don't use it. For example, llama-index using [modelname_to_contextsize](https://github.com/jerryjliu/llama_index/blob/f614448a045788c9c5c9a774f407a992ae1f7743/llama_index/llm_predictor/base.py#L42) to get context size, but it raise an error if we using AzureOpenAI without setting OPENAI_API_TOKEN. ### Your contribution #6040
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6039/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/6039/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6038
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6038/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6038/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6038/events
https://github.com/langchain-ai/langchain/issues/6038
1,752,342,167
I_kwDOIPDwls5ocp6X
6,038
Validation error for gpt4all
{ "login": "ketlinapuci", "id": 121874667, "node_id": "U_kgDOB0Oo6w", "avatar_url": "https://avatars.githubusercontent.com/u/121874667?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ketlinapuci", "html_url": "https://github.com/ketlinapuci", "followers_url": "https://api.github.com/users/ketlinapuci/followers", "following_url": "https://api.github.com/users/ketlinapuci/following{/other_user}", "gists_url": "https://api.github.com/users/ketlinapuci/gists{/gist_id}", "starred_url": "https://api.github.com/users/ketlinapuci/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ketlinapuci/subscriptions", "organizations_url": "https://api.github.com/users/ketlinapuci/orgs", "repos_url": "https://api.github.com/users/ketlinapuci/repos", "events_url": "https://api.github.com/users/ketlinapuci/events{/privacy}", "received_events_url": "https://api.github.com/users/ketlinapuci/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
5
2023-06-12T09:44:27
2023-09-20T16:08:46
2023-09-20T16:08:45
NONE
null
### System Info I followed the steps to install gpt4all based on this repo https://github.com/nomic-ai/gpt4all/tree/main/gpt4all-bindings/python I have the latest version of langchain ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [X] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` def mainllm(): template = """Question: {question} prompt = PromptTemplate(template=template, input_variables=["question"]) local_path = './models/gpt4all-converted.bin' llm = gpt4all.GPT4All("ggml-gpt4all-j-v1.3-groovy.bin") llm_chain = LLMChain(prompt=prompt, llm=llm) question = "What NFL team won the Super Bowl in the year Justin Bieber was born?" llm_chain.run(question) if __name__ == '__main__': mainllm() ``` This is the error I get related to this lines on code: ``` Traceback (most recent call last): File "gpt4all.py", line 174, in <module> mainllm() File "gpt4all.py", line 166, in mainllm llm = gpt4all.GPT4All("ggml-gpt4all-j-v1.3-groovy.bin") TypeError: Serializable.__init__() takes 1 positional argument but 2 were given ``` ### Expected behavior Could you help me understand what is wrong? Thanks
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6038/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/6038/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6037
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6037/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6037/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6037/events
https://github.com/langchain-ai/langchain/issues/6037
1,752,340,270
I_kwDOIPDwls5ocpcu
6,037
Report:Discussion about the bug mentioned in the documentation
{ "login": "LeXwDeX", "id": 14139451, "node_id": "MDQ6VXNlcjE0MTM5NDUx", "avatar_url": "https://avatars.githubusercontent.com/u/14139451?v=4", "gravatar_id": "", "url": "https://api.github.com/users/LeXwDeX", "html_url": "https://github.com/LeXwDeX", "followers_url": "https://api.github.com/users/LeXwDeX/followers", "following_url": "https://api.github.com/users/LeXwDeX/following{/other_user}", "gists_url": "https://api.github.com/users/LeXwDeX/gists{/gist_id}", "starred_url": "https://api.github.com/users/LeXwDeX/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LeXwDeX/subscriptions", "organizations_url": "https://api.github.com/users/LeXwDeX/orgs", "repos_url": "https://api.github.com/users/LeXwDeX/repos", "events_url": "https://api.github.com/users/LeXwDeX/events{/privacy}", "received_events_url": "https://api.github.com/users/LeXwDeX/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-12T09:43:17
2023-09-15T22:13:04
2023-09-13T22:58:49
NONE
null
### Issue with current documentation: Report I am currently reading the documentation for version 0.0.197 and testing step by step. When I ran into the "agents-with-chat-models" section, I encountered a type error in the code. The specific situation is as follows: [doc link](https://python.langchain.com/en/latest/getting_started/getting_started.html#agents-with-chat-models) ```python # this is my code llm = AzureOpenAI( model_name = os.environ["GPT_ENGINE"], deployment_name = os.environ["GPT_ENGINE"], openai_api_key = os.environ["API_KEY"], temperature = 0, max_tokens = 1000, top_p = 0.95, frequency_penalty = 0, presence_penalty = 0 ) chat = AzureChatOpenAI( model_name = os.environ["GPT_ENGINE"], deployment_name = os.environ["GPT_ENGINE"], openai_api_key = os.environ["API_KEY"], openai_api_base = os.environ["API_BASE"], openai_api_version= os.environ["API_VERSION"], temperature = 0, max_tokens = 1000 ) tools = load_tools(["serpapi", "llm-math"], llm=llm) # Finally, let's initialize an agent with the tools, the language model, and the type of agent we want to use. agent = initialize_agent(tools, chat, agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION, verbose=True) # Now let's test it out! agent.run("Who is Olivia Wilde's boyfriend? What is his current age raised to the 0.23 power?").format ``` ```log-output > Entering new AgentExecutor chain... Thought: I need to use a search engine to find Olivia Wilde's boyfriend and a calculator to raise his age to the 0.23 power. Action: { "action": "Search", "action_input": "Olivia Wilde boyfriend" } Observation: Looks like Olivia Wilde and Jason Sudeikis are starting 2023 on good terms. Amid their highly publicized custody battle – and the actress' ... Thought:Now I need to use a calculator to raise Jason Sudeikis' age to the 0.23 power. Action: { "action": "Calculator", "action_input": "pow(47, 0.23)" } ``` ```error-output ValueError: LLMMathChain._evaluate(" pow(47, 0.23) ") raised error: 'VariableNode' object is not callable. Please try again with a valid numerical expression ``` ### Idea or request for content: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6037/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/6037/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6036
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6036/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6036/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6036/events
https://github.com/langchain-ai/langchain/pull/6036
1,752,311,779
PR_kwDOIPDwls5Sv96b
6,036
Resolve the issue with the asynchronous function generate_concurrentl…
{ "login": "BigPingge", "id": 40760279, "node_id": "MDQ6VXNlcjQwNzYwMjc5", "avatar_url": "https://avatars.githubusercontent.com/u/40760279?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BigPingge", "html_url": "https://github.com/BigPingge", "followers_url": "https://api.github.com/users/BigPingge/followers", "following_url": "https://api.github.com/users/BigPingge/following{/other_user}", "gists_url": "https://api.github.com/users/BigPingge/gists{/gist_id}", "starred_url": "https://api.github.com/users/BigPingge/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BigPingge/subscriptions", "organizations_url": "https://api.github.com/users/BigPingge/orgs", "repos_url": "https://api.github.com/users/BigPingge/repos", "events_url": "https://api.github.com/users/BigPingge/events{/privacy}", "received_events_url": "https://api.github.com/users/BigPingge/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
{ "login": "agola11", "id": 9536492, "node_id": "MDQ6VXNlcjk1MzY0OTI=", "avatar_url": "https://avatars.githubusercontent.com/u/9536492?v=4", "gravatar_id": "", "url": "https://api.github.com/users/agola11", "html_url": "https://github.com/agola11", "followers_url": "https://api.github.com/users/agola11/followers", "following_url": "https://api.github.com/users/agola11/following{/other_user}", "gists_url": "https://api.github.com/users/agola11/gists{/gist_id}", "starred_url": "https://api.github.com/users/agola11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/agola11/subscriptions", "organizations_url": "https://api.github.com/users/agola11/orgs", "repos_url": "https://api.github.com/users/agola11/repos", "events_url": "https://api.github.com/users/agola11/events{/privacy}", "received_events_url": "https://api.github.com/users/agola11/received_events", "type": "User", "site_admin": false }
[ { "login": "agola11", "id": 9536492, "node_id": "MDQ6VXNlcjk1MzY0OTI=", "avatar_url": "https://avatars.githubusercontent.com/u/9536492?v=4", "gravatar_id": "", "url": "https://api.github.com/users/agola11", "html_url": "https://github.com/agola11", "followers_url": "https://api.github.com/users/agola11/followers", "following_url": "https://api.github.com/users/agola11/following{/other_user}", "gists_url": "https://api.github.com/users/agola11/gists{/gist_id}", "starred_url": "https://api.github.com/users/agola11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/agola11/subscriptions", "organizations_url": "https://api.github.com/users/agola11/orgs", "repos_url": "https://api.github.com/users/agola11/repos", "events_url": "https://api.github.com/users/agola11/events{/privacy}", "received_events_url": "https://api.github.com/users/agola11/received_events", "type": "User", "site_admin": false } ]
null
1
2023-06-12T09:26:10
2023-11-01T23:49:36
2023-11-01T23:49:36
NONE
null
…y in async_chain.ipynb <!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> Fixes # (issue) Doc code err! #### Before submitting ``` async def generate_concurrently(): llm = OpenAI(temperature=0.9) prompt = PromptTemplate( input_variables=["product"], template="What is a good name for a company that makes {product}?", ) chain = LLMChain(llm=llm, prompt=prompt) tasks = [async_generate(chain) for _ in range(5)] await asyncio.gather(*tasks) s = time.perf_counter() # If running this outside of Jupyter, use asyncio.run(generate_concurrently()) await generate_concurrently() ``` #### After submitting ``` async def generate_concurrently(): llm = OpenAI(temperature=0.9) prompt = PromptTemplate( input_variables=["product"], template="What is a good name for a company that makes {product}?", ) chain = LLMChain(llm=llm, prompt=prompt) tasks = [async_generate(chain) for _ in range(5)] await asyncio.gather(*tasks) s = time.perf_counter() # If running this outside of Jupyter, use asyncio.run(generate_concurrently()) asyncio.run(generate_concurrently()) ``` <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review? Tag maintainers/contributors who might be interested: <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6036/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/6036/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6036", "html_url": "https://github.com/langchain-ai/langchain/pull/6036", "diff_url": "https://github.com/langchain-ai/langchain/pull/6036.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6036.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6035
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6035/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6035/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6035/events
https://github.com/langchain-ai/langchain/pull/6035
1,752,297,590
PR_kwDOIPDwls5Sv631
6,035
Allow GoogleDrive to authenticate via application default credentials on Cloud Run/GCE etc without service key
{ "login": "MarkEdmondson1234", "id": 3155884, "node_id": "MDQ6VXNlcjMxNTU4ODQ=", "avatar_url": "https://avatars.githubusercontent.com/u/3155884?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MarkEdmondson1234", "html_url": "https://github.com/MarkEdmondson1234", "followers_url": "https://api.github.com/users/MarkEdmondson1234/followers", "following_url": "https://api.github.com/users/MarkEdmondson1234/following{/other_user}", "gists_url": "https://api.github.com/users/MarkEdmondson1234/gists{/gist_id}", "starred_url": "https://api.github.com/users/MarkEdmondson1234/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarkEdmondson1234/subscriptions", "organizations_url": "https://api.github.com/users/MarkEdmondson1234/orgs", "repos_url": "https://api.github.com/users/MarkEdmondson1234/repos", "events_url": "https://api.github.com/users/MarkEdmondson1234/events{/privacy}", "received_events_url": "https://api.github.com/users/MarkEdmondson1234/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
1
2023-06-12T09:17:10
2023-06-17T16:44:18
2023-06-17T16:44:18
CONTRIBUTOR
null
@eyurtsev The existing GoogleDrive implementation always needs a service account to be available at the credentials location. When running on GCP services such as Cloud Run, a service account already exists in the metadata of the service, so no physical key is necessary. This change adds a check to see if it is running in such an environment, and uses that authentication instead.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6035/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/6035/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6035", "html_url": "https://github.com/langchain-ai/langchain/pull/6035", "diff_url": "https://github.com/langchain-ai/langchain/pull/6035.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6035.patch", "merged_at": "2023-06-17T16:44:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/6034
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6034/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6034/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6034/events
https://github.com/langchain-ai/langchain/issues/6034
1,752,222,940
I_kwDOIPDwls5ocMzc
6,034
TypeError("Requests.apost() missing 1 required positional argument: 'data'")
{ "login": "WanderAG", "id": 7575944, "node_id": "MDQ6VXNlcjc1NzU5NDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/7575944?v=4", "gravatar_id": "", "url": "https://api.github.com/users/WanderAG", "html_url": "https://github.com/WanderAG", "followers_url": "https://api.github.com/users/WanderAG/followers", "following_url": "https://api.github.com/users/WanderAG/following{/other_user}", "gists_url": "https://api.github.com/users/WanderAG/gists{/gist_id}", "starred_url": "https://api.github.com/users/WanderAG/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WanderAG/subscriptions", "organizations_url": "https://api.github.com/users/WanderAG/orgs", "repos_url": "https://api.github.com/users/WanderAG/repos", "events_url": "https://api.github.com/users/WanderAG/events{/privacy}", "received_events_url": "https://api.github.com/users/WanderAG/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-06-12T08:37:26
2023-09-25T09:49:03
2023-09-25T09:49:02
NONE
null
### System Info langchain = "^0.0.197" ### Who can help? @agola11 ### 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 - [ ] Chains - [ ] Callbacks/Tracing - [X] Async ### Reproduction ``` python import asyncio from langchain.utilities import TextRequestsWrapper requests = TextRequestsWrapper() async def fun(): ret = await requests.apost("http://127.0.0.1:8080", data={"data": 123}) if __name__ == '__main__': asyncio.run(fun()) ``` ### Expected behavior ![image](https://github.com/hwchase17/langchain/assets/7575944/e4ff4dc1-54e2-43ce-999e-9c233c2a6752)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6034/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/6034/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6033
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6033/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6033/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6033/events
https://github.com/langchain-ai/langchain/issues/6033
1,752,197,041
I_kwDOIPDwls5ocGex
6,033
Add clearer API for defining `k` (number of documents retrieved) in VectorStore/retriever defining functions
{ "login": "ROMEEZHOU", "id": 72342196, "node_id": "MDQ6VXNlcjcyMzQyMTk2", "avatar_url": "https://avatars.githubusercontent.com/u/72342196?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ROMEEZHOU", "html_url": "https://github.com/ROMEEZHOU", "followers_url": "https://api.github.com/users/ROMEEZHOU/followers", "following_url": "https://api.github.com/users/ROMEEZHOU/following{/other_user}", "gists_url": "https://api.github.com/users/ROMEEZHOU/gists{/gist_id}", "starred_url": "https://api.github.com/users/ROMEEZHOU/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ROMEEZHOU/subscriptions", "organizations_url": "https://api.github.com/users/ROMEEZHOU/orgs", "repos_url": "https://api.github.com/users/ROMEEZHOU/repos", "events_url": "https://api.github.com/users/ROMEEZHOU/events{/privacy}", "received_events_url": "https://api.github.com/users/ROMEEZHOU/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-12T08:24:14
2023-10-25T16:08:23
2023-10-25T16:08:21
NONE
null
### Feature request Let users easily define the value of `k`, which is the number of documents retrieved, when specifying a VectorStore. ### Motivation When working with documents, users typically need to specify VectorStore, and users may often want to define the specific number of documents being retrieved, i.e., the `k`, when similarity search runs behind the scene. For example, I am doing ``` docsearch = Chroma.from_documents(texts1 + texts3, embeddings) retriever=docsearch.as_retriever(search_kwargs = {'k':1}) ``` However, there is no easy way or clear documentation for this. I have to go through the source code all the ways to find that I can do it with adding `search_kwargs = {'k':1}` when I specify the retriever. This is not user-friendly, especially noticing that this is a common feature that users need. ### Your contribution I would love to open a PR for this. I am willing to either change the code or writing a clearer documentation for this feature.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6033/reactions", "total_count": 5, "+1": 5, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6033/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6032
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6032/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6032/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6032/events
https://github.com/langchain-ai/langchain/issues/6032
1,752,131,402
I_kwDOIPDwls5ob2dK
6,032
KeyError: 'langchain' (circular import error)
{ "login": "al-yakubovich", "id": 12928778, "node_id": "MDQ6VXNlcjEyOTI4Nzc4", "avatar_url": "https://avatars.githubusercontent.com/u/12928778?v=4", "gravatar_id": "", "url": "https://api.github.com/users/al-yakubovich", "html_url": "https://github.com/al-yakubovich", "followers_url": "https://api.github.com/users/al-yakubovich/followers", "following_url": "https://api.github.com/users/al-yakubovich/following{/other_user}", "gists_url": "https://api.github.com/users/al-yakubovich/gists{/gist_id}", "starred_url": "https://api.github.com/users/al-yakubovich/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/al-yakubovich/subscriptions", "organizations_url": "https://api.github.com/users/al-yakubovich/orgs", "repos_url": "https://api.github.com/users/al-yakubovich/repos", "events_url": "https://api.github.com/users/al-yakubovich/events{/privacy}", "received_events_url": "https://api.github.com/users/al-yakubovich/received_events", "type": "User", "site_admin": false }
[ { "id": 5774514459, "node_id": "LA_kwDOIPDwls8AAAABWDAZGw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/stale", "name": "stale", "color": "dadada", "default": false, "description": "Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed" } ]
open
false
null
[]
null
6
2023-06-12T07:52:33
2023-12-24T16:01:24
null
NONE
null
### System Info @hwchase17 @agola11 Hi. From time to time, I am getting the following error: ``` 2023-06-12 02:27:55.993 Uncaught app exception Traceback (most recent call last): File "C:\Users\v-alakubov\AppData\Local\anaconda3\envs\py311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in run_script exec(code, module.dict) File "C:\Users\v-alakubov\OneDrive\Desktop\app_v2\src\pages\AskData.py", line 7, in <module> from modules.table_tool import PandasAgent File "C:\Users\v-alakubov\OneDrive\Desktop\Listens\app_v2.\src\modules\table_tool.py", line 6, in <module> from langchain.callbacks import get_openai_callback File "C:\Users\v-alakubov\AppData\Local\anaconda3\envs\py311\Lib\site-packages\langchain_init.py", line 6, in <module> from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain File "C:\Users\v-alakubov\AppData\Local\anaconda3\envs\py311\Lib\site-packages\langchain\agents_init_.py", line 2, in <module> from langchain.agents.agent import ( File "C:\Users\v-alakubov\AppData\Local\anaconda3\envs\py311\Lib\site-packages\langchain\agents\agent.py", line 16, in <module> from langchain.agents.tools import InvalidTool File "C:\Users\v-alakubov\AppData\Local\anaconda3\envs\py311\Lib\site-packages\langchain\agents\tools.py", line 8, in <module> from langchain.tools.base import BaseTool, Tool, tool File "C:\Users\v-alakubov\AppData\Local\anaconda3\envs\py311\Lib\site-packages\langchain\tools_init_.py", line 46, in <module> from langchain.tools.powerbi.tool import ( File "C:\Users\v-alakubov\AppData\Local\anaconda3\envs\py311\Lib\site-packages\langchain\tools\powerbi\tool.py", line 11, in <module> from langchain.chains.llm import LLMChain File "C:\Users\v-alakubov\AppData\Local\anaconda3\envs\py311\Lib\site-packages\langchain\chains_init_.py", line 7, in <module> from langchain.chains.conversational_retrieval.base import ( File "C:\Users\v-alakubov\AppData\Local\anaconda3\envs\py311\Lib\site-packages\langchain\chains\conversational_retrieval\base.py", line 22, in <module> from langchain.chains.question_answering import load_qa_chain File "C:\Users\v-alakubov\AppData\Local\anaconda3\envs\py311\Lib\site-packages\langchain\chains\question_answering_init_.py", line 13, in <module> from langchain.chains.question_answering import ( File "C:\Users\v-alakubov\AppData\Local\anaconda3\envs\py311\Lib\site-packages\langchain\chains\question_answering\map_reduce_prompt.py", line 2, in <module> from langchain.chains.prompt_selector import ConditionalPromptSelector, is_chat_model File "C:\Users\v-alakubov\AppData\Local\anaconda3\envs\py311\Lib\site-packages\langchain\chains\prompt_selector.py", line 7, in <module> from langchain.chat_models.base import BaseChatModel ImportError: cannot import name 'BaseChatModel' from partially initialized module 'langchain.chat_models.base' (most likely due to a circular import) (C:\Users\v-alakubov\AppData\Local\anaconda3\envs\py311\Lib\site-packages\langchain\chat_models\base.py) 2023-06-12 02:27:56.013 Uncaught app exception Traceback (most recent call last): File "C:\Users\v-alakubov\AppData\Local\anaconda3\envs\py311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.dict) File "C:\Users\v-alakubov\OneDrive\Desktop\Listens\app_v2\src\pages\AI-Chat.py", line 8, in <module> from modules.utils import Utilities File "C:\Users\v-alakubov\OneDrive\Desktop\Listens\app_v2.\src\modules\utils.py", line 6, in <module> from modules.chatbot import Chatbot File "C:\Users\v-alakubov\OneDrive\Desktop\Listens\app_v2.\src\modules\chatbot.py", line 3, in <module> from langchain.chat_models import AzureChatOpenAI File "<frozen importlib._bootstrap>", line 1178, in _find_and_load File "<frozen importlib._bootstrap>", line 1155, in _find_and_load_unlocked KeyError: 'langchain' ``` any ideas why? ### 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 - [X] Callbacks/Tracing - [ ] Async ### Reproduction Here structure of project: ``` Home.py pages modules embeddings ``` Where pages, modules and embeddings are folders. "pages" folder has two files: AI-Chat.py AskData.py modules folder has 7 files: chatbot.py embedder.py history.py layout.py sidebar.py table_tool.py utils.py Home.py (the file I run as ` streamlit run .\src\Home.py`) AI-Chat.py: ``` import os import streamlit as st from io import StringIO import re import sys from modules.history import ChatHistory from modules.layout import Layout from modules.utils import Utilities from modules.sidebar import Sidebar .... ``` AskData.py: ``` import os import importlib import sys import pandas as pd import streamlit as st from io import BytesIO from modules.table_tool import PandasAgent from modules.layout import Layout from modules.utils import Utilities from modules.sidebar import Sidebar .... ``` chatbot.py: ``` import streamlit as st # from langchain.chat_models import ChatOpenAI from langchain.chat_models import AzureChatOpenAI from langchain.chains import ConversationalRetrievalChain from langchain.prompts.prompt import PromptTemplate from langchain.callbacks import get_openai_callback import os #fix Error: module 'langchain' has no attribute 'verbose' import langchain langchain.verbose = False import traceback ..... ``` utils.py: ``` import os import pandas as pd import streamlit as st import pdfplumber from modules.chatbot import Chatbot from modules.embedder import Embedder ``` embedder.py: ``` import os import pickle import tempfile from langchain.document_loaders.csv_loader import CSVLoader from langchain.vectorstores import FAISS from langchain.embeddings.openai import OpenAIEmbeddings from langchain.document_loaders import PyPDFLoader from langchain.document_loaders import TextLoader from langchain.text_splitter import RecursiveCharacterTextSplitter .... ``` table_tool.py: ``` import re import sys from io import StringIO, BytesIO import matplotlib.pyplot as plt import streamlit as st from langchain.callbacks import get_openai_callback from streamlit_chat import message import os from pandasai import PandasAI # from pandasai.llm.openai import OpenAI from pandasai.llm.azure_openai import AzureOpenAI .... ``` history.py: ``` import os import streamlit as st from streamlit_chat import message ...... ``` layout.py: ``` import streamlit as st .... ``` sidebar.py: ``` import streamlit as st ....... ``` ### Expected behavior no error should rise
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6032/reactions", "total_count": 4, "+1": 4, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6032/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6031
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6031/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6031/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6031/events
https://github.com/langchain-ai/langchain/pull/6031
1,752,095,901
PR_kwDOIPDwls5SvOqV
6,031
DocArray as a Retriever
{ "login": "jupyterjazz", "id": 45267439, "node_id": "MDQ6VXNlcjQ1MjY3NDM5", "avatar_url": "https://avatars.githubusercontent.com/u/45267439?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jupyterjazz", "html_url": "https://github.com/jupyterjazz", "followers_url": "https://api.github.com/users/jupyterjazz/followers", "following_url": "https://api.github.com/users/jupyterjazz/following{/other_user}", "gists_url": "https://api.github.com/users/jupyterjazz/gists{/gist_id}", "starred_url": "https://api.github.com/users/jupyterjazz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jupyterjazz/subscriptions", "organizations_url": "https://api.github.com/users/jupyterjazz/orgs", "repos_url": "https://api.github.com/users/jupyterjazz/repos", "events_url": "https://api.github.com/users/jupyterjazz/events{/privacy}", "received_events_url": "https://api.github.com/users/jupyterjazz/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
6
2023-06-12T07:28:29
2023-06-17T16:09:35
2023-06-17T16:09:34
CONTRIBUTOR
null
## DocArray as a Retriever [DocArray](https://github.com/docarray/docarray) is an open-source tool for managing your multi-modal data. It offers flexibility to store and search through your data using various document index backends. This PR introduces `DocArrayRetriever` - which works with any available backend and serves as a retriever for Langchain apps. Also, I added 2 notebooks: DocArray Backends - intro to all 5 currently supported backends, how to initialize, index, and use them as a retriever DocArray Usage - showcasing what additional search parameters you can pass to create versatile retrievers Example: ```python from docarray.index import InMemoryExactNNIndex from docarray import BaseDoc, DocList from docarray.typing import NdArray from langchain.embeddings.openai import OpenAIEmbeddings from langchain.retrievers import DocArrayRetriever # define document schema class MyDoc(BaseDoc): description: str description_embedding: NdArray[1536] embeddings = OpenAIEmbeddings() # create documents descriptions = ["description 1", "description 2"] desc_embeddings = embeddings.embed_documents(texts=descriptions) docs = DocList[MyDoc]( [ MyDoc(description=desc, description_embedding=embedding) for desc, embedding in zip(descriptions, desc_embeddings) ] ) # initialize document index with data db = InMemoryExactNNIndex[MyDoc](docs) # create a retriever retriever = DocArrayRetriever( index=db, embeddings=embeddings, search_field="description_embedding", content_field="description", ) # find the relevant document doc = retriever.get_relevant_documents("action movies") print(doc) ``` #### Who can review? @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6031/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 2, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6031/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6031", "html_url": "https://github.com/langchain-ai/langchain/pull/6031", "diff_url": "https://github.com/langchain-ai/langchain/pull/6031.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6031.patch", "merged_at": "2023-06-17T16:09:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/6030
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6030/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6030/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6030/events
https://github.com/langchain-ai/langchain/pull/6030
1,752,003,436
PR_kwDOIPDwls5Su6cZ
6,030
Add OctoAI LLM endpoint wrapper and embedding endpoint wrapper
{ "login": "AI-Bassem", "id": 125713079, "node_id": "U_kgDOB346tw", "avatar_url": "https://avatars.githubusercontent.com/u/125713079?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AI-Bassem", "html_url": "https://github.com/AI-Bassem", "followers_url": "https://api.github.com/users/AI-Bassem/followers", "following_url": "https://api.github.com/users/AI-Bassem/following{/other_user}", "gists_url": "https://api.github.com/users/AI-Bassem/gists{/gist_id}", "starred_url": "https://api.github.com/users/AI-Bassem/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AI-Bassem/subscriptions", "organizations_url": "https://api.github.com/users/AI-Bassem/orgs", "repos_url": "https://api.github.com/users/AI-Bassem/repos", "events_url": "https://api.github.com/users/AI-Bassem/events{/privacy}", "received_events_url": "https://api.github.com/users/AI-Bassem/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 4899415699, "node_id": "LA_kwDOIPDwls8AAAABJAcmkw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/llms", "name": "llms", "color": "7CDBB2", "default": false, "description": "" }, { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
4
2023-06-12T06:34:29
2023-06-29T05:36:44
2023-06-29T05:36:43
CONTRIBUTOR
null
This pull request introduces support for [OctoAI's Compute Service](https://octoai.cloud/) embedding endpoints and large language model endpoints into the LangChain project. The changes encompass additions to various files to accommodate OctoAI's API integration. **Details of the changes:** **langchain/__init__.py** and **langchain/llms/__init__.py:** Updates to these initialization files allow OctoAI's services to be utilized in the LangChain's workflow. The changes add 'OctoAIEndpoint' as an additional language model option. **langchain/embeddings/octoai_embeddings.py:** This new file creates a wrapper for OctoAI embedding endpoints. This addition allows users to compute embeddings of documents and queries using OctoAI's service. **langchain/llms/octoai_endpoint.py**: This file introduces a new class, 'OctoAIEndpoint', which serves as a wrapper for OctoAI's large language model endpoints. It includes methods for interacting with OctoAI's API and getting responses from it. **tests/integration_tests/embeddings/test_octoai_embeddings.py**: This file introduces tests to ensure the correct functioning of the OctoAI embedding endpoint using the Instructor-Large model endpoint. It includes tests for document and query embedding functionalities. **tests/integration_tests/llms/test_octoai_endpoint.py**: This file includes tests for OctoAI's LLM wrapper for MPT-7B model endpoint. It covers various scenarios including valid API calls, calls that result in errors, and the saving/loading of language model endpoints. **docs/modules/models/llms/integrations/octoai.ipynb**: This notebook shows how to use LangChain to interact with `OctoAI` [LLM endpoints](https://octoai.cloud/templates) Please note that to use the newly added OctoAI's services, users should have the octoai python package installed `pip install octoai`, and the environment variables OCTOAI_API_TOKEN set with the API token and ENDPOINT_URL set with endpoint_url. The API token and endpoint URL can be obtained by cloning a template and creating an API token at https://octoai.cloud. Thanks in advance for your review! @hwchase17 @agola11
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6030/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/6030/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6030", "html_url": "https://github.com/langchain-ai/langchain/pull/6030", "diff_url": "https://github.com/langchain-ai/langchain/pull/6030.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6030.patch", "merged_at": "2023-06-29T05:36:43" }
https://api.github.com/repos/langchain-ai/langchain/issues/6029
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6029/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6029/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6029/events
https://github.com/langchain-ai/langchain/issues/6029
1,751,946,027
I_kwDOIPDwls5obJMr
6,029
ValueError: not enough values to unpack (expected 2, got 1)
{ "login": "ashioyajotham", "id": 71454095, "node_id": "MDQ6VXNlcjcxNDU0MDk1", "avatar_url": "https://avatars.githubusercontent.com/u/71454095?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ashioyajotham", "html_url": "https://github.com/ashioyajotham", "followers_url": "https://api.github.com/users/ashioyajotham/followers", "following_url": "https://api.github.com/users/ashioyajotham/following{/other_user}", "gists_url": "https://api.github.com/users/ashioyajotham/gists{/gist_id}", "starred_url": "https://api.github.com/users/ashioyajotham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ashioyajotham/subscriptions", "organizations_url": "https://api.github.com/users/ashioyajotham/orgs", "repos_url": "https://api.github.com/users/ashioyajotham/repos", "events_url": "https://api.github.com/users/ashioyajotham/events{/privacy}", "received_events_url": "https://api.github.com/users/ashioyajotham/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
9
2023-06-12T05:50:34
2023-09-19T16:08:44
2023-09-19T16:08:44
NONE
null
### Issue you'd like to raise. I keep getting this error when generating Chroma vectors. Here's my code: `from langchain.chat_models import ChatOpenAI from langchain.chains import RetrievalQA from langchain.document_loaders import GoogleDriveLoader from langchain.embeddings import OpenAIEmbeddings from langchain.vectorstores import Chroma from langchain.text_splitter import RecursiveCharacterTextSplitter folder_id = '' loader = GoogleDriveLoader(folder_id = folder_id, recursive=False) docs = loader.load(encoding='utf8') text_splitter = RecursiveCharacterTextSplitter( chunk_size=4000, chunk_overlap=0, separators=["", "\n", ","] ) texts = text_splitter.split_documents(docs) embeddings = OpenAIEmbeddings(openai_api_key="") db = Chroma.from_documents(texts, embeddings) retriever = db.as_retriever() llm = ChatOpenAI(temperature=0, model_name="davinci") qa = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever) while True: question = input("> ") answer = qa.run(question) print(answer)` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6029/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/6029/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6028
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6028/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6028/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6028/events
https://github.com/langchain-ai/langchain/issues/6028
1,751,938,791
I_kwDOIPDwls5obHbn
6,028
LLMMathChain 'VariableNode' object has no attribute 'factorial'. Please try again with a valid numerical expression
{ "login": "eoriont", "id": 6570131, "node_id": "MDQ6VXNlcjY1NzAxMzE=", "avatar_url": "https://avatars.githubusercontent.com/u/6570131?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eoriont", "html_url": "https://github.com/eoriont", "followers_url": "https://api.github.com/users/eoriont/followers", "following_url": "https://api.github.com/users/eoriont/following{/other_user}", "gists_url": "https://api.github.com/users/eoriont/gists{/gist_id}", "starred_url": "https://api.github.com/users/eoriont/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eoriont/subscriptions", "organizations_url": "https://api.github.com/users/eoriont/orgs", "repos_url": "https://api.github.com/users/eoriont/repos", "events_url": "https://api.github.com/users/eoriont/events{/privacy}", "received_events_url": "https://api.github.com/users/eoriont/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-12T05:42:29
2023-09-18T16:08:14
2023-09-18T16:08:13
CONTRIBUTOR
null
### System Info langchain version 0.0.196 windows, wsl2 python 3.11.3 ### Who can help? @agola11 ### 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 - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Follow instructions on this page: https://python.langchain.com/en/latest/modules/agents/plan_and_execute.html Then run the following prompt: ``` agent.run("Who is Elon Musk in a relationship with? What is their current age factorial?") ``` ### Expected behavior It should plan out how to solve the problem (search significant other, search age, find factorial, respond) then execute each action and respond to the user. Instead, when it gets to the factorial part, it fails, claiming that there's no factorial function. Stacktrace: ``` --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) File [~/miniconda3/envs/langchain/lib/python3.11/site-packages/langchain/chains/llm_math/base.py:80](https://vscode-remote+wsl-002bubuntu-002d20-002e04.vscode-resource.vscode-cdn.net/home/oriont/dev/langchain-phx/~/miniconda3/envs/langchain/lib/python3.11/site-packages/langchain/chains/llm_math/base.py:80), in LLMMathChain._evaluate_expression(self, expression) 78 local_dict = {"pi": math.pi, "e": math.e} 79 output = str( ---> 80 numexpr.evaluate( 81 expression.strip(), 82 global_dict={}, # restrict access to globals 83 local_dict=local_dict, # add common mathematical functions 84 ) 85 ) 86 except Exception as e: File [~/miniconda3/envs/langchain/lib/python3.11/site-packages/numexpr/necompiler.py:817](https://vscode-remote+wsl-002bubuntu-002d20-002e04.vscode-resource.vscode-cdn.net/home/oriont/dev/langchain-phx/~/miniconda3/envs/langchain/lib/python3.11/site-packages/numexpr/necompiler.py:817), in evaluate(ex, local_dict, global_dict, out, order, casting, **kwargs) 816 if expr_key not in _names_cache: --> 817 _names_cache[expr_key] = getExprNames(ex, context) 818 names, ex_uses_vml = _names_cache[expr_key] File [~/miniconda3/envs/langchain/lib/python3.11/site-packages/numexpr/necompiler.py:704](https://vscode-remote+wsl-002bubuntu-002d20-002e04.vscode-resource.vscode-cdn.net/home/oriont/dev/langchain-phx/~/miniconda3/envs/langchain/lib/python3.11/site-packages/numexpr/necompiler.py:704), in getExprNames(text, context) 703 def getExprNames(text, context): --> 704 ex = stringToExpression(text, {}, context) 705 ast = expressionToAST(ex) File [~/miniconda3/envs/langchain/lib/python3.11/site-packages/numexpr/necompiler.py:289](https://vscode-remote+wsl-002bubuntu-002d20-002e04.vscode-resource.vscode-cdn.net/home/oriont/dev/langchain-phx/~/miniconda3/envs/langchain/lib/python3.11/site-packages/numexpr/necompiler.py:289), in stringToExpression(s, types, context) 288 # now build the expression ... 93 return re.sub(r"^\[|\]$", "", output) ValueError: LLMMathChain._evaluate(" math.factorial(33) ") raised error: 'VariableNode' object has no attribute 'factorial'. Please try again with a valid numerical expression ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6028/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/6028/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6027
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6027/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6027/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6027/events
https://github.com/langchain-ai/langchain/issues/6027
1,751,928,656
I_kwDOIPDwls5obE9Q
6,027
ArxivAPIWrapper
{ "login": "wenboown", "id": 1467314, "node_id": "MDQ6VXNlcjE0NjczMTQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1467314?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wenboown", "html_url": "https://github.com/wenboown", "followers_url": "https://api.github.com/users/wenboown/followers", "following_url": "https://api.github.com/users/wenboown/following{/other_user}", "gists_url": "https://api.github.com/users/wenboown/gists{/gist_id}", "starred_url": "https://api.github.com/users/wenboown/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wenboown/subscriptions", "organizations_url": "https://api.github.com/users/wenboown/orgs", "repos_url": "https://api.github.com/users/wenboown/repos", "events_url": "https://api.github.com/users/wenboown/events{/privacy}", "received_events_url": "https://api.github.com/users/wenboown/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-12T05:30:46
2023-06-16T05:16:43
2023-06-16T05:16:43
NONE
null
The documentation says: > It limits the Document content by doc_content_chars_max. > Set doc_content_chars_max=None if you don't want to limit the content size. But the claim type of int prevents this to be set as None: https://github.com/hwchase17/langchain/blob/289e9aeb9d122d689d68b2e77236ce3dfcd606a7/langchain/utilities/arxiv.py#LL41C5-L41C38 > ValidationError: 1 validation error for ArxivAPIWrapper > doc_content_chars_max > none is not an allowed value (type=type_error.none.not_allowed) Can you change that? In addition, can you also expose this parameter to the `ArxivLoader`? Thank you!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6027/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/6027/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6026
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6026/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6026/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6026/events
https://github.com/langchain-ai/langchain/pull/6026
1,751,860,741
PR_kwDOIPDwls5SucD_
6,026
bump ver to 198
{ "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 }
[]
closed
false
null
[]
null
0
2023-06-12T04:16:59
2023-06-12T04:32:46
2023-06-12T04:32:45
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6026/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/6026/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6026", "html_url": "https://github.com/langchain-ai/langchain/pull/6026", "diff_url": "https://github.com/langchain-ai/langchain/pull/6026.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6026.patch", "merged_at": "2023-06-12T04:32:45" }
https://api.github.com/repos/langchain-ai/langchain/issues/6025
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6025/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6025/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6025/events
https://github.com/langchain-ai/langchain/issues/6025
1,751,831,130
I_kwDOIPDwls5oatJa
6,025
Issue : Agent Executor stops due to iteration limit or time limit.
{ "login": "Rajlakshmi0187", "id": 47347650, "node_id": "MDQ6VXNlcjQ3MzQ3NjUw", "avatar_url": "https://avatars.githubusercontent.com/u/47347650?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Rajlakshmi0187", "html_url": "https://github.com/Rajlakshmi0187", "followers_url": "https://api.github.com/users/Rajlakshmi0187/followers", "following_url": "https://api.github.com/users/Rajlakshmi0187/following{/other_user}", "gists_url": "https://api.github.com/users/Rajlakshmi0187/gists{/gist_id}", "starred_url": "https://api.github.com/users/Rajlakshmi0187/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Rajlakshmi0187/subscriptions", "organizations_url": "https://api.github.com/users/Rajlakshmi0187/orgs", "repos_url": "https://api.github.com/users/Rajlakshmi0187/repos", "events_url": "https://api.github.com/users/Rajlakshmi0187/events{/privacy}", "received_events_url": "https://api.github.com/users/Rajlakshmi0187/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-12T03:48:01
2023-09-18T16:08:19
2023-09-18T16:08:19
NONE
null
### System Info python 3.9.13 langchain (0.0.163) ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from langchain.chat_models import AzureChatOpenAI from langchain.agents import create_pandas_dataframe_agent from langchain.agents import create_csv_agent import os import openai os.environ[“OPENAI_API_BASE”] = os.environ[“AZURE_OPENAI_ENDPOINT”] = AZURE_OPENAI_ENDPOINT os.environ[“OPENAI_API_KEY”] = os.environ[“AZURE_OPENAI_API_KEY”] = AZURE_OPENAI_API_KEY os.environ[“OPENAI_API_VERSION”] = os.environ[“AZURE_OPENAI_API_VERSION”] = AZURE_OPENAI_API_VERSION os.environ[“OPENAI_API_TYPE”] = “azure” df=pd.read_csv(‘data.csv’).fillna(value = 0) llm = AzureChatOpenAI(deployment_name=“gpt-35-turbo”, model_name=“gpt-35-turbo”,temperature=0) agent_executor = create_pandas_dataframe_agent(llm=llm,df=df,verbose=True) response = agent_executor.run(prompt + QUESTION) print(response) ### Expected behavior The current execution of agent results in errors like "Agent stopped due to iteration limit or time limit" and "Couldn't parse LLM output". Also noticed that agent runs gets into multiple loops in identifying the valid tool but fails to identify tool , says as not valid tool and tries another one and ultimately stops with iteration limit or time limit. Kindly suggest me on advice/suggestions to resolve the same. Is there any particular tabular data structure that langchain works best with? Do I need to add any particular kind of tool (As observed it tries multiple tools and says not valid tool) Any modifications I need to make with the code?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6025/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/6025/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6024
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6024/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6024/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6024/events
https://github.com/langchain-ai/langchain/issues/6024
1,751,817,138
I_kwDOIPDwls5oapuy
6,024
LLM技术和训练问题的微信交流群
{ "login": "Anna10071", "id": 90118245, "node_id": "MDQ6VXNlcjkwMTE4MjQ1", "avatar_url": "https://avatars.githubusercontent.com/u/90118245?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Anna10071", "html_url": "https://github.com/Anna10071", "followers_url": "https://api.github.com/users/Anna10071/followers", "following_url": "https://api.github.com/users/Anna10071/following{/other_user}", "gists_url": "https://api.github.com/users/Anna10071/gists{/gist_id}", "starred_url": "https://api.github.com/users/Anna10071/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Anna10071/subscriptions", "organizations_url": "https://api.github.com/users/Anna10071/orgs", "repos_url": "https://api.github.com/users/Anna10071/repos", "events_url": "https://api.github.com/users/Anna10071/events{/privacy}", "received_events_url": "https://api.github.com/users/Anna10071/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-12T03:21:25
2023-10-12T16:08:53
2023-10-12T16:08:52
NONE
null
### Issue you'd like to raise. 扫码进群,交流Chinese LLM 模型训练的问题和LLM的技术 ![1acaa4cf83de26d556929f1f6ef94ca](https://github.com/hwchase17/langchain/assets/90118245/a10bdb88-aa9c-4438-b77e-9f6fbc7b71e1)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6024/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/6024/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6023
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6023/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6023/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6023/events
https://github.com/langchain-ai/langchain/pull/6023
1,751,773,798
PR_kwDOIPDwls5SuJOe
6,023
add from_documents interface in awadb vector store
{ "login": "ljeagle", "id": 15918167, "node_id": "MDQ6VXNlcjE1OTE4MTY3", "avatar_url": "https://avatars.githubusercontent.com/u/15918167?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ljeagle", "html_url": "https://github.com/ljeagle", "followers_url": "https://api.github.com/users/ljeagle/followers", "following_url": "https://api.github.com/users/ljeagle/following{/other_user}", "gists_url": "https://api.github.com/users/ljeagle/gists{/gist_id}", "starred_url": "https://api.github.com/users/ljeagle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ljeagle/subscriptions", "organizations_url": "https://api.github.com/users/ljeagle/orgs", "repos_url": "https://api.github.com/users/ljeagle/repos", "events_url": "https://api.github.com/users/ljeagle/events{/privacy}", "received_events_url": "https://api.github.com/users/ljeagle/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-12T02:30:09
2023-06-12T02:35:04
2023-06-12T02:35:03
CONTRIBUTOR
null
added new interface from_documents in awadb vector store @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6023/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/6023/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6023", "html_url": "https://github.com/langchain-ai/langchain/pull/6023", "diff_url": "https://github.com/langchain-ai/langchain/pull/6023.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6023.patch", "merged_at": "2023-06-12T02:35:03" }
https://api.github.com/repos/langchain-ai/langchain/issues/6022
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6022/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6022/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6022/events
https://github.com/langchain-ai/langchain/pull/6022
1,751,759,298
PR_kwDOIPDwls5SuGRa
6,022
Update MongoDB Atlas support docs
{ "login": "bafMdb", "id": 55411495, "node_id": "MDQ6VXNlcjU1NDExNDk1", "avatar_url": "https://avatars.githubusercontent.com/u/55411495?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bafMdb", "html_url": "https://github.com/bafMdb", "followers_url": "https://api.github.com/users/bafMdb/followers", "following_url": "https://api.github.com/users/bafMdb/following{/other_user}", "gists_url": "https://api.github.com/users/bafMdb/gists{/gist_id}", "starred_url": "https://api.github.com/users/bafMdb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bafMdb/subscriptions", "organizations_url": "https://api.github.com/users/bafMdb/orgs", "repos_url": "https://api.github.com/users/bafMdb/repos", "events_url": "https://api.github.com/users/bafMdb/events{/privacy}", "received_events_url": "https://api.github.com/users/bafMdb/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
0
2023-06-12T02:06:49
2023-06-12T12:42:10
2023-06-12T03:57:15
CONTRIBUTOR
null
Updating MongoDB Atlas support docs @hwchase17 let me know if you have any questions
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6022/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/6022/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6022", "html_url": "https://github.com/langchain-ai/langchain/pull/6022", "diff_url": "https://github.com/langchain-ai/langchain/pull/6022.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6022.patch", "merged_at": "2023-06-12T03:57:15" }
https://api.github.com/repos/langchain-ai/langchain/issues/6021
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6021/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6021/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6021/events
https://github.com/langchain-ai/langchain/pull/6021
1,751,724,354
PR_kwDOIPDwls5St_DR
6,021
Add from_documents interface for the AwaDB vector store
{ "login": "ljeagle", "id": 15918167, "node_id": "MDQ6VXNlcjE1OTE4MTY3", "avatar_url": "https://avatars.githubusercontent.com/u/15918167?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ljeagle", "html_url": "https://github.com/ljeagle", "followers_url": "https://api.github.com/users/ljeagle/followers", "following_url": "https://api.github.com/users/ljeagle/following{/other_user}", "gists_url": "https://api.github.com/users/ljeagle/gists{/gist_id}", "starred_url": "https://api.github.com/users/ljeagle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ljeagle/subscriptions", "organizations_url": "https://api.github.com/users/ljeagle/orgs", "repos_url": "https://api.github.com/users/ljeagle/repos", "events_url": "https://api.github.com/users/ljeagle/events{/privacy}", "received_events_url": "https://api.github.com/users/ljeagle/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-12T01:37:13
2023-06-12T01:48:27
2023-06-12T01:48:27
CONTRIBUTOR
null
added from_documents interface for the awadb vector store @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6021/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/6021/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6021", "html_url": "https://github.com/langchain-ai/langchain/pull/6021", "diff_url": "https://github.com/langchain-ai/langchain/pull/6021.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6021.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6020
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6020/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6020/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6020/events
https://github.com/langchain-ai/langchain/pull/6020
1,751,685,895
PR_kwDOIPDwls5St2rc
6,020
Update check
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-12T00:52:02
2023-06-12T00:59:10
2023-06-12T00:59:09
CONTRIBUTOR
null
We were assigning the name as None in on_chat_model_start then not updating, resulting in a validation error. Huzzah for pydantic
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6020/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/6020/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6020", "html_url": "https://github.com/langchain-ai/langchain/pull/6020", "diff_url": "https://github.com/langchain-ai/langchain/pull/6020.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6020.patch", "merged_at": "2023-06-12T00:59:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/6019
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6019/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6019/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6019/events
https://github.com/langchain-ai/langchain/issues/6019
1,751,680,025
I_kwDOIPDwls5oaIQZ
6,019
Last chunk output by RecursiveCharacterTextSplitter is often too small to be useful
{ "login": "ShelbyJenkins", "id": 47464908, "node_id": "MDQ6VXNlcjQ3NDY0OTA4", "avatar_url": "https://avatars.githubusercontent.com/u/47464908?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ShelbyJenkins", "html_url": "https://github.com/ShelbyJenkins", "followers_url": "https://api.github.com/users/ShelbyJenkins/followers", "following_url": "https://api.github.com/users/ShelbyJenkins/following{/other_user}", "gists_url": "https://api.github.com/users/ShelbyJenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/ShelbyJenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShelbyJenkins/subscriptions", "organizations_url": "https://api.github.com/users/ShelbyJenkins/orgs", "repos_url": "https://api.github.com/users/ShelbyJenkins/repos", "events_url": "https://api.github.com/users/ShelbyJenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/ShelbyJenkins/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-12T00:39:03
2023-09-18T16:08:24
2023-09-18T16:08:23
CONTRIBUTOR
null
ERROR: type should be string, got "https://github.com/hwchase17/langchain/blob/18af149e91e62b3ac7728ddea420688d41043734/langchain/text_splitter.py#L420\r\n\r\nBecause it goes from top to bottom the last chunk has the potential to be of any size and is frequently too small to be useful.\r\n\r\nI wrote a new class that is more or less a copy of the original function, but adjusts the output if if the last chunk is too small (less than 75% of chunk_size). It does this by adjusting the chunk size upwards to chunk_size = chunk_sizer + (small sized chunk / (chunks - 1)). This allows the last chunks token count to be distributed across all chunks and the end result is that there are no longer bad (small) chunks.\r\n\r\nI'm hesitant to create a PR from this because it's such a large change. I believe the correct course would be to integrate it into the main function, but because it rewrites the merge_splits function it would impact all splitters. It's also quite a bit slower than the original class because it can take a few tries to get to the write size. There are optimizations to be had.\r\n@hwchase17 \r\nhttps://github.com/ShelbyJenkins/langchain/blob/master/langchain/text_splitter.py#L793"
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6019/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/6019/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6018
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6018/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6018/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6018/events
https://github.com/langchain-ai/langchain/pull/6018
1,751,642,669
PR_kwDOIPDwls5Sttzt
6,018
Remove from PR template
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-11T23:07:47
2023-06-12T02:34:28
2023-06-12T02:34:27
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6018/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/6018/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6018", "html_url": "https://github.com/langchain-ai/langchain/pull/6018", "diff_url": "https://github.com/langchain-ai/langchain/pull/6018.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6018.patch", "merged_at": "2023-06-12T02:34:27" }
https://api.github.com/repos/langchain-ai/langchain/issues/6017
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6017/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6017/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6017/events
https://github.com/langchain-ai/langchain/pull/6017
1,751,634,185
PR_kwDOIPDwls5StsD0
6,017
Langchain decorators
{ "login": "ju-bezdek", "id": 27913091, "node_id": "MDQ6VXNlcjI3OTEzMDkx", "avatar_url": "https://avatars.githubusercontent.com/u/27913091?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ju-bezdek", "html_url": "https://github.com/ju-bezdek", "followers_url": "https://api.github.com/users/ju-bezdek/followers", "following_url": "https://api.github.com/users/ju-bezdek/following{/other_user}", "gists_url": "https://api.github.com/users/ju-bezdek/gists{/gist_id}", "starred_url": "https://api.github.com/users/ju-bezdek/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ju-bezdek/subscriptions", "organizations_url": "https://api.github.com/users/ju-bezdek/orgs", "repos_url": "https://api.github.com/users/ju-bezdek/repos", "events_url": "https://api.github.com/users/ju-bezdek/events{/privacy}", "received_events_url": "https://api.github.com/users/ju-bezdek/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-11T22:37:16
2023-06-12T02:32:25
2023-06-12T02:32:24
CONTRIBUTOR
null
Added description of LangChain Decorators ✨ into the integration section <!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review? Tag maintainers/contributors who might be interested: @hwchase17 <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @vowelparrot VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6017/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/6017/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6017", "html_url": "https://github.com/langchain-ai/langchain/pull/6017", "diff_url": "https://github.com/langchain-ai/langchain/pull/6017.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6017.patch", "merged_at": "2023-06-12T02:32:24" }
https://api.github.com/repos/langchain-ai/langchain/issues/6016
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6016/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6016/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6016/events
https://github.com/langchain-ai/langchain/issues/6016
1,751,630,974
I_kwDOIPDwls5oZ8R-
6,016
extra semicolon with SQLDatabaseChain when used with Oracle
{ "login": "yogeshb369", "id": 133894569, "node_id": "U_kgDOB_sRqQ", "avatar_url": "https://avatars.githubusercontent.com/u/133894569?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yogeshb369", "html_url": "https://github.com/yogeshb369", "followers_url": "https://api.github.com/users/yogeshb369/followers", "following_url": "https://api.github.com/users/yogeshb369/following{/other_user}", "gists_url": "https://api.github.com/users/yogeshb369/gists{/gist_id}", "starred_url": "https://api.github.com/users/yogeshb369/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yogeshb369/subscriptions", "organizations_url": "https://api.github.com/users/yogeshb369/orgs", "repos_url": "https://api.github.com/users/yogeshb369/repos", "events_url": "https://api.github.com/users/yogeshb369/events{/privacy}", "received_events_url": "https://api.github.com/users/yogeshb369/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-06-11T22:24:31
2023-09-19T16:08:49
2023-09-19T16:08:49
NONE
null
### System Info SQLDatabaseChain is appending a semicolon to created SQL. which is not liked by cx_oracle (or Oracle database by implication) - since it appends another semicolon in the end. making two semicolons in effect and causing error sqlalchemy.exc.DatabaseError: (cx_Oracle.DatabaseError) ORA-00933: SQL command not properly ended https://cx-oracle.readthedocs.io/en/latest/user_guide/sql_execution.html Need a way to control this behavior. https://python.langchain.com/en/latest/modules/chains/examples/sqlite.html# ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Steps: from langchain import OpenAI, SQLDatabase, SQLDatabaseChain import cx_Oracle db = SQLDatabase.from_uri("oracle://ora-user-name:ora-user-password@ora-host-name:1521/service") llm = OpenAI(temperature=0, verbose=True) db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True) db_chain.run("How many employees are there?") sqlalchemy.exc.DatabaseError: (cx_Oracle.DatabaseError) ORA-00933: SQL command not properly ended [SQL: SELECT COUNT(*) FROM YOUR_TABLE_NAME;] (Background on this error at: https://sqlalche.me/e/20/4xp6) ### Expected behavior Need a way to optionally suppress a semicolon being appended. or if it could be avoided in favor of cx_oracle - since it doesnt like a semicolon anyways in SQL
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6016/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/6016/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6015
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6015/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6015/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6015/events
https://github.com/langchain-ai/langchain/pull/6015
1,751,630,485
PR_kwDOIPDwls5StrTz
6,015
I before E
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-11T22:22:34
2023-06-11T22:45:13
2023-06-11T22:45:12
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6015/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/6015/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6015", "html_url": "https://github.com/langchain-ai/langchain/pull/6015", "diff_url": "https://github.com/langchain-ai/langchain/pull/6015.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6015.patch", "merged_at": "2023-06-11T22:45:12" }
https://api.github.com/repos/langchain-ai/langchain/issues/6014
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6014/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6014/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6014/events
https://github.com/langchain-ai/langchain/issues/6014
1,751,628,136
I_kwDOIPDwls5oZ7lo
6,014
PALChain In-context-learning won't scale to multiple problem types.
{ "login": "willsmithorg", "id": 907059, "node_id": "MDQ6VXNlcjkwNzA1OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/907059?v=4", "gravatar_id": "", "url": "https://api.github.com/users/willsmithorg", "html_url": "https://github.com/willsmithorg", "followers_url": "https://api.github.com/users/willsmithorg/followers", "following_url": "https://api.github.com/users/willsmithorg/following{/other_user}", "gists_url": "https://api.github.com/users/willsmithorg/gists{/gist_id}", "starred_url": "https://api.github.com/users/willsmithorg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/willsmithorg/subscriptions", "organizations_url": "https://api.github.com/users/willsmithorg/orgs", "repos_url": "https://api.github.com/users/willsmithorg/repos", "events_url": "https://api.github.com/users/willsmithorg/events{/privacy}", "received_events_url": "https://api.github.com/users/willsmithorg/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-11T22:13:42
2023-09-17T17:13:12
2023-09-17T17:13:11
CONTRIBUTOR
null
### Feature request Currently the PALChain does in-context learning by passing an in-context learning prompt with 8 maths problem solutions in a single large prompt. If we want the power of PALChain to increase and solve different problem types, we can't keep on adding more and more problem solutions in a single prompt. As an alternative, we should store more problem solutions in a list, and only include the most relevant to the query in the prompt. ### Motivation I would like to enhance PAL to solve many more types of problems that can be solved in Python code, e.g. those described in leetcode.com, maths problems in the UK 11+, GCSE and even "A" level example, etc. etc. ### Your contribution I am happy to work on a PR for this. How I see it working: - long list of maths problems solutions in the existing format (natural language question; python code to print the answer). - the first time the PALChain is invoked, every one of these is embedded using an embedding model. - every query that a user submits is also embedded, and the most similar questions are passed into the prompt. There is a risk that "Most similar" gets distracted by proper nouns. E.g. if there is a problem solution saying "Jonathan has 5 gold balls, ..." and the user submits a question on a completely different maths topic, e.g. "Jonathan wants to express 3/5 as a percentage." Jonathan is irrelevant but the embedding similiarity algorithm may flag them as similar. For that reason I propose that as a first pass, both the problem solution and the user query is first passed through a named entity recognition pass to a LLM, which removed names entity related to people, geographical locations etc and replaces them with generic tokens.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6014/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/6014/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6013
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6013/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6013/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6013/events
https://github.com/langchain-ai/langchain/issues/6013
1,751,597,844
I_kwDOIPDwls5oZ0MU
6,013
How to use Output parser with LLM Chain
{ "login": "ZohaibRamzan", "id": 48449038, "node_id": "MDQ6VXNlcjQ4NDQ5MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/48449038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZohaibRamzan", "html_url": "https://github.com/ZohaibRamzan", "followers_url": "https://api.github.com/users/ZohaibRamzan/followers", "following_url": "https://api.github.com/users/ZohaibRamzan/following{/other_user}", "gists_url": "https://api.github.com/users/ZohaibRamzan/gists{/gist_id}", "starred_url": "https://api.github.com/users/ZohaibRamzan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ZohaibRamzan/subscriptions", "organizations_url": "https://api.github.com/users/ZohaibRamzan/orgs", "repos_url": "https://api.github.com/users/ZohaibRamzan/repos", "events_url": "https://api.github.com/users/ZohaibRamzan/events{/privacy}", "received_events_url": "https://api.github.com/users/ZohaibRamzan/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
10
2023-06-11T20:46:29
2023-10-15T16:06:38
2023-10-15T16:06:37
NONE
null
###Use of Output parser with LLM Chain I want to use the sequential chain of two LLm chains. The first chain is coded as below. I want to get the output of this chain as a Python list of aspects. ``` # This is an LLMChain for Aspects Extraction. examples =[ { "review": '''Improve the communication updates to families. Improve consistency, with housekeeping it was supposed to be weekly but now it is every 2 or 3 weeks. There is no consistency in the staff either due to the high turnover rate. Improve the services in the dining room along with meal options.''', "aspects": '''Relevant Aspects are communication on updates, housekeeping consistency, staff turnover, and dining services.''' }, {"review": '''On paper they do, but my wife has not been brought to them. I have not had a meeting to set up a plan for her. No one wheels her to partake in the activities. They need somebody there that could take them to activities if they wanted. They should bring them to activities where other people will watch over them. The people that are in charge, like the head nurse and activities director, are good about getting ahold of and answering your questions. Once you get down to the next level, they are overwhelmed. They could use another set of eyes and hands. In the memory care area, a lot of people need care at the same time.''', "aspects": '''Relevant Aspects are Staff Attitude, Care Plan Setup, Staff Involvement in Activities, Oversight during Activities, Memory Care Area'''} ] #Configure a formatter that will format the few shot examples into a string. This formatter should be a PromptTemplate object. prompt_template=''' Review: {review} {aspects} ''' example_prompt = PromptTemplate(input_variables=["review", "aspects"], template= prompt_template, output_parser=output_parser ) final_prompt = FewShotPromptTemplate( examples=examples, example_prompt=example_prompt, suffix="Review: {review}", input_variables=["review"], prefix="We are extracting the aspects from the review given by the residents of nursing homes. Take the Review as input and extract the different aspects about the the staff, food, \ building, activities, management, cost of the the nuursing home." ) output=aspect_extraction_chain.predict_and_parse(review="The community has popcorn days, church, birthday celebrations, holiday parties, therapy dogs, and so much more. My mother is very happy here, and she is kept active. They do a great job of keeping the elderly minds active and involved. The dining program is great as well. My mother tends to eat slow, but the dining program always lets my mother stay to finish her food. Any residents that want to practice religion, this is also offered here! More outings have been added, they just went to Walmart recently.") ``` The current result is a string like 'Relevant Aspects are Activities, Elderly Minds Engagement, Dining Program, Religious Offerings, Outings.' I want the result as: ['\nActivities', 'Elderly Minds Engagement', 'Dining Program', 'Religious Offerings', 'Outings.'] ### Suggestion: Kindly guide me on How to use langchain output parser for it.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6013/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/6013/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6012
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6012/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6012/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6012/events
https://github.com/langchain-ai/langchain/pull/6012
1,751,597,519
PR_kwDOIPDwls5Stkqo
6,012
Harrison/hologres
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
0
2023-06-11T20:45:28
2023-06-12T03:56:52
2023-06-12T03:56:51
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6012/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/6012/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6012", "html_url": "https://github.com/langchain-ai/langchain/pull/6012", "diff_url": "https://github.com/langchain-ai/langchain/pull/6012.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6012.patch", "merged_at": "2023-06-12T03:56:51" }
https://api.github.com/repos/langchain-ai/langchain/issues/6011
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6011/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6011/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6011/events
https://github.com/langchain-ai/langchain/pull/6011
1,751,594,183
PR_kwDOIPDwls5Stj-w
6,011
Harrison/cognitive search
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
0
2023-06-11T20:35:01
2023-06-12T04:15:43
2023-06-12T04:15:42
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6011/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/6011/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6011", "html_url": "https://github.com/langchain-ai/langchain/pull/6011", "diff_url": "https://github.com/langchain-ai/langchain/pull/6011.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6011.patch", "merged_at": "2023-06-12T04:15:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/6010
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6010/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6010/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6010/events
https://github.com/langchain-ai/langchain/pull/6010
1,751,589,296
PR_kwDOIPDwls5StjCp
6,010
Harrison/embaas
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
0
2023-06-11T20:16:54
2023-06-11T20:35:15
2023-06-11T20:35:14
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6010/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/6010/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6010", "html_url": "https://github.com/langchain-ai/langchain/pull/6010", "diff_url": "https://github.com/langchain-ai/langchain/pull/6010.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6010.patch", "merged_at": "2023-06-11T20:35:14" }
https://api.github.com/repos/langchain-ai/langchain/issues/6009
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6009/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6009/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6009/events
https://github.com/langchain-ai/langchain/pull/6009
1,751,547,691
PR_kwDOIPDwls5StaRR
6,009
[Bug fix] Fix the chat memory to save the result when output text is nested in json
{ "login": "jpzhangvincent", "id": 7220686, "node_id": "MDQ6VXNlcjcyMjA2ODY=", "avatar_url": "https://avatars.githubusercontent.com/u/7220686?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jpzhangvincent", "html_url": "https://github.com/jpzhangvincent", "followers_url": "https://api.github.com/users/jpzhangvincent/followers", "following_url": "https://api.github.com/users/jpzhangvincent/following{/other_user}", "gists_url": "https://api.github.com/users/jpzhangvincent/gists{/gist_id}", "starred_url": "https://api.github.com/users/jpzhangvincent/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jpzhangvincent/subscriptions", "organizations_url": "https://api.github.com/users/jpzhangvincent/orgs", "repos_url": "https://api.github.com/users/jpzhangvincent/repos", "events_url": "https://api.github.com/users/jpzhangvincent/events{/privacy}", "received_events_url": "https://api.github.com/users/jpzhangvincent/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-06-11T18:32:00
2023-11-07T04:15:08
2023-11-07T04:15:08
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> I used the`RetrievalQA` chain with the argument `return_source_documents=True` as part of the tools in the agent framework with conversation buffer memory. It turns out at the last step, the output text is still nested in json like `{...,'output':{'result': ..., 'source_documents':...}}` and then it caused the error in the `self.chat_memory.add_ai_message(output_str)` which only expects the output to be only string type. So I added another check to parse out the final output text if the `output`(original output key) is still the `Dict` type and apply some heuristics to retrieve the text with the new assumed output key based on the common output keys in common chains. <!-- Remove if not applicable --> Fixes # (issue) #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review? @vowelparrot @hwchase17 Tag maintainers/contributors who might be interested: <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @vowelparrot VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6009/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/6009/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6009", "html_url": "https://github.com/langchain-ai/langchain/pull/6009", "diff_url": "https://github.com/langchain-ai/langchain/pull/6009.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6009.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6008
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6008/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6008/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6008/events
https://github.com/langchain-ai/langchain/pull/6008
1,751,537,247
PR_kwDOIPDwls5StYHs
6,008
[APIChain] enhance the robustness or url
{ "login": "jpzhangvincent", "id": 7220686, "node_id": "MDQ6VXNlcjcyMjA2ODY=", "avatar_url": "https://avatars.githubusercontent.com/u/7220686?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jpzhangvincent", "html_url": "https://github.com/jpzhangvincent", "followers_url": "https://api.github.com/users/jpzhangvincent/followers", "following_url": "https://api.github.com/users/jpzhangvincent/following{/other_user}", "gists_url": "https://api.github.com/users/jpzhangvincent/gists{/gist_id}", "starred_url": "https://api.github.com/users/jpzhangvincent/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jpzhangvincent/subscriptions", "organizations_url": "https://api.github.com/users/jpzhangvincent/orgs", "repos_url": "https://api.github.com/users/jpzhangvincent/repos", "events_url": "https://api.github.com/users/jpzhangvincent/events{/privacy}", "received_events_url": "https://api.github.com/users/jpzhangvincent/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-11T18:01:19
2023-06-11T20:13:57
2023-06-11T20:13:57
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> I used the APIChain sometimes it failed during the intermediate step when generating the api url and calling the `request` function. After some digging, I found the url sometimes includes the space at the beginning, like `%20https://...api.com` which causes the ` self.requests_wrapper.get` internal function to fail. Including a little string preprocessing `.strip` to remove the space seems to improve the robustness of the APIchain to make sure it can send the request and retrieve the API result more reliably. <!-- Remove if not applicable --> Fixes # (issue) #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review? @vowelparrot Tag maintainers/contributors who might be interested: <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @vowelparrot VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6008/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/6008/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6008", "html_url": "https://github.com/langchain-ai/langchain/pull/6008", "diff_url": "https://github.com/langchain-ai/langchain/pull/6008.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6008.patch", "merged_at": "2023-06-11T20:13:57" }
https://api.github.com/repos/langchain-ai/langchain/issues/6007
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6007/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6007/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6007/events
https://github.com/langchain-ai/langchain/pull/6007
1,751,520,160
PR_kwDOIPDwls5StUmm
6,007
bump version to 197
{ "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": 5010622926, "node_id": "LA_kwDOIPDwls8AAAABKqgJzg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/release", "name": "release", "color": "07D4BE", "default": false, "description": "" } ]
closed
false
null
[]
null
0
2023-06-11T17:11:41
2023-06-11T17:14:59
2023-06-11T17:14:58
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6007/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/6007/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6007", "html_url": "https://github.com/langchain-ai/langchain/pull/6007", "diff_url": "https://github.com/langchain-ai/langchain/pull/6007.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6007.patch", "merged_at": "2023-06-11T17:14:58" }
https://api.github.com/repos/langchain-ai/langchain/issues/6006
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6006/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6006/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6006/events
https://github.com/langchain-ai/langchain/pull/6006
1,751,512,689
PR_kwDOIPDwls5StTF0
6,006
Update databricks.md
{ "login": "eltociear", "id": 22633385, "node_id": "MDQ6VXNlcjIyNjMzMzg1", "avatar_url": "https://avatars.githubusercontent.com/u/22633385?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eltociear", "html_url": "https://github.com/eltociear", "followers_url": "https://api.github.com/users/eltociear/followers", "following_url": "https://api.github.com/users/eltociear/following{/other_user}", "gists_url": "https://api.github.com/users/eltociear/gists{/gist_id}", "starred_url": "https://api.github.com/users/eltociear/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eltociear/subscriptions", "organizations_url": "https://api.github.com/users/eltociear/orgs", "repos_url": "https://api.github.com/users/eltociear/repos", "events_url": "https://api.github.com/users/eltociear/events{/privacy}", "received_events_url": "https://api.github.com/users/eltociear/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-11T16:49:53
2023-06-11T20:13:34
2023-06-11T20:13:33
CONTRIBUTOR
null
HuggingFace -> Hugging Face #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6006/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/6006/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6006", "html_url": "https://github.com/langchain-ai/langchain/pull/6006", "diff_url": "https://github.com/langchain-ai/langchain/pull/6006.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6006.patch", "merged_at": "2023-06-11T20:13:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/6005
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6005/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6005/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6005/events
https://github.com/langchain-ai/langchain/pull/6005
1,751,499,911
PR_kwDOIPDwls5StQif
6,005
Raise an exception in MRKL if no tool is provided.
{ "login": "juppytt", "id": 46583939, "node_id": "MDQ6VXNlcjQ2NTgzOTM5", "avatar_url": "https://avatars.githubusercontent.com/u/46583939?v=4", "gravatar_id": "", "url": "https://api.github.com/users/juppytt", "html_url": "https://github.com/juppytt", "followers_url": "https://api.github.com/users/juppytt/followers", "following_url": "https://api.github.com/users/juppytt/following{/other_user}", "gists_url": "https://api.github.com/users/juppytt/gists{/gist_id}", "starred_url": "https://api.github.com/users/juppytt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/juppytt/subscriptions", "organizations_url": "https://api.github.com/users/juppytt/orgs", "repos_url": "https://api.github.com/users/juppytt/repos", "events_url": "https://api.github.com/users/juppytt/events{/privacy}", "received_events_url": "https://api.github.com/users/juppytt/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
1
2023-06-11T16:13:49
2023-06-17T16:43:03
2023-06-17T16:43:02
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> Implemented validation for cases where no tools are provided. This change allows for the handling of scenarios where certain MRKL tools, such as Zapier Natural Language Actions, may not support any tools. With this validation, we prevent unnecessary chaining of API usage. This pull request is partially related to issue #5977. #### Who can review? @vowelparrot
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6005/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/6005/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6005", "html_url": "https://github.com/langchain-ai/langchain/pull/6005", "diff_url": "https://github.com/langchain-ai/langchain/pull/6005.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6005.patch", "merged_at": "2023-06-17T16:43:02" }
https://api.github.com/repos/langchain-ai/langchain/issues/6004
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6004/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6004/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6004/events
https://github.com/langchain-ai/langchain/issues/6004
1,751,497,935
I_kwDOIPDwls5oZbzP
6,004
Issue with retrieving the chunk number from similarity search in lang chain
{ "login": "106AbdulBasit", "id": 36159918, "node_id": "MDQ6VXNlcjM2MTU5OTE4", "avatar_url": "https://avatars.githubusercontent.com/u/36159918?v=4", "gravatar_id": "", "url": "https://api.github.com/users/106AbdulBasit", "html_url": "https://github.com/106AbdulBasit", "followers_url": "https://api.github.com/users/106AbdulBasit/followers", "following_url": "https://api.github.com/users/106AbdulBasit/following{/other_user}", "gists_url": "https://api.github.com/users/106AbdulBasit/gists{/gist_id}", "starred_url": "https://api.github.com/users/106AbdulBasit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/106AbdulBasit/subscriptions", "organizations_url": "https://api.github.com/users/106AbdulBasit/orgs", "repos_url": "https://api.github.com/users/106AbdulBasit/repos", "events_url": "https://api.github.com/users/106AbdulBasit/events{/privacy}", "received_events_url": "https://api.github.com/users/106AbdulBasit/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-06-11T16:08:28
2023-11-16T16:07:26
2023-11-16T16:07:26
NONE
null
### Issue you'd like to raise. Description: I am currently using the lang chain repository for my project, specifically the functionality related to similarity search. I have encountered an issue when attempting to retrieve the chunk number from the search results. To provide some context, I have already performed the necessary steps to generate embeddings for each chunk using the provided functions in lang chain. Here is the relevant code snippet: ``` embeddings = OpenAIEmbeddings() knowledge_base = FAISS.from_texts(chunks, embeddings) ``` After creating the knowledge base, I utilize the similarity_search function to find the most similar chunk to a given query: `docs = knowledge_base.similarity_search(query)` The docs object returned contains information about the search results, but I am struggling to access the specific chunk number associated with the most similar result. My question is: Is there a method or property available in lang chain that allows me to retrieve the chunk number from the docs object? I would greatly appreciate any assistance or guidance in resolving this issue. Thank you for your support! ### Suggestion: I could not able to find any documentation, Once I know how to do it I can add it to the documentation
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6004/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/6004/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6003
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6003/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6003/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6003/events
https://github.com/langchain-ai/langchain/pull/6003
1,751,462,949
PR_kwDOIPDwls5StI6L
6,003
Mitigate issue #5872 (Prompt injection -> RCE in PAL chain)
{ "login": "boazwasserman", "id": 49598618, "node_id": "MDQ6VXNlcjQ5NTk4NjE4", "avatar_url": "https://avatars.githubusercontent.com/u/49598618?v=4", "gravatar_id": "", "url": "https://api.github.com/users/boazwasserman", "html_url": "https://github.com/boazwasserman", "followers_url": "https://api.github.com/users/boazwasserman/followers", "following_url": "https://api.github.com/users/boazwasserman/following{/other_user}", "gists_url": "https://api.github.com/users/boazwasserman/gists{/gist_id}", "starred_url": "https://api.github.com/users/boazwasserman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/boazwasserman/subscriptions", "organizations_url": "https://api.github.com/users/boazwasserman/orgs", "repos_url": "https://api.github.com/users/boazwasserman/repos", "events_url": "https://api.github.com/users/boazwasserman/events{/privacy}", "received_events_url": "https://api.github.com/users/boazwasserman/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
7
2023-06-11T14:59:53
2023-07-18T05:46:18
2023-07-18T05:46:18
CONTRIBUTOR
null
Adds some selective security controls to the PAL chain: 1. Prevent imports 2. Prevent arbitrary execution commands 3. Enforce execution time limit (prevents DOS and long sessions where the flow is hijacked like remote shell) 4. Enforce the existence of the solution expression in the code This is done mostly by static analysis of the code using the ast library. Also added tests to the pal chain. Fixes #5872 @vowelparrot
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6003/reactions", "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6003/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6003", "html_url": "https://github.com/langchain-ai/langchain/pull/6003", "diff_url": "https://github.com/langchain-ai/langchain/pull/6003.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6003.patch", "merged_at": "2023-07-18T05:46:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/6001
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6001/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6001/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6001/events
https://github.com/langchain-ai/langchain/pull/6001
1,751,377,945
PR_kwDOIPDwls5Ss3ia
6,001
Obey handler.raise_error in _ahandle_event_for_handler
{ "login": "pors", "id": 1078320, "node_id": "MDQ6VXNlcjEwNzgzMjA=", "avatar_url": "https://avatars.githubusercontent.com/u/1078320?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pors", "html_url": "https://github.com/pors", "followers_url": "https://api.github.com/users/pors/followers", "following_url": "https://api.github.com/users/pors/following{/other_user}", "gists_url": "https://api.github.com/users/pors/gists{/gist_id}", "starred_url": "https://api.github.com/users/pors/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pors/subscriptions", "organizations_url": "https://api.github.com/users/pors/orgs", "repos_url": "https://api.github.com/users/pors/repos", "events_url": "https://api.github.com/users/pors/events{/privacy}", "received_events_url": "https://api.github.com/users/pors/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-11T11:13:15
2023-06-11T16:49:26
2023-06-11T16:49:26
CONTRIBUTOR
null
Obey `handler.raise_error` in `_ahandle_event_for_handler` Exceptions for async callbacks were only logged as warnings, also when `raise_error = True` #### Who can review? @hwchase17 @agola11
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6001/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/6001/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6001", "html_url": "https://github.com/langchain-ai/langchain/pull/6001", "diff_url": "https://github.com/langchain-ai/langchain/pull/6001.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6001.patch", "merged_at": "2023-06-11T16:49:26" }
https://api.github.com/repos/langchain-ai/langchain/issues/6000
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6000/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6000/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6000/events
https://github.com/langchain-ai/langchain/issues/6000
1,751,329,902
I_kwDOIPDwls5oYyxu
6,000
UnstructuredUrlLoader or SeleniumUrlLoader are not able to upload the pdf's consisting by urls.
{ "login": "ragvendra3898", "id": 62380006, "node_id": "MDQ6VXNlcjYyMzgwMDA2", "avatar_url": "https://avatars.githubusercontent.com/u/62380006?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ragvendra3898", "html_url": "https://github.com/ragvendra3898", "followers_url": "https://api.github.com/users/ragvendra3898/followers", "following_url": "https://api.github.com/users/ragvendra3898/following{/other_user}", "gists_url": "https://api.github.com/users/ragvendra3898/gists{/gist_id}", "starred_url": "https://api.github.com/users/ragvendra3898/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ragvendra3898/subscriptions", "organizations_url": "https://api.github.com/users/ragvendra3898/orgs", "repos_url": "https://api.github.com/users/ragvendra3898/repos", "events_url": "https://api.github.com/users/ragvendra3898/events{/privacy}", "received_events_url": "https://api.github.com/users/ragvendra3898/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-06-11T08:55:35
2023-09-28T16:06:24
2023-09-28T16:06:23
NONE
null
### System Info Hi, I am using UnstructureUrlLoader to upload the urls into Chroma vector database but it is only uploading the html content of the url, not uploading the pdfs available on this url that's why it is not giving the answer for query related to pdf files while performing querying using RetrievalQA chain I also tried with SeleniumUrlLoader but still no results. from langchain.vectorstores import Chroma from langchain.embeddings import OpenAIEmbeddings from langchain.text_splitter import RecursiveCharacterTextSplitter , TokenTextSplitter from langchain.llms import OpenAI from langchain.chat_models import ChatOpenAI from langchain.chains import VectorDBQA, RetrievalQA from langchain.document_loaders import TextLoader, UnstructuredFileLoader, DirectoryLoader,UnstructuredURLLoader,SeleniumURLLoader from langchain.indexes import VectorstoreIndexCreator from langchain.prompts import PromptTemplate import chromadb import wx import os import requests from bs4 import BeautifulSoup openai_api_key = my_openai_key persist_directory = "Zdb_directory" collection_name = 'my collection' temperature = 0 max_tokens = 200 llm=ChatOpenAI(openai_api_key=openai_api_key) urls = ['url1,'url2','url3'] #loader = UnstructuredURLLoader(urls) loader = SeleniumURLLoader(urls) text_splitter = TokenTextSplitter(chunk_size=1000, chunk_overlap=200) texts = text_splitter.split_documents(docs) embeddings = OpenAIEmbeddings(openai_api_key=openai_api_key) vectordb = Chroma.from_documents(texts, embedding=embeddings, persist_directory=persist_directory) vectordb.persist() vectordb = None vectodb = Chroma(persist_directory=persist_directory, embedding_function=embeddings, collection_name='my_collection) qa = RetrievalQA.from_chain_type(llm=ChatOpenAI(openai_api_key=openai_api_key), chain_type="stuff", retriever=vectordb.as_retriever(search_type="mmr"), return_source_documents=True) ques = 'my_question' ans = qa(ques) Can anyone please help me that how can I upload all the pdf files consisting by a url into the chroma vector database using UnstructuredUrlLoader or SeleniumUrlLoader, I will be thankful to you. Thank You ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from langchain.vectorstores import Chroma from langchain.embeddings import OpenAIEmbeddings from langchain.text_splitter import RecursiveCharacterTextSplitter , TokenTextSplitter from langchain.llms import OpenAI from langchain.chat_models import ChatOpenAI from langchain.chains import VectorDBQA, RetrievalQA from langchain.document_loaders import TextLoader, UnstructuredFileLoader, DirectoryLoader,UnstructuredURLLoader,SeleniumURLLoader from langchain.indexes import VectorstoreIndexCreator from langchain.prompts import PromptTemplate import chromadb import wx import os import requests from bs4 import BeautifulSoup openai_api_key = my_openai_key persist_directory = "Zdb_directory" collection_name = 'my collection' temperature = 0 max_tokens = 200 llm=ChatOpenAI(openai_api_key=openai_api_key) #all url are consisting pdf files inside it or in sub url urls = ['url1,'url2','url3'] #loader = UnstructuredURLLoader(urls) loader = SeleniumURLLoader(urls) text_splitter = TokenTextSplitter(chunk_size=1000, chunk_overlap=200) texts = text_splitter.split_documents(docs) embeddings = OpenAIEmbeddings(openai_api_key=openai_api_key) vectordb = Chroma.from_documents(texts, embedding=embeddings, persist_directory=persist_directory) vectordb.persist() vectordb = None vectodb = Chroma(persist_directory=persist_directory, embedding_function=embeddings, collection_name='my_collection) qa = RetrievalQA.from_chain_type(llm=ChatOpenAI(openai_api_key=openai_api_key), chain_type="stuff", retriever=vectordb.as_retriever(search_type="mmr"), return_source_documents=True) ques = 'my_question' ans = qa(ques) ### Expected behavior while I am uploading a url to chroma vector database using Unstructured or SeleniumUrlLoader so rather than just uploading the html website it should also upload the content of all sub urls and the content of all files which are available in this url. Thank You
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6000/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 1, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6000/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/5999
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/5999/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/5999/comments
https://api.github.com/repos/langchain-ai/langchain/issues/5999/events
https://github.com/langchain-ai/langchain/issues/5999
1,751,277,196
I_kwDOIPDwls5oYl6M
5,999
AttributeError: choice while creating python agent
{ "login": "pulkitmehtawork", "id": 49834970, "node_id": "MDQ6VXNlcjQ5ODM0OTcw", "avatar_url": "https://avatars.githubusercontent.com/u/49834970?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pulkitmehtawork", "html_url": "https://github.com/pulkitmehtawork", "followers_url": "https://api.github.com/users/pulkitmehtawork/followers", "following_url": "https://api.github.com/users/pulkitmehtawork/following{/other_user}", "gists_url": "https://api.github.com/users/pulkitmehtawork/gists{/gist_id}", "starred_url": "https://api.github.com/users/pulkitmehtawork/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pulkitmehtawork/subscriptions", "organizations_url": "https://api.github.com/users/pulkitmehtawork/orgs", "repos_url": "https://api.github.com/users/pulkitmehtawork/repos", "events_url": "https://api.github.com/users/pulkitmehtawork/events{/privacy}", "received_events_url": "https://api.github.com/users/pulkitmehtawork/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-11T06:54:03
2023-09-17T17:13:16
2023-09-17T17:13:16
CONTRIBUTOR
null
### System Info langchain version - 0.0.154 ubuntu - 18.04 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from langchain.agents.agent_toolkits import create_python_agent --------------------------------------------------------------------------- KeyError Traceback (most recent call last) File ~/practice_ml/lib/python3.9/site-packages/openai/openai_object.py:59, in OpenAIObject.__getattr__(self, k) 58 try: ---> 59 return self[k] 60 except KeyError as err: **KeyError: 'choice'** During handling of the above exception, another exception occurred: AttributeError Traceback (most recent call last) Cell In[11], line 1 ----> 1 from langchain.agents.agent_toolkits import create_python_agent File ~/practice/langchain.py:23 16 response = openai.ChatCompletion.create( 17 model = model, 18 messages = messages, 19 temperature=0 20 ) 21 return response.choice[0].message['content'] ---> 23 get_completion("what is 1 + 1") 24 customer_email = """ 25 Arrr, I be fuming that me blender lid \ 26 flew off and splattered me kitchen walls \ (...) 30 right now, matey! 31 """ 34 from langchain.chat_models import ChatOpenAI File ~/practice/langchain.py:21, in get_completion(prompt, model) 12 messages = [ 13 {'role' : 'user', 14 "content" : prompt} 15 ] 16 response = openai.ChatCompletion.create( 17 model = model, 18 messages = messages, 19 temperature=0 20 ) ---> 21 return response.choice[0].message['content'] File ~/practice_ml/lib/python3.9/site-packages/openai/openai_object.py:61, in OpenAIObject.__getattr__(self, k) 59 return self[k] 60 except KeyError as err: ---> 61 raise AttributeError(*err.args) AttributeError: choice ### Expected behavior no error .
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/5999/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/5999/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/5998
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/5998/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/5998/comments
https://api.github.com/repos/langchain-ai/langchain/issues/5998/events
https://github.com/langchain-ai/langchain/issues/5998
1,751,271,273
I_kwDOIPDwls5oYkdp
5,998
TypeError: TextSplitter.__init__() got an unexpected keyword argument 'add_start_index'
{ "login": "jiangying000", "id": 23182033, "node_id": "MDQ6VXNlcjIzMTgyMDMz", "avatar_url": "https://avatars.githubusercontent.com/u/23182033?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jiangying000", "html_url": "https://github.com/jiangying000", "followers_url": "https://api.github.com/users/jiangying000/followers", "following_url": "https://api.github.com/users/jiangying000/following{/other_user}", "gists_url": "https://api.github.com/users/jiangying000/gists{/gist_id}", "starred_url": "https://api.github.com/users/jiangying000/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jiangying000/subscriptions", "organizations_url": "https://api.github.com/users/jiangying000/orgs", "repos_url": "https://api.github.com/users/jiangying000/repos", "events_url": "https://api.github.com/users/jiangying000/events{/privacy}", "received_events_url": "https://api.github.com/users/jiangying000/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
4
2023-06-11T06:33:16
2023-12-06T17:45:30
2023-12-06T17:45:29
CONTRIBUTOR
null
### System Info version = "0.0.157" ### 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 - [x] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [x] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction just run ``` from langchain.text_splitter import RecursiveCharacterTextSplitter text_splitter = RecursiveCharacterTextSplitter( chunk_size=900, chunk_overlap=0, separators=separators, add_start_index = True, length_function=tiktoken_len, ) ``` ### Expected behavior no error
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/5998/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/5998/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/5997
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/5997/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/5997/comments
https://api.github.com/repos/langchain-ai/langchain/issues/5997/events
https://github.com/langchain-ai/langchain/pull/5997
1,751,262,145
PR_kwDOIPDwls5SsfTO
5,997
Add oobabooga/text-generation-webui support as a llm
{ "login": "lonestriker", "id": 10904217, "node_id": "MDQ6VXNlcjEwOTA0MjE3", "avatar_url": "https://avatars.githubusercontent.com/u/10904217?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lonestriker", "html_url": "https://github.com/lonestriker", "followers_url": "https://api.github.com/users/lonestriker/followers", "following_url": "https://api.github.com/users/lonestriker/following{/other_user}", "gists_url": "https://api.github.com/users/lonestriker/gists{/gist_id}", "starred_url": "https://api.github.com/users/lonestriker/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lonestriker/subscriptions", "organizations_url": "https://api.github.com/users/lonestriker/orgs", "repos_url": "https://api.github.com/users/lonestriker/repos", "events_url": "https://api.github.com/users/lonestriker/events{/privacy}", "received_events_url": "https://api.github.com/users/lonestriker/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
4
2023-06-11T05:58:20
2023-06-17T16:42:16
2023-06-17T16:42:15
CONTRIBUTOR
null
Add oobabooga/text-generation-webui support as an LLM. Currently, supports using text-generation-webui's non-streaming API interface. Allows users who already have text-gen running to use the same models with langchain. #### Before submitting Simple usage, similar to existing LLM supported: ``` from langchain.llms import TextGen llm = TextGen(model_url = "http://localhost:5000") ``` #### Who can review? @hwchase17 - project lead
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/5997/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/5997/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/5997", "html_url": "https://github.com/langchain-ai/langchain/pull/5997", "diff_url": "https://github.com/langchain-ai/langchain/pull/5997.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/5997.patch", "merged_at": "2023-06-17T16:42:15" }