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/10156
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10156/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10156/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10156/events
|
https://github.com/langchain-ai/langchain/pull/10156
| 1,879,349,524 |
PR_kwDOIPDwls5Zb3mZ
| 10,156 |
Made some Grammatical error fixes
|
{
"login": "ShorthillsAI",
"id": 141953346,
"node_id": "U_kgDOCHYJQg",
"avatar_url": "https://avatars.githubusercontent.com/u/141953346?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ShorthillsAI",
"html_url": "https://github.com/ShorthillsAI",
"followers_url": "https://api.github.com/users/ShorthillsAI/followers",
"following_url": "https://api.github.com/users/ShorthillsAI/following{/other_user}",
"gists_url": "https://api.github.com/users/ShorthillsAI/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ShorthillsAI/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShorthillsAI/subscriptions",
"organizations_url": "https://api.github.com/users/ShorthillsAI/orgs",
"repos_url": "https://api.github.com/users/ShorthillsAI/repos",
"events_url": "https://api.github.com/users/ShorthillsAI/events{/privacy}",
"received_events_url": "https://api.github.com/users/ShorthillsAI/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-04T01:34:02 | 2023-09-04T03:21:47 | 2023-09-04T03:21:47 |
CONTRIBUTOR
| null |
Made some Grammatical error fixes.
CC: @baskaryan, @eyurtsev, @rlancemartin.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10156/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/10156/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10156",
"html_url": "https://github.com/langchain-ai/langchain/pull/10156",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10156.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10156.patch",
"merged_at": "2023-09-04T03:21:47"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10155
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10155/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10155/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10155/events
|
https://github.com/langchain-ai/langchain/pull/10155
| 1,879,264,781 |
PR_kwDOIPDwls5ZblXv
| 10,155 |
fix syntax
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false |
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2023-09-03T23:07:49 | 2023-09-03T23:08:45 | 2023-09-03T23:08:43 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10155/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/10155/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10155",
"html_url": "https://github.com/langchain-ai/langchain/pull/10155",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10155.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10155.patch",
"merged_at": "2023-09-03T23:08:43"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10154
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10154/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10154/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10154/events
|
https://github.com/langchain-ai/langchain/pull/10154
| 1,879,256,569 |
PR_kwDOIPDwls5Zbj1h
| 10,154 |
Harrison/hf lru
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-03T22:34:36 | 2023-09-03T22:39:26 | 2023-09-03T22:39:26 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10154/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/10154/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10154",
"html_url": "https://github.com/langchain-ai/langchain/pull/10154",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10154.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10154.patch",
"merged_at": "2023-09-03T22:39:26"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10153
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10153/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10153/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10153/events
|
https://github.com/langchain-ai/langchain/pull/10153
| 1,879,235,002 |
PR_kwDOIPDwls5Zbf4J
| 10,153 |
Harrison/string inplace
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-03T21:10:05 | 2023-09-03T21:25:30 | 2023-09-03T21:25:29 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10153/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/10153/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10153",
"html_url": "https://github.com/langchain-ai/langchain/pull/10153",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10153.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10153.patch",
"merged_at": "2023-09-03T21:25:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10152
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10152/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10152/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10152/events
|
https://github.com/langchain-ai/langchain/pull/10152
| 1,879,225,154 |
PR_kwDOIPDwls5ZbeGW
| 10,152 |
fake messages list model
|
{
"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": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-03T20:32:06 | 2023-09-03T21:28:08 | 2023-09-03T20:49:43 |
COLLABORATOR
| null |
create a fake chat model that you can configure with list of messages
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10152/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/10152/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10152",
"html_url": "https://github.com/langchain-ai/langchain/pull/10152",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10152.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10152.patch",
"merged_at": "2023-09-03T20:49:43"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10151
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10151/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10151/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10151/events
|
https://github.com/langchain-ai/langchain/pull/10151
| 1,879,200,419 |
PR_kwDOIPDwls5ZbZdd
| 10,151 |
Add FalkorDB to imports
|
{
"login": "gkorland",
"id": 753206,
"node_id": "MDQ6VXNlcjc1MzIwNg==",
"avatar_url": "https://avatars.githubusercontent.com/u/753206?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gkorland",
"html_url": "https://github.com/gkorland",
"followers_url": "https://api.github.com/users/gkorland/followers",
"following_url": "https://api.github.com/users/gkorland/following{/other_user}",
"gists_url": "https://api.github.com/users/gkorland/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gkorland/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gkorland/subscriptions",
"organizations_url": "https://api.github.com/users/gkorland/orgs",
"repos_url": "https://api.github.com/users/gkorland/repos",
"events_url": "https://api.github.com/users/gkorland/events{/privacy}",
"received_events_url": "https://api.github.com/users/gkorland/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-03T19:01:55 | 2023-09-04T06:43:52 | 2023-09-03T19:52:29 |
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10151/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/10151/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10151",
"html_url": "https://github.com/langchain-ai/langchain/pull/10151",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10151.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10151.patch",
"merged_at": "2023-09-03T19:52:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10150
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10150/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10150/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10150/events
|
https://github.com/langchain-ai/langchain/issues/10150
| 1,879,131,847 |
I_kwDOIPDwls5wAUbH
| 10,150 |
why not found ernie bot from baidu in llms package? Thanks
|
{
"login": "mihayinoviki",
"id": 477539,
"node_id": "MDQ6VXNlcjQ3NzUzOQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/477539?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mihayinoviki",
"html_url": "https://github.com/mihayinoviki",
"followers_url": "https://api.github.com/users/mihayinoviki/followers",
"following_url": "https://api.github.com/users/mihayinoviki/following{/other_user}",
"gists_url": "https://api.github.com/users/mihayinoviki/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mihayinoviki/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mihayinoviki/subscriptions",
"organizations_url": "https://api.github.com/users/mihayinoviki/orgs",
"repos_url": "https://api.github.com/users/mihayinoviki/repos",
"events_url": "https://api.github.com/users/mihayinoviki/events{/privacy}",
"received_events_url": "https://api.github.com/users/mihayinoviki/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-03T15:08:29 | 2023-09-04T02:48:52 | 2023-09-04T02:48:52 |
NONE
| null |
### Issue you'd like to raise.
_No response_
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10150/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/10150/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10149
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10149/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10149/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10149/events
|
https://github.com/langchain-ai/langchain/pull/10149
| 1,879,119,196 |
PR_kwDOIPDwls5ZbJ_W
| 10,149 |
Refactor text splitters split and merge
|
{
"login": "IlyaMichlin",
"id": 1222232,
"node_id": "MDQ6VXNlcjEyMjIyMzI=",
"avatar_url": "https://avatars.githubusercontent.com/u/1222232?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/IlyaMichlin",
"html_url": "https://github.com/IlyaMichlin",
"followers_url": "https://api.github.com/users/IlyaMichlin/followers",
"following_url": "https://api.github.com/users/IlyaMichlin/following{/other_user}",
"gists_url": "https://api.github.com/users/IlyaMichlin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/IlyaMichlin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/IlyaMichlin/subscriptions",
"organizations_url": "https://api.github.com/users/IlyaMichlin/orgs",
"repos_url": "https://api.github.com/users/IlyaMichlin/repos",
"events_url": "https://api.github.com/users/IlyaMichlin/events{/privacy}",
"received_events_url": "https://api.github.com/users/IlyaMichlin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] |
open
| false | null |
[] | null | 5 | 2023-09-03T14:28:42 | 2023-11-27T17:50:47 | null |
CONTRIBUTOR
| null |
#9843
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10149/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/10149/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10149",
"html_url": "https://github.com/langchain-ai/langchain/pull/10149",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10149.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10149.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10148
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10148/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10148/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10148/events
|
https://github.com/langchain-ai/langchain/pull/10148
| 1,879,104,117 |
PR_kwDOIPDwls5ZbHGU
| 10,148 |
Uncomment create_vector_extension in __post_init__ of PGVector class
|
{
"login": "skydowx",
"id": 20842390,
"node_id": "MDQ6VXNlcjIwODQyMzkw",
"avatar_url": "https://avatars.githubusercontent.com/u/20842390?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/skydowx",
"html_url": "https://github.com/skydowx",
"followers_url": "https://api.github.com/users/skydowx/followers",
"following_url": "https://api.github.com/users/skydowx/following{/other_user}",
"gists_url": "https://api.github.com/users/skydowx/gists{/gist_id}",
"starred_url": "https://api.github.com/users/skydowx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/skydowx/subscriptions",
"organizations_url": "https://api.github.com/users/skydowx/orgs",
"repos_url": "https://api.github.com/users/skydowx/repos",
"events_url": "https://api.github.com/users/skydowx/events{/privacy}",
"received_events_url": "https://api.github.com/users/skydowx/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-03T13:43:16 | 2023-09-03T20:35:17 | 2023-09-03T19:55:13 |
NONE
| null |
I have the 0-day experience with PGVector in mind. I can't use PGVector.create_vector_extension at all if the `vector` extension is not already created on postgres. If one initializes PGVector without the extension, it fails since __post_init__ tries to create tables and that fails without the extension.
Is there a reason why create_vector_extension is commented from __post_init__? If not then uncommenting it should fix this issue.
#9511
twitter @skydowx
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10148/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/10148/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10148",
"html_url": "https://github.com/langchain-ai/langchain/pull/10148",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10148.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10148.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10147
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10147/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10147/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10147/events
|
https://github.com/langchain-ai/langchain/pull/10147
| 1,879,085,449 |
PR_kwDOIPDwls5ZbDaB
| 10,147 |
added llama-chat-content formatter support
|
{
"login": "Manikanta5112",
"id": 116510423,
"node_id": "U_kgDOBvHO1w",
"avatar_url": "https://avatars.githubusercontent.com/u/116510423?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Manikanta5112",
"html_url": "https://github.com/Manikanta5112",
"followers_url": "https://api.github.com/users/Manikanta5112/followers",
"following_url": "https://api.github.com/users/Manikanta5112/following{/other_user}",
"gists_url": "https://api.github.com/users/Manikanta5112/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Manikanta5112/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Manikanta5112/subscriptions",
"organizations_url": "https://api.github.com/users/Manikanta5112/orgs",
"repos_url": "https://api.github.com/users/Manikanta5112/repos",
"events_url": "https://api.github.com/users/Manikanta5112/events{/privacy}",
"received_events_url": "https://api.github.com/users/Manikanta5112/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-03T12:53:22 | 2023-09-03T20:00:04 | 2023-09-03T20:00:04 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: added llama-chat model content formatted support,
- Issue: the issue # it fixes (if applicable),
- Dependencies: not required any new dependency,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10147/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/10147/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10147",
"html_url": "https://github.com/langchain-ai/langchain/pull/10147",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10147.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10147.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10145
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10145/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10145/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10145/events
|
https://github.com/langchain-ai/langchain/pull/10145
| 1,879,037,319 |
PR_kwDOIPDwls5Za6ZO
| 10,145 |
Update apis.ipynb
|
{
"login": "NinoRisteski",
"id": 95188570,
"node_id": "U_kgDOBax2Wg",
"avatar_url": "https://avatars.githubusercontent.com/u/95188570?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NinoRisteski",
"html_url": "https://github.com/NinoRisteski",
"followers_url": "https://api.github.com/users/NinoRisteski/followers",
"following_url": "https://api.github.com/users/NinoRisteski/following{/other_user}",
"gists_url": "https://api.github.com/users/NinoRisteski/gists{/gist_id}",
"starred_url": "https://api.github.com/users/NinoRisteski/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NinoRisteski/subscriptions",
"organizations_url": "https://api.github.com/users/NinoRisteski/orgs",
"repos_url": "https://api.github.com/users/NinoRisteski/repos",
"events_url": "https://api.github.com/users/NinoRisteski/events{/privacy}",
"received_events_url": "https://api.github.com/users/NinoRisteski/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-03T10:14:53 | 2023-09-03T20:00:22 | 2023-09-03T20:00:22 |
CONTRIBUTOR
| null |
few typo fixes
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10145/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/10145/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10145",
"html_url": "https://github.com/langchain-ai/langchain/pull/10145",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10145.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10145.patch",
"merged_at": "2023-09-03T20:00:22"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10144
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10144/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10144/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10144/events
|
https://github.com/langchain-ai/langchain/pull/10144
| 1,879,036,736 |
PR_kwDOIPDwls5Za6R0
| 10,144 |
Update openai_multi_functions_agent.ipynb
|
{
"login": "NinoRisteski",
"id": 95188570,
"node_id": "U_kgDOBax2Wg",
"avatar_url": "https://avatars.githubusercontent.com/u/95188570?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NinoRisteski",
"html_url": "https://github.com/NinoRisteski",
"followers_url": "https://api.github.com/users/NinoRisteski/followers",
"following_url": "https://api.github.com/users/NinoRisteski/following{/other_user}",
"gists_url": "https://api.github.com/users/NinoRisteski/gists{/gist_id}",
"starred_url": "https://api.github.com/users/NinoRisteski/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NinoRisteski/subscriptions",
"organizations_url": "https://api.github.com/users/NinoRisteski/orgs",
"repos_url": "https://api.github.com/users/NinoRisteski/repos",
"events_url": "https://api.github.com/users/NinoRisteski/events{/privacy}",
"received_events_url": "https://api.github.com/users/NinoRisteski/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-03T10:12:36 | 2023-09-03T20:00:48 | 2023-09-03T20:00:48 |
CONTRIBUTOR
| null |
typo fix
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10144/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/10144/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10144",
"html_url": "https://github.com/langchain-ai/langchain/pull/10144",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10144.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10144.patch",
"merged_at": "2023-09-03T20:00:48"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10143
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10143/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10143/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10143/events
|
https://github.com/langchain-ai/langchain/issues/10143
| 1,879,029,116 |
I_kwDOIPDwls5v_7V8
| 10,143 |
Issue: DRF response streaming
|
{
"login": "shyamsantoki",
"id": 56479219,
"node_id": "MDQ6VXNlcjU2NDc5MjE5",
"avatar_url": "https://avatars.githubusercontent.com/u/56479219?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shyamsantoki",
"html_url": "https://github.com/shyamsantoki",
"followers_url": "https://api.github.com/users/shyamsantoki/followers",
"following_url": "https://api.github.com/users/shyamsantoki/following{/other_user}",
"gists_url": "https://api.github.com/users/shyamsantoki/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shyamsantoki/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shyamsantoki/subscriptions",
"organizations_url": "https://api.github.com/users/shyamsantoki/orgs",
"repos_url": "https://api.github.com/users/shyamsantoki/repos",
"events_url": "https://api.github.com/users/shyamsantoki/events{/privacy}",
"received_events_url": "https://api.github.com/users/shyamsantoki/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] |
open
| false | null |
[] | null | 3 | 2023-09-03T09:47:09 | 2023-12-03T16:04:50 | null |
NONE
| null |
How can I stream the OpenAI response in DRF?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10143/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/10143/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10142
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10142/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10142/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10142/events
|
https://github.com/langchain-ai/langchain/pull/10142
| 1,878,939,965 |
PR_kwDOIPDwls5Zaody
| 10,142 |
Update index.mdx
|
{
"login": "NinoRisteski",
"id": 95188570,
"node_id": "U_kgDOBax2Wg",
"avatar_url": "https://avatars.githubusercontent.com/u/95188570?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NinoRisteski",
"html_url": "https://github.com/NinoRisteski",
"followers_url": "https://api.github.com/users/NinoRisteski/followers",
"following_url": "https://api.github.com/users/NinoRisteski/following{/other_user}",
"gists_url": "https://api.github.com/users/NinoRisteski/gists{/gist_id}",
"starred_url": "https://api.github.com/users/NinoRisteski/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NinoRisteski/subscriptions",
"organizations_url": "https://api.github.com/users/NinoRisteski/orgs",
"repos_url": "https://api.github.com/users/NinoRisteski/repos",
"events_url": "https://api.github.com/users/NinoRisteski/events{/privacy}",
"received_events_url": "https://api.github.com/users/NinoRisteski/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-03T05:21:24 | 2023-09-03T05:36:27 | 2023-09-03T05:36:27 |
CONTRIBUTOR
| null |
fixed typos
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10142/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/10142/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10142",
"html_url": "https://github.com/langchain-ai/langchain/pull/10142",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10142.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10142.patch",
"merged_at": "2023-09-03T05:36:27"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10141
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10141/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10141/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10141/events
|
https://github.com/langchain-ai/langchain/pull/10141
| 1,878,939,709 |
PR_kwDOIPDwls5Zaoa8
| 10,141 |
Update chat_vector_db.mdx
|
{
"login": "NinoRisteski",
"id": 95188570,
"node_id": "U_kgDOBax2Wg",
"avatar_url": "https://avatars.githubusercontent.com/u/95188570?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NinoRisteski",
"html_url": "https://github.com/NinoRisteski",
"followers_url": "https://api.github.com/users/NinoRisteski/followers",
"following_url": "https://api.github.com/users/NinoRisteski/following{/other_user}",
"gists_url": "https://api.github.com/users/NinoRisteski/gists{/gist_id}",
"starred_url": "https://api.github.com/users/NinoRisteski/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NinoRisteski/subscriptions",
"organizations_url": "https://api.github.com/users/NinoRisteski/orgs",
"repos_url": "https://api.github.com/users/NinoRisteski/repos",
"events_url": "https://api.github.com/users/NinoRisteski/events{/privacy}",
"received_events_url": "https://api.github.com/users/NinoRisteski/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-03T05:19:54 | 2023-09-03T05:36:10 | 2023-09-03T05:36:10 |
CONTRIBUTOR
| null |
typo fix
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10141/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/10141/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10141",
"html_url": "https://github.com/langchain-ai/langchain/pull/10141",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10141.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10141.patch",
"merged_at": "2023-09-03T05:36:10"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10140
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10140/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10140/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10140/events
|
https://github.com/langchain-ai/langchain/pull/10140
| 1,878,930,444 |
PR_kwDOIPDwls5Zamyj
| 10,140 |
Implemented MMR search for Redis
|
{
"login": "HTahboub",
"id": 11031224,
"node_id": "MDQ6VXNlcjExMDMxMjI0",
"avatar_url": "https://avatars.githubusercontent.com/u/11031224?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/HTahboub",
"html_url": "https://github.com/HTahboub",
"followers_url": "https://api.github.com/users/HTahboub/followers",
"following_url": "https://api.github.com/users/HTahboub/following{/other_user}",
"gists_url": "https://api.github.com/users/HTahboub/gists{/gist_id}",
"starred_url": "https://api.github.com/users/HTahboub/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HTahboub/subscriptions",
"organizations_url": "https://api.github.com/users/HTahboub/orgs",
"repos_url": "https://api.github.com/users/HTahboub/repos",
"events_url": "https://api.github.com/users/HTahboub/events{/privacy}",
"received_events_url": "https://api.github.com/users/HTahboub/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 8 | 2023-09-03T04:28:06 | 2023-09-08T22:14:45 | 2023-09-08T22:14:44 |
CONTRIBUTOR
| null |
Description: Implemented MMR search for Redis. Pretty straightforward, just using the already implemented MMR method on similarity search–fetched docs.
Issue: #10059
Dependencies: None
Twitter handle: @hamza_tahboub
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10140/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/10140/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10140",
"html_url": "https://github.com/langchain-ai/langchain/pull/10140",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10140.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10140.patch",
"merged_at": "2023-09-08T22:14:44"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10139
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10139/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10139/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10139/events
|
https://github.com/langchain-ai/langchain/pull/10139
| 1,878,881,440 |
PR_kwDOIPDwls5Zadrz
| 10,139 |
feat(llms): add model_kwargs to hf tgi
|
{
"login": "mspronesti",
"id": 44113430,
"node_id": "MDQ6VXNlcjQ0MTEzNDMw",
"avatar_url": "https://avatars.githubusercontent.com/u/44113430?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mspronesti",
"html_url": "https://github.com/mspronesti",
"followers_url": "https://api.github.com/users/mspronesti/followers",
"following_url": "https://api.github.com/users/mspronesti/following{/other_user}",
"gists_url": "https://api.github.com/users/mspronesti/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mspronesti/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mspronesti/subscriptions",
"organizations_url": "https://api.github.com/users/mspronesti/orgs",
"repos_url": "https://api.github.com/users/mspronesti/repos",
"events_url": "https://api.github.com/users/mspronesti/events{/privacy}",
"received_events_url": "https://api.github.com/users/mspronesti/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-02T23:54:18 | 2023-09-04T07:24:14 | 2023-09-04T07:24:14 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
@baskaryan
Following what we discussed in #9724 and your suggestion, I've added a `model_kwargs` parameter to hf tgi.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10139/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/10139/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10139",
"html_url": "https://github.com/langchain-ai/langchain/pull/10139",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10139.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10139.patch",
"merged_at": "2023-09-04T07:24:14"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10138
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10138/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10138/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10138/events
|
https://github.com/langchain-ai/langchain/pull/10138
| 1,878,877,099 |
PR_kwDOIPDwls5Zac45
| 10,138 |
make hub push public by default
|
{
"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": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-02T23:29:36 | 2023-09-03T20:04:59 | 2023-09-03T20:04:58 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10138/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/10138/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10138",
"html_url": "https://github.com/langchain-ai/langchain/pull/10138",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10138.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10138.patch",
"merged_at": "2023-09-03T20:04:58"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10137
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10137/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10137/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10137/events
|
https://github.com/langchain-ai/langchain/issues/10137
| 1,878,874,363 |
I_kwDOIPDwls5v_Vj7
| 10,137 |
Graph Of Thoughts
|
{
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 4 | 2023-09-02T23:14:01 | 2023-12-04T17:06:58 | 2023-12-04T17:06:50 |
COLLABORATOR
| null |
### Feature request
[Graph Of Thoughts](https://arxiv.org/pdf/2308.09687.pdf) looks promising.
It is possible to implement it with LangChain?
### Motivation
More performant prompt technique
### Your contribution
I can help with documentation.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10137/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/10137/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10136
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10136/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10136/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10136/events
|
https://github.com/langchain-ai/langchain/pull/10136
| 1,878,869,162 |
PR_kwDOIPDwls5Zabbs
| 10,136 |
Add parser and loader for Azure document intelligence service.
|
{
"login": "LarsAC",
"id": 84110,
"node_id": "MDQ6VXNlcjg0MTEw",
"avatar_url": "https://avatars.githubusercontent.com/u/84110?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/LarsAC",
"html_url": "https://github.com/LarsAC",
"followers_url": "https://api.github.com/users/LarsAC/followers",
"following_url": "https://api.github.com/users/LarsAC/following{/other_user}",
"gists_url": "https://api.github.com/users/LarsAC/gists{/gist_id}",
"starred_url": "https://api.github.com/users/LarsAC/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LarsAC/subscriptions",
"organizations_url": "https://api.github.com/users/LarsAC/orgs",
"repos_url": "https://api.github.com/users/LarsAC/repos",
"events_url": "https://api.github.com/users/LarsAC/events{/privacy}",
"received_events_url": "https://api.github.com/users/LarsAC/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 4 | 2023-09-02T22:48:33 | 2023-09-09T20:23:10 | 2023-09-03T21:25:39 |
CONTRIBUTOR
| null |
Hi,
this PR contains loader / parser for Azure Document intelligence which is a ML-based service to ingest arbitrary PDFs / images, even if scanned. The loader generates Documents by pages of the original document. This is my first contribution to LangChain.
Unfortunately I could not find the correct place for test cases. Happy to add one if you can point me to the location, but as this is a cloud-based service, a test would require network access and credentials - so might be of limited help.
Dependencies: The needed dependency was already part of pyproject.toml, no change.
Twitter: feel free to mention @LarsAC on the announcement
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10136/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/10136/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10136",
"html_url": "https://github.com/langchain-ai/langchain/pull/10136",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10136.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10136.patch",
"merged_at": "2023-09-03T21:25:39"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10135
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10135/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10135/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10135/events
|
https://github.com/langchain-ai/langchain/issues/10135
| 1,878,862,756 |
I_kwDOIPDwls5v_Suk
| 10,135 |
Connection Timeout and Max Retries Exceeded in HTTPS Request
|
{
"login": "fsndzomga",
"id": 101533724,
"node_id": "U_kgDOBg1IHA",
"avatar_url": "https://avatars.githubusercontent.com/u/101533724?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/fsndzomga",
"html_url": "https://github.com/fsndzomga",
"followers_url": "https://api.github.com/users/fsndzomga/followers",
"following_url": "https://api.github.com/users/fsndzomga/following{/other_user}",
"gists_url": "https://api.github.com/users/fsndzomga/gists{/gist_id}",
"starred_url": "https://api.github.com/users/fsndzomga/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fsndzomga/subscriptions",
"organizations_url": "https://api.github.com/users/fsndzomga/orgs",
"repos_url": "https://api.github.com/users/fsndzomga/repos",
"events_url": "https://api.github.com/users/fsndzomga/events{/privacy}",
"received_events_url": "https://api.github.com/users/fsndzomga/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-02T22:18:19 | 2023-09-03T19:47:46 | 2023-09-03T19:47:46 |
NONE
| null |
### System Info
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
TimeoutError: [Errno 60] Operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connection.py", line 179, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x159e351d0>, 'Connection to openaipublic.blob.core.windows.net timed out. (connect timeout=None)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py", line 787, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x159e351d0>, 'Connection to openaipublic.blob.core.windows.net timed out. (connect timeout=None)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/fsndzomga/Downloads/react-mega/LCEL2.py", line 29, in <module>
vectorstore = Chroma.from_texts([obama_text], embedding=OpenAIEmbeddings())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/vectorstores/chroma.py", line 576, in from_texts
chroma_collection.add_texts(texts=texts, metadatas=metadatas, ids=ids)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/vectorstores/chroma.py", line 186, in add_texts
embeddings = self._embedding_function.embed_documents(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/embeddings/openai.py", line 478, in embed_documents
return self._get_len_safe_embeddings(texts, engine=self.deployment)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/embeddings/openai.py", line 331, in _get_len_safe_embeddings
encoding = tiktoken.encoding_for_model(model_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tiktoken/model.py", line 75, in encoding_for_model
return get_encoding(encoding_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tiktoken/registry.py", line 63, in get_encoding
enc = Encoding(**constructor())
^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tiktoken_ext/openai_public.py", line 64, in cl100k_base
mergeable_ranks = load_tiktoken_bpe(
^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tiktoken/load.py", line 114, in load_tiktoken_bpe
contents = read_file_cached(tiktoken_bpe_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tiktoken/load.py", line 46, in read_file_cached
contents = read_file(blobpath)
^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tiktoken/load.py", line 24, in read_file
return requests.get(blobpath).content
^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/requests/adapters.py", line 553, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x159e351d0>, 'Connection to openaipublic.blob.core.windows.net timed out. (connect timeout=None)'))
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [X] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Here is my code:
from langchain.vectorstores import Chroma
from langchain.embeddings import OpenAIEmbeddings
from langchain.schema.runnable import RunnablePassthrough
from langchain.schema.output_parser import StrOutputParser
from langchain.prompts import ChatPromptTemplate
from langchain.chat_models import ChatOpenAI
from operator import itemgetter
from apikey import OPENAI_API_KEY
import os
# Set the OpenAI API key
os.environ['OPENAI_API_KEY'] = OPENAI_API_KEY
# Initialize the ChatOpenAI model
model = ChatOpenAI()
# Create a long text about Barack Obama to serve as the context
obama_text = """
Barack Obama served as the 44th President of the United States from 2009 to 2017.
He was born in Honolulu, Hawaii, on August 4, 1961. Obama is a graduate of Columbia University
and Harvard Law School, where he served as president of the Harvard Law Review. He was a community
organizer in Chicago before earning his law degree and worked as a civil rights attorney and taught
constitutional law at the University of Chicago Law School between 1992 and 2004. He served three
terms representing the 13th District in the Illinois Senate from 1997 until 2004, when he ran for the
U.S. Senate. Obama received the Nobel Peace Prize in 2009.
"""
# Create the retriever with the Obama text as the context
vectorstore = Chroma.from_texts([obama_text], embedding=OpenAIEmbeddings())
retriever = vectorstore.as_retriever()
# Define the prompt template
template = """Answer the question based only on the following context:
{context}
Question: {question}
"""
prompt = ChatPromptTemplate.from_template(template)
# Create the chain for answering questions
chain = (
{"context": retriever, "question": RunnablePassthrough()}
| prompt
| model
| StrOutputParser()
)
# Invoke the chain to answer a question
print(chain.invoke("When was Barack Obama born?"))
# Create a new prompt template that allows for translation
template_with_language = """Answer the question based only on the following context:
{context}
Question: {question}
Answer in the following language: {language}
"""
prompt_with_language = ChatPromptTemplate.from_template(template_with_language)
# Create the chain for answering questions in different languages
chain_with_language = {
"context": itemgetter("question") | retriever,
"question": itemgetter("question"),
"language": itemgetter("language")
} | prompt_with_language | model | StrOutputParser()
# Invoke the chain to answer a question in Italian
print(chain_with_language.invoke({"question": "When was Barack Obama born?", "language": "italian"}))
### Expected behavior
a response to my question
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10135/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/10135/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10134
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10134/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10134/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10134/events
|
https://github.com/langchain-ai/langchain/pull/10134
| 1,878,849,253 |
PR_kwDOIPDwls5ZaXuy
| 10,134 |
add additional model support to chatlitellm
|
{
"login": "krrishdholakia",
"id": 17561003,
"node_id": "MDQ6VXNlcjE3NTYxMDAz",
"avatar_url": "https://avatars.githubusercontent.com/u/17561003?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/krrishdholakia",
"html_url": "https://github.com/krrishdholakia",
"followers_url": "https://api.github.com/users/krrishdholakia/followers",
"following_url": "https://api.github.com/users/krrishdholakia/following{/other_user}",
"gists_url": "https://api.github.com/users/krrishdholakia/gists{/gist_id}",
"starred_url": "https://api.github.com/users/krrishdholakia/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/krrishdholakia/subscriptions",
"organizations_url": "https://api.github.com/users/krrishdholakia/orgs",
"repos_url": "https://api.github.com/users/krrishdholakia/repos",
"events_url": "https://api.github.com/users/krrishdholakia/events{/privacy}",
"received_events_url": "https://api.github.com/users/krrishdholakia/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-02T21:20:48 | 2023-09-04T07:16:40 | 2023-09-04T07:16:40 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10134/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/10134/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10134",
"html_url": "https://github.com/langchain-ai/langchain/pull/10134",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10134.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10134.patch",
"merged_at": "2023-09-04T07:16:40"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10133
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10133/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10133/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10133/events
|
https://github.com/langchain-ai/langchain/pull/10133
| 1,878,816,167 |
PR_kwDOIPDwls5ZaRqX
| 10,133 |
FileSysteBlobLoader: Expand user path
|
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-02T19:23:47 | 2023-09-04T07:21:34 | 2023-09-04T07:21:34 |
COLLABORATOR
| null |
Fix for: https://github.com/langchain-ai/langchain/issues/10019
Verified fix manually
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10133/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/10133/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10133",
"html_url": "https://github.com/langchain-ai/langchain/pull/10133",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10133.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10133.patch",
"merged_at": "2023-09-04T07:21:34"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10132
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10132/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10132/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10132/events
|
https://github.com/langchain-ai/langchain/pull/10132
| 1,878,784,909 |
PR_kwDOIPDwls5ZaLaS
| 10,132 |
enable serde retrieval qa with sources
|
{
"login": "markoarnauto",
"id": 7702545,
"node_id": "MDQ6VXNlcjc3MDI1NDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/7702545?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/markoarnauto",
"html_url": "https://github.com/markoarnauto",
"followers_url": "https://api.github.com/users/markoarnauto/followers",
"following_url": "https://api.github.com/users/markoarnauto/following{/other_user}",
"gists_url": "https://api.github.com/users/markoarnauto/gists{/gist_id}",
"starred_url": "https://api.github.com/users/markoarnauto/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/markoarnauto/subscriptions",
"organizations_url": "https://api.github.com/users/markoarnauto/orgs",
"repos_url": "https://api.github.com/users/markoarnauto/repos",
"events_url": "https://api.github.com/users/markoarnauto/events{/privacy}",
"received_events_url": "https://api.github.com/users/markoarnauto/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-02T17:48:36 | 2023-09-08T23:57:10 | 2023-09-08T23:57:10 |
CONTRIBUTOR
| null |
#3983 mentions serialization/deserialization issues with both `RetrievalQA` & `RetrievalQAWithSourcesChain`.
`RetrievalQA` has already been fixed in #5818.
Mimicing #5818, I added the logic for `RetrievalQAWithSourcesChain`.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10132/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/10132/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10132",
"html_url": "https://github.com/langchain-ai/langchain/pull/10132",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10132.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10132.patch",
"merged_at": "2023-09-08T23:57:10"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10131
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10131/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10131/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10131/events
|
https://github.com/langchain-ai/langchain/pull/10131
| 1,878,779,524 |
PR_kwDOIPDwls5ZaKYg
| 10,131 |
adding suffixes
|
{
"login": "MadsRC",
"id": 2797266,
"node_id": "MDQ6VXNlcjI3OTcyNjY=",
"avatar_url": "https://avatars.githubusercontent.com/u/2797266?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MadsRC",
"html_url": "https://github.com/MadsRC",
"followers_url": "https://api.github.com/users/MadsRC/followers",
"following_url": "https://api.github.com/users/MadsRC/following{/other_user}",
"gists_url": "https://api.github.com/users/MadsRC/gists{/gist_id}",
"starred_url": "https://api.github.com/users/MadsRC/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MadsRC/subscriptions",
"organizations_url": "https://api.github.com/users/MadsRC/orgs",
"repos_url": "https://api.github.com/users/MadsRC/repos",
"events_url": "https://api.github.com/users/MadsRC/events{/privacy}",
"received_events_url": "https://api.github.com/users/MadsRC/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-02T17:30:47 | 2023-09-03T20:22:04 | 2023-09-03T20:15:20 |
NONE
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
**Description**: Adding support for specifying the suffix to append to HumanMessage, AIMessage and SystemMessage. Certain models, such as Llama2-*-chat, expects a certain way of formatting the prompt, which includes encasing the message in a certain construct (`[INST] ... [/INST]` for HumanMessage and `<<SYS>>...<</SYS>>` for SystemMessage which cannot __easily__ be achieved in the current state of langchain.
At this point in time I haven't added support for also specifying Beginning-of-String (BOS) and End-of-String (EOS) tokens, as this will likely have to be made at the prompt level and not the message level.
**Issue**: Not aware of any existing ones and instead of creating one I jumped directly into creating a PR. Let me know if me creating an issue is desirable.
**Dependencies**: None
**Tag maintainer**:
**Twitter handle**:
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10131/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/10131/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10131",
"html_url": "https://github.com/langchain-ai/langchain/pull/10131",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10131.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10131.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10130
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10130/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10130/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10130/events
|
https://github.com/langchain-ai/langchain/pull/10130
| 1,878,776,365 |
PR_kwDOIPDwls5ZaJuv
| 10,130 |
bump 13
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5010622926,
"node_id": "LA_kwDOIPDwls8AAAABKqgJzg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/release",
"name": "release",
"color": "07D4BE",
"default": false,
"description": ""
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-02T17:22:21 | 2023-09-02T17:22:32 | 2023-09-02T17:22:31 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10130/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/10130/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10130",
"html_url": "https://github.com/langchain-ai/langchain/pull/10130",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10130.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10130.patch",
"merged_at": "2023-09-02T17:22:31"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10128
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10128/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10128/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10128/events
|
https://github.com/langchain-ai/langchain/issues/10128
| 1,878,736,357 |
I_kwDOIPDwls5v-z3l
| 10,128 |
ConversationalRetrievalChain doesn't work with Azure OpenAI
|
{
"login": "decoderdot",
"id": 578878,
"node_id": "MDQ6VXNlcjU3ODg3OA==",
"avatar_url": "https://avatars.githubusercontent.com/u/578878?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/decoderdot",
"html_url": "https://github.com/decoderdot",
"followers_url": "https://api.github.com/users/decoderdot/followers",
"following_url": "https://api.github.com/users/decoderdot/following{/other_user}",
"gists_url": "https://api.github.com/users/decoderdot/gists{/gist_id}",
"starred_url": "https://api.github.com/users/decoderdot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/decoderdot/subscriptions",
"organizations_url": "https://api.github.com/users/decoderdot/orgs",
"repos_url": "https://api.github.com/users/decoderdot/repos",
"events_url": "https://api.github.com/users/decoderdot/events{/privacy}",
"received_events_url": "https://api.github.com/users/decoderdot/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-02T15:34:17 | 2023-12-10T16:04:45 | 2023-12-10T16:04:44 |
NONE
| null |
### System Info
Latest
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Use ConversationalRetrievalChain with an Azure OpenAI gpt model
This is the code:
llm = AzureOpenAI(engine=OPENAI_DEPLOYMENT_NAME, model=OPENAI_MODEL, temperature=0.0)
qa = ConversationalRetrievalChain.from_llm(llm, retriever)
I get the following error:
usr/local/lib/python3.10/dist-packages/pydantic/main.cpython-310-x86_64-linux-gnu.so in pydantic.main.BaseModel.__init__()
ValidationError: 1 validation error for LLMChain
llm
Can't instantiate abstract class BaseLanguageModel with abstract methods agenerate_prompt, apredict, apredict_messages, generate_prompt, invoke, predict, predict_messages (type=type_error)
### Expected behavior
The code executes without any error
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10128/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/10128/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10126
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10126/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10126/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10126/events
|
https://github.com/langchain-ai/langchain/issues/10126
| 1,878,707,467 |
I_kwDOIPDwls5v-s0L
| 10,126 |
ModuleNotFoundError: No module named 'langchain_experimental.data_anonymizer'
|
{
"login": "skye0402",
"id": 36907475,
"node_id": "MDQ6VXNlcjM2OTA3NDc1",
"avatar_url": "https://avatars.githubusercontent.com/u/36907475?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/skye0402",
"html_url": "https://github.com/skye0402",
"followers_url": "https://api.github.com/users/skye0402/followers",
"following_url": "https://api.github.com/users/skye0402/following{/other_user}",
"gists_url": "https://api.github.com/users/skye0402/gists{/gist_id}",
"starred_url": "https://api.github.com/users/skye0402/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/skye0402/subscriptions",
"organizations_url": "https://api.github.com/users/skye0402/orgs",
"repos_url": "https://api.github.com/users/skye0402/repos",
"events_url": "https://api.github.com/users/skye0402/events{/privacy}",
"received_events_url": "https://api.github.com/users/skye0402/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 | 6 | 2023-09-02T14:16:42 | 2024-01-15T11:55:37 | 2023-09-03T02:32:01 |
NONE
| null |
### System Info
Langchain 0.0.279 / Langchain experimental 0.0.12/ Python 3.10
### 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
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Follow the guideline: https://python.langchain.com/docs/guides/privacy/presidio_data_anonymization
I was able to make it work by downloading the source of the langchain experimental and copy & pasting the missing folder into the local lib folder.
However, this won't be a good option when building a docker image. Why isn't it part of the experimental library 0.0.12?
### Expected behavior
Example codes will work.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10126/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/10126/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10125
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10125/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10125/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10125/events
|
https://github.com/langchain-ai/langchain/issues/10125
| 1,878,693,225 |
I_kwDOIPDwls5v-pVp
| 10,125 |
SageMaker Endpoints with Streaming Capability
|
{
"login": "dazajuandaniel",
"id": 7788126,
"node_id": "MDQ6VXNlcjc3ODgxMjY=",
"avatar_url": "https://avatars.githubusercontent.com/u/7788126?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dazajuandaniel",
"html_url": "https://github.com/dazajuandaniel",
"followers_url": "https://api.github.com/users/dazajuandaniel/followers",
"following_url": "https://api.github.com/users/dazajuandaniel/following{/other_user}",
"gists_url": "https://api.github.com/users/dazajuandaniel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dazajuandaniel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dazajuandaniel/subscriptions",
"organizations_url": "https://api.github.com/users/dazajuandaniel/orgs",
"repos_url": "https://api.github.com/users/dazajuandaniel/repos",
"events_url": "https://api.github.com/users/dazajuandaniel/events{/privacy}",
"received_events_url": "https://api.github.com/users/dazajuandaniel/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 2 | 2023-09-02T13:37:32 | 2023-10-25T15:25:22 | null |
CONTRIBUTOR
| null |
### Feature request
With the new announced [support for Streaming in SageMaker Endpoints](https://aws.amazon.com/blogs/machine-learning/elevating-the-generative-ai-experience-introducing-streaming-support-in-amazon-sagemaker-hosting/), Langchain can add a Streaming capability to the `SagemakerEndpoint` class.
We can leverage the code that already exists as part of the blog post and extend where required by using the [boto3](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sagemaker-runtime/client/invoke_endpoint_with_response_stream.html) API
### Motivation
Decreasing latency is important for developers. Streaming is currently available in `OpenAI`, `ChatOpenAI`, `ChatAnthropic`, `Hugging Face Text Generation Inference`, and `Replicate`. Having `SageMaker` opens the possibilities to a wide range of developers that leverage this AWS Service.
### Your contribution
I can work on this feature to start the process with guidance from the core development team and the community.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10125/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/10125/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10124
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10124/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10124/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10124/events
|
https://github.com/langchain-ai/langchain/pull/10124
| 1,878,669,487 |
PR_kwDOIPDwls5ZZ1JE
| 10,124 |
Added embeddings support for ollama
|
{
"login": "herrjemand",
"id": 1636116,
"node_id": "MDQ6VXNlcjE2MzYxMTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/1636116?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/herrjemand",
"html_url": "https://github.com/herrjemand",
"followers_url": "https://api.github.com/users/herrjemand/followers",
"following_url": "https://api.github.com/users/herrjemand/following{/other_user}",
"gists_url": "https://api.github.com/users/herrjemand/gists{/gist_id}",
"starred_url": "https://api.github.com/users/herrjemand/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/herrjemand/subscriptions",
"organizations_url": "https://api.github.com/users/herrjemand/orgs",
"repos_url": "https://api.github.com/users/herrjemand/repos",
"events_url": "https://api.github.com/users/herrjemand/events{/privacy}",
"received_events_url": "https://api.github.com/users/herrjemand/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 9 | 2023-09-02T12:31:53 | 2023-09-15T00:49:32 | 2023-09-15T00:42:39 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: Added support for Ollama embeddings
- Issue: the issue # it fixes (if applicable),
- Dependencies: N/A
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: @herrjemand
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
cc https://github.com/jmorganca/ollama/issues/436
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10124/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/10124/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10124",
"html_url": "https://github.com/langchain-ai/langchain/pull/10124",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10124.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10124.patch",
"merged_at": "2023-09-15T00:42:39"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10122
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10122/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10122/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10122/events
|
https://github.com/langchain-ai/langchain/issues/10122
| 1,878,495,416 |
I_kwDOIPDwls5v95C4
| 10,122 |
Proposal for 'ConverseUntilAnswered' Agent
|
{
"login": "talkingtoaj",
"id": 87969,
"node_id": "MDQ6VXNlcjg3OTY5",
"avatar_url": "https://avatars.githubusercontent.com/u/87969?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/talkingtoaj",
"html_url": "https://github.com/talkingtoaj",
"followers_url": "https://api.github.com/users/talkingtoaj/followers",
"following_url": "https://api.github.com/users/talkingtoaj/following{/other_user}",
"gists_url": "https://api.github.com/users/talkingtoaj/gists{/gist_id}",
"starred_url": "https://api.github.com/users/talkingtoaj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/talkingtoaj/subscriptions",
"organizations_url": "https://api.github.com/users/talkingtoaj/orgs",
"repos_url": "https://api.github.com/users/talkingtoaj/repos",
"events_url": "https://api.github.com/users/talkingtoaj/events{/privacy}",
"received_events_url": "https://api.github.com/users/talkingtoaj/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-02T08:56:43 | 2023-12-09T16:04:16 | 2023-12-09T16:04:16 |
NONE
| null |
### Feature request
**Issue Description:**
I would like to propose the addition of a new Agent called something like 'ConverseUntilAnswered.' This new agent would engage in multi-step interactions with users to obtain an answer according to a required schema, and self-terminate when an answer is obtained.
**Example Use Case:**
Let's consider a scenario where a chatbot needs to collect user satisfaction ratings for its website. The 'ConverseUntilAnswered' agent could be used to facilitate this interaction. Perhaps this is achieved by the LangChain class injecting System messages to ChatGPT at specific times. Consider in the following dialogue that all System messages are injected by the LangChain class.
1. **System Message:** Your task is to ask the user how satisfied they are with this website on a scale from 1 to 10, where 10 is the highest. You are limited to a maximum of 2 interactions with the user. If you are reasonably certain of the user’s score, you are permitted to guess their answer. If you are unable to determine a numerical score, give a rating of “NA”. When you are ready to give a score, reply in the following format: ```ANSWER:<integer score>``` for example, for an answer of 5, you would reply ```ANSWER:5``` and add nothing else to your response.
2. **Chatbot:** On a scale from 1 to 10, how satisfied are you with this website?
3. **User:** Oh, it’s OK.
4. **Chatbot:** It sounds like you are moderately satisfied. Would you say your satisfaction is a 5 out of 10?
5. **User:** Maybe, it depends on the day.
6. **System Message:** You have used 2 of your 3 available interactions with the user. Please no longer interact with the user, but simply state your final response with the format previously specified.
8. **Chatbot:** ```ANSWER:NA```
By introducing a 'ConverseUntilAnswered' agent, we make it possible to develop an application that conducts a lengthy interview over a series of questions as defined by the programmer. For example:
1. Ask the customer their satisfaction with the website (1-10 scale)
2. Ask whether the customer is likely to recommend this website to their friends (Why or Why not)
3. Ask what feature they would like to see added to this website.
### Motivation
**Justification:**
There is a need for specialized functionality for chatbots that can conduct multi-step conversations and self-terminate once a satisfactory response is obtained. Currently the only way I know to do this is to equip an Agent with a tool that it calls when a task has been completed, but there is no guarantee the agent will ever call that tool, leaving the chatbot open to a lengthy never-ending conversation with the user. By introducing a specialized 'ConverseUntilAnswered' agent, we can minimize calls to the LLM API and ensure closure of a line of inquery to the user.
### Your contribution
I have only once before contributed to an OpenSource project, and this would be my first contribution to the LangChain project. I humbly ask for the community's guidance regarding possible best approaches for implementation using existing LangChain features, and what else should be considered before making a Pull Request.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10122/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/10122/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10121
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10121/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10121/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10121/events
|
https://github.com/langchain-ai/langchain/pull/10121
| 1,878,357,785 |
PR_kwDOIPDwls5ZY3Pm
| 10,121 |
Updated Neptune graph to use boto
|
{
"login": "3coins",
"id": 289369,
"node_id": "MDQ6VXNlcjI4OTM2OQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/289369?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/3coins",
"html_url": "https://github.com/3coins",
"followers_url": "https://api.github.com/users/3coins/followers",
"following_url": "https://api.github.com/users/3coins/following{/other_user}",
"gists_url": "https://api.github.com/users/3coins/gists{/gist_id}",
"starred_url": "https://api.github.com/users/3coins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/3coins/subscriptions",
"organizations_url": "https://api.github.com/users/3coins/orgs",
"repos_url": "https://api.github.com/users/3coins/repos",
"events_url": "https://api.github.com/users/3coins/events{/privacy}",
"received_events_url": "https://api.github.com/users/3coins/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-09-02T05:23:32 | 2023-09-20T23:13:28 | 2023-09-19T23:03:08 |
CONTRIBUTOR
| null |
## Description
This PR updates the `NeptuneGraph` class to start using the boto API for connecting to the Neptune service. With boto integration, the graph class now supports authenticating requests using Sigv4; this is encapsulated with the boto API, and users only have to ensure they have the correct AWS credentials setup in their workspace to work with the graph class.
This PR also introduces a conditional prompt that uses a simpler prompt when using the `Anthropic` model provider. A simpler prompt have seemed to work better for generating cypher queries in our testing.
**Note**: This version will require boto3 version 1.28.38 or greater to work.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10121/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/10121/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10121",
"html_url": "https://github.com/langchain-ai/langchain/pull/10121",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10121.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10121.patch",
"merged_at": "2023-09-19T23:03:08"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10120
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10120/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10120/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10120/events
|
https://github.com/langchain-ai/langchain/issues/10120
| 1,878,286,644 |
I_kwDOIPDwls5v9GE0
| 10,120 |
DOC: Inexistent API documentation about SQLRecordManager
|
{
"login": "RoderickVM",
"id": 64725908,
"node_id": "MDQ6VXNlcjY0NzI1OTA4",
"avatar_url": "https://avatars.githubusercontent.com/u/64725908?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RoderickVM",
"html_url": "https://github.com/RoderickVM",
"followers_url": "https://api.github.com/users/RoderickVM/followers",
"following_url": "https://api.github.com/users/RoderickVM/following{/other_user}",
"gists_url": "https://api.github.com/users/RoderickVM/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RoderickVM/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RoderickVM/subscriptions",
"organizations_url": "https://api.github.com/users/RoderickVM/orgs",
"repos_url": "https://api.github.com/users/RoderickVM/repos",
"events_url": "https://api.github.com/users/RoderickVM/events{/privacy}",
"received_events_url": "https://api.github.com/users/RoderickVM/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-02T02:38:30 | 2023-12-30T16:06:39 | 2023-12-30T16:06:38 |
NONE
| null |
### Issue with current documentation:
There is no documentation about the `SQLRecordManager` in the [langchain.indexes.base.RecordManager](https://api.python.langchain.com/en/latest/indexes/langchain.indexes.base.RecordManager.html#langchain.indexes.base.RecordManager) documentation, although is used in an indexing example [here](https://python.langchain.com/docs/modules/data_connection/indexing#quickstart).
### Idea or request for content:
Please include the documentation for `SQLRecordManager`, as well as other supported databases that may be currently available to use as a Record Manager.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10120/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/10120/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10119
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10119/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10119/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10119/events
|
https://github.com/langchain-ai/langchain/pull/10119
| 1,878,281,820 |
PR_kwDOIPDwls5ZYnWs
| 10,119 |
Support `ensure_trailing_slash` and `headers` options in RecursiveUrlLoader
|
{
"login": "dosuken123",
"id": 4432788,
"node_id": "MDQ6VXNlcjQ0MzI3ODg=",
"avatar_url": "https://avatars.githubusercontent.com/u/4432788?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dosuken123",
"html_url": "https://github.com/dosuken123",
"followers_url": "https://api.github.com/users/dosuken123/followers",
"following_url": "https://api.github.com/users/dosuken123/following{/other_user}",
"gists_url": "https://api.github.com/users/dosuken123/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dosuken123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dosuken123/subscriptions",
"organizations_url": "https://api.github.com/users/dosuken123/orgs",
"repos_url": "https://api.github.com/users/dosuken123/repos",
"events_url": "https://api.github.com/users/dosuken123/events{/privacy}",
"received_events_url": "https://api.github.com/users/dosuken123/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false |
{
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
}
] | null | 3 | 2023-09-02T02:36:11 | 2023-10-09T13:09:08 | 2023-10-09T13:09:08 |
CONTRIBUTOR
| null |
This commit adds the following support:
- `ensure_trailing_slash` ... Ensure a trailing slash when requesting to the given url or a child link.
- This option is necessary when the site doesn't support trailing slash e.g. `https://wiki.supercombo.gg/w/Street_Fighter_6` works but `https://wiki.supercombo.gg/w/Street_Fighter_6/` doesn't work.
- `headers` ... Headers when requesting to the url.
- This option is necessary when the site requires specific header to respond e.g. `https://www.streetfighter.com/6/character` requires `user-agent` header.
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10119/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/10119/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10119",
"html_url": "https://github.com/langchain-ai/langchain/pull/10119",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10119.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10119.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10118
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10118/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10118/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10118/events
|
https://github.com/langchain-ai/langchain/issues/10118
| 1,878,277,419 |
I_kwDOIPDwls5v9D0r
| 10,118 |
Indexing deletion modes not working
|
{
"login": "RoderickVM",
"id": 64725908,
"node_id": "MDQ6VXNlcjY0NzI1OTA4",
"avatar_url": "https://avatars.githubusercontent.com/u/64725908?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RoderickVM",
"html_url": "https://github.com/RoderickVM",
"followers_url": "https://api.github.com/users/RoderickVM/followers",
"following_url": "https://api.github.com/users/RoderickVM/following{/other_user}",
"gists_url": "https://api.github.com/users/RoderickVM/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RoderickVM/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RoderickVM/subscriptions",
"organizations_url": "https://api.github.com/users/RoderickVM/orgs",
"repos_url": "https://api.github.com/users/RoderickVM/repos",
"events_url": "https://api.github.com/users/RoderickVM/events{/privacy}",
"received_events_url": "https://api.github.com/users/RoderickVM/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-02T02:31:04 | 2023-12-09T16:04:21 | 2023-12-09T16:04:21 |
NONE
| null |
### System Info
LangChain version: 0.0.276
Python version: 3.11.2
Platform: x86_64 Debian 12.2.0-14
Weaviate as vectorstore
SQLite for document index
### 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
Followed the provided [Indexing directions](https://python.langchain.com/docs/modules/data_connection/indexing) of LangChain's documentation.
```
import os, time, json, weaviate, openai
from langchain.vectorstores import Weaviate
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.indexes import SQLRecordManager, index
from langchain.text_splitter import CharacterTextSplitter
from langchain.schema import Document
from datetime import datetime
VECTORS_INDEX_NAME = 'LaborIA_vectors_TEST'
COLLECTION_NAME = 'LaborIA_docs_TEST'
NAMESPACE = f"weaviate/{COLLECTION_NAME}"
record_manager = SQLRecordManager(NAMESPACE, db_url="sqlite:///record_manager_cache.sql")
record_manager.create_schema()
def _clear():
"""Hacky helper method to clear content. See the `full` mode section to to understand why it works."""
index([], record_manager, weaviate_vectorstore, cleanup="full", source_id_key="source")
_clear()
```
Results in the following error:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[60], line 1
----> 1 _clear()
Cell In[59], line 3, in _clear()
1 def _clear():
2 """Hacky helper method to clear content. See the `full` mode section to to understand why it works."""
----> 3 index([], record_manager, weaviate_vectorstore, cleanup="full", source_id_key="source")
TypeError: index() got an unexpected keyword argument 'cleanup'
```
Declaring the `_clear()` function with either `cleanup="incremental"` or `cleanup=None` deletion modes results in the same `TypeError`. It shows no errors if the `cleanup` parameter is completely removed.
Will `index` execute in deletion mode `None` (as specified [here](https://python.langchain.com/docs/modules/data_connection/indexing#none-deletion-mode) if the `cleanup` parameter is not present?
### Expected behavior
No errors when the `cleanup` mode parameter is set when `index` is called.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10118/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/10118/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10117
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10117/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10117/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10117/events
|
https://github.com/langchain-ai/langchain/pull/10117
| 1,878,208,474 |
PR_kwDOIPDwls5ZYYn4
| 10,117 |
bump 280
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5010622926,
"node_id": "LA_kwDOIPDwls8AAAABKqgJzg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/release",
"name": "release",
"color": "07D4BE",
"default": false,
"description": ""
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-02T00:35:38 | 2023-09-02T00:43:15 | 2023-09-02T00:43:14 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10117/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/10117/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10117",
"html_url": "https://github.com/langchain-ai/langchain/pull/10117",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10117.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10117.patch",
"merged_at": "2023-09-02T00:43:14"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10116
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10116/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10116/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10116/events
|
https://github.com/langchain-ai/langchain/pull/10116
| 1,878,207,224 |
PR_kwDOIPDwls5ZYYXQ
| 10,116 |
Allow returning message objects for fake chat LLM
|
{
"login": "thehunmonkgroup",
"id": 43772,
"node_id": "MDQ6VXNlcjQzNzcy",
"avatar_url": "https://avatars.githubusercontent.com/u/43772?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/thehunmonkgroup",
"html_url": "https://github.com/thehunmonkgroup",
"followers_url": "https://api.github.com/users/thehunmonkgroup/followers",
"following_url": "https://api.github.com/users/thehunmonkgroup/following{/other_user}",
"gists_url": "https://api.github.com/users/thehunmonkgroup/gists{/gist_id}",
"starred_url": "https://api.github.com/users/thehunmonkgroup/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thehunmonkgroup/subscriptions",
"organizations_url": "https://api.github.com/users/thehunmonkgroup/orgs",
"repos_url": "https://api.github.com/users/thehunmonkgroup/repos",
"events_url": "https://api.github.com/users/thehunmonkgroup/events{/privacy}",
"received_events_url": "https://api.github.com/users/thehunmonkgroup/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-02T00:34:07 | 2023-09-04T22:09:15 | 2023-09-03T20:33:47 |
CONTRIBUTOR
| null |
Checks if a returned response is already a message object.
If so, returns it directly, if not, build one.
Allows the fake chat LLM to return more robust fake responses, e.g. function calls
P.S. I'm not entirely sure this is the correct solution, if anyone has a better idea, lemme know.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10116/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/10116/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10116",
"html_url": "https://github.com/langchain-ai/langchain/pull/10116",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10116.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10116.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10115
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10115/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10115/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10115/events
|
https://github.com/langchain-ai/langchain/pull/10115
| 1,878,194,788 |
PR_kwDOIPDwls5ZYVtL
| 10,115 |
rm sqlite3 import
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-02T00:12:50 | 2023-09-02T00:14:07 | 2023-09-02T00:14:07 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10115/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/10115/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10115",
"html_url": "https://github.com/langchain-ai/langchain/pull/10115",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10115.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10115.patch",
"merged_at": "2023-09-02T00:14:07"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10114
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10114/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10114/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10114/events
|
https://github.com/langchain-ai/langchain/pull/10114
| 1,878,149,603 |
PR_kwDOIPDwls5ZYLud
| 10,114 |
Fix url loader
|
{
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-01T23:13:05 | 2023-09-25T15:45:53 | 2023-09-25T15:45:53 |
COLLABORATOR
| null |
2 things (the python reference docs highlight this)
- We inappropriately add a '/' on files with a .html suffix
- We are over-aggressive for these cases as well (match against the full path vs. the directory it's in)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10114/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/10114/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10114",
"html_url": "https://github.com/langchain-ai/langchain/pull/10114",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10114.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10114.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10113
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10113/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10113/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10113/events
|
https://github.com/langchain-ai/langchain/pull/10113
| 1,878,148,061 |
PR_kwDOIPDwls5ZYLXj
| 10,113 |
Fixing regex to support all valid JSON formats
|
{
"login": "PazBazak",
"id": 54635376,
"node_id": "MDQ6VXNlcjU0NjM1Mzc2",
"avatar_url": "https://avatars.githubusercontent.com/u/54635376?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/PazBazak",
"html_url": "https://github.com/PazBazak",
"followers_url": "https://api.github.com/users/PazBazak/followers",
"following_url": "https://api.github.com/users/PazBazak/following{/other_user}",
"gists_url": "https://api.github.com/users/PazBazak/gists{/gist_id}",
"starred_url": "https://api.github.com/users/PazBazak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/PazBazak/subscriptions",
"organizations_url": "https://api.github.com/users/PazBazak/orgs",
"repos_url": "https://api.github.com/users/PazBazak/repos",
"events_url": "https://api.github.com/users/PazBazak/events{/privacy}",
"received_events_url": "https://api.github.com/users/PazBazak/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 | 3 | 2023-09-01T23:11:57 | 2023-09-03T20:48:46 | 2023-09-03T20:43:32 |
NONE
| null |
**Description:**
The regex used to match JSONs was only to match curly braces, regex now has changed to support square braces
e.g `'["This is valid!"]'`
added test to verify list is also supported as valid JSON
closes [#10057](https://github.com/langchain-ai/langchain/issues/10057)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10113/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/10113/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10113",
"html_url": "https://github.com/langchain-ai/langchain/pull/10113",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10113.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10113.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10112
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10112/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10112/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10112/events
|
https://github.com/langchain-ai/langchain/issues/10112
| 1,878,116,654 |
I_kwDOIPDwls5v8cku
| 10,112 |
Cannot have models with BaseLanguageModel in pydantic 2: TypeError: BaseModel.validate() takes 2 positional arguments but 3 were given
|
{
"login": "whitead",
"id": 908389,
"node_id": "MDQ6VXNlcjkwODM4OQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/908389?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/whitead",
"html_url": "https://github.com/whitead",
"followers_url": "https://api.github.com/users/whitead/followers",
"following_url": "https://api.github.com/users/whitead/following{/other_user}",
"gists_url": "https://api.github.com/users/whitead/gists{/gist_id}",
"starred_url": "https://api.github.com/users/whitead/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/whitead/subscriptions",
"organizations_url": "https://api.github.com/users/whitead/orgs",
"repos_url": "https://api.github.com/users/whitead/repos",
"events_url": "https://api.github.com/users/whitead/events{/privacy}",
"received_events_url": "https://api.github.com/users/whitead/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-01T22:33:12 | 2023-11-16T14:53:22 | 2023-09-06T04:18:49 |
CONTRIBUTOR
| null |
### System Info
```sh
pydantic==2.3.0
langchain==0.0.279
```
### Who can help?
@agola11 , @hwchase17: Having trouble learning how to have LLMs as attributes in pydantic2. I keep getting this confusing error which I cannot troubleshoot.
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```py
import os
os.environ['OPENAI_API_KEY'] = 'foo'
from pydantic import BaseModel
from langchain.base_language import BaseLanguageModel
from langchain.llms import OpenAI
class Foo(BaseModel):
llm: BaseLanguageModel = OpenAI()
llm = OpenAI()
# Works
Foo()
# Fails
Foo(llm=llm)
```
Error:
```sh
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[1], line 14
12 Foo()
13 # Fails
---> 14 Foo(llm=llm)
File ~/miniconda3/envs/chain/lib/python3.11/site-packages/pydantic/main.py:165, in BaseModel.__init__(__pydantic_self__, **data)
163 # `__tracebackhide__` tells pytest and some other tools to omit this function from tracebacks
164 __tracebackhide__ = True
--> 165 __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
TypeError: BaseModel.validate() takes 2 positional arguments but 3 were given
```
### Expected behavior
Be able to set the field without validation errors
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10112/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/10112/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10111
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10111/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10111/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10111/events
|
https://github.com/langchain-ai/langchain/issues/10111
| 1,878,096,535 |
I_kwDOIPDwls5v8XqX
| 10,111 |
Got ValidationError when searching a content does not exist in the Pinecone vector store using Langchain Pinecone connection
|
{
"login": "ZhimaoLin",
"id": 22060375,
"node_id": "MDQ6VXNlcjIyMDYwMzc1",
"avatar_url": "https://avatars.githubusercontent.com/u/22060375?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ZhimaoLin",
"html_url": "https://github.com/ZhimaoLin",
"followers_url": "https://api.github.com/users/ZhimaoLin/followers",
"following_url": "https://api.github.com/users/ZhimaoLin/following{/other_user}",
"gists_url": "https://api.github.com/users/ZhimaoLin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ZhimaoLin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ZhimaoLin/subscriptions",
"organizations_url": "https://api.github.com/users/ZhimaoLin/orgs",
"repos_url": "https://api.github.com/users/ZhimaoLin/repos",
"events_url": "https://api.github.com/users/ZhimaoLin/events{/privacy}",
"received_events_url": "https://api.github.com/users/ZhimaoLin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-01T22:05:26 | 2023-12-18T23:48:02 | 2023-12-18T23:48:02 |
NONE
| null |
### System Info
```
File Python\Python39\site-packages\langchain\vectorstores\pinecone.py:301, in Pinecone.max_marginal_relevance_search(self, query, k, fetch_k, lambda_mult, filter,
namespace, **kwargs)
284 """Return docs selected using the maximal marginal relevance.
285
286 Maximal marginal relevance optimizes for similarity to query AND diversity
(...)
298 List of Documents selected by maximal marginal relevance.
299 """
300 embedding = self._embed_query(query)
--> 301 return self.max_marginal_relevance_search_by_vector(
302 embedding, k, fetch_k, lambda_mult, filter, namespace
303 )
File Python\Python39\site-packages\langchain\vectorstores\pinecone.py:269, in Pinecone.max_marginal_relevance_search_by_vector(self, embedding, k, fetch_k, lambda_mult, filter, namespace, **kwargs)
262 mmr_selected = maximal_marginal_relevance(
263 np.array([embedding], dtype=np.float32),
264 [item["values"] for item in results["matches"]],
265 k=k,
266 lambda_mult=lambda_mult,
267 )
268 selected = [results["matches"][i]["metadata"] for i in mmr_selected]
--> 269 return [
270 Document(page_content=metadata.pop((self._text_key)), metadata=metadata)
271 for metadata in selected
272 ]
File Python\Python39\site-packages\langchain\vectorstores\pinecone.py:270, in <listcomp>(.0)
262 mmr_selected = maximal_marginal_relevance(
263 np.array([embedding], dtype=np.float32),
264 [item["values"] for item in results["matches"]],
265 k=k,
266 lambda_mult=lambda_mult,
267 )
268 selected = [results["matches"][i]["metadata"] for i in mmr_selected]
269 return [
--> 270 Document(page_content=metadata.pop((self._text_key)), metadata=metadata)
271 for metadata in selected
272 ]
File Python\Python39\site-packages\langchain\load\serializable.py:74, in Serializable.__init__(self, **kwargs)
73 def __init__(self, **kwargs: Any) -> None:
---> 74 super().__init__(**kwargs)
75 self._lc_kwargs = kwargs
File Python\Python39\site-packages\pydantic\v1\main.py:341, in BaseModel.__init__(__pydantic_self__, **data)
339 values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data)
340 if validation_error:
--> 341 raise validation_error
342 try:
343 object_setattr(__pydantic_self__, '__dict__', values)
ValidationError: 1 validation error for Document
page_content
str type expected (type=type_error.str)
```
### 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
1. Connect to a Pinecone vector store
```
vectorstore = Pinecone(pinecone_index, embedding_model, "text")
```
2. Use MMR search to query the vector store. Here, my vectorstore **does not have any information about Bill Gates**.
```
query = "Who is Bill Gates?"
res = vectorstore.max_marginal_relevance_search(
query=query,
k=4,
fetch_k=20,
lambda_mult=0.5
)
```
3. Got the error
By the way, here is the [API doc](https://api.python.langchain.com/en/latest/vectorstores/langchain.vectorstores.pinecone.Pinecone.html#langchain.vectorstores.pinecone.Pinecone.max_marginal_relevance_search) for the `max_marginal_relevance_search`.
### Expected behavior
It should show it cannot find any context instead of raising an error.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10111/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/10111/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10110
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10110/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10110/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10110/events
|
https://github.com/langchain-ai/langchain/pull/10110
| 1,878,094,436 |
PR_kwDOIPDwls5ZX_3f
| 10,110 |
rm base64 images from docs
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T22:03:43 | 2023-09-01T22:23:31 | 2023-09-01T22:15:12 |
COLLABORATOR
| null |
don't render after markdown conversion anyways
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10110/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/10110/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10110",
"html_url": "https://github.com/langchain-ai/langchain/pull/10110",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10110.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10110.patch",
"merged_at": "2023-09-01T22:15:12"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10109
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10109/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10109/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10109/events
|
https://github.com/langchain-ai/langchain/pull/10109
| 1,878,094,155 |
PR_kwDOIPDwls5ZX_zg
| 10,109 |
Update redirects meta tags
|
{
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T22:03:22 | 2023-09-01T22:14:35 | 2023-09-01T22:14:35 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10109/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/10109/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10109",
"html_url": "https://github.com/langchain-ai/langchain/pull/10109",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10109.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10109.patch",
"merged_at": "2023-09-01T22:14:35"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10108
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10108/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10108/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10108/events
|
https://github.com/langchain-ai/langchain/pull/10108
| 1,877,998,418 |
PR_kwDOIPDwls5ZXrTl
| 10,108 |
Bug-fix CSV Agent - Parsing Tool Inputs
|
{
"login": "juandiegobalbi",
"id": 132379587,
"node_id": "U_kgDOB-Pzww",
"avatar_url": "https://avatars.githubusercontent.com/u/132379587?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/juandiegobalbi",
"html_url": "https://github.com/juandiegobalbi",
"followers_url": "https://api.github.com/users/juandiegobalbi/followers",
"following_url": "https://api.github.com/users/juandiegobalbi/following{/other_user}",
"gists_url": "https://api.github.com/users/juandiegobalbi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/juandiegobalbi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/juandiegobalbi/subscriptions",
"organizations_url": "https://api.github.com/users/juandiegobalbi/orgs",
"repos_url": "https://api.github.com/users/juandiegobalbi/repos",
"events_url": "https://api.github.com/users/juandiegobalbi/events{/privacy}",
"received_events_url": "https://api.github.com/users/juandiegobalbi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 5 | 2023-09-01T20:15:39 | 2023-11-29T01:57:29 | 2023-11-29T01:57:28 |
NONE
| null |
Issue & Description:
Suggested changes are due to encountering constant constant errors when using the Pandas DataFrame Agent due to parsing the python code that comes in the responses from the LLMs.
To address the issue I propose json serialization of the arguments of the function call at the OpenAIFunctionsAgent, as well as a more detailed ArgSchema for the PythonAstREPLTool, and finally an addition to the input query sanitize function, since i've noticed that more often than not, OpenAI's GPT-3.5-turbo make function calls but instead of sending the "query" param as a plan python code string, it tries to serialize it into some sort of "{'query': 'python code snippet'}" string, which is just not what we want.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10108/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/10108/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10108",
"html_url": "https://github.com/langchain-ai/langchain/pull/10108",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10108.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10108.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10107
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10107/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10107/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10107/events
|
https://github.com/langchain-ai/langchain/pull/10107
| 1,877,926,816 |
PR_kwDOIPDwls5ZXb0y
| 10,107 |
Bagatur/fix multiquery
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T19:05:22 | 2023-09-04T07:33:25 | 2023-09-04T07:33:25 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10107/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/10107/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10107",
"html_url": "https://github.com/langchain-ai/langchain/pull/10107",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10107.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10107.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10106
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10106/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10106/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10106/events
|
https://github.com/langchain-ai/langchain/issues/10106
| 1,877,924,878 |
I_kwDOIPDwls5v7twO
| 10,106 |
Using SQLDatabase with Llama 2 for snowflake connection, i get ProgramingError
|
{
"login": "adrinanou",
"id": 113567395,
"node_id": "U_kgDOBsTmow",
"avatar_url": "https://avatars.githubusercontent.com/u/113567395?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/adrinanou",
"html_url": "https://github.com/adrinanou",
"followers_url": "https://api.github.com/users/adrinanou/followers",
"following_url": "https://api.github.com/users/adrinanou/following{/other_user}",
"gists_url": "https://api.github.com/users/adrinanou/gists{/gist_id}",
"starred_url": "https://api.github.com/users/adrinanou/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adrinanou/subscriptions",
"organizations_url": "https://api.github.com/users/adrinanou/orgs",
"repos_url": "https://api.github.com/users/adrinanou/repos",
"events_url": "https://api.github.com/users/adrinanou/events{/privacy}",
"received_events_url": "https://api.github.com/users/adrinanou/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-01T19:03:24 | 2023-12-08T16:04:15 | 2023-12-08T16:04:14 |
NONE
| null |
### System Info
Langchain 0.0.277
Python 3.9
### Who can help?
@hwchase17
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
from langchain.agents import create_sql_agent, initialize_agent, create_spark_sql_agent
from langchain.agents.agent_toolkits import SQLDatabaseToolkit, SparkSQLToolkit
from langchain.sql_database import SQLDatabase
from langchain_experimental.sql.base import SQLDatabaseChain
from langchain.llms import HuggingFacePipeline
from langchain.agents import AgentExecutor
from langchain.agents.agent_types import AgentType
from langchain.chat_models import ChatOpenAI
from snowflake.sqlalchemy import URL
from sqlalchemy import create_engine
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
model_id= "Photolens/llama-2-13b-langchain-chat"
user= "***"
password= "***"
account= "**-**"
database="**SNOWFLAKE_SAMPLE_DATA*"
schema="****"
warehouse="***"
def load_model():
model_id = "Photolens/llama-2-13b-langchain-chat"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id,
device_map='auto',
low_cpu_mem_usage=True,
trust_remote_code=True
)
pipe = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
max_length=1100,
repetition_penalty=1.15,
top_p=0.95,
temperature=0.2,
pad_token_id=tokenizer.eos_token_id,
max_new_tokens=300
)
local_llm = HuggingFacePipeline(pipeline=pipe)
return local_llm
LLM=load_model()
engine = create_engine(URL(
user= "***",
password= "****",
account= "**-**",
database="**SNOWFLAKE_SAMPLE_DATA,
schema="***",
warehouse="***")
)
db = SQLDatabase(engine)
#here comes the problem, SQLDatabase makes a wrong query on Snowflake
### Expected behavior
I'm expecting to generate a connection with SQLDatabase, but it doesn't in fact makes a wrong query that i dont get it. I'm new at this so i would apreciate some help.
This is the error a i get:
/home/zeusone/anaconda3/envs/snowflake_ai/bin/python /home/zeusone/Documents/ChatbotFalcon/SQLagent/snoflake_simple_agent.py
/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/snowflake/connector/options.py:96: UserWarning: You have an incompatible version of 'pyarrow' installed (13.0.0), please install a version that adheres to: 'pyarrow<8.1.0,>=8.0.0; extra == "pandas"'
warn_incompatible_dep(
Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:15<00:00, 5.20s/it]
Traceback (most recent call last):
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1910, in _execute_context
self.dialect.do_execute(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 736, in do_execute
cursor.execute(statement, parameters)
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/snowflake/connector/cursor.py", line 827, in execute
Error.errorhandler_wrapper(self.connection, self, error_class, errvalue)
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/snowflake/connector/errors.py", line 275, in errorhandler_wrapper
handed_over = Error.hand_to_other_handler(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/snowflake/connector/errors.py", line 330, in hand_to_other_handler
cursor.errorhandler(connection, cursor, error_class, error_value)
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/snowflake/connector/errors.py", line 209, in default_errorhandler
raise error_class(
snowflake.connector.errors.ProgrammingError: 001059 (22023): SQL compilation error:
Must specify the full search path starting from database for SNOWFLAKE_SAMPLE_DATA
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/zeusone/Documents/ChatbotFalcon/SQLagent/snoflake_simple_agent.py", line 56, in <module>
db = SQLDatabase(engine)#"snowflake://ADRIANOCABRERA:Semilla_1@EKKFOPI-YK08475/SNOWFLAKE_SAMPLE_DATA/TPCH-SF1?warehouse=COMPUTE_WH")
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/langchain/utilities/sql_database.py", line 111, in __init__
self._metadata.reflect(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/sql/schema.py", line 4901, in reflect
Table(name, self, **reflect_opts)
File "<string>", line 2, in __new__
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/util/deprecations.py", line 375, in warned
return fn(*args, **kwargs)
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/sql/schema.py", line 619, in __new__
metadata._remove_table(name, schema)
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
compat.raise_(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 211, in raise_
raise exception
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/sql/schema.py", line 614, in __new__
table._init(name, metadata, *args, **kw)
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/sql/schema.py", line 689, in _init
self._autoload(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/sql/schema.py", line 724, in _autoload
conn_insp.reflect_table(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 774, in reflect_table
for col_d in self.get_columns(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 497, in get_columns
col_defs = self.dialect.get_columns(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/snowflake/sqlalchemy/snowdialect.py", line 669, in get_columns
schema_columns = self._get_schema_columns(connection, schema, **kw)
File "<string>", line 2, in _get_schema_columns
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache
ret = fn(self, con, *args, **kw)
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/snowflake/sqlalchemy/snowdialect.py", line 479, in _get_schema_columns
schema_primary_keys = self._get_schema_primary_keys(
File "<string>", line 2, in _get_schema_primary_keys
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache
ret = fn(self, con, *args, **kw)
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/snowflake/sqlalchemy/snowdialect.py", line 323, in _get_schema_primary_keys
result = connection.execute(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1385, in execute
return meth(self, multiparams, params, _EMPTY_EXECUTION_OPTS)
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/sql/elements.py", line 334, in _execute_on_connection
return connection._execute_clauseelement(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1577, in _execute_clauseelement
ret = self._execute_context(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1953, in _execute_context
self._handle_dbapi_exception(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 2134, in _handle_dbapi_exception
util.raise_(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 211, in raise_
raise exception
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1910, in _execute_context
self.dialect.do_execute(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 736, in do_execute
cursor.execute(statement, parameters)
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/snowflake/connector/cursor.py", line 827, in execute
Error.errorhandler_wrapper(self.connection, self, error_class, errvalue)
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/snowflake/connector/errors.py", line 275, in errorhandler_wrapper
handed_over = Error.hand_to_other_handler(
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/snowflake/connector/errors.py", line 330, in hand_to_other_handler
cursor.errorhandler(connection, cursor, error_class, error_value)
File "/home/zeusone/anaconda3/envs/snowflake_ai/lib/python3.9/site-packages/snowflake/connector/errors.py", line 209, in default_errorhandler
raise error_class(
sqlalchemy.exc.ProgrammingError: (snowflake.connector.errors.ProgrammingError) 001059 (22023): SQL compilation error:
Must specify the full search path starting from database for SNOWFLAKE_SAMPLE_DATA
[SQL: SHOW /* sqlalchemy:_get_schema_primary_keys */PRIMARY KEYS IN SCHEMA snowflake_sample_data]
(Background on this error at: https://sqlalche.me/e/14/f405)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10106/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/10106/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10105
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10105/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10105/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10105/events
|
https://github.com/langchain-ai/langchain/pull/10105
| 1,877,848,973 |
PR_kwDOIPDwls5ZXKre
| 10,105 |
Automaton Variant 2
|
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
open
| false | null |
[] | null | 1 | 2023-09-01T18:14:48 | 2023-09-05T11:33:03 | null |
COLLABORATOR
| null |
Possible reformulation of agents
## Key Changes
1. Agents work with a [sequence of messages](https://github.com/langchain-ai/langchain/blob/29ddf63abb6a9aa67c589e2b127f7b890787f1f4/libs/langchain/langchain/automaton/typedefs.py#L79-L79) (or interface that allows fetching sequence of messages)
2. The definition of messages is expanded to include the following [internal message](https://github.com/langchain-ai/langchain/blob/29ddf63abb6a9aa67c589e2b127f7b890787f1f4/libs/langchain/langchain/automaton/typedefs.py#L39-L39) types:
* FunctionCall: name, arguments
* FunctionResult: name, result, error
* This is distinct from OpenAI function message due to encoding of result
* AgentFinish (Maybe call Yield?)
* (Existing BaseMessage)
* PrimingMessage (?) Perhaps allow user to define custom internal messages?
3. Agent implementation leverages a [generic single step chain](https://github.com/langchain-ai/langchain/blob/29ddf63abb6a9aa67c589e2b127f7b890787f1f4/libs/langchain/langchain/automaton/runnables.py#L47-L47) (aka LLMChain but memory is an input and uses a prompt generator)
4. [A Prompt Generator](https://github.com/langchain-ai/langchain/blob/29ddf63abb6a9aa67c589e2b127f7b890787f1f4/libs/langchain/langchain/automaton/runnables.py#L49-L49) is used to bridge between generalized messages and llm prompt.
## Goals
* Agents should be able to access history (e.g., chat messages)
* Agent should not take a lot of code to implement, but should be possible to fully customize
* Ideally reduce amount of code a developer needs to understand (not fully featured to not fair comparison)
## Examples
* Implementation of [Think Act](https://github.com/langchain-ai/langchain/blob/29ddf63abb6a9aa67c589e2b127f7b890787f1f4/libs/langchain/langchain/automaton/think_act_agent.py#L202) includes *priming* with a string based LLM.
* Structured chat using any [chat based LLM (Claude)](https://github.com/langchain-ai/langchain/blob/486d772184bcaffaaf92b5e2489a3985611c9bd4/libs/langchain/langchain/automaton/notebooks/chat_agent.ipynb)
* See other notebooks
## Things to note:
[ChatAgent](https://github.com/langchain-ai/langchain/pull/10105/files#diff-701c2a1ff9f13203db7396c939e9f6a15e4aa0da4f5976cdbb5e8317170a13e8R95) and [OpenAIAgent](https://github.com/langchain-ai/langchain/pull/10105/files#diff-17bae31e03cb6f1b943fe8e4df906671f2223195e88fc4275dce8b0533de7746R60) only differ in the prompt, the prompt generator and the parser
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10105/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/10105/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10105",
"html_url": "https://github.com/langchain-ai/langchain/pull/10105",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10105.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10105.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10104
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10104/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10104/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10104/events
|
https://github.com/langchain-ai/langchain/pull/10104
| 1,877,838,386 |
PR_kwDOIPDwls5ZXIZb
| 10,104 |
Comprehend Moderation ver 0.1
|
{
"login": "iamwrick",
"id": 82826381,
"node_id": "MDQ6VXNlcjgyODI2Mzgx",
"avatar_url": "https://avatars.githubusercontent.com/u/82826381?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/iamwrick",
"html_url": "https://github.com/iamwrick",
"followers_url": "https://api.github.com/users/iamwrick/followers",
"following_url": "https://api.github.com/users/iamwrick/following{/other_user}",
"gists_url": "https://api.github.com/users/iamwrick/gists{/gist_id}",
"starred_url": "https://api.github.com/users/iamwrick/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/iamwrick/subscriptions",
"organizations_url": "https://api.github.com/users/iamwrick/orgs",
"repos_url": "https://api.github.com/users/iamwrick/repos",
"events_url": "https://api.github.com/users/iamwrick/events{/privacy}",
"received_events_url": "https://api.github.com/users/iamwrick/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 8 | 2023-09-01T18:05:38 | 2023-09-19T23:33:04 | 2023-09-19T23:33:04 |
CONTRIBUTOR
| null |
This PR streamlines the #9665 configuration object and logic to enable chain moderation via the Amazon Comprehend service, allowing you to detect and redact PII, Toxic, and Intent information in the LLM prompt or answer.
This implementation simplifies the configuration and types it to specific class/model.
### Usage sample
```python
from langchain_experimental.comprehend_moderation import (BaseModerationConfig,
ModerationIntentConfig,
ModerationPiiConfig,
ModerationToxicityConfig
)
pii_config = ModerationPiiConfig(
labels=["SSN"],
redact=True,
mask_character="X"
)
toxicity_config = ModerationToxicityConfig(
threshold=0.5
)
intent_config = ModerationIntentConfig(
threshold=0.5
)
moderation_config = BaseModerationConfig(
filters=[pii_config, toxicity_config, intent_config]
)
comp_moderation_with_config = AmazonComprehendModerationChain(
moderation_config=moderation_config, #specify the configuration
client=comprehend_client, #optionally pass the Boto3 Client
verbose=True
)
template = """Question: {question}
Answer:"""
prompt = PromptTemplate(template=template, input_variables=["question"])
responses = [
"Final Answer: A credit card number looks like 1289-2321-1123-2387. A fake SSN number looks like 323-22-9980. John Doe's phone number is (999)253-9876.",
"Final Answer: This is a really shitty way of constructing a birdhouse. This is fucking insane to think that any birds would actually create their motherfucking nests here."
]
llm = FakeListLLM(responses=responses)
llm_chain = LLMChain(prompt=prompt, llm=llm)
chain = (
prompt
| comp_moderation_with_config
| {llm_chain.input_keys[0]: lambda x: x['output'] }
| llm_chain
| { "input": lambda x: x['text'] }
| comp_moderation_with_config
)
try:
response = chain.invoke({"question": "A sample SSN number looks like this 123-456-7890. Can you give me some more samples?"})
except Exception as e:
print(str(e))
else:
print(response['output'])
```
### Output
```python
> Entering new AmazonComprehendModerationChain chain...
Running AmazonComprehendModerationChain...
Running pii Validation...
Running toxicity Validation...
Running intent Validation...
> Finished chain.
> Entering new AmazonComprehendModerationChain chain...
Running AmazonComprehendModerationChain...
Running pii Validation...
Running toxicity Validation...
Running intent Validation...
> Finished chain.
Final Answer: A credit card number looks like 1289-2321-1123-2387. A fake SSN number looks like XXXXXXXXXXXX John Doe's phone number is (999)253-9876.
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10104/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/10104/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10104",
"html_url": "https://github.com/langchain-ai/langchain/pull/10104",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10104.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10104.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10103
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10103/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10103/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10103/events
|
https://github.com/langchain-ai/langchain/pull/10103
| 1,877,810,169 |
PR_kwDOIPDwls5ZXCSR
| 10,103 |
index rename delete_mode -> cleanup
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T17:41:24 | 2023-09-01T18:12:11 | 2023-09-01T18:12:10 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10103/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/10103/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10103",
"html_url": "https://github.com/langchain-ai/langchain/pull/10103",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10103.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10103.patch",
"merged_at": "2023-09-01T18:12:10"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10102
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10102/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10102/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10102/events
|
https://github.com/langchain-ai/langchain/pull/10102
| 1,877,792,499 |
PR_kwDOIPDwls5ZW-hT
| 10,102 |
Bagatur/eden type 2
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T17:26:22 | 2023-09-01T17:27:28 | 2023-09-01T17:27:27 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10102/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/10102/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10102",
"html_url": "https://github.com/langchain-ai/langchain/pull/10102",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10102.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10102.patch",
"merged_at": "2023-09-01T17:27:27"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10101
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10101/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10101/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10101/events
|
https://github.com/langchain-ai/langchain/pull/10101
| 1,877,781,219 |
PR_kwDOIPDwls5ZW8Dx
| 10,101 |
eden tool nb nit
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T17:16:32 | 2023-09-01T17:16:45 | 2023-09-01T17:16:39 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10101/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/10101/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10101",
"html_url": "https://github.com/langchain-ai/langchain/pull/10101",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10101.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10101.patch",
"merged_at": "2023-09-01T17:16:39"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10100
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10100/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10100/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10100/events
|
https://github.com/langchain-ai/langchain/issues/10100
| 1,877,764,117 |
I_kwDOIPDwls5v7GgV
| 10,100 |
Issue: ConversationalChatAgent reduces the user question question to single word action_input when parsing
|
{
"login": "deepakagrawal",
"id": 4365922,
"node_id": "MDQ6VXNlcjQzNjU5MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/4365922?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/deepakagrawal",
"html_url": "https://github.com/deepakagrawal",
"followers_url": "https://api.github.com/users/deepakagrawal/followers",
"following_url": "https://api.github.com/users/deepakagrawal/following{/other_user}",
"gists_url": "https://api.github.com/users/deepakagrawal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/deepakagrawal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/deepakagrawal/subscriptions",
"organizations_url": "https://api.github.com/users/deepakagrawal/orgs",
"repos_url": "https://api.github.com/users/deepakagrawal/repos",
"events_url": "https://api.github.com/users/deepakagrawal/events{/privacy}",
"received_events_url": "https://api.github.com/users/deepakagrawal/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-01T17:01:58 | 2023-12-08T16:04:20 | 2023-12-08T16:04:19 |
NONE
| null |
### Issue you'd like to raise.
I have created an agent using ConversationalChatAgent which uses custom tools (CoversationRetrievalQA based) to answer users questions. When determining which tool to use the agent is sometimes stripping the question to single word. For example question like `What is XYZ?` is reduced to
```
{
action: tool_name,
action_input: XYZ
}
```
How can I change the behavior to include full question in this scenario?
expected behavior
```
{
action: tool_name,
action_input: What is XYZ? or Define XYZ?
}
```
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10100/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/10100/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10099
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10099/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10099/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10099/events
|
https://github.com/langchain-ai/langchain/issues/10099
| 1,877,718,213 |
I_kwDOIPDwls5v67TF
| 10,099 |
Parsing intermediate steps: Object of type AgentAction is not JSON serializable
|
{
"login": "Tech-Netiums",
"id": 56352612,
"node_id": "MDQ6VXNlcjU2MzUyNjEy",
"avatar_url": "https://avatars.githubusercontent.com/u/56352612?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Tech-Netiums",
"html_url": "https://github.com/Tech-Netiums",
"followers_url": "https://api.github.com/users/Tech-Netiums/followers",
"following_url": "https://api.github.com/users/Tech-Netiums/following{/other_user}",
"gists_url": "https://api.github.com/users/Tech-Netiums/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Tech-Netiums/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Tech-Netiums/subscriptions",
"organizations_url": "https://api.github.com/users/Tech-Netiums/orgs",
"repos_url": "https://api.github.com/users/Tech-Netiums/repos",
"events_url": "https://api.github.com/users/Tech-Netiums/events{/privacy}",
"received_events_url": "https://api.github.com/users/Tech-Netiums/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-01T16:30:39 | 2023-12-18T23:48:07 | 2023-12-18T23:48:07 |
NONE
| null |
### System Info
python 3.9 langchain 0.0.250
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Follow the steps in [Access Intermediate Steps](https://github.com/langchain-ai/langchain/blob/master/docs/extras/modules/agents/how_to/intermediate_steps.ipynb) within the Agent "How To".
When converting the steps to json:
print(json.dumps(response["intermediate_steps"], indent=2))
This raises the error:
TypeError: Object of type AgentAction is not JSON serializable
### Expected behavior
This issue is similar to the one raised in #8815.
However the bot answer is not satisfying as using
```
from langchain.load.dump import dumps
print(dumps(response["intermediate_steps"], pretty=True))
```
will not serialize the `AgentAction`
I can propose a `__json__()` function to correct this the lib json-fix or either inherit the class from dict
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10099/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/10099/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10098
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10098/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10098/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10098/events
|
https://github.com/langchain-ai/langchain/pull/10098
| 1,877,645,602 |
PR_kwDOIPDwls5ZWeQ1
| 10,098 |
bump 279
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5010622926,
"node_id": "LA_kwDOIPDwls8AAAABKqgJzg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/release",
"name": "release",
"color": "07D4BE",
"default": false,
"description": ""
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T15:40:37 | 2023-09-01T15:49:27 | 2023-09-01T15:49:26 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10098/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/10098/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10098",
"html_url": "https://github.com/langchain-ai/langchain/pull/10098",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10098.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10098.patch",
"merged_at": "2023-09-01T15:49:26"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10097
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10097/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10097/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10097/events
|
https://github.com/langchain-ai/langchain/pull/10097
| 1,877,614,872 |
PR_kwDOIPDwls5ZWXrP
| 10,097 |
Temporarily remove language selection
|
{
"login": "maks-operlejn-ds",
"id": 142261444,
"node_id": "U_kgDOCHq8xA",
"avatar_url": "https://avatars.githubusercontent.com/u/142261444?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maks-operlejn-ds",
"html_url": "https://github.com/maks-operlejn-ds",
"followers_url": "https://api.github.com/users/maks-operlejn-ds/followers",
"following_url": "https://api.github.com/users/maks-operlejn-ds/following{/other_user}",
"gists_url": "https://api.github.com/users/maks-operlejn-ds/gists{/gist_id}",
"starred_url": "https://api.github.com/users/maks-operlejn-ds/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maks-operlejn-ds/subscriptions",
"organizations_url": "https://api.github.com/users/maks-operlejn-ds/orgs",
"repos_url": "https://api.github.com/users/maks-operlejn-ds/repos",
"events_url": "https://api.github.com/users/maks-operlejn-ds/events{/privacy}",
"received_events_url": "https://api.github.com/users/maks-operlejn-ds/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T15:19:05 | 2023-09-01T18:32:31 | 2023-09-01T18:30:49 |
CONTRIBUTOR
| null |
Adapting Microsoft Presidio to other languages requires a bit more work, so for now it will be good idea to remove the language option to choose, so as not to cause errors and confusion.
https://microsoft.github.io/presidio/analyzer/languages/
I will handle different languages after the weekend :smile:
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10097/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/10097/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10097",
"html_url": "https://github.com/langchain-ai/langchain/pull/10097",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10097.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10097.patch",
"merged_at": "2023-09-01T18:30:49"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10096
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10096/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10096/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10096/events
|
https://github.com/langchain-ai/langchain/pull/10096
| 1,877,573,429 |
PR_kwDOIPDwls5ZWOou
| 10,096 |
Created an interface for user friendly usage of HuggingFaceInferenceA…
|
{
"login": "J4e6eR",
"id": 91129126,
"node_id": "MDQ6VXNlcjkxMTI5MTI2",
"avatar_url": "https://avatars.githubusercontent.com/u/91129126?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/J4e6eR",
"html_url": "https://github.com/J4e6eR",
"followers_url": "https://api.github.com/users/J4e6eR/followers",
"following_url": "https://api.github.com/users/J4e6eR/following{/other_user}",
"gists_url": "https://api.github.com/users/J4e6eR/gists{/gist_id}",
"starred_url": "https://api.github.com/users/J4e6eR/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/J4e6eR/subscriptions",
"organizations_url": "https://api.github.com/users/J4e6eR/orgs",
"repos_url": "https://api.github.com/users/J4e6eR/repos",
"events_url": "https://api.github.com/users/J4e6eR/events{/privacy}",
"received_events_url": "https://api.github.com/users/J4e6eR/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T14:51:55 | 2023-09-03T21:05:53 | 2023-09-03T21:05:53 |
CONTRIBUTOR
| null |
…PI to run models over API rather than locally loading it. The interface uses ChromaDB implementation
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: Created an interface for user friendly usage of HuggingFaceInferenceAPI to run models over API rather than locally loading it. The interface uses ChromaDB implementation,
- Dependencies: Embeddings from ChromaDB namely HuggingFaceEmbeddings,
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10096/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/10096/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10096",
"html_url": "https://github.com/langchain-ai/langchain/pull/10096",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10096.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10096.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10094
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10094/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10094/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10094/events
|
https://github.com/langchain-ai/langchain/pull/10094
| 1,877,553,024 |
PR_kwDOIPDwls5ZWKKj
| 10,094 |
feat: Hugging Face Pipeline as a new Chat Model
|
{
"login": "eryk-dsai",
"id": 142571618,
"node_id": "U_kgDOCH94Yg",
"avatar_url": "https://avatars.githubusercontent.com/u/142571618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eryk-dsai",
"html_url": "https://github.com/eryk-dsai",
"followers_url": "https://api.github.com/users/eryk-dsai/followers",
"following_url": "https://api.github.com/users/eryk-dsai/following{/other_user}",
"gists_url": "https://api.github.com/users/eryk-dsai/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eryk-dsai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eryk-dsai/subscriptions",
"organizations_url": "https://api.github.com/users/eryk-dsai/orgs",
"repos_url": "https://api.github.com/users/eryk-dsai/repos",
"events_url": "https://api.github.com/users/eryk-dsai/events{/privacy}",
"received_events_url": "https://api.github.com/users/eryk-dsai/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false |
{
"login": "jacoblee93",
"id": 6952323,
"node_id": "MDQ6VXNlcjY5NTIzMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jacoblee93",
"html_url": "https://github.com/jacoblee93",
"followers_url": "https://api.github.com/users/jacoblee93/followers",
"following_url": "https://api.github.com/users/jacoblee93/following{/other_user}",
"gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions",
"organizations_url": "https://api.github.com/users/jacoblee93/orgs",
"repos_url": "https://api.github.com/users/jacoblee93/repos",
"events_url": "https://api.github.com/users/jacoblee93/events{/privacy}",
"received_events_url": "https://api.github.com/users/jacoblee93/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "jacoblee93",
"id": 6952323,
"node_id": "MDQ6VXNlcjY5NTIzMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jacoblee93",
"html_url": "https://github.com/jacoblee93",
"followers_url": "https://api.github.com/users/jacoblee93/followers",
"following_url": "https://api.github.com/users/jacoblee93/following{/other_user}",
"gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions",
"organizations_url": "https://api.github.com/users/jacoblee93/orgs",
"repos_url": "https://api.github.com/users/jacoblee93/repos",
"events_url": "https://api.github.com/users/jacoblee93/events{/privacy}",
"received_events_url": "https://api.github.com/users/jacoblee93/received_events",
"type": "User",
"site_admin": false
}
] | null | 4 | 2023-09-01T14:39:24 | 2023-10-10T11:41:36 | null |
CONTRIBUTOR
| null |
## Description:
This Pull Request adds **Hugging Face Pipeline** as a new LangChain Chat Model.
It effectively allows the user to use any instruction tuned model with LangChain's Chat interface with a newly added Chat Templates [link](https://huggingface.co/blog/chat-templates) [link](https://huggingface.co/docs/transformers/main/chat_templating)
For example, it is now possible to define the HF Pipeline with the `meta-llama/Llama-2-7b-chat-hf` model and [arbitrary QLoRA configuration](https://huggingface.co/blog/4bit-transformers-bitsandbytes) (as shown in the [example](https://github.com/deepsense-ai/langchain/blob/llama2-chat/docs/extras/integrations/chat/huggingface_llama2.ipynb)) and run it locally with LangChain on a GPU with less than 6GB of VRAM.
@deepsense_ai
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10094/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/10094/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10094",
"html_url": "https://github.com/langchain-ai/langchain/pull/10094",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10094.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10094.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10093
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10093/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10093/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10093/events
|
https://github.com/langchain-ai/langchain/pull/10093
| 1,877,543,592 |
PR_kwDOIPDwls5ZWIEI
| 10,093 |
Data deanonymization
|
{
"login": "maks-operlejn-ds",
"id": 142261444,
"node_id": "U_kgDOCHq8xA",
"avatar_url": "https://avatars.githubusercontent.com/u/142261444?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maks-operlejn-ds",
"html_url": "https://github.com/maks-operlejn-ds",
"followers_url": "https://api.github.com/users/maks-operlejn-ds/followers",
"following_url": "https://api.github.com/users/maks-operlejn-ds/following{/other_user}",
"gists_url": "https://api.github.com/users/maks-operlejn-ds/gists{/gist_id}",
"starred_url": "https://api.github.com/users/maks-operlejn-ds/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maks-operlejn-ds/subscriptions",
"organizations_url": "https://api.github.com/users/maks-operlejn-ds/orgs",
"repos_url": "https://api.github.com/users/maks-operlejn-ds/repos",
"events_url": "https://api.github.com/users/maks-operlejn-ds/events{/privacy}",
"received_events_url": "https://api.github.com/users/maks-operlejn-ds/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-01T14:34:34 | 2023-09-07T04:33:25 | 2023-09-07T04:33:25 |
CONTRIBUTOR
| null |
### Description
The feature for pseudonymizing data with ability to retrieve original text (deanonymization) has been implemented. In order to protect private data, such as when querying external APIs (OpenAI), it is worth pseudonymizing sensitive data to maintain full privacy. But then, after the model response, it would be good to have the data in the original form.
I implemented the `PresidioReversibleAnonymizer`, which consists of two parts:
1. anonymization - it works the same way as `PresidioAnonymizer`, plus the object itself stores a mapping of made-up values to original ones, for example:
```
{
"PERSON": {
"<anonymized>": "<original>",
"John Doe": "Slim Shady"
},
"PHONE_NUMBER": {
"111-111-1111": "555-555-5555"
}
...
}
```
2. deanonymization - using the mapping described above, it matches fake data with original data and then substitutes it.
Between anonymization and deanonymization user can perform different operations, for example, passing the output to LLM.
### Future works
- **instance anonymization** - at this point, each occurrence of PII is treated as a separate entity and separately anonymized. Therefore, two occurrences of the name John Doe in the text will be changed to two different names. It is therefore worth introducing support for full instance detection, so that repeated occurrences are treated as a single object.
- **better matching and substitution of fake values for real ones** - currently the strategy is based on matching full strings and then substituting them. Due to the indeterminism of language models, it may happen that the value in the answer is slightly changed (e.g. *John Doe* -> *John* or *Main St, New York* -> *New York*) and such a substitution is then no longer possible. Therefore, it is worth adjusting the matching for your needs.
- **Q&A with anonymization** - when I'm done writing all the functionality, I thought it would be a cool resource in documentation to write a notebook about retrieval from documents using anonymization. An iterative process, adding new recognizers to fit the data, lessons learned and what to look out for
### Twitter handle
@deepsense_ai / @MaksOpp
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10093/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/10093/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10093",
"html_url": "https://github.com/langchain-ai/langchain/pull/10093",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10093.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10093.patch",
"merged_at": "2023-09-07T04:33:25"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10092
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10092/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10092/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10092/events
|
https://github.com/langchain-ai/langchain/pull/10092
| 1,877,270,928 |
PR_kwDOIPDwls5ZVMY_
| 10,092 |
HuggingGPT string inplace
|
{
"login": "Lucky-Lance",
"id": 77819606,
"node_id": "MDQ6VXNlcjc3ODE5NjA2",
"avatar_url": "https://avatars.githubusercontent.com/u/77819606?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Lucky-Lance",
"html_url": "https://github.com/Lucky-Lance",
"followers_url": "https://api.github.com/users/Lucky-Lance/followers",
"following_url": "https://api.github.com/users/Lucky-Lance/following{/other_user}",
"gists_url": "https://api.github.com/users/Lucky-Lance/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Lucky-Lance/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Lucky-Lance/subscriptions",
"organizations_url": "https://api.github.com/users/Lucky-Lance/orgs",
"repos_url": "https://api.github.com/users/Lucky-Lance/repos",
"events_url": "https://api.github.com/users/Lucky-Lance/events{/privacy}",
"received_events_url": "https://api.github.com/users/Lucky-Lance/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-01T11:42:12 | 2023-09-03T21:09:25 | 2023-09-03T21:09:25 |
CONTRIBUTOR
| null |
Description: This bug is found when using HuggingGPT in LangChain. I found that if there are dependencies between tasks, the execution results will become very bad. I debugged the code and found that it is because the filename of the generated file is not updated to the args of the following task, mainly due to the "replace()" function in string operation (it is not an in-place operation). You should assign the replace result with the string to save the change.
Issue: N/A
Dependencies: N/A
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10092/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/10092/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10092",
"html_url": "https://github.com/langchain-ai/langchain/pull/10092",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10092.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10092.patch",
"merged_at": "2023-09-03T21:09:25"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10091
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10091/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10091/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10091/events
|
https://github.com/langchain-ai/langchain/pull/10091
| 1,877,256,103 |
PR_kwDOIPDwls5ZVJJE
| 10,091 |
Takeoff baseurl support
|
{
"login": "hoyungcher",
"id": 53276514,
"node_id": "MDQ6VXNlcjUzMjc2NTE0",
"avatar_url": "https://avatars.githubusercontent.com/u/53276514?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hoyungcher",
"html_url": "https://github.com/hoyungcher",
"followers_url": "https://api.github.com/users/hoyungcher/followers",
"following_url": "https://api.github.com/users/hoyungcher/following{/other_user}",
"gists_url": "https://api.github.com/users/hoyungcher/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hoyungcher/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hoyungcher/subscriptions",
"organizations_url": "https://api.github.com/users/hoyungcher/orgs",
"repos_url": "https://api.github.com/users/hoyungcher/repos",
"events_url": "https://api.github.com/users/hoyungcher/events{/privacy}",
"received_events_url": "https://api.github.com/users/hoyungcher/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T11:31:39 | 2023-09-03T21:46:00 | 2023-09-03T21:46:00 |
CONTRIBUTOR
| null |
## Description
This PR introduces a minor change to the TitanTakeoff integration.
Instead of specifying a port on localhost, this PR will allow users to specify a baseURL instead. This will allow users to use the integration if they have TitanTakeoff deployed externally (not on localhost). This removes the hardcoded reference to localhost "http://localhost:{port}".
### Info about Titan Takeoff
Titan Takeoff is an inference server created by [TitanML](https://www.titanml.co/) that allows you to deploy large language models locally on your hardware in a single command. Most generative model architectures are included, such as Falcon, Llama 2, GPT2, T5 and many more.
Read more about Titan Takeoff here:
- [Blog](https://medium.com/@TitanML/introducing-titan-takeoff-6c30e55a8e1e)
- [Docs](https://docs.titanml.co/docs/titan-takeoff/getting-started)
### Dependencies
No new dependencies are introduced. However, users will need to install the titan-iris package in their local environment and start the Titan Takeoff inferencing server in order to use the Titan Takeoff integration.
Thanks for your help and please let me know if you have any questions.
cc: @hwchase17 @baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10091/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/10091/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10091",
"html_url": "https://github.com/langchain-ai/langchain/pull/10091",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10091.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10091.patch",
"merged_at": "2023-09-03T21:46:00"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10090
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10090/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10090/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10090/events
|
https://github.com/langchain-ai/langchain/pull/10090
| 1,877,196,522 |
PR_kwDOIPDwls5ZU8J3
| 10,090 |
Update output_parser.py
|
{
"login": "yubofeng",
"id": 33345154,
"node_id": "MDQ6VXNlcjMzMzQ1MTU0",
"avatar_url": "https://avatars.githubusercontent.com/u/33345154?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yubofeng",
"html_url": "https://github.com/yubofeng",
"followers_url": "https://api.github.com/users/yubofeng/followers",
"following_url": "https://api.github.com/users/yubofeng/following{/other_user}",
"gists_url": "https://api.github.com/users/yubofeng/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yubofeng/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yubofeng/subscriptions",
"organizations_url": "https://api.github.com/users/yubofeng/orgs",
"repos_url": "https://api.github.com/users/yubofeng/repos",
"events_url": "https://api.github.com/users/yubofeng/events{/privacy}",
"received_events_url": "https://api.github.com/users/yubofeng/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T10:48:56 | 2023-09-03T21:15:29 | 2023-09-03T21:15:29 |
NONE
| null |
I created a customLLM base on a llama2_70b online API service, used it for a text_to_sql mission.
I used the "create_sql_agent", it didn't work well. A piece of the logfile looks like this:
Action: sql_db_schema
Action Input: 'customers'
Observation: Error: table_names {"'customers'"} not found in database
It seemed like the llama2_70b is more likely to use single quotes, probably some other llms too.
I find out that the output_parser in "langchain\agents\mrkl\output_parser.py" strip the " " but not "'", strip them both should be a solution once for all. And it works for me.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10090/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/10090/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10090",
"html_url": "https://github.com/langchain-ai/langchain/pull/10090",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10090.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10090.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10089
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10089/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10089/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10089/events
|
https://github.com/langchain-ai/langchain/issues/10089
| 1,877,181,409 |
I_kwDOIPDwls5v44Ph
| 10,089 |
vector_db.similarity_search(request.query,k=2) Not working with the opensearch index
|
{
"login": "akash97715",
"id": 34799343,
"node_id": "MDQ6VXNlcjM0Nzk5MzQz",
"avatar_url": "https://avatars.githubusercontent.com/u/34799343?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akash97715",
"html_url": "https://github.com/akash97715",
"followers_url": "https://api.github.com/users/akash97715/followers",
"following_url": "https://api.github.com/users/akash97715/following{/other_user}",
"gists_url": "https://api.github.com/users/akash97715/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akash97715/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akash97715/subscriptions",
"organizations_url": "https://api.github.com/users/akash97715/orgs",
"repos_url": "https://api.github.com/users/akash97715/repos",
"events_url": "https://api.github.com/users/akash97715/events{/privacy}",
"received_events_url": "https://api.github.com/users/akash97715/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 6 | 2023-09-01T10:37:55 | 2023-12-11T16:05:23 | 2023-12-11T16:05:22 |
NONE
| null |
### System Info
I have 2000 document present at my opensearch index, i have filter out the 2 documents present from this opensearch index and added to newly created index. After that i am trying to use vector_db.similarity_search(request.query,k=2) on the newly created index, its returning me empty list.
below are the code
Code for index creation:
updated_mapping = {"mappings":{"properties": {"vector_field": {"type": "knn_vector","dimension": 1536,"method": {"engine": "nmslib","space_type": "l2","name": "hnsw","parameters": {"ef_construction": 512,"m": 16}}}}}}
opensearch_client.indices.create(index="temp_check878999", body=updated_mapping)
Code to update the index with filtered document:
sea=["1460210.pdf",'P-Reality-X Manuscript_Draft 1_17Feb22 (PAL1144).pdf']
for i in sea:
query={"query":{
"match":{
"metadata.filename":f"*{i}"
}
}}
print(query)
rest=opensearch_client.search(index="lang_demo",body=query)
create=rest['hits']['hits']
for hit in create:
sr=hit['_source']
doc_id=hit['_id']
opensearch_client.index(index="temp_check878999",id=doc_id,body=sr)
Langchain simillarity search code i am using on newly created index
from langchain.vectorstores import OpenSearchVectorSearch
vector_db = OpenSearchVectorSearch(
index_name="temp_check878999",
embedding_function=embed_wrapper(engine="text-embedding-ada-002"),
opensearch_url=*****,
http_auth=(******, *****),
is_aoss=False,
)
vector_db.similarity_search("star",k=2)
Quick reply will be very much helpful
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
No idea
### Expected behavior
It should return me the simmilarity search text with newly created index. Please note its working fine on the index where i had used vector_db.addtext(text). This issue is if i create the new open search index with opensearch client then on that index the simmilarity search one is not working.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10089/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/10089/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10088
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10088/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10088/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10088/events
|
https://github.com/langchain-ai/langchain/issues/10088
| 1,877,113,181 |
I_kwDOIPDwls5v4nld
| 10,088 |
autonomous_agents : poetry run mypy . with experimental fails with langchain version 0.0.278
|
{
"login": "pprados",
"id": 204694,
"node_id": "MDQ6VXNlcjIwNDY5NA==",
"avatar_url": "https://avatars.githubusercontent.com/u/204694?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pprados",
"html_url": "https://github.com/pprados",
"followers_url": "https://api.github.com/users/pprados/followers",
"following_url": "https://api.github.com/users/pprados/following{/other_user}",
"gists_url": "https://api.github.com/users/pprados/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pprados/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pprados/subscriptions",
"organizations_url": "https://api.github.com/users/pprados/orgs",
"repos_url": "https://api.github.com/users/pprados/repos",
"events_url": "https://api.github.com/users/pprados/events{/privacy}",
"received_events_url": "https://api.github.com/users/pprados/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-01T09:51:26 | 2023-09-19T08:28:37 | 2023-09-19T08:28:37 |
CONTRIBUTOR
| null |
### System Info
langchain 0.0.278.
I try to publish a pull request in the project experimental. I must update the dependencies of langchain, but I receive a lot of errors.
See [here](https://github.com/langchain-ai/langchain/actions/runs/6047844508/job/16412056269?pr=7278), outside of my code.
### Who can help?
@hwchase17
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
In the libs/experimental/pyproject.toml, change:
langchain = ">=0.0.278"
then
poetry run mypy .
### Expected behavior
No error
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10088/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/10088/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10087
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10087/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10087/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10087/events
|
https://github.com/langchain-ai/langchain/pull/10087
| 1,877,040,545 |
PR_kwDOIPDwls5ZUaQ1
| 10,087 |
fix 'Event loop is closed' error
|
{
"login": "jxyer",
"id": 49470136,
"node_id": "MDQ6VXNlcjQ5NDcwMTM2",
"avatar_url": "https://avatars.githubusercontent.com/u/49470136?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jxyer",
"html_url": "https://github.com/jxyer",
"followers_url": "https://api.github.com/users/jxyer/followers",
"following_url": "https://api.github.com/users/jxyer/following{/other_user}",
"gists_url": "https://api.github.com/users/jxyer/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jxyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jxyer/subscriptions",
"organizations_url": "https://api.github.com/users/jxyer/orgs",
"repos_url": "https://api.github.com/users/jxyer/repos",
"events_url": "https://api.github.com/users/jxyer/events{/privacy}",
"received_events_url": "https://api.github.com/users/jxyer/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false |
{
"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
}
|
[
{
"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
}
] | null | 3 | 2023-09-01T09:04:20 | 2023-09-04T07:47:27 | 2023-09-04T07:18:44 |
NONE
| null |
- Description: `asyncio.run()` will automatically close the event loop and trigger an error when calling `_ProactorBasePipeTransport.__del__`, whereas `asyncio.run_until_complete()` will not.
- Issue: #10086
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10087/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/10087/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10087",
"html_url": "https://github.com/langchain-ai/langchain/pull/10087",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10087.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10087.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10086
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10086/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10086/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10086/events
|
https://github.com/langchain-ai/langchain/issues/10086
| 1,876,993,301 |
I_kwDOIPDwls5v4KUV
| 10,086 |
When I call the 'loader()' function of AsyncHtmlLoader, I receive an 'Event loop is closed' error after it completes execution.
|
{
"login": "jxyer",
"id": 49470136,
"node_id": "MDQ6VXNlcjQ5NDcwMTM2",
"avatar_url": "https://avatars.githubusercontent.com/u/49470136?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jxyer",
"html_url": "https://github.com/jxyer",
"followers_url": "https://api.github.com/users/jxyer/followers",
"following_url": "https://api.github.com/users/jxyer/following{/other_user}",
"gists_url": "https://api.github.com/users/jxyer/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jxyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jxyer/subscriptions",
"organizations_url": "https://api.github.com/users/jxyer/orgs",
"repos_url": "https://api.github.com/users/jxyer/repos",
"events_url": "https://api.github.com/users/jxyer/events{/privacy}",
"received_events_url": "https://api.github.com/users/jxyer/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-01T08:31:58 | 2023-12-08T16:04:30 | 2023-12-08T16:04:29 |
NONE
| null |
### System Info
LangChain: 0.0.278
python: 3.10
windows10
### 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
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I wrote with reference to[ this link](https://python.langchain.com/docs/use_cases/web_scraping#asynchtmlloader), and the code is as follows:
```python
from langchain.document_loaders import `AsyncHtmlLoader`
urls = ['https://python.langchain.com/docs/use_cases/web_scraping#asynchtmlloader']
loader = AsyncHtmlLoader(urls)
doc = loader.load()
print(doc)
```
Return the following error after running:
```
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x0000023EFFD45900>
Traceback (most recent call last):
File "C:\Users\97994\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 116, in __del__
self.close()
File "C:\Users\97994\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\97994\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 750, in call_soon
self._check_closed()
File "C:\Users\97994\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 515, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
```
### Expected behavior
None
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10086/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/10086/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10085
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10085/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10085/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10085/events
|
https://github.com/langchain-ai/langchain/issues/10085
| 1,876,967,752 |
I_kwDOIPDwls5v4EFI
| 10,085 |
Text splitting with keep_separator is True still removes any whitespace, even if separator is whitespace
|
{
"login": "jamesw6811",
"id": 2816551,
"node_id": "MDQ6VXNlcjI4MTY1NTE=",
"avatar_url": "https://avatars.githubusercontent.com/u/2816551?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesw6811",
"html_url": "https://github.com/jamesw6811",
"followers_url": "https://api.github.com/users/jamesw6811/followers",
"following_url": "https://api.github.com/users/jamesw6811/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesw6811/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesw6811/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesw6811/subscriptions",
"organizations_url": "https://api.github.com/users/jamesw6811/orgs",
"repos_url": "https://api.github.com/users/jamesw6811/repos",
"events_url": "https://api.github.com/users/jamesw6811/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesw6811/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-09-01T08:14:34 | 2023-09-08T02:01:40 | 2023-09-08T02:01:40 |
NONE
| null |
```
text = "foo _bar_ baz_ 123"
separator = "_"
text_splitter = CharacterTextSplitter(
chunk_size=4,
chunk_overlap=0,
separator="_",
keep_separator=True,
)
print(text_splitter.split_text(text))
```
RETURNS:
`['foo', '_bar', '_ baz', '_ 123']`
EXPECTED:
`['foo ', '_bar', '_ baz', '_ 123']`
^see whitespace next to `foo`
https://github.com/langchain-ai/langchain/blame/324c86acd5be9bc9d5b6dd248d686bdbb2c11cdc/libs/langchain/langchain/text_splitter.py#L155 removes all whitespace from the text. I can't figure out the purpose of this line.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10085/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/10085/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10083
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10083/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10083/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10083/events
|
https://github.com/langchain-ai/langchain/pull/10083
| 1,876,934,535 |
PR_kwDOIPDwls5ZUDJ1
| 10,083 |
Added code to allow handle_parsing_error to pass into the AgentExecutor
|
{
"login": "limgw1",
"id": 60544264,
"node_id": "MDQ6VXNlcjYwNTQ0MjY0",
"avatar_url": "https://avatars.githubusercontent.com/u/60544264?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/limgw1",
"html_url": "https://github.com/limgw1",
"followers_url": "https://api.github.com/users/limgw1/followers",
"following_url": "https://api.github.com/users/limgw1/following{/other_user}",
"gists_url": "https://api.github.com/users/limgw1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/limgw1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/limgw1/subscriptions",
"organizations_url": "https://api.github.com/users/limgw1/orgs",
"repos_url": "https://api.github.com/users/limgw1/repos",
"events_url": "https://api.github.com/users/limgw1/events{/privacy}",
"received_events_url": "https://api.github.com/users/limgw1/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-01T07:54:01 | 2023-09-03T23:10:07 | 2023-09-03T21:30:52 |
NONE
| null |
- Description: Fixed an issue with `create_pandas_dataframe_agent` where the `handle_parsing_variable` passed in does not get passed to the AgentExecutor, resulting in no difference in parsing error handling regardless of what value the variable had.
- Issue: the issue #10045
- Dependencies: No new dependencies
- Tag maintainer: @baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10083/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/10083/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10083",
"html_url": "https://github.com/langchain-ai/langchain/pull/10083",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10083.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10083.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10082
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10082/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10082/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10082/events
|
https://github.com/langchain-ai/langchain/issues/10082
| 1,876,932,057 |
I_kwDOIPDwls5v37XZ
| 10,082 |
Issue: chroma retriever where_document parameter passed in search_kwargs is invalid
|
{
"login": "PTTrazavi",
"id": 53891374,
"node_id": "MDQ6VXNlcjUzODkxMzc0",
"avatar_url": "https://avatars.githubusercontent.com/u/53891374?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/PTTrazavi",
"html_url": "https://github.com/PTTrazavi",
"followers_url": "https://api.github.com/users/PTTrazavi/followers",
"following_url": "https://api.github.com/users/PTTrazavi/following{/other_user}",
"gists_url": "https://api.github.com/users/PTTrazavi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/PTTrazavi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/PTTrazavi/subscriptions",
"organizations_url": "https://api.github.com/users/PTTrazavi/orgs",
"repos_url": "https://api.github.com/users/PTTrazavi/repos",
"events_url": "https://api.github.com/users/PTTrazavi/events{/privacy}",
"received_events_url": "https://api.github.com/users/PTTrazavi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
open
| false | null |
[] | null | 3 | 2023-09-01T07:52:13 | 2023-12-05T10:01:12 | null |
CONTRIBUTOR
| null |
### Issue you'd like to raise.
I am using chroma db as retriever in ConversationalRetrievalChain, but the parameter "where_document" does not work.
```python
search_kwargs = {
"k": k,
"filter": filter,
"where_document": {"$contains": "1000001"}
}
retriever = vectordb.as_retriever(
search_kwargs=search_kwargs
)
```
In chroma official site [chroma](https://docs.trychroma.com/usage-guide), it says:
Chroma supports filtering queries by metadata and document contents. The where filter is used to filter by metadata, and the where_document filter is used to filter by document contents.
### Suggestion:
can ConversationalRetrievalChain support where_document filter for chroma db?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10082/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/10082/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10081
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10081/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10081/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10081/events
|
https://github.com/langchain-ai/langchain/issues/10081
| 1,876,929,360 |
I_kwDOIPDwls5v36tQ
| 10,081 |
Vectara query a already uploaded Corpus
|
{
"login": "UglyStupidHonest",
"id": 68284461,
"node_id": "MDQ6VXNlcjY4Mjg0NDYx",
"avatar_url": "https://avatars.githubusercontent.com/u/68284461?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/UglyStupidHonest",
"html_url": "https://github.com/UglyStupidHonest",
"followers_url": "https://api.github.com/users/UglyStupidHonest/followers",
"following_url": "https://api.github.com/users/UglyStupidHonest/following{/other_user}",
"gists_url": "https://api.github.com/users/UglyStupidHonest/gists{/gist_id}",
"starred_url": "https://api.github.com/users/UglyStupidHonest/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/UglyStupidHonest/subscriptions",
"organizations_url": "https://api.github.com/users/UglyStupidHonest/orgs",
"repos_url": "https://api.github.com/users/UglyStupidHonest/repos",
"events_url": "https://api.github.com/users/UglyStupidHonest/events{/privacy}",
"received_events_url": "https://api.github.com/users/UglyStupidHonest/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": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T07:50:13 | 2023-12-08T16:04:35 | 2023-12-08T16:04:34 |
NONE
| null |
### Issue you'd like to raise.
I have uploaded my files to Vectara and would love to query the corpus now with langchain. However I can only find examples of how to upload documents and then directly query them. I would like to avoid uploading the documents all the time and just straight query the existing corpus . Is this possible ?
Thank you so much!
Regards
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10081/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/10081/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10080
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10080/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10080/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10080/events
|
https://github.com/langchain-ai/langchain/issues/10080
| 1,876,911,576 |
I_kwDOIPDwls5v32XY
| 10,080 |
StructuredTool ainvoke isn't await parent class ainvoke
|
{
"login": "Toubat",
"id": 57741529,
"node_id": "MDQ6VXNlcjU3NzQxNTI5",
"avatar_url": "https://avatars.githubusercontent.com/u/57741529?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Toubat",
"html_url": "https://github.com/Toubat",
"followers_url": "https://api.github.com/users/Toubat/followers",
"following_url": "https://api.github.com/users/Toubat/following{/other_user}",
"gists_url": "https://api.github.com/users/Toubat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Toubat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Toubat/subscriptions",
"organizations_url": "https://api.github.com/users/Toubat/orgs",
"repos_url": "https://api.github.com/users/Toubat/repos",
"events_url": "https://api.github.com/users/Toubat/events{/privacy}",
"received_events_url": "https://api.github.com/users/Toubat/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 | 0 | 2023-09-01T07:36:50 | 2023-09-08T02:54:54 | 2023-09-08T02:54:54 |
NONE
| null |
[code pointer](https://github.com/langchain-ai/langchain/blob/74fcfed4e2bdd186c2869a07008175a9b66b1ed4/libs/langchain/langchain/tools/base.py#L588C16-L588C16)
In `langchain.tools.base`, change
```python
Class StructuredTool(BaseTool):
"""Tool that can operate on any number of inputs."""
description: str = ""
args_schema: Type[BaseModel] = Field(..., description="The tool schema.")
"""The input arguments' schema."""
func: Optional[Callable[..., Any]]
"""The function to run when the tool is called."""
coroutine: Optional[Callable[..., Awaitable[Any]]] = None
"""The asynchronous version of the function."""
# --- Runnable ---
async def ainvoke(
self,
input: Union[str, Dict],
config: Optional[RunnableConfig] = None,
**kwargs: Any,
) -> Any:
if not self.coroutine:
# If the tool does not implement async, fall back to default implementation
return await asyncio.get_running_loop().run_in_executor(
None, partial(self.invoke, input, config, **kwargs)
)
return super().ainvoke(input, config, **kwargs)
```
to
```python
Class StructuredTool(BaseTool):
"""Tool that can operate on any number of inputs."""
description: str = ""
args_schema: Type[BaseModel] = Field(..., description="The tool schema.")
"""The input arguments' schema."""
func: Optional[Callable[..., Any]]
"""The function to run when the tool is called."""
coroutine: Optional[Callable[..., Awaitable[Any]]] = None
"""The asynchronous version of the function."""
# --- Runnable ---
async def ainvoke(
self,
input: Union[str, Dict],
config: Optional[RunnableConfig] = None,
**kwargs: Any,
) -> Any:
if not self.coroutine:
# If the tool does not implement async, fall back to default implementation
return await asyncio.get_running_loop().run_in_executor(
None, partial(self.invoke, input, config, **kwargs)
)
return await super().ainvoke(input, config, **kwargs)
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10080/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/10080/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10079
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10079/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10079/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10079/events
|
https://github.com/langchain-ai/langchain/issues/10079
| 1,876,788,507 |
I_kwDOIPDwls5v3YUb
| 10,079 |
how to use PythonREPL tool to take dataframe and query
|
{
"login": "bmshambu",
"id": 46180328,
"node_id": "MDQ6VXNlcjQ2MTgwMzI4",
"avatar_url": "https://avatars.githubusercontent.com/u/46180328?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bmshambu",
"html_url": "https://github.com/bmshambu",
"followers_url": "https://api.github.com/users/bmshambu/followers",
"following_url": "https://api.github.com/users/bmshambu/following{/other_user}",
"gists_url": "https://api.github.com/users/bmshambu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bmshambu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bmshambu/subscriptions",
"organizations_url": "https://api.github.com/users/bmshambu/orgs",
"repos_url": "https://api.github.com/users/bmshambu/repos",
"events_url": "https://api.github.com/users/bmshambu/events{/privacy}",
"received_events_url": "https://api.github.com/users/bmshambu/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-01T05:51:51 | 2023-12-08T16:04:40 | 2023-12-08T16:04:39 |
NONE
| null |
### Issue you'd like to raise.
I need to use Python REPL tool to take data frame and user query and answer based on the data frame.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10079/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/10079/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10078
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10078/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10078/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10078/events
|
https://github.com/langchain-ai/langchain/issues/10078
| 1,876,763,580 |
I_kwDOIPDwls5v3SO8
| 10,078 |
ConversationTokenBufferMemory and ConversationSummaryBufferMemory does not work with db-backed histories
|
{
"login": "erunistic",
"id": 13029499,
"node_id": "MDQ6VXNlcjEzMDI5NDk5",
"avatar_url": "https://avatars.githubusercontent.com/u/13029499?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/erunistic",
"html_url": "https://github.com/erunistic",
"followers_url": "https://api.github.com/users/erunistic/followers",
"following_url": "https://api.github.com/users/erunistic/following{/other_user}",
"gists_url": "https://api.github.com/users/erunistic/gists{/gist_id}",
"starred_url": "https://api.github.com/users/erunistic/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erunistic/subscriptions",
"organizations_url": "https://api.github.com/users/erunistic/orgs",
"repos_url": "https://api.github.com/users/erunistic/repos",
"events_url": "https://api.github.com/users/erunistic/events{/privacy}",
"received_events_url": "https://api.github.com/users/erunistic/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"
}
] |
open
| false | null |
[] | null | 2 | 2023-09-01T05:28:56 | 2023-10-09T11:56:36 | null |
NONE
| null |
### System Info
the memories are pruned after saving using .pop(0). However, db-backed histories read messages and copies into list each turn. This makes it so that the actual db does not change at every turn, and so max_token_limit parameter gets ignored and the memory prints out the entire conversation for history.
### 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
- [X] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Initialize redis chat history
use redis chat history as chat_history for ConversationSummaryBufferMemory
set max_token_limit to 1.
Print history at every turn.
Still prints the entire history
### Expected behavior
Initialize redis chat history
use redis chat history as chat_history for ConversationSummaryBufferMemory
set max_token_limit to 1.
Print history at every turn.
Print nothing since max_token_limit = 0
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10078/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/10078/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10077
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10077/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10077/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10077/events
|
https://github.com/langchain-ai/langchain/issues/10077
| 1,876,736,736 |
I_kwDOIPDwls5v3Lrg
| 10,077 |
ElasticSearch authentication
|
{
"login": "Lishenga",
"id": 33782195,
"node_id": "MDQ6VXNlcjMzNzgyMTk1",
"avatar_url": "https://avatars.githubusercontent.com/u/33782195?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Lishenga",
"html_url": "https://github.com/Lishenga",
"followers_url": "https://api.github.com/users/Lishenga/followers",
"following_url": "https://api.github.com/users/Lishenga/following{/other_user}",
"gists_url": "https://api.github.com/users/Lishenga/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Lishenga/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Lishenga/subscriptions",
"organizations_url": "https://api.github.com/users/Lishenga/orgs",
"repos_url": "https://api.github.com/users/Lishenga/repos",
"events_url": "https://api.github.com/users/Lishenga/events{/privacy}",
"received_events_url": "https://api.github.com/users/Lishenga/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-01T05:07:53 | 2023-12-08T16:04:45 | 2023-12-08T16:04:44 |
NONE
| null |
### System Info
On the elasticsearch authentication, you have implemented it this way on the elasticsearch.py file found in the vectorstores folder
```py
if api_key:
connection_params["api_key"] = api_key
elif username and password:
connection_params["basic_auth"] = (username, password)
```
but i think it should be this way
```py
if api_key:
connection_params["api_key"] = api_key
elif username and password:
connection_params["http_auth"] = (username, password)
```
with that change the authentication succeeeds. What i have just changed is this connection_params["basic_auth"] = (username, password) to this connection_params["http_auth"] = (username, password)
### 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
Create an elasticsearch instance on an EC2 instance using docker that has SSL and also uses username and password and then try to authenticate to that elasticsearch instance using langchain you will see the error
### Expected behavior
The expected behavior is successfull authentication
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10077/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/10077/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10076
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10076/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10076/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10076/events
|
https://github.com/langchain-ai/langchain/pull/10076
| 1,876,599,890 |
PR_kwDOIPDwls5ZS7mW
| 10,076 |
fix typo in web_research.py
|
{
"login": "jmhayes3",
"id": 22490346,
"node_id": "MDQ6VXNlcjIyNDkwMzQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/22490346?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jmhayes3",
"html_url": "https://github.com/jmhayes3",
"followers_url": "https://api.github.com/users/jmhayes3/followers",
"following_url": "https://api.github.com/users/jmhayes3/following{/other_user}",
"gists_url": "https://api.github.com/users/jmhayes3/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jmhayes3/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jmhayes3/subscriptions",
"organizations_url": "https://api.github.com/users/jmhayes3/orgs",
"repos_url": "https://api.github.com/users/jmhayes3/repos",
"events_url": "https://api.github.com/users/jmhayes3/events{/privacy}",
"received_events_url": "https://api.github.com/users/jmhayes3/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T02:14:23 | 2023-09-01T05:19:04 | 2023-09-01T05:19:04 |
CONTRIBUTOR
| null |
fix spelling
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10076/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/10076/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10076",
"html_url": "https://github.com/langchain-ai/langchain/pull/10076",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10076.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10076.patch",
"merged_at": "2023-09-01T05:19:04"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10074
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10074/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10074/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10074/events
|
https://github.com/langchain-ai/langchain/pull/10074
| 1,876,514,876 |
PR_kwDOIPDwls5ZSooQ
| 10,074 |
use case docs reorder
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T01:02:35 | 2023-09-05T22:11:18 | 2023-09-05T22:11:16 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10074/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/10074/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10074",
"html_url": "https://github.com/langchain-ai/langchain/pull/10074",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10074.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10074.patch",
"merged_at": "2023-09-05T22:11:16"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10073
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10073/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10073/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10073/events
|
https://github.com/langchain-ai/langchain/pull/10073
| 1,876,503,478 |
PR_kwDOIPDwls5ZSmBh
| 10,073 |
Mv LCEL docs up a level
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-01T00:55:34 | 2023-09-01T15:20:56 | 2023-09-01T15:20:55 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10073/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/10073/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10073",
"html_url": "https://github.com/langchain-ai/langchain/pull/10073",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10073.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10073.patch",
"merged_at": "2023-09-01T15:20:55"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10072
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10072/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10072/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10072/events
|
https://github.com/langchain-ai/langchain/issues/10072
| 1,876,474,014 |
I_kwDOIPDwls5v2Lie
| 10,072 |
Receiving a unclear KeyError: 'error' when using Langchain HuggingFaceTextInference on Runpod GPU
|
{
"login": "axiom9",
"id": 88858159,
"node_id": "MDQ6VXNlcjg4ODU4MTU5",
"avatar_url": "https://avatars.githubusercontent.com/u/88858159?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/axiom9",
"html_url": "https://github.com/axiom9",
"followers_url": "https://api.github.com/users/axiom9/followers",
"following_url": "https://api.github.com/users/axiom9/following{/other_user}",
"gists_url": "https://api.github.com/users/axiom9/gists{/gist_id}",
"starred_url": "https://api.github.com/users/axiom9/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/axiom9/subscriptions",
"organizations_url": "https://api.github.com/users/axiom9/orgs",
"repos_url": "https://api.github.com/users/axiom9/repos",
"events_url": "https://api.github.com/users/axiom9/events{/privacy}",
"received_events_url": "https://api.github.com/users/axiom9/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-01T00:24:57 | 2023-12-08T16:04:50 | 2023-12-08T16:04:49 |
NONE
| null |
### System Info
Langchain version: `0.0278`
Python: `3.10`
Runpod version: `1.2.0`
I'm experiencing some issues when running Runpod (TGI gpu cloud) and langchain, primarily when I try to run the chain.
For reference, I'm using TheBloke/VicUnlocked-30B-LoRA-GPTQ model in TGI on Runpod A4500 GPU cloud.
I initialize the pod from the UI and connect to it with the runpod-python library (version 1.2.0) in my python 3.10 environment.
My prompt template is as follows:
```
prompt = PromptTemplate(
input_variables=['instruction','summary'],
template="""### Instruction:
{instruction}
### Input:
{summary}
### Response:
""")
```
The instruction is a simple instruction to extract relevant insights from a summary. My LLM is instantiated as such:
inference_server_url = f'https://{pod["id"]}-{port}.proxy.runpod.net' ### note: the pod and port is defined previously.
llm = HuggingFaceTextGenInference(inference_server_url=inference_server_url)
And I am trying to run the model as such:
```
summary = ... # summary here
instruction = ... #instruction here
chain.run({"instruction": instruction, "summary": summary}) #**_Note: Error occurs from this line!!_**
```
But I get this error:
```
File ~/anaconda3/envs/py310/lib/python3.10/site-packages/langchain/chains/base.py:282, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, include_run_info)
280 except (KeyboardInterrupt, Exception) as e:
281 run_manager.on_chain_error(e)
--> 282 raise e
283 run_manager.on_chain_end(outputs)
284 final_outputs: Dict[str, Any] = self.prep_outputs(
285 inputs, outputs, return_only_outputs
...
---> 81 message = payload["error"]
82 if "error_type" in payload:
83 error_type = payload["error_type"]
KeyError: 'error'
```
Any ideas?
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [X] Callbacks/Tracing
- [ ] Async
### Reproduction
My prompt template is as follows:
prompt = PromptTemplate(
input_variables=['instruction','summary'],
template="""### Instruction:
{instruction}
### Input:
{summary}
### Response:
""")
The instruction is a simple instruction to extract relevant insights from a summary. My LLM is instantiated as such:
inference_server_url = f'https://{pod["id"]}-{port}.proxy.runpod.net' ### note: the pod and port is defined previously.
llm = HuggingFaceTextGenInference(inference_server_url=inference_server_url)
And I am trying to run the model as such:
summary = ... # summary here
instruction = ... #instruction here
chain.run({"instruction": instruction, "summary": summary})
And then running chain.run I get the error as mentioned above.
### Expected behavior
What's expected is that I should be receiving the output from the runpod GPU cloud that is hosting the model, as per this guide that I am following:
https://colab.research.google.com/drive/10BJcKRBtMlpm2hsS2antarSRgEQY3AQq#scrollTo=lyVYLW2thTMg
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10072/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/10072/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10071
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10071/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10071/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10071/events
|
https://github.com/langchain-ai/langchain/pull/10071
| 1,876,449,621 |
PR_kwDOIPDwls5ZSapt
| 10,071 |
add repr for not serializable
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-31T23:51:16 | 2023-09-01T16:18:34 | 2023-09-01T16:18:33 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10071/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/10071/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10071",
"html_url": "https://github.com/langchain-ai/langchain/pull/10071",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10071.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10071.patch",
"merged_at": "2023-09-01T16:18:33"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10070
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10070/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10070/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10070/events
|
https://github.com/langchain-ai/langchain/pull/10070
| 1,876,399,968 |
PR_kwDOIPDwls5ZSQZl
| 10,070 |
Comprehend Moderation 0.1
|
{
"login": "nikhilkjha",
"id": 48101485,
"node_id": "MDQ6VXNlcjQ4MTAxNDg1",
"avatar_url": "https://avatars.githubusercontent.com/u/48101485?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nikhilkjha",
"html_url": "https://github.com/nikhilkjha",
"followers_url": "https://api.github.com/users/nikhilkjha/followers",
"following_url": "https://api.github.com/users/nikhilkjha/following{/other_user}",
"gists_url": "https://api.github.com/users/nikhilkjha/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nikhilkjha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nikhilkjha/subscriptions",
"organizations_url": "https://api.github.com/users/nikhilkjha/orgs",
"repos_url": "https://api.github.com/users/nikhilkjha/repos",
"events_url": "https://api.github.com/users/nikhilkjha/events{/privacy}",
"received_events_url": "https://api.github.com/users/nikhilkjha/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 5 | 2023-08-31T22:35:13 | 2023-09-01T23:01:28 | 2023-09-01T23:01:06 |
CONTRIBUTOR
| null |
This PR streamlines the #9665 configuration object and logic to enable chain moderation via the Amazon Comprehend service, allowing you to detect and redact PII, Toxic, and Intent information in the LLM prompt or answer.
This implementation simplifies the configuration and types it to specific class/model.
### Usage sample
```python
from langchain_experimental.comprehend_moderation import (BaseModerationConfig,
ModerationIntentConfig,
ModerationPiiConfig,
ModerationToxicityConfig
)
pii_config = ModerationPiiConfig(
labels=["SSN"],
redact=True,
mask_character="X"
)
toxicity_config = ModerationToxicityConfig(
threshold=0.5
)
intent_config = ModerationIntentConfig(
threshold=0.5
)
moderation_config = BaseModerationConfig(
filters=[pii_config, toxicity_config, intent_config]
)
comp_moderation_with_config = AmazonComprehendModerationChain(
moderation_config=moderation_config, #specify the configuration
client=comprehend_client, #optionally pass the Boto3 Client
verbose=True
)
template = """Question: {question}
Answer:"""
prompt = PromptTemplate(template=template, input_variables=["question"])
responses = [
"Final Answer: A credit card number looks like 1289-2321-1123-2387. A fake SSN number looks like 323-22-9980. John Doe's phone number is (999)253-9876.",
"Final Answer: This is a really shitty way of constructing a birdhouse. This is fucking insane to think that any birds would actually create their motherfucking nests here."
]
llm = FakeListLLM(responses=responses)
llm_chain = LLMChain(prompt=prompt, llm=llm)
chain = (
prompt
| comp_moderation_with_config
| {llm_chain.input_keys[0]: lambda x: x['output'] }
| llm_chain
| { "input": lambda x: x['text'] }
| comp_moderation_with_config
)
try:
response = chain.invoke({"question": "A sample SSN number looks like this 123-456-7890. Can you give me some more samples?"})
except Exception as e:
print(str(e))
else:
print(response['output'])
```
### Output
```python
> Entering new AmazonComprehendModerationChain chain...
Running AmazonComprehendModerationChain...
Running pii Validation...
Running toxicity Validation...
Running intent Validation...
> Finished chain.
> Entering new AmazonComprehendModerationChain chain...
Running AmazonComprehendModerationChain...
Running pii Validation...
Running toxicity Validation...
Running intent Validation...
> Finished chain.
Final Answer: A credit card number looks like 1289-2321-1123-2387. A fake SSN number looks like XXXXXXXXXXXX John Doe's phone number is (999)253-9876.
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10070/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/10070/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10070",
"html_url": "https://github.com/langchain-ai/langchain/pull/10070",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10070.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10070.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10069
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10069/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10069/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10069/events
|
https://github.com/langchain-ai/langchain/pull/10069
| 1,876,339,860 |
PR_kwDOIPDwls5ZSDex
| 10,069 |
Add example of running Q&A over structured data using the `Airbyte` loaders and `pandas`
|
{
"login": "homanp",
"id": 2464556,
"node_id": "MDQ6VXNlcjI0NjQ1NTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/2464556?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/homanp",
"html_url": "https://github.com/homanp",
"followers_url": "https://api.github.com/users/homanp/followers",
"following_url": "https://api.github.com/users/homanp/following{/other_user}",
"gists_url": "https://api.github.com/users/homanp/gists{/gist_id}",
"starred_url": "https://api.github.com/users/homanp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/homanp/subscriptions",
"organizations_url": "https://api.github.com/users/homanp/orgs",
"repos_url": "https://api.github.com/users/homanp/repos",
"events_url": "https://api.github.com/users/homanp/events{/privacy}",
"received_events_url": "https://api.github.com/users/homanp/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 4 | 2023-08-31T21:27:33 | 2023-09-03T21:32:33 | 2023-09-03T21:32:33 |
CONTRIBUTOR
| null |
- Description: Added example of running Q&A over structured data using the `Airbyte` loaders and `pandas`
- Dependencies: any dependencies required for this change,
- Tag maintainer: @hwchase17
- Twitter handle: @pelaseyed
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10069/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/10069/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10069",
"html_url": "https://github.com/langchain-ai/langchain/pull/10069",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10069.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10069.patch",
"merged_at": "2023-09-03T21:32:33"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10067
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10067/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10067/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10067/events
|
https://github.com/langchain-ai/langchain/pull/10067
| 1,876,237,758 |
PR_kwDOIPDwls5ZRs6R
| 10,067 |
feat: Add `ApifyWrapper` class
|
{
"login": "jirimoravcik",
"id": 951187,
"node_id": "MDQ6VXNlcjk1MTE4Nw==",
"avatar_url": "https://avatars.githubusercontent.com/u/951187?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jirimoravcik",
"html_url": "https://github.com/jirimoravcik",
"followers_url": "https://api.github.com/users/jirimoravcik/followers",
"following_url": "https://api.github.com/users/jirimoravcik/following{/other_user}",
"gists_url": "https://api.github.com/users/jirimoravcik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jirimoravcik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jirimoravcik/subscriptions",
"organizations_url": "https://api.github.com/users/jirimoravcik/orgs",
"repos_url": "https://api.github.com/users/jirimoravcik/repos",
"events_url": "https://api.github.com/users/jirimoravcik/events{/privacy}",
"received_events_url": "https://api.github.com/users/jirimoravcik/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 3 | 2023-08-31T20:16:02 | 2023-08-31T22:49:28 | 2023-08-31T22:47:44 |
CONTRIBUTOR
| null |
If you look at documentation https://python.langchain.com/docs/integrations/tools/apify (or the actual file https://github.com/langchain-ai/langchain/blob/master/docs/extras/integrations/tools/apify.ipynb ), there's a class `ApifyWrapper` mentioned. It seems it got lost in some refactoring, i.e. it does not exist in the codebase ATM.
I just propose to add it back.
It would fix issues e.g. https://github.com/langchain-ai/langchain/issues/8307 or https://github.com/langchain-ai/langchain/issues/8201
To add, Apify is a wanted integration, e.g. see https://twitter.com/hwchase17/status/1695490295914545626 or https://twitter.com/hwchase17/status/1695470765343461756
Lastly, I offer taking ownership of the Apify-related parts of the codebase, so you can tag me if anything is needed.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10067/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/10067/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10067",
"html_url": "https://github.com/langchain-ai/langchain/pull/10067",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10067.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10067.patch",
"merged_at": "2023-08-31T22:47:44"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10066
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10066/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10066/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10066/events
|
https://github.com/langchain-ai/langchain/pull/10066
| 1,876,111,036 |
PR_kwDOIPDwls5ZRRRv
| 10,066 |
docs: agents & callbacks fixes
|
{
"login": "seamusp",
"id": 22579106,
"node_id": "MDQ6VXNlcjIyNTc5MTA2",
"avatar_url": "https://avatars.githubusercontent.com/u/22579106?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/seamusp",
"html_url": "https://github.com/seamusp",
"followers_url": "https://api.github.com/users/seamusp/followers",
"following_url": "https://api.github.com/users/seamusp/following{/other_user}",
"gists_url": "https://api.github.com/users/seamusp/gists{/gist_id}",
"starred_url": "https://api.github.com/users/seamusp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/seamusp/subscriptions",
"organizations_url": "https://api.github.com/users/seamusp/orgs",
"repos_url": "https://api.github.com/users/seamusp/repos",
"events_url": "https://api.github.com/users/seamusp/events{/privacy}",
"received_events_url": "https://api.github.com/users/seamusp/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 3 | 2023-08-31T18:54:25 | 2023-09-01T20:34:33 | 2023-09-01T20:28:55 |
CONTRIBUTOR
| null |
Various improvements to the Agents & Callbacks sections of the documentation including formatting, spelling, and grammar fixes to improve readability.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10066/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/10066/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10066",
"html_url": "https://github.com/langchain-ai/langchain/pull/10066",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10066.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10066.patch",
"merged_at": "2023-09-01T20:28:55"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10065
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10065/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10065/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10065/events
|
https://github.com/langchain-ai/langchain/issues/10065
| 1,876,055,791 |
I_kwDOIPDwls5v0lbv
| 10,065 |
SupabaseVectorStore: Error thrown when calling similarity_search_by_vector_with_relevance_scores
|
{
"login": "anthonyjacquelin",
"id": 39488794,
"node_id": "MDQ6VXNlcjM5NDg4Nzk0",
"avatar_url": "https://avatars.githubusercontent.com/u/39488794?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/anthonyjacquelin",
"html_url": "https://github.com/anthonyjacquelin",
"followers_url": "https://api.github.com/users/anthonyjacquelin/followers",
"following_url": "https://api.github.com/users/anthonyjacquelin/following{/other_user}",
"gists_url": "https://api.github.com/users/anthonyjacquelin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/anthonyjacquelin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/anthonyjacquelin/subscriptions",
"organizations_url": "https://api.github.com/users/anthonyjacquelin/orgs",
"repos_url": "https://api.github.com/users/anthonyjacquelin/repos",
"events_url": "https://api.github.com/users/anthonyjacquelin/events{/privacy}",
"received_events_url": "https://api.github.com/users/anthonyjacquelin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 6 | 2023-08-31T18:18:02 | 2023-12-07T16:05:15 | 2023-12-07T16:05:14 |
NONE
| null |
### System Info
### Error
I am using **Supabase Vector Store**:
```python
embeddings = OpenAIEmbeddings()
vectorstore_public = SupabaseVectorStore(
client=supabase_client,
embedding=embeddings,
table_name="documents",
query_name="match_documents",
)
```
And crawling pages from internet using the `WebResearchRetriever`
But, in `WebResearchRetriever._get_relevant_documents`
```python
# Search for relevant splits
# TODO: make this async
logger.info("Grabbing most relevant splits from urls...")
docs = []
for query in questions:
docs.extend(self.vectorstore.similarity_search(query))
```
The `vectorstore.similarity_search` guides to an rpc call using the `SupabaseVectorStore`
```python
def similarity_search_by_vector_with_relevance_scores(
self, query: List[float], k: int, filter: Optional[Dict[str, Any]] = None
) -> List[Tuple[Document, float]]:
match_documents_params = self.match_args(query, k, filter)
print("match_documents_params", match_documents_params)
print("self.query_name", self.query_name)
res = self._client.rpc(self.query_name, match_documents_params).execute() # here is where the error is thrown
print("res", res)
match_result = [
(
Document(
metadata=search.get("metadata", {}), # type: ignore
page_content=search.get("content", ""),
),
search.get("similarity", 0.0),
)
for search in res.data
if search.get("content")
]
return match_result
```
Error thrown:
```python
File "/lib/python3.10/site-packages/postgrest/_sync/request_builder.py", line 68, in execute
raise APIError(r.json())
postgrest.exceptions.APIError: {'code': '42804', 'details': 'Returned type text does not match expected type bigint in column 1.', 'hint': None, 'message': 'structure of query does not match function result type'}
```
Complete Traceback
```python
Traceback (most recent call last):
File "/lib/python3.10/site-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "/lib/python3.10/site-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/lib/python3.10/site-packages/flask_cors/extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/app.py", line 143, in complete
answer = completion(message)
File "/methods/content_completion.py", line 15, in completion
sources = web_explorer(blog_topic)
File "/methods/web_explorer.py", line 93, in web_explorer
result = retrieve_answer_and_sources(question, llm, web_retriever)
File "/methods/web_explorer.py", line 80, in retrieve_answer_and_sources
return qa_chain({"question": question}, return_only_outputs=True)
File "/lib/python3.10/site-packages/langchain/chains/base.py", line 288, in __call__
raise e
File "/lib/python3.10/site-packages/langchain/chains/base.py", line 282, in __call__
self._call(inputs, run_manager=run_manager)
File "/lib/python3.10/site-packages/langchain/chains/qa_with_sources/base.py", line 151, in _call
docs = self._get_docs(inputs, run_manager=_run_manager)
File "/lib/python3.10/site-packages/langchain/chains/qa_with_sources/retrieval.py", line 50, in _get_docs
docs = self.retriever.get_relevant_documents(
File "/lib/python3.10/site-packages/langchain/schema/retriever.py", line 208, in get_relevant_documents
raise e
File "/lib/python3.10/site-packages/langchain/schema/retriever.py", line 201, in get_relevant_documents
result = self._get_relevant_documents(
File "/methods/retrievers.py", line 252, in _get_relevant_documents
docs.extend(self.vectorstore.similarity_search(query))
File "/lib/python3.10/site-packages/langchain/vectorstores/supabase.py", line 172, in similarity_search
return self.similarity_search_by_vector(
File "/lib/python3.10/site-packages/langchain/vectorstores/supabase.py", line 183, in similarity_search_by_vector
result = self.similarity_search_by_vector_with_relevance_scores(
File "/lib/python3.10/site-packages/langchain/vectorstores/supabase.py", line 217, in similarity_search_by_vector_with_relevance_scores
res = self._client.rpc(self.query_name, match_documents_params).execute()
File "/lib/python3.10/site-packages/postgrest/_sync/request_builder.py", line 68, in execute
raise APIError(r.json())
postgrest.exceptions.APIError: {'code': '42804', 'details': 'Returned type text does not match expected type bigint in column 1.', 'hint': None, 'message': 'structure of query does not match function result type'}
```
requirements.txt to reproduce:
```
aiohttp==3.8.5
aiosignal==1.3.1
anyio==4.0.0
async-timeout==4.0.3
attrs==23.1.0
azure-core==1.29.3
backoff==2.2.1
bcrypt==4.0.1
beautifulsoup4==4.12.2
bleach==6.0.0
blinker==1.6.2
cachetools==5.3.1
certifi==2023.7.22
chardet==5.2.0
charset-normalizer==3.2.0
chroma-hnswlib==0.7.2
chromadb==0.4.8
click==8.1.7
click-log==0.4.0
colorama==0.4.6
coloredlogs==15.0.1
dataclasses-json==0.5.14
deprecation==2.1.0
dnspython==2.4.2
docutils==0.20.1
dotty-dict==1.3.1
emoji==2.8.0
exceptiongroup==1.1.3
fastapi==0.99.1
filetype==1.2.0
Flask==2.3.3
Flask-Cors==4.0.0
flatbuffers==23.5.26
frozenlist==1.4.0
gitdb==4.0.10
GitPython==3.1.32
google-api-core==2.11.1
google-api-python-client==2.97.0
google-auth==2.22.0
google-auth-httplib2==0.1.0
googleapis-common-protos==1.60.0
gotrue==1.0.4
h11==0.14.0
html-sanitizer==2.2.0
httpcore==0.16.3
httplib2==0.22.0
httptools==0.6.0
httpx==0.23.3
humanfriendly==10.0
idna==3.4
importlib-metadata==6.8.0
importlib-resources==6.0.1
invoke==1.7.3
itsdangerous==2.1.2
jaraco.classes==3.3.0
Jinja2==3.1.2
joblib==1.3.2
keyring==24.2.0
langchain==0.0.277
langsmith==0.0.30
lxml==4.9.3
Markdown==3.4.4
MarkupSafe==2.1.3
marshmallow==3.20.1
monotonic==1.6
more-itertools==10.1.0
mpmath==1.3.0
multidict==6.0.4
mypy-extensions==1.0.0
nltk==3.8.1
numexpr==2.8.5
numpy==1.25.2
onnxruntime==1.15.1
openai==0.27.10
outcome==1.2.0
overrides==7.4.0
packaging==23.1
pkginfo==1.9.6
postgrest==0.10.6
posthog==3.0.2
protobuf==4.24.2
pulsar-client==3.3.0
pyasn1==0.5.0
pyasn1-modules==0.3.0
pydantic==1.10.12
Pygments==2.16.1
pymongo==4.5.0
pyparsing==3.1.1
PyPika==0.48.9
PySocks==1.7.1
python-dateutil==2.8.2
python-dotenv==1.0.0
python-gitlab==3.15.0
python-magic==0.4.27
python-semantic-release==7.33.2
PyYAML==6.0.1
readme-renderer==41.0
realtime==1.0.0
regex==2023.8.8
requests==2.31.0
requests-toolbelt==1.0.0
rfc3986==1.5.0
rsa==4.9
selenium==4.11.2
semver==2.13.0
six==1.16.0
smmap==5.0.0
sniffio==1.3.0
sortedcontainers==2.4.0
soupsieve==2.4.1
SQLAlchemy==2.0.20
starlette==0.27.0
storage3==0.5.3
StrEnum==0.4.15
supabase==1.0.3
supafunc==0.2.2
sympy==1.12
tabulate==0.9.0
tenacity==8.2.3
tiktoken==0.4.0
tokenizers==0.13.3
tomlkit==0.12.1
tqdm==4.66.1
trio==0.22.2
trio-websocket==0.10.3
twine==3.8.0
typing-inspect==0.9.0
typing_extensions==4.7.1
unstructured==0.10.10
uritemplate==4.1.1
urllib3==1.26.16
uvicorn==0.23.2
uvloop==0.17.0
waitress==2.1.2
watchfiles==0.20.0
webencodings==0.5.1
websockets==10.4
Werkzeug==2.3.7
wsproto==1.2.0
yarl==1.9.2
zipp==3.16.2
```
### 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
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Code from this repo: https://github.com/langchain-ai/web-explorer/blob/main/web_explorer.py
But instead of faiss, use `SupabaseVectorStore` as above.
### Expected behavior
Is it coming from the config of my table on Supabase, as i get: `Returned type text does not match expected type bigint in column 1.` or wherever else ?
<img width="1176" alt="Capture d’écran 2023-08-31 à 20 15 58" src="https://github.com/langchain-ai/langchain/assets/39488794/743d9cd9-fa30-474d-88ce-288e85c50e71">
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10065/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/10065/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10064
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10064/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10064/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10064/events
|
https://github.com/langchain-ai/langchain/issues/10064
| 1,876,055,216 |
I_kwDOIPDwls5v0lSw
| 10,064 |
Add SelfQueryRetriever support for Redis Vector Stores
|
{
"login": "RoderickVM",
"id": 64725908,
"node_id": "MDQ6VXNlcjY0NzI1OTA4",
"avatar_url": "https://avatars.githubusercontent.com/u/64725908?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RoderickVM",
"html_url": "https://github.com/RoderickVM",
"followers_url": "https://api.github.com/users/RoderickVM/followers",
"following_url": "https://api.github.com/users/RoderickVM/following{/other_user}",
"gists_url": "https://api.github.com/users/RoderickVM/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RoderickVM/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RoderickVM/subscriptions",
"organizations_url": "https://api.github.com/users/RoderickVM/orgs",
"repos_url": "https://api.github.com/users/RoderickVM/repos",
"events_url": "https://api.github.com/users/RoderickVM/events{/privacy}",
"received_events_url": "https://api.github.com/users/RoderickVM/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5955630415,
"node_id": "LA_kwDOIPDwls8AAAABYvu1Tw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis",
"name": "integration: redis",
"color": "F9D0C4",
"default": false,
"description": "Any integration that uses Redis"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-31T18:17:38 | 2023-09-12T22:30:38 | 2023-09-12T22:30:38 |
NONE
| null |
### Feature request
Implement Self Query retriever to Redis vector stores.
### Motivation
I was trying the different retrievers for my project (AI chatbot that answers various human resources and labor law questions based on a dataset built from complete local labor legislation, company handbooks, job descriptions and SOPs).
I plan to deploy this chatbot in a production environment, therefore I chose Redis (for its robustness and speed) as a vector store.
### Your contribution
I am not a pro developer; so, unfortunately, the only contributions I can make is limited to "real-world" testing.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10064/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/10064/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10062
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10062/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10062/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10062/events
|
https://github.com/langchain-ai/langchain/pull/10062
| 1,876,018,689 |
PR_kwDOIPDwls5ZQ86j
| 10,062 |
Data anonymizer notebook nit
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-31T17:53:59 | 2023-08-31T17:58:14 | 2023-08-31T17:58:13 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10062/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/10062/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10062",
"html_url": "https://github.com/langchain-ai/langchain/pull/10062",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10062.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10062.patch",
"merged_at": "2023-08-31T17:58:13"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10061
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10061/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10061/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10061/events
|
https://github.com/langchain-ai/langchain/issues/10061
| 1,876,017,939 |
I_kwDOIPDwls5v0cMT
| 10,061 |
CustomLLM when called inside agent does not return custom behaviour
|
{
"login": "daniellefranca96",
"id": 134293046,
"node_id": "U_kgDOCAEmNg",
"avatar_url": "https://avatars.githubusercontent.com/u/134293046?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/daniellefranca96",
"html_url": "https://github.com/daniellefranca96",
"followers_url": "https://api.github.com/users/daniellefranca96/followers",
"following_url": "https://api.github.com/users/daniellefranca96/following{/other_user}",
"gists_url": "https://api.github.com/users/daniellefranca96/gists{/gist_id}",
"starred_url": "https://api.github.com/users/daniellefranca96/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/daniellefranca96/subscriptions",
"organizations_url": "https://api.github.com/users/daniellefranca96/orgs",
"repos_url": "https://api.github.com/users/daniellefranca96/repos",
"events_url": "https://api.github.com/users/daniellefranca96/events{/privacy}",
"received_events_url": "https://api.github.com/users/daniellefranca96/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-31T17:53:26 | 2023-12-07T16:05:20 | 2023-12-07T16:05:19 |
NONE
| null |
### System Info
Langchain 0.0.276
Windows
Python 3.11.4
I create a custom llm just like in the tutorial but when i use it on a mkrl agent it does not return to the agent the custom response.
I printed insided my agent and it is called and returns the correct answer, but the agent in the end of line does not get this answer.
### Who can help?
@hwchase17
@agola11
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
https://colab.research.google.com/drive/1cHVx3GlzmF4ECV_63ZjlrMPt8P840GSw?usp=sharing
### Expected behavior
The expected behaviour is the agent to receive the response of the CustomLLM.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10061/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/10061/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10060
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10060/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10060/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10060/events
|
https://github.com/langchain-ai/langchain/issues/10060
| 1,875,918,071 |
I_kwDOIPDwls5v0Dz3
| 10,060 |
TypeError: multiple bases have instance lay-out conflict
|
{
"login": "himswamy",
"id": 32672046,
"node_id": "MDQ6VXNlcjMyNjcyMDQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/32672046?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/himswamy",
"html_url": "https://github.com/himswamy",
"followers_url": "https://api.github.com/users/himswamy/followers",
"following_url": "https://api.github.com/users/himswamy/following{/other_user}",
"gists_url": "https://api.github.com/users/himswamy/gists{/gist_id}",
"starred_url": "https://api.github.com/users/himswamy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/himswamy/subscriptions",
"organizations_url": "https://api.github.com/users/himswamy/orgs",
"repos_url": "https://api.github.com/users/himswamy/repos",
"events_url": "https://api.github.com/users/himswamy/events{/privacy}",
"received_events_url": "https://api.github.com/users/himswamy/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 6 | 2023-08-31T17:02:38 | 2023-12-11T16:05:28 | 2023-12-11T16:05:27 |
NONE
| null |
### System Info
Langchain version -- 0.0.277
python verion -- 3.8.8
window platform
### Who can help?
@hwchase17
@agola11
Hi I am not able to run any of the langchain syntex on my windows laptop. For example if I just run from **langchain.llms import OpenAI** I get the below error message. Can you please help!
TypeError Traceback (most recent call last)
<ipython-input-3-5af9a0f5ffa4> in <module>
1 import os
2 from dotenv import load_dotenv
----> 3 from langchain.llms import OpenAI
~\Anaconda3\lib\site-packages\langchain\__init__.py in <module>
4 from typing import Optional
5
----> 6 from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain
7 from langchain.chains import (
8 ConversationChain,
~\Anaconda3\lib\site-packages\langchain\agents\__init__.py in <module>
29
30 """ # noqa: E501
---> 31 from langchain.agents.agent import (
32 Agent,
33 AgentExecutor,
~\Anaconda3\lib\site-packages\langchain\agents\agent.py in <module>
12 import yaml
13
---> 14 from langchain.agents.agent_iterator import AgentExecutorIterator
15 from langchain.agents.agent_types import AgentType
16 from langchain.agents.tools import InvalidTool
~\Anaconda3\lib\site-packages\langchain\agents\agent_iterator.py in <module>
19 )
20
---> 21 from langchain.callbacks.manager import (
22 AsyncCallbackManager,
23 AsyncCallbackManagerForChainRun,
~\Anaconda3\lib\site-packages\langchain\callbacks\__init__.py in <module>
8 """
9
---> 10 from langchain.callbacks.aim_callback import AimCallbackHandler
11 from langchain.callbacks.argilla_callback import ArgillaCallbackHandler
12 from langchain.callbacks.arize_callback import ArizeCallbackHandler
~\Anaconda3\lib\site-packages\langchain\callbacks\aim_callback.py in <module>
3
4 from langchain.callbacks.base import BaseCallbackHandler
----> 5 from langchain.schema import AgentAction, AgentFinish, LLMResult
6
7
~\Anaconda3\lib\site-packages\langchain\schema\__init__.py in <module>
1 """**Schemas** are the LangChain Base Classes and Interfaces."""
2 from langchain.schema.agent import AgentAction, AgentFinish
----> 3 from langchain.schema.cache import BaseCache
4 from langchain.schema.chat_history import BaseChatMessageHistory
5 from langchain.schema.document import BaseDocumentTransformer, Document
~\Anaconda3\lib\site-packages\langchain\schema\cache.py in <module>
4 from typing import Any, Optional, Sequence
5
----> 6 from langchain.schema.output import Generation
7
8 RETURN_VAL_TYPE = Sequence[Generation]
~\Anaconda3\lib\site-packages\langchain\schema\output.py in <module>
7 from langchain.load.serializable import Serializable
8 from langchain.pydantic_v1 import BaseModel, root_validator
----> 9 from langchain.schema.messages import BaseMessage, BaseMessageChunk
10
11
~\Anaconda3\lib\site-packages\langchain\schema\messages.py in <module>
146
147
--> 148 class HumanMessageChunk(HumanMessage, BaseMessageChunk):
149 """A Human Message chunk."""
150
~\Anaconda3\lib\site-packages\pydantic\main.cp38-win_amd64.pyd in pydantic.main.ModelMetaclass.__new__()
~\Anaconda3\lib\abc.py in __new__(mcls, name, bases, namespace, **kwargs)
83 """
84 def __new__(mcls, name, bases, namespace, **kwargs):
---> 85 cls = super().__new__(mcls, name, bases, namespace, **kwargs)
86 _abc_init(cls)
87 return cls
TypeError: multiple bases have instance lay-out conflict
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
!pip -q install openai langchain huggingface_hub
import openai
import dotenv
import os
os.environ['OPENAI_API_KEY'] = ' ... '
from langchain.llms import OpenAI
### Expected behavior
Should be able to run without error
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10060/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/10060/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10059
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10059/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10059/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10059/events
|
https://github.com/langchain-ai/langchain/issues/10059
| 1,875,877,282 |
I_kwDOIPDwls5vz52i
| 10,059 |
max_marginal_relevance_search not implemented in Redis
|
{
"login": "RoderickVM",
"id": 64725908,
"node_id": "MDQ6VXNlcjY0NzI1OTA4",
"avatar_url": "https://avatars.githubusercontent.com/u/64725908?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RoderickVM",
"html_url": "https://github.com/RoderickVM",
"followers_url": "https://api.github.com/users/RoderickVM/followers",
"following_url": "https://api.github.com/users/RoderickVM/following{/other_user}",
"gists_url": "https://api.github.com/users/RoderickVM/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RoderickVM/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RoderickVM/subscriptions",
"organizations_url": "https://api.github.com/users/RoderickVM/orgs",
"repos_url": "https://api.github.com/users/RoderickVM/repos",
"events_url": "https://api.github.com/users/RoderickVM/events{/privacy}",
"received_events_url": "https://api.github.com/users/RoderickVM/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 4 | 2023-08-31T16:34:30 | 2023-09-12T22:31:16 | 2023-09-12T22:31:16 |
NONE
| null |
### System Info
LangChain version: 0.0.276
Python version: 3.11.2
Platform: x86_64 Debian 12.2.0-14
### 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
```python
import os, openai
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.vectorstores import Redis
embeddings = OpenAIEmbeddings()
rds = Redis.from_existing_index(
embeddings,
index_name = INDEX_NAME,
schema = "redis_schema_kws.yaml",
redis_url = "redis://10.0.1.21:6379",
)
returned_docs_mmr = rds.max_marginal_relevance_search(question, k=3, fetch_k=3, lambda_mult=0.8)
```
The returned error message is: `NotImplementedError:`
Could you provide additional information on your ETA to have MMR search implemented in Redis?
### Expected behavior
Retrieve the Document objects.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10059/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/10059/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10058
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10058/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10058/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10058/events
|
https://github.com/langchain-ai/langchain/pull/10058
| 1,875,872,227 |
PR_kwDOIPDwls5ZQcL8
| 10,058 |
add async support for 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
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-31T16:30:41 | 2023-08-31T23:52:06 | 2023-08-31T23:52:05 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10058/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/10058/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10058",
"html_url": "https://github.com/langchain-ai/langchain/pull/10058",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10058.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10058.patch",
"merged_at": "2023-08-31T23:52:05"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10057
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10057/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10057/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10057/events
|
https://github.com/langchain-ai/langchain/issues/10057
| 1,875,844,490 |
I_kwDOIPDwls5vzx2K
| 10,057 |
PydanticOutputParser failing to parse basic string into JSON
|
{
"login": "benjaminb",
"id": 16549297,
"node_id": "MDQ6VXNlcjE2NTQ5Mjk3",
"avatar_url": "https://avatars.githubusercontent.com/u/16549297?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/benjaminb",
"html_url": "https://github.com/benjaminb",
"followers_url": "https://api.github.com/users/benjaminb/followers",
"following_url": "https://api.github.com/users/benjaminb/following{/other_user}",
"gists_url": "https://api.github.com/users/benjaminb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/benjaminb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benjaminb/subscriptions",
"organizations_url": "https://api.github.com/users/benjaminb/orgs",
"repos_url": "https://api.github.com/users/benjaminb/repos",
"events_url": "https://api.github.com/users/benjaminb/events{/privacy}",
"received_events_url": "https://api.github.com/users/benjaminb/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 7 | 2023-08-31T16:12:05 | 2024-01-03T08:52:32 | null |
NONE
| null |
### System Info
Given a string resembling a JSON-string array, such as I'm often getting from LLM completions, I'm trying to convert the string to a Python list of strings. I'm finding the the `PydanticOutputParser` is throwing an error when plain old `json.loads` with `strict=False` is doing fine.
### 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
- [X] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
For example this code:
```python
from langchain.output_parsers import PydanticOutputParser
from pydantic import BaseModel, Field
import json
class Lines(BaseModel):
lines: list[str] = Field(description="array of strings")
line_parser = PydanticOutputParser(pydantic_object=Lines)
lines = '[\n "line 1",\n "line 2"\n]'
print("Just JSON:")
print(json.loads(lines, strict=False))
print("LangChain Pydantic:")
print(line_parser.parse(lines))
```
produces the following output:
```sh
Just JSON:
['line 1', 'line 2']
LangChain Pydantic:
Traceback (most recent call last):
File "/opt/miniconda3/envs/gt/lib/python3.10/site-packages/langchain/output_parsers/pydantic.py", line 27, in parse
json_object = json.loads(json_str, strict=False)
File "/opt/miniconda3/envs/gt/lib/python3.10/json/__init__.py", line 359, in loads
return cls(**kw).decode(s)
File "/opt/miniconda3/envs/gt/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/miniconda3/envs/gt/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/benjaminbasseri/Dropbox/Work/GT Schools/scratch work/meme-generation/parse_test.py", line 14, in <module>
print(line_parser.parse(lines))
File "/opt/miniconda3/envs/gt/lib/python3.10/site-packages/langchain/output_parsers/pydantic.py", line 33, in parse
raise OutputParserException(msg, llm_output=text)
langchain.schema.output_parser.OutputParserException: Failed to parse Lines from completion [
"line 1",
"line 2"
]. Got: Expecting value: line 1 column 1 (char 0)
```
### Expected behavior
I would expect the parser to be able to handle a simple case like this
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10057/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/10057/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10056
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10056/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10056/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10056/events
|
https://github.com/langchain-ai/langchain/pull/10056
| 1,875,844,026 |
PR_kwDOIPDwls5ZQWFT
| 10,056 |
Fixing _InactiveRpcError in MatchingEngine vectorstore
|
{
"login": "bourliam",
"id": 29543919,
"node_id": "MDQ6VXNlcjI5NTQzOTE5",
"avatar_url": "https://avatars.githubusercontent.com/u/29543919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bourliam",
"html_url": "https://github.com/bourliam",
"followers_url": "https://api.github.com/users/bourliam/followers",
"following_url": "https://api.github.com/users/bourliam/following{/other_user}",
"gists_url": "https://api.github.com/users/bourliam/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bourliam/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bourliam/subscriptions",
"organizations_url": "https://api.github.com/users/bourliam/orgs",
"repos_url": "https://api.github.com/users/bourliam/repos",
"events_url": "https://api.github.com/users/bourliam/events{/privacy}",
"received_events_url": "https://api.github.com/users/bourliam/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 5 | 2023-08-31T16:11:43 | 2023-09-19T23:16:05 | 2023-09-19T23:16:04 |
CONTRIBUTOR
| null |
- Description: There was an issue with the MatchingEngine VectorStore, preventing from using it with a public endpoint. In the Google Cloud library there are two similar methods for private or public endpoints : `match()` and `find_neighbors()`.
- Issue: Fixes #8378
- This uses the `google.cloud.aiplatform` library : https://github.com/googleapis/python-aiplatform/blob/main/google/cloud/aiplatform/matching_engine/matching_engine_index_endpoint.py
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10056/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/10056/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10056",
"html_url": "https://github.com/langchain-ai/langchain/pull/10056",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10056.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10056.patch",
"merged_at": "2023-09-19T23:16:04"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10055
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10055/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10055/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10055/events
|
https://github.com/langchain-ai/langchain/pull/10055
| 1,875,796,091 |
PR_kwDOIPDwls5ZQLlM
| 10,055 |
Update chroma.py
|
{
"login": "valkryhx",
"id": 3361700,
"node_id": "MDQ6VXNlcjMzNjE3MDA=",
"avatar_url": "https://avatars.githubusercontent.com/u/3361700?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/valkryhx",
"html_url": "https://github.com/valkryhx",
"followers_url": "https://api.github.com/users/valkryhx/followers",
"following_url": "https://api.github.com/users/valkryhx/following{/other_user}",
"gists_url": "https://api.github.com/users/valkryhx/gists{/gist_id}",
"starred_url": "https://api.github.com/users/valkryhx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/valkryhx/subscriptions",
"organizations_url": "https://api.github.com/users/valkryhx/orgs",
"repos_url": "https://api.github.com/users/valkryhx/repos",
"events_url": "https://api.github.com/users/valkryhx/events{/privacy}",
"received_events_url": "https://api.github.com/users/valkryhx/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": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 3 | 2023-08-31T15:44:24 | 2023-09-03T21:35:14 | 2023-09-03T21:35:14 |
NONE
| null |
- Description: add minor fix codes in langchain.vectorstors.chroma to return distances value .
so
qa=RetrievalQA.from_chain_type(
llm=llm,
chain_type="stuff",
retriever=retriever, #a chroma db
return_source_documents=True,
chain_type_kwargs={"prompt": prompt, "memory": memory},
)
res = qa(query)
Now res can return distances value in the metadata dict.
answer, docs = res["result"], res["source_documents"]
for document in docs:
print("\n> [source file path]: " + document.metadata["source"] )
print("> [cosine similarity]:" + str(1.0-document.metadata["distances"]) ) # Add This and it will print 1-distance_value
print(">[text slice]:" + document.page_content)
It is a very minor change. I tested on the [https://github.com/PromtEngineer/localGPT/blob/main/run_localGPT.py#L237]
- Issue: the issue #4710 #5416 Maybe this fix is not directly with the issues , but I guess the intuition is alike.
- Dependencies: same as the main branch
- Tag maintainer: @baskaryan, @eyurtsev, @hwchase17, @rlancemartin
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10055/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/10055/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10055",
"html_url": "https://github.com/langchain-ai/langchain/pull/10055",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10055.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10055.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10054
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10054/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10054/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10054/events
|
https://github.com/langchain-ai/langchain/issues/10054
| 1,875,770,074 |
I_kwDOIPDwls5vzfra
| 10,054 |
StreamingStdOutCallbackHandler().on_llm_start isn't called since version 0.0.272 (0.0.271 still works)
|
{
"login": "rhoef",
"id": 2571878,
"node_id": "MDQ6VXNlcjI1NzE4Nzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2571878?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rhoef",
"html_url": "https://github.com/rhoef",
"followers_url": "https://api.github.com/users/rhoef/followers",
"following_url": "https://api.github.com/users/rhoef/following{/other_user}",
"gists_url": "https://api.github.com/users/rhoef/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rhoef/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhoef/subscriptions",
"organizations_url": "https://api.github.com/users/rhoef/orgs",
"repos_url": "https://api.github.com/users/rhoef/repos",
"events_url": "https://api.github.com/users/rhoef/events{/privacy}",
"received_events_url": "https://api.github.com/users/rhoef/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 4 | 2023-08-31T15:30:31 | 2024-01-10T09:15:32 | null |
NONE
| null |
### System Info
0.0.272, linux, python 3.11.2
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [X] Callbacks/Tracing
- [ ] Async
### Reproduction
I have a pretty standard RetievalQA chain like this. The `on_llm_start` callback isn't executed since version 0.0.272 (I verified that 0.0.271 is working)
```
loader = TextLoader("data.txt")
documents = loader.load()
openai = ChatOpenAI(**llm_params, callbacks= [StreamingStdOutCallbackHandler()])
text_splitter = RecursiveCharacterTextSplitter(**chunking_params)
texts = text_splitter.split_documents(documents)
embeddings = OpenAIEmbeddings()
docsearch = Chroma.from_documents(texts, embeddings)
qa = RetrievalQA.from_chain_type(
llm=openai,
retriever=docsearch.as_retriever(),
)
```
### Expected behavior
`on_llm_start` callback should be called
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10054/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/10054/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10052
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10052/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10052/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10052/events
|
https://github.com/langchain-ai/langchain/pull/10052
| 1,875,654,936 |
PR_kwDOIPDwls5ZPsi_
| 10,052 |
bump 278
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5010622926,
"node_id": "LA_kwDOIPDwls8AAAABKqgJzg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/release",
"name": "release",
"color": "07D4BE",
"default": false,
"description": ""
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-31T14:29:11 | 2023-08-31T14:37:18 | 2023-08-31T14:35:42 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10052/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/10052/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10052",
"html_url": "https://github.com/langchain-ai/langchain/pull/10052",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10052.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10052.patch",
"merged_at": "2023-08-31T14:35:42"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10051
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10051/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10051/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10051/events
|
https://github.com/langchain-ai/langchain/pull/10051
| 1,875,626,004 |
PR_kwDOIPDwls5ZPmSr
| 10,051 |
Add XMLOutputParser
|
{
"login": "mateusz-wosinski-ds",
"id": 142883372,
"node_id": "U_kgDOCIQ6LA",
"avatar_url": "https://avatars.githubusercontent.com/u/142883372?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mateusz-wosinski-ds",
"html_url": "https://github.com/mateusz-wosinski-ds",
"followers_url": "https://api.github.com/users/mateusz-wosinski-ds/followers",
"following_url": "https://api.github.com/users/mateusz-wosinski-ds/following{/other_user}",
"gists_url": "https://api.github.com/users/mateusz-wosinski-ds/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mateusz-wosinski-ds/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mateusz-wosinski-ds/subscriptions",
"organizations_url": "https://api.github.com/users/mateusz-wosinski-ds/orgs",
"repos_url": "https://api.github.com/users/mateusz-wosinski-ds/repos",
"events_url": "https://api.github.com/users/mateusz-wosinski-ds/events{/privacy}",
"received_events_url": "https://api.github.com/users/mateusz-wosinski-ds/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 7 | 2023-08-31T14:13:14 | 2023-09-19T23:17:34 | 2023-09-19T23:17:34 |
CONTRIBUTOR
| null |
**Description**
Adds new output parser, this time enabling the output of LLM to be of an XML format. Seems to be particularly useful together with Claude model.
Addresses [issue 9820](https://github.com/langchain-ai/langchain/issues/9820).
**Twitter handle**
@deepsense_ai @matt_wosinski
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10051/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/10051/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10051",
"html_url": "https://github.com/langchain-ai/langchain/pull/10051",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10051.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10051.patch",
"merged_at": "2023-09-19T23:17:34"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10050
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10050/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10050/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10050/events
|
https://github.com/langchain-ai/langchain/issues/10050
| 1,875,605,668 |
I_kwDOIPDwls5vy3ik
| 10,050 |
langchain.vectorstores.MatchingEngine.from_components() throws InvalidArgument exception
|
{
"login": "sgalij",
"id": 50017589,
"node_id": "MDQ6VXNlcjUwMDE3NTg5",
"avatar_url": "https://avatars.githubusercontent.com/u/50017589?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sgalij",
"html_url": "https://github.com/sgalij",
"followers_url": "https://api.github.com/users/sgalij/followers",
"following_url": "https://api.github.com/users/sgalij/following{/other_user}",
"gists_url": "https://api.github.com/users/sgalij/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sgalij/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sgalij/subscriptions",
"organizations_url": "https://api.github.com/users/sgalij/orgs",
"repos_url": "https://api.github.com/users/sgalij/repos",
"events_url": "https://api.github.com/users/sgalij/events{/privacy}",
"received_events_url": "https://api.github.com/users/sgalij/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5774514459,
"node_id": "LA_kwDOIPDwls8AAAABWDAZGw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/stale",
"name": "stale",
"color": "dadada",
"default": false,
"description": "Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed"
}
] |
open
| false | null |
[] | null | 4 | 2023-08-31T14:01:53 | 2023-12-30T16:01:55 | null |
NONE
| null |
### System Info
langchain==0.0.249
Windows
Python 3.11.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
The official example described here:
https://python.langchain.com/docs/integrations/vectorstores/matchingengine#create-vectorstore-from-texts
Does not work.
My code throws beloe exception:
from langchain.vectorstores import MatchingEngine
texts = [
"The cat sat on",
"the mat.",
"I like to",
"eat pizza for",
"dinner.",
"The sun sets",
"in the west.",
]
vector_store = MatchingEngine.from_components(
project_id="",
region="",
gcs_bucket_name="",
index_id="",
endpoint_id="",
)
### Expected behavior
Traceback (most recent call last):
File "C:\GitHub\onecloud-chatbot\onecloud-chatbot\Lib\site-packages\google\api_core\grpc_helpers.py", line 72, in error_remapped_callable
return callable_(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\GitHub\onecloud-chatbot\onecloud-chatbot\Lib\site-packages\grpc\_channel.py", line 1030, in __call__
return _end_unary_response_blocking(state, call, False, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\GitHub\onecloud-chatbot\onecloud-chatbot\Lib\site-packages\grpc\_channel.py", line 910, in _end_unary_response_blocking
raise _InactiveRpcError(state) # pytype: disable=not-instantiable
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = "UNKNOWN:Error received from peer ipv4:172.217.16.42:443 {created_time:"2023-08-31T14:00:16.506362524+00:00", grpc_status:3, grpc_message:"Request contains an invalid argument."}"
>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\GitHub\onecloud-chatbot\matching_engine_insert.py", line 13, in <module>
vector_store = MatchingEngine.from_components(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\GitHub\onecloud-chatbot\onecloud-chatbot\Lib\site-packages\langchain\vectorstores\matching_engine.py", line 280, in from_components
endpoint = cls._create_endpoint_by_id(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\GitHub\onecloud-chatbot\onecloud-chatbot\Lib\site-packages\langchain\vectorstores\matching_engine.py", line 386, in _create_endpoint_by_id
return aiplatform.MatchingEngineIndexEndpoint(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\GitHub\onecloud-chatbot\onecloud-chatbot\Lib\site-packages\google\cloud\aiplatform\matching_engine\matching_engine_index_endpoint.py", line 130, in __init__
self._gca_resource = self._get_gca_resource(resource_name=index_endpoint_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\GitHub\onecloud-chatbot\onecloud-chatbot\Lib\site-packages\google\cloud\aiplatform\base.py", line 648, in _get_gca_resource
return getattr(self.api_client, self._getter_method)(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\GitHub\onecloud-chatbot\onecloud-chatbot\Lib\site-packages\google\cloud\aiplatform_v1\services\index_endpoint_service\client.py", line 707, in get_index_endpoint
response = rpc(
^^^^
File "C:\GitHub\onecloud-chatbot\onecloud-chatbot\Lib\site-packages\google\api_core\gapic_v1\method.py", line 113, in __call__
return wrapped_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\GitHub\onecloud-chatbot\onecloud-chatbot\Lib\site-packages\google\api_core\retry.py", line 349, in retry_wrapped_func
return retry_target(
^^^^^^^^^^^^^
File "C:\GitHub\onecloud-chatbot\onecloud-chatbot\Lib\site-packages\google\api_core\retry.py", line 191, in retry_target
return target()
^^^^^^^^
File "C:\GitHub\onecloud-chatbot\onecloud-chatbot\Lib\site-packages\google\api_core\grpc_helpers.py", line 74, in error_remapped_callable
raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.InvalidArgument: 400 Request contains an invalid argument.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10050/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/10050/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10049
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10049/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10049/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10049/events
|
https://github.com/langchain-ai/langchain/pull/10049
| 1,875,540,445 |
PR_kwDOIPDwls5ZPTgp
| 10,049 |
chat integration [wip]
|
{
"login": "eryk-dsai",
"id": 142571618,
"node_id": "U_kgDOCH94Yg",
"avatar_url": "https://avatars.githubusercontent.com/u/142571618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eryk-dsai",
"html_url": "https://github.com/eryk-dsai",
"followers_url": "https://api.github.com/users/eryk-dsai/followers",
"following_url": "https://api.github.com/users/eryk-dsai/following{/other_user}",
"gists_url": "https://api.github.com/users/eryk-dsai/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eryk-dsai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eryk-dsai/subscriptions",
"organizations_url": "https://api.github.com/users/eryk-dsai/orgs",
"repos_url": "https://api.github.com/users/eryk-dsai/repos",
"events_url": "https://api.github.com/users/eryk-dsai/events{/privacy}",
"received_events_url": "https://api.github.com/users/eryk-dsai/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-31T13:31:15 | 2023-08-31T15:04:04 | 2023-08-31T14:36:39 |
CONTRIBUTOR
| null |
TODO:
* fix problem with getter
* correct output from _generate
* handle batch requests
* try to add stopping criteria
* handle ChatMessage, AIMessageChunk(?)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10049/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/10049/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10049",
"html_url": "https://github.com/langchain-ai/langchain/pull/10049",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10049.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10049.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10048
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10048/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10048/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10048/events
|
https://github.com/langchain-ai/langchain/pull/10048
| 1,875,502,431 |
PR_kwDOIPDwls5ZPLNr
| 10,048 |
updated prompt name in documentation for sequential chain
|
{
"login": "j-space-b",
"id": 120141355,
"node_id": "U_kgDOByk2Kw",
"avatar_url": "https://avatars.githubusercontent.com/u/120141355?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/j-space-b",
"html_url": "https://github.com/j-space-b",
"followers_url": "https://api.github.com/users/j-space-b/followers",
"following_url": "https://api.github.com/users/j-space-b/following{/other_user}",
"gists_url": "https://api.github.com/users/j-space-b/gists{/gist_id}",
"starred_url": "https://api.github.com/users/j-space-b/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/j-space-b/subscriptions",
"organizations_url": "https://api.github.com/users/j-space-b/orgs",
"repos_url": "https://api.github.com/users/j-space-b/repos",
"events_url": "https://api.github.com/users/j-space-b/events{/privacy}",
"received_events_url": "https://api.github.com/users/j-space-b/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-31T13:10:28 | 2023-08-31T23:05:24 | 2023-08-31T23:05:18 |
CONTRIBUTOR
| null |
Description: updated the prompt name in a sequential chain example so that it is not overwritten by the same prompt name in the next chain (this is a sequential chain example)
Issue: n/a
Dependencies: none
Tag maintainer: not known
Twitter handle: not on twitter, feel free to use my git username for anything
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10048/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/10048/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10048",
"html_url": "https://github.com/langchain-ai/langchain/pull/10048",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10048.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10048.patch",
"merged_at": "2023-08-31T23:05:18"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10047
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10047/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10047/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10047/events
|
https://github.com/langchain-ai/langchain/pull/10047
| 1,875,489,628 |
PR_kwDOIPDwls5ZPIb7
| 10,047 |
Add sqlite-vss as a vector database
|
{
"login": "philippe2803",
"id": 4492530,
"node_id": "MDQ6VXNlcjQ0OTI1MzA=",
"avatar_url": "https://avatars.githubusercontent.com/u/4492530?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/philippe2803",
"html_url": "https://github.com/philippe2803",
"followers_url": "https://api.github.com/users/philippe2803/followers",
"following_url": "https://api.github.com/users/philippe2803/following{/other_user}",
"gists_url": "https://api.github.com/users/philippe2803/gists{/gist_id}",
"starred_url": "https://api.github.com/users/philippe2803/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/philippe2803/subscriptions",
"organizations_url": "https://api.github.com/users/philippe2803/orgs",
"repos_url": "https://api.github.com/users/philippe2803/repos",
"events_url": "https://api.github.com/users/philippe2803/events{/privacy}",
"received_events_url": "https://api.github.com/users/philippe2803/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 6 | 2023-08-31T13:03:12 | 2023-09-01T18:21:45 | 2023-09-01T15:36:34 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
This adds sqlite-vss as an option for a vector database. Contains the code and a few tests. Tests are passing and the library sqlite-vss is added as optional as explained in the contributing guidelines. I adjusted the code for lint/black/ and mypy. It looks that everything is currently passing.
Adding sqlite-vss was mentioned in this issue: https://github.com/langchain-ai/langchain/issues/1019.
Also mentioned here in the sqlite-vss repo for the curious: https://github.com/asg017/sqlite-vss/issues/66
Maintainer tag: @baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10047/reactions",
"total_count": 5,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 2,
"rocket": 1,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10047/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10047",
"html_url": "https://github.com/langchain-ai/langchain/pull/10047",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10047.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10047.patch",
"merged_at": "2023-09-01T15:36:34"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.