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/7950
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7950/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7950/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7950/events
https://github.com/langchain-ai/langchain/pull/7950
1,812,439,499
PR_kwDOIPDwls5V6zWN
7,950
Reduce generation of temporary objects
{ "login": "panzi", "id": 134175, "node_id": "MDQ6VXNlcjEzNDE3NQ==", "avatar_url": "https://avatars.githubusercontent.com/u/134175?v=4", "gravatar_id": "", "url": "https://api.github.com/users/panzi", "html_url": "https://github.com/panzi", "followers_url": "https://api.github.com/users/panzi/followers", "following_url": "https://api.github.com/users/panzi/following{/other_user}", "gists_url": "https://api.github.com/users/panzi/gists{/gist_id}", "starred_url": "https://api.github.com/users/panzi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/panzi/subscriptions", "organizations_url": "https://api.github.com/users/panzi/orgs", "repos_url": "https://api.github.com/users/panzi/repos", "events_url": "https://api.github.com/users/panzi/events{/privacy}", "received_events_url": "https://api.github.com/users/panzi/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": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
1
2023-07-19T17:59:15
2023-08-04T04:24:09
2023-08-04T04:24:09
CONTRIBUTOR
null
Just a tiny change to use `list.append(...)` and `list.extend(...)` instead of `list += [...]` so that no unnecessary temporary lists are created. Since its a tiny miscellaneous thing I guess @baskaryan is the maintainer to tag?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7950/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7950/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7950", "html_url": "https://github.com/langchain-ai/langchain/pull/7950", "diff_url": "https://github.com/langchain-ai/langchain/pull/7950.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7950.patch", "merged_at": "2023-08-04T04:24:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/7949
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7949/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7949/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7949/events
https://github.com/langchain-ai/langchain/issues/7949
1,812,411,168
I_kwDOIPDwls5sBzMg
7,949
Ability to translate/interpret LLM tool requests
{ "login": "krypterro", "id": 41011655, "node_id": "MDQ6VXNlcjQxMDExNjU1", "avatar_url": "https://avatars.githubusercontent.com/u/41011655?v=4", "gravatar_id": "", "url": "https://api.github.com/users/krypterro", "html_url": "https://github.com/krypterro", "followers_url": "https://api.github.com/users/krypterro/followers", "following_url": "https://api.github.com/users/krypterro/following{/other_user}", "gists_url": "https://api.github.com/users/krypterro/gists{/gist_id}", "starred_url": "https://api.github.com/users/krypterro/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/krypterro/subscriptions", "organizations_url": "https://api.github.com/users/krypterro/orgs", "repos_url": "https://api.github.com/users/krypterro/repos", "events_url": "https://api.github.com/users/krypterro/events{/privacy}", "received_events_url": "https://api.github.com/users/krypterro/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
1
2023-07-19T17:39:47
2023-10-25T16:05:56
2023-10-25T16:05:56
NONE
null
### Feature request I'm getting this back from my LLM: Observation: Use Search is not a valid tool, try another one. Obviously the LLM would like to use the search tool, but didn't request it just right. It seems LangChain has been thoroughly tested with OpenAI, but not so much other models. Which is totally understandable considering there are now thousands of models and variations. Although I'm digging through the code to find a way to do this myself, it would be awesome if LangChain had a well documented module we could enable to interpret or translate response from the LLM. Obviously in this case I could use the tool list, and string find, and if any of the tool names are found to go with that tool. ### Motivation Increased compatibility with open source LLM ### Your contribution Generic example: tool_names = # python list for tool_name in tool_names: if ai_reply.find(tool_name) >= 0: # use tool
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7949/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7949/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7948
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7948/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7948/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7948/events
https://github.com/langchain-ai/langchain/pull/7948
1,812,382,778
PR_kwDOIPDwls5V6msO
7,948
bump
{ "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-07-19T17:22:43
2023-07-19T17:23:22
2023-07-19T17:23:21
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7948/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7948/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7948", "html_url": "https://github.com/langchain-ai/langchain/pull/7948", "diff_url": "https://github.com/langchain-ai/langchain/pull/7948.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7948.patch", "merged_at": "2023-07-19T17:23:21" }
https://api.github.com/repos/langchain-ai/langchain/issues/7947
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7947/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7947/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7947/events
https://github.com/langchain-ai/langchain/pull/7947
1,812,380,054
PR_kwDOIPDwls5V6mF0
7,947
fix
{ "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-07-19T17:20:48
2023-07-19T17:23:11
2023-07-19T17:23:10
COLLABORATOR
null
<!-- Thank you for contributing to LangChain! Replace this 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 you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7947/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7947/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7947", "html_url": "https://github.com/langchain-ai/langchain/pull/7947", "diff_url": "https://github.com/langchain-ai/langchain/pull/7947.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7947.patch", "merged_at": "2023-07-19T17:23:10" }
https://api.github.com/repos/langchain-ai/langchain/issues/7946
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7946/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7946/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7946/events
https://github.com/langchain-ai/langchain/issues/7946
1,812,350,601
I_kwDOIPDwls5sBkaJ
7,946
OpenAI functions Agent is not working with SQLDatabaseChain.
{ "login": "orlandombaa", "id": 48104481, "node_id": "MDQ6VXNlcjQ4MTA0NDgx", "avatar_url": "https://avatars.githubusercontent.com/u/48104481?v=4", "gravatar_id": "", "url": "https://api.github.com/users/orlandombaa", "html_url": "https://github.com/orlandombaa", "followers_url": "https://api.github.com/users/orlandombaa/followers", "following_url": "https://api.github.com/users/orlandombaa/following{/other_user}", "gists_url": "https://api.github.com/users/orlandombaa/gists{/gist_id}", "starred_url": "https://api.github.com/users/orlandombaa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/orlandombaa/subscriptions", "organizations_url": "https://api.github.com/users/orlandombaa/orgs", "repos_url": "https://api.github.com/users/orlandombaa/repos", "events_url": "https://api.github.com/users/orlandombaa/events{/privacy}", "received_events_url": "https://api.github.com/users/orlandombaa/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-07-19T17:01:47
2023-10-25T16:06:01
2023-10-25T16:06:00
NONE
null
### Issue with current documentation: Hello every one! I am following the tutorial of [OpenAI function Agent ](https://python.langchain.com/docs/modules/agents/agent_types/openai_functions_agent). I downloaded the chinook database in MySQL , I made the connection successfully and got good answers from this database using the [SQLDataBase agent tutorial.](https://python.langchain.com/docs/modules/agents/toolkits/sql_database). However, when I try to do sql query using the OpenAI function agent it fails. I got the following error: ```InvalidRequestError: 'MySQL DB' does not match '^[a-zA-Z0-9_-]{1,64}$' - 'functions.1.name``` When I change to other kind of agents such as CHAT_ZERO_SHOT_REACT_DESCRIPTION is works good. ### Idea or request for content: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7946/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7946/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7945
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7945/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7945/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7945/events
https://github.com/langchain-ai/langchain/pull/7945
1,812,297,994
PR_kwDOIPDwls5V6T3r
7,945
Refactored `sql_database`
{ "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": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "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" } ]
closed
false
null
[]
null
2
2023-07-19T16:28:41
2023-07-21T15:20:33
2023-07-21T05:17:55
COLLABORATOR
null
The `sql_database.py` is unnecessarily placed in the root code folder. A similar code is usually placed in the `utilities/`. As a byproduct of this placement, the sql_database is [placed on the top level of classes in the API Reference](https://api.python.langchain.com/en/latest/api_reference.html#module-langchain.sql_database) which is confusing and not correct. - moved the `sql_database.py` from the root code folder to the `utilities/` @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7945/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7945/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7945", "html_url": "https://github.com/langchain-ai/langchain/pull/7945", "diff_url": "https://github.com/langchain-ai/langchain/pull/7945.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7945.patch", "merged_at": "2023-07-21T05:17:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/7944
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7944/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7944/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7944/events
https://github.com/langchain-ai/langchain/issues/7944
1,812,263,812
I_kwDOIPDwls5sBPOE
7,944
Error when loading JSON file using S3FileLoader
{ "login": "kulaone", "id": 1530342, "node_id": "MDQ6VXNlcjE1MzAzNDI=", "avatar_url": "https://avatars.githubusercontent.com/u/1530342?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kulaone", "html_url": "https://github.com/kulaone", "followers_url": "https://api.github.com/users/kulaone/followers", "following_url": "https://api.github.com/users/kulaone/following{/other_user}", "gists_url": "https://api.github.com/users/kulaone/gists{/gist_id}", "starred_url": "https://api.github.com/users/kulaone/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kulaone/subscriptions", "organizations_url": "https://api.github.com/users/kulaone/orgs", "repos_url": "https://api.github.com/users/kulaone/repos", "events_url": "https://api.github.com/users/kulaone/events{/privacy}", "received_events_url": "https://api.github.com/users/kulaone/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-07-19T16:06:55
2023-11-12T10:43:32
2023-10-25T16:06:06
NONE
null
### System Info langchain: 0.0.236 ### Who can help? @eyurtsev When attempting to load a JSON file from S3, I encounter the following error: `An error occurred: Json schema does not match the Unstructured schema` Don't know if it is related to https://github.com/hwchase17/langchain/issues/2222 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Use this code: ``` from langchain.document_loaders import S3FileLoader loader = S3FileLoader(bucket, file_key) documents = loader.load() ``` Getting this error: `An error occurred: Json schema does not match the Unstructured schema` ### Expected behavior I anticipate that it will load the file into the documents, just as it does for other file types I use.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7944/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 1, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7944/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7943
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7943/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7943/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7943/events
https://github.com/langchain-ai/langchain/pull/7943
1,812,234,670
PR_kwDOIPDwls5V6F_S
7,943
Add etherscan document loader
{ "login": "glazec", "id": 22890026, "node_id": "MDQ6VXNlcjIyODkwMDI2", "avatar_url": "https://avatars.githubusercontent.com/u/22890026?v=4", "gravatar_id": "", "url": "https://api.github.com/users/glazec", "html_url": "https://github.com/glazec", "followers_url": "https://api.github.com/users/glazec/followers", "following_url": "https://api.github.com/users/glazec/following{/other_user}", "gists_url": "https://api.github.com/users/glazec/gists{/gist_id}", "starred_url": "https://api.github.com/users/glazec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/glazec/subscriptions", "organizations_url": "https://api.github.com/users/glazec/orgs", "repos_url": "https://api.github.com/users/glazec/repos", "events_url": "https://api.github.com/users/glazec/events{/privacy}", "received_events_url": "https://api.github.com/users/glazec/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
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false } ]
null
5
2023-07-19T15:47:58
2023-07-25T00:09:21
2023-07-25T00:09:16
CONTRIBUTOR
null
@rlancemartin The modification includes: * etherscanLoader * test_etherscan * document ipynb I have run the test, lint, format, and spell check. I do encounter a linting error on ipynb, I am not sure how to address that. ``` docs/extras/modules/data_connection/document_loaders/integrations/Etherscan.ipynb:55: error: Name "null" is not defined [name-defined] docs/extras/modules/data_connection/document_loaders/integrations/Etherscan.ipynb:76: error: Name "null" is not defined [name-defined] Found 2 errors in 1 file (checked 1 source file) ``` - Description: The Etherscan loader uses etherscan api to load transaction histories under specific accounts on Ethereum Mainnet. - No dependency is introduced by this PR. - Twitter handle: glazecl
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7943/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7943/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7943", "html_url": "https://github.com/langchain-ai/langchain/pull/7943", "diff_url": "https://github.com/langchain-ai/langchain/pull/7943.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7943.patch", "merged_at": "2023-07-25T00:09:16" }
https://api.github.com/repos/langchain-ai/langchain/issues/7941
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7941/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7941/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7941/events
https://github.com/langchain-ai/langchain/pull/7941
1,812,189,792
PR_kwDOIPDwls5V58Bw
7,941
VectorStoreRetrieverMemory exclude additional input keys feature
{ "login": "keenborder786", "id": 45242107, "node_id": "MDQ6VXNlcjQ1MjQyMTA3", "avatar_url": "https://avatars.githubusercontent.com/u/45242107?v=4", "gravatar_id": "", "url": "https://api.github.com/users/keenborder786", "html_url": "https://github.com/keenborder786", "followers_url": "https://api.github.com/users/keenborder786/followers", "following_url": "https://api.github.com/users/keenborder786/following{/other_user}", "gists_url": "https://api.github.com/users/keenborder786/gists{/gist_id}", "starred_url": "https://api.github.com/users/keenborder786/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/keenborder786/subscriptions", "organizations_url": "https://api.github.com/users/keenborder786/orgs", "repos_url": "https://api.github.com/users/keenborder786/repos", "events_url": "https://api.github.com/users/keenborder786/events{/privacy}", "received_events_url": "https://api.github.com/users/keenborder786/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-07-19T15:23:52
2023-07-20T15:09:24
2023-07-20T14:23:27
CONTRIBUTOR
null
- Description: Added a parameter in VectorStoreRetrieverMemory which filters the input given by the key when constructing the buffering the document for Vector. This feature is helpful if you have certain inputs apart from the VectorMemory's own memory_key that needs to be ignored e.g when using combined memory, we might need to filter the memory_key of the other memory, Please see the issue. - Issue: #7695 - Tag maintainer: @rlancemartin, @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7941/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7941/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7941", "html_url": "https://github.com/langchain-ai/langchain/pull/7941", "diff_url": "https://github.com/langchain-ai/langchain/pull/7941.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7941.patch", "merged_at": "2023-07-20T14:23:27" }
https://api.github.com/repos/langchain-ai/langchain/issues/7940
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7940/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7940/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7940/events
https://github.com/langchain-ai/langchain/pull/7940
1,812,156,842
PR_kwDOIPDwls5V50zP
7,940
Getting SQL cmd directly from SQLDatabase Chain.
{ "login": "keenborder786", "id": 45242107, "node_id": "MDQ6VXNlcjQ1MjQyMTA3", "avatar_url": "https://avatars.githubusercontent.com/u/45242107?v=4", "gravatar_id": "", "url": "https://api.github.com/users/keenborder786", "html_url": "https://github.com/keenborder786", "followers_url": "https://api.github.com/users/keenborder786/followers", "following_url": "https://api.github.com/users/keenborder786/following{/other_user}", "gists_url": "https://api.github.com/users/keenborder786/gists{/gist_id}", "starred_url": "https://api.github.com/users/keenborder786/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/keenborder786/subscriptions", "organizations_url": "https://api.github.com/users/keenborder786/orgs", "repos_url": "https://api.github.com/users/keenborder786/repos", "events_url": "https://api.github.com/users/keenborder786/events{/privacy}", "received_events_url": "https://api.github.com/users/keenborder786/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-07-19T15:05:44
2023-08-01T20:52:13
2023-07-21T05:36:55
CONTRIBUTOR
null
- Description: Get SQL Cmd directly generated by SQL-Database Chain without executing it in the DB engine. - Issue: #4853 - Tag maintainer: @hinthornw,@baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7940/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7940/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7940", "html_url": "https://github.com/langchain-ai/langchain/pull/7940", "diff_url": "https://github.com/langchain-ai/langchain/pull/7940.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7940.patch", "merged_at": "2023-07-21T05:36:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/7939
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7939/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7939/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7939/events
https://github.com/langchain-ai/langchain/pull/7939
1,812,115,355
PR_kwDOIPDwls5V5rxJ
7,939
[nit] Add default value for ChatOpenAI client
{ "login": "jcampbell", "id": 332575, "node_id": "MDQ6VXNlcjMzMjU3NQ==", "avatar_url": "https://avatars.githubusercontent.com/u/332575?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jcampbell", "html_url": "https://github.com/jcampbell", "followers_url": "https://api.github.com/users/jcampbell/followers", "following_url": "https://api.github.com/users/jcampbell/following{/other_user}", "gists_url": "https://api.github.com/users/jcampbell/gists{/gist_id}", "starred_url": "https://api.github.com/users/jcampbell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jcampbell/subscriptions", "organizations_url": "https://api.github.com/users/jcampbell/orgs", "repos_url": "https://api.github.com/users/jcampbell/repos", "events_url": "https://api.github.com/users/jcampbell/events{/privacy}", "received_events_url": "https://api.github.com/users/jcampbell/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
2
2023-07-19T14:44:26
2023-07-28T05:38:39
2023-07-28T05:38:32
CONTRIBUTOR
null
Micro convenience PR to avoid warning regarding missing `client` parameter. It is always set during initialization. @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7939/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7939/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7939", "html_url": "https://github.com/langchain-ai/langchain/pull/7939", "diff_url": "https://github.com/langchain-ai/langchain/pull/7939.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7939.patch", "merged_at": "2023-07-28T05:38:32" }
https://api.github.com/repos/langchain-ai/langchain/issues/7938
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7938/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7938/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7938/events
https://github.com/langchain-ai/langchain/pull/7938
1,812,082,353
PR_kwDOIPDwls5V5ko5
7,938
bump 236
{ "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-07-19T14:28:13
2023-07-19T14:51:42
2023-07-19T14:51:41
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7938/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7938/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7938", "html_url": "https://github.com/langchain-ai/langchain/pull/7938", "diff_url": "https://github.com/langchain-ai/langchain/pull/7938.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7938.patch", "merged_at": "2023-07-19T14:51:41" }
https://api.github.com/repos/langchain-ai/langchain/issues/7937
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7937/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7937/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7937/events
https://github.com/langchain-ai/langchain/pull/7937
1,812,019,603
PR_kwDOIPDwls5V5Wwp
7,937
Update openai.py compatibility with azure 2023-07-01-preview
{ "login": "pretidav", "id": 23082930, "node_id": "MDQ6VXNlcjIzMDgyOTMw", "avatar_url": "https://avatars.githubusercontent.com/u/23082930?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pretidav", "html_url": "https://github.com/pretidav", "followers_url": "https://api.github.com/users/pretidav/followers", "following_url": "https://api.github.com/users/pretidav/following{/other_user}", "gists_url": "https://api.github.com/users/pretidav/gists{/gist_id}", "starred_url": "https://api.github.com/users/pretidav/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pretidav/subscriptions", "organizations_url": "https://api.github.com/users/pretidav/orgs", "repos_url": "https://api.github.com/users/pretidav/repos", "events_url": "https://api.github.com/users/pretidav/events{/privacy}", "received_events_url": "https://api.github.com/users/pretidav/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-07-19T13:59:14
2023-07-19T14:31:18
2023-07-19T14:31:18
CONTRIBUTOR
null
Fixed missing "content" field in azure. Added a check for "content" in _dict (missing for azure api=2023-07-01-preview) @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7937/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7937/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7937", "html_url": "https://github.com/langchain-ai/langchain/pull/7937", "diff_url": "https://github.com/langchain-ai/langchain/pull/7937.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7937.patch", "merged_at": "2023-07-19T14:31:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/7936
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7936/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7936/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7936/events
https://github.com/langchain-ai/langchain/issues/7936
1,811,944,924
I_kwDOIPDwls5sABXc
7,936
DOC: Passing Context to Conversational Chain
{ "login": "rambabusure", "id": 19673384, "node_id": "MDQ6VXNlcjE5NjczMzg0", "avatar_url": "https://avatars.githubusercontent.com/u/19673384?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rambabusure", "html_url": "https://github.com/rambabusure", "followers_url": "https://api.github.com/users/rambabusure/followers", "following_url": "https://api.github.com/users/rambabusure/following{/other_user}", "gists_url": "https://api.github.com/users/rambabusure/gists{/gist_id}", "starred_url": "https://api.github.com/users/rambabusure/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rambabusure/subscriptions", "organizations_url": "https://api.github.com/users/rambabusure/orgs", "repos_url": "https://api.github.com/users/rambabusure/repos", "events_url": "https://api.github.com/users/rambabusure/events{/privacy}", "received_events_url": "https://api.github.com/users/rambabusure/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
3
2023-07-19T13:25:19
2023-11-13T16:07:51
2023-11-13T16:07:51
NONE
null
### Issue with current documentation: We don't have enough documentation Conversational chain and found only documentation relates conversational retrieval chain. We are looking for separating the retriever functionality. Please provide some examples on passing context (lang chain documents ) to conversational chain ### Idea or request for content: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7936/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7936/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7935
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7935/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7935/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7935/events
https://github.com/langchain-ai/langchain/issues/7935
1,811,689,381
I_kwDOIPDwls5r_C-l
7,935
"create_structured_output_chain" creates awful schema, deteriorates performance and should be fixed or removed
{ "login": "jphme", "id": 2862336, "node_id": "MDQ6VXNlcjI4NjIzMzY=", "avatar_url": "https://avatars.githubusercontent.com/u/2862336?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jphme", "html_url": "https://github.com/jphme", "followers_url": "https://api.github.com/users/jphme/followers", "following_url": "https://api.github.com/users/jphme/following{/other_user}", "gists_url": "https://api.github.com/users/jphme/gists{/gist_id}", "starred_url": "https://api.github.com/users/jphme/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jphme/subscriptions", "organizations_url": "https://api.github.com/users/jphme/orgs", "repos_url": "https://api.github.com/users/jphme/repos", "events_url": "https://api.github.com/users/jphme/events{/privacy}", "received_events_url": "https://api.github.com/users/jphme/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 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-07-19T10:50:29
2023-11-08T16:17:23
2023-11-08T16:17:15
CONTRIBUTOR
null
### System Info Langchain v0.0.235 ### 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 - [X] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Trying out the new [create_structured_output_chain](https://github.com/hwchase17/langchain/blame/9d7e57f5c01f9ac5c8caa439ff083de98f96fdde/langchain/chains/openai_functions/base.py#L267) introduced in #7270 with the setup like described in the [docs](https://python.langchain.com/docs/modules/chains/popular/openai_functions) I wondered about the bad performance. Then I looked at the function call.... Using a very simple example: ```python class LanguageCode(BaseModel): """"A single language code in ISO 639-1 format""" language_code: str = Field(..., description="Language code (e.g. 'en', 'de', 'fr')") class LanguageClassification(BaseModel): """Classify the languages of a user prompt.""" language_codes: list[LanguageCode] = Field(default_factory=list, description="A list of all languages present in the whole text. Exclude code sections, loanwords and technical terms in the text when deciding on the language codes. You have to output at least one language code, even if you are not certain or the text is very short!") main_language_code: LanguageCode = Field(..., description="Main Language of the text.") chat_prompt_language = ChatPromptTemplate.from_messages( [ SystemMessagePromptTemplate.from_template("You are a world-class linguist and fluent in all major languages. Your job is to determine which languages are present in the user text and which one is the main language."), HumanMessagePromptTemplate.from_template("{text}"), ] ) chain = create_structured_output_chain(LanguageClassification, llm, chat_prompt_language, verbose=True) ``` Looking at `chain.llm_kwargs['functions']`: ```python [{'name': '_OutputFormatter', 'description': 'Output formatter. Should always be used to format your response to the user.', 'parameters': {'title': '_OutputFormatter', 'description': 'Output formatter. Should always be used to format your response to the user.', 'type': 'object', 'properties': {'output': {'$ref': '#/definitions/LanguageClassification'}}, 'required': ['output'], 'definitions': {'LanguageCode': {'title': 'LanguageCode', 'description': '"A single language code in ISO 639-1 format', 'type': 'object', 'properties': {'language_code': {'title': 'Language Code', 'description': "Language code (e.g. 'en', 'de', 'fr')", 'type': 'string'}}, 'required': ['language_code']}, 'LanguageClassification': {'title': 'LanguageClassification', 'description': 'Classify the languages of a user prompt.', 'type': 'object', 'properties': {'language_codes': {'title': 'Language Codes', 'description': 'A list of all languages present in the whole text. Exclude code sections, loanwords and technical terms in the text when deciding on the language codes. You have to output at least one language code, even if you are not certain or the text is very short!', 'type': 'array', 'items': {'$ref': '#/definitions/LanguageCode'}}, 'main_language_code': {'title': 'Main Language Code', 'description': 'Main Language of the text.', 'allOf': [{'$ref': '#/definitions/LanguageCode'}]}}, 'required': ['main_language_code']}}}}] ``` What? I can barely parse this monstrosity, how should GPT3.5 do this? It is very well known by now, that the function- and variable names as well as the structure and simplicity/unambiguousness (and even the order of arguments) is very important for the performance of function calls. This implementation wastes a lot of tokens and is detrimental for performance (especially for users who put their trust in langchain and don't benchmark results); and that for a key feature. Maybe there are features that some additional complexity but this should never introduce a significant performance/token tax for completely unrelated and important use cases? ### Expected behavior Just as an example, using the exact same model/code with @jxnl s [OpenAISchema](https://github.com/jxnl/openai_function_call) and nothing else: ```python llm_kwargs={"functions": [LanguageClassification.openai_schema], "function_call": {'name':"LanguageClassification"}} chain = LLMChain(llm=llm, prompt=chat_prompt_language, verbose=True, llm_kwargs=llm_kwargs) ``` we get the following schema: ```python {'name': 'LanguageClassification', 'description': 'Classify the languages of a user prompt.', 'parameters': {'type': 'object', 'properties': {'language_codes': {'description': 'A list of all languages present in the whole text. Exclude code sections, loanwords and technical terms in the text when deciding on the language codes. You have to output at least one language code, even if you are not certain or the text is very short!', 'type': 'array', 'items': {'$ref': '#/definitions/LanguageCode'}}, 'main_language_code': {'description': 'Main Language of the text.', 'allOf': [{'$ref': '#/definitions/LanguageCode'}]}}, 'required': ['language_codes', 'main_language_code'], 'definitions': {'LanguageCode': {'description': '"A single language code in ISO 639-1 format', 'type': 'object', 'properties': {'language_code': {'description': "Language code (e.g. 'en', 'de', 'fr')", 'type': 'string'}}, 'required': ['language_code']}}}} ``` Half the tokens and way easier to read/understand which leads to way better performance and robustness. This can be parsed in a single line: ```python res=chain.generate([{'text':"..."}]) LanguageClassification(**json.loads(res.generations[0][0].message.additional_kwargs['function_call']["arguments"]) ``` And thus there isn't even more code necessary compared to the native langchain implementation. I didn't do any extensive benchmarks, but for the usecase above, the Langchain implementation was slower and returned wrong results way more often; which doesn't surprise me, given well-known function_call best practices. Sorry if I might sound slightly offensive here, but I love to use langchain due to the many integrations and my familarity with it, but problems/implementations like this will really, really hurt adoption in the longterm imho. Hidden complexity can have itsreasons, but hidden complexity that deteriorates results significantly for important use cases without obvious reasons is really the worst. EDIT The `create_extraction_chain_pydantic` is better, but still unnecessary bloated (and as often, it´s not clear from the documentation, what the differences are and which one is preferred for which use case... - `create_structured_output_chain` seems to be advertised as "Popular"): ```python [{'name': 'information_extraction', 'description': 'Extracts the relevant information from the passage.', 'parameters': {'type': 'object', 'properties': {'info': {'type': 'array', 'items': {'type': 'object', 'properties': {'language_codes': {'title': 'language_codes', 'description': 'A list of all languages present in the whole text. Exclude code sections, loanwords and technical terms in the text when deciding on the language codes. You have to output at least one language code, even if you are not certain or the text is very short!', 'type': 'array', 'items': {'description': '"A single language code in ISO 639-1 format', 'type': 'object', 'properties': {'language_code': {'description': "Language code (e.g. 'en', 'de', 'fr')", 'type': 'string'}}, 'required': ['language_code']}}, 'main_language_code': {'title': 'main_language_code', 'description': 'Main Language of the text.', 'allOf': [{'description': '"A single language code in ISO 639-1 format', 'type': 'object', 'properties': {'language_code': {'description': "Language code (e.g. 'en', 'de', 'fr')", 'type': 'string'}}, 'required': ['language_code']}]}}, 'required': ['main_language_code']}}}, 'required': ['info']}}] ``
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7935/reactions", "total_count": 4, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 4 }
https://api.github.com/repos/langchain-ai/langchain/issues/7935/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7933
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7933/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7933/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7933/events
https://github.com/langchain-ai/langchain/pull/7933
1,811,644,997
PR_kwDOIPDwls5V4EJm
7,933
Add regex control over separators in character text splitter
{ "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": 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-07-19T10:24:01
2023-08-04T03:25:24
2023-08-04T03:25:24
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this 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 you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #7854 Added the ability to use the `separator` ase a regex or a simple character. Fixed a bug where `start_index` was incorrectly counting from -1. Who can review? @eyurtsev @hwchase17 @mmz-001
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7933/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7933/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7933", "html_url": "https://github.com/langchain-ai/langchain/pull/7933", "diff_url": "https://github.com/langchain-ai/langchain/pull/7933.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7933.patch", "merged_at": "2023-08-04T03:25:24" }
https://api.github.com/repos/langchain-ai/langchain/issues/7932
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7932/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7932/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7932/events
https://github.com/langchain-ai/langchain/issues/7932
1,811,635,089
I_kwDOIPDwls5r-1uR
7,932
ImportError: cannot import name 'ChatMessage' from 'vertexai.language_models' (/usr/local/lib/python3.10/dist-packages/vertexai/language_models/__init__.py)
{ "login": "amirsartipi13", "id": 40461594, "node_id": "MDQ6VXNlcjQwNDYxNTk0", "avatar_url": "https://avatars.githubusercontent.com/u/40461594?v=4", "gravatar_id": "", "url": "https://api.github.com/users/amirsartipi13", "html_url": "https://github.com/amirsartipi13", "followers_url": "https://api.github.com/users/amirsartipi13/followers", "following_url": "https://api.github.com/users/amirsartipi13/following{/other_user}", "gists_url": "https://api.github.com/users/amirsartipi13/gists{/gist_id}", "starred_url": "https://api.github.com/users/amirsartipi13/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amirsartipi13/subscriptions", "organizations_url": "https://api.github.com/users/amirsartipi13/orgs", "repos_url": "https://api.github.com/users/amirsartipi13/repos", "events_url": "https://api.github.com/users/amirsartipi13/events{/privacy}", "received_events_url": "https://api.github.com/users/amirsartipi13/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-07-19T10:17:30
2023-11-08T21:53:02
2023-11-08T21:52:53
NONE
null
### System Info I run my code in google colab. [this is link to code.](https://colab.research.google.com/drive/1vqTz68WVT7qCGpDSahROztCUphmXy9xI?usp=sharing) processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 79 model name : Intel(R) Xeon(R) CPU @ 2.20GHz stepping : 0 microcode : 0xffffffff cpu MHz : 2199.998 cache size : 56320 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap xsaveopt arat md_clear arch_capabilities bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa mmio_stale_data retbleed bogomips : 4399.99 clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 79 model name : Intel(R) Xeon(R) CPU @ 2.20GHz stepping : 0 microcode : 0xffffffff cpu MHz : 2199.998 cache size : 56320 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 1 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap xsaveopt arat md_clear arch_capabilities bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa mmio_stale_data retbleed bogomips : 4399.99 clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management: ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` ! pip install google-cloud-aiplatform==1.26 langchain==0.0.232 ! pip uninstall shapely ! pip install shapely<2.0.0 import os os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = '' from langchain.prompts.chat import ( ChatPromptTemplate, SystemMessagePromptTemplate, HumanMessagePromptTemplate, AIMessagePromptTemplate ) from langchain.schema import HumanMessage, SystemMessage from langchain.chat_models import ChatVertexAI prompt = f"""Give me a jok!""" system_template = ( "Act as an conversationl chat bot" ) human_template = "{prompt}" system_message_prompt = SystemMessagePromptTemplate.from_template(system_template) human_message_prompt = HumanMessagePromptTemplate.from_template(human_template) chat_prompt = ChatPromptTemplate.from_messages( [system_message_prompt, human_message_prompt] ) messages = chat_prompt.format_prompt(prompt=prompt).to_messages() model = ChatVertexAI(model_name="chat-bison@001") response = model(messages) ``` ### Expected behavior It should get response, but I face this err. ``` /usr/local/lib/python3.10/dist-packages/langchain/chat_models/vertexai.py in _parse_chat_history(history) 46 first place. 47 """ ---> 48 from vertexai.language_models import ChatMessage 49 50 vertex_messages, context = [], None ImportError: cannot import name 'ChatMessage' from 'vertexai.language_models' (/usr/local/lib/python3.10/dist-packages/vertexai/language_models/__init__.py) ``` I think it should read from _vertexai._language_models_ instead.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7932/reactions", "total_count": 3, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 3 }
https://api.github.com/repos/langchain-ai/langchain/issues/7932/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7931
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7931/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7931/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7931/events
https://github.com/langchain-ai/langchain/pull/7931
1,811,629,159
PR_kwDOIPDwls5V4ArF
7,931
Integrate NLP Cloud embeddings endpoint
{ "login": "juliensalinas", "id": 22055188, "node_id": "MDQ6VXNlcjIyMDU1MTg4", "avatar_url": "https://avatars.githubusercontent.com/u/22055188?v=4", "gravatar_id": "", "url": "https://api.github.com/users/juliensalinas", "html_url": "https://github.com/juliensalinas", "followers_url": "https://api.github.com/users/juliensalinas/followers", "following_url": "https://api.github.com/users/juliensalinas/following{/other_user}", "gists_url": "https://api.github.com/users/juliensalinas/gists{/gist_id}", "starred_url": "https://api.github.com/users/juliensalinas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/juliensalinas/subscriptions", "organizations_url": "https://api.github.com/users/juliensalinas/orgs", "repos_url": "https://api.github.com/users/juliensalinas/repos", "events_url": "https://api.github.com/users/juliensalinas/events{/privacy}", "received_events_url": "https://api.github.com/users/juliensalinas/received_events", "type": "User", "site_admin": false }
[ { "id": 5510857403, "node_id": "LA_kwDOIPDwls8AAAABSHkCuw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation", "name": "needs documentation", "color": "DCAAC0", "default": false, "description": "PR needs to be updated with documentation" }, { "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
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false } ]
null
4
2023-07-19T10:13:37
2023-07-20T07:30:23
2023-07-19T22:27:34
CONTRIBUTOR
null
Add embeddings for [NLPCloud](https://docs.nlpcloud.com/#embeddings).
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7931/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7931/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7931", "html_url": "https://github.com/langchain-ai/langchain/pull/7931", "diff_url": "https://github.com/langchain-ai/langchain/pull/7931.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7931.patch", "merged_at": "2023-07-19T22:27:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/7930
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7930/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7930/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7930/events
https://github.com/langchain-ai/langchain/pull/7930
1,811,608,519
PR_kwDOIPDwls5V38IY
7,930
Add Golden Query Tool
{ "login": "constantinmusca", "id": 1473079, "node_id": "MDQ6VXNlcjE0NzMwNzk=", "avatar_url": "https://avatars.githubusercontent.com/u/1473079?v=4", "gravatar_id": "", "url": "https://api.github.com/users/constantinmusca", "html_url": "https://github.com/constantinmusca", "followers_url": "https://api.github.com/users/constantinmusca/followers", "following_url": "https://api.github.com/users/constantinmusca/following{/other_user}", "gists_url": "https://api.github.com/users/constantinmusca/gists{/gist_id}", "starred_url": "https://api.github.com/users/constantinmusca/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/constantinmusca/subscriptions", "organizations_url": "https://api.github.com/users/constantinmusca/orgs", "repos_url": "https://api.github.com/users/constantinmusca/repos", "events_url": "https://api.github.com/users/constantinmusca/events{/privacy}", "received_events_url": "https://api.github.com/users/constantinmusca/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 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-07-19T10:00:59
2023-07-20T14:03:21
2023-07-20T14:03:20
CONTRIBUTOR
null
**Description:** Golden Query is a wrapper on top of the [Golden Query API](https://docs.golden.com/reference/query-api) which enables programmatic access to query results on entities across Golden's Knowledge Base. For more information about Golden API, please see the [Golden API Getting Started](https://docs.golden.com/reference/getting-started) page. **Issue:** None **Dependencies:** requests(already present in project) **Tag maintainer:** @hinthornw
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7930/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 2, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7930/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7930", "html_url": "https://github.com/langchain-ai/langchain/pull/7930", "diff_url": "https://github.com/langchain-ai/langchain/pull/7930.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7930.patch", "merged_at": "2023-07-20T14:03:20" }
https://api.github.com/repos/langchain-ai/langchain/issues/7929
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7929/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7929/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7929/events
https://github.com/langchain-ai/langchain/pull/7929
1,811,569,569
PR_kwDOIPDwls5V3zlk
7,929
chore(hf-text-gen): extract default params for reusing
{ "login": "edwardzjl", "id": 7287580, "node_id": "MDQ6VXNlcjcyODc1ODA=", "avatar_url": "https://avatars.githubusercontent.com/u/7287580?v=4", "gravatar_id": "", "url": "https://api.github.com/users/edwardzjl", "html_url": "https://github.com/edwardzjl", "followers_url": "https://api.github.com/users/edwardzjl/followers", "following_url": "https://api.github.com/users/edwardzjl/following{/other_user}", "gists_url": "https://api.github.com/users/edwardzjl/gists{/gist_id}", "starred_url": "https://api.github.com/users/edwardzjl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/edwardzjl/subscriptions", "organizations_url": "https://api.github.com/users/edwardzjl/orgs", "repos_url": "https://api.github.com/users/edwardzjl/repos", "events_url": "https://api.github.com/users/edwardzjl/events{/privacy}", "received_events_url": "https://api.github.com/users/edwardzjl/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-07-19T09:37:15
2023-07-20T13:49:12
2023-07-20T13:49:12
CONTRIBUTOR
null
This PR extract common code (default generation params) for `HuggingFaceTextGenInference`.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7929/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7929/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7929", "html_url": "https://github.com/langchain-ai/langchain/pull/7929", "diff_url": "https://github.com/langchain-ai/langchain/pull/7929.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7929.patch", "merged_at": "2023-07-20T13:49:12" }
https://api.github.com/repos/langchain-ai/langchain/issues/7928
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7928/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7928/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7928/events
https://github.com/langchain-ai/langchain/issues/7928
1,811,463,298
I_kwDOIPDwls5r-LyC
7,928
SET search_path TO {self._schema} is executing by SQLDatabase for all databases except 'snowflake' and 'bigquery'.
{ "login": "mail2mhossain", "id": 6905164, "node_id": "MDQ6VXNlcjY5MDUxNjQ=", "avatar_url": "https://avatars.githubusercontent.com/u/6905164?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mail2mhossain", "html_url": "https://github.com/mail2mhossain", "followers_url": "https://api.github.com/users/mail2mhossain/followers", "following_url": "https://api.github.com/users/mail2mhossain/following{/other_user}", "gists_url": "https://api.github.com/users/mail2mhossain/gists{/gist_id}", "starred_url": "https://api.github.com/users/mail2mhossain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mail2mhossain/subscriptions", "organizations_url": "https://api.github.com/users/mail2mhossain/orgs", "repos_url": "https://api.github.com/users/mail2mhossain/repos", "events_url": "https://api.github.com/users/mail2mhossain/events{/privacy}", "received_events_url": "https://api.github.com/users/mail2mhossain/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
4
2023-07-19T08:42:23
2023-12-13T16:08:13
2023-12-13T16:08:12
NONE
null
### System Info LangChain Version- 0.0.235, Windows, Python Version-3.9.16 As per below source code of SQLDatabase, before executing any sql query, connection.exec_driver_sql(f"SET search_path TO {self._schema}") is executed for all database except 'snowflake' and 'bigquery'. if self._schema is not None: if self.dialect == "snowflake": connection.exec_driver_sql( f"ALTER SESSION SET search_path='{self._schema}'" ) elif self.dialect == "bigquery": connection.exec_driver_sql(f"SET @@dataset_id='{self._schema}'") else: connection.exec_driver_sql(f"SET search_path TO {self._schema}") cursor = connection.execute(text(command)) As per my knowledge, The SET search_path command is specific to PostgreSQL, not Oracle. This is why I am getting the following error. sqlalchemy.exc.DatabaseError: (oracledb.exceptions.DatabaseError) ORA-00922: missing or invalid option [SQL: SET search_path TO evr1] (Background on this error at: https://sqlalche.me/e/20/4xp6) Oracle does not recognize this command. I think it is better to use SCHEMA.TABLE in all sql queries. ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction oracle_connection_str = f"oracle+oracledb://{username}:{password}@{hostname}:{port}/?service_name={service_name}" db = SQLDatabase.from_uri( oracle_connection_str, schema="evr1", include_tables=[ ], sample_rows_in_table_info=3, ) llm = ChatOpenAI(model_name=GPT_MODEL, temperature=0, openai_api_key=OpenAI_API_KEY) toolkit = SQLDatabaseToolkit( db=db, llm=llm, ) agent_executor = create_sql_agent( llm=llm, toolkit=toolkit, agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION, return_intermediate_steps=True, handle_parsing_errors=_handle_error, verbose=True, ) response = agent_executor(user_input) ### Expected behavior Should not execute SET search_path TO {self._schema} for Oracle
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7928/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7928/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7927
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7927/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7927/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7927/events
https://github.com/langchain-ai/langchain/pull/7927
1,811,380,064
PR_kwDOIPDwls5V3KBY
7,927
Adding endpoint_url to embeddings/bedrock.py and updated docs
{ "login": "dwaiba", "id": 16762700, "node_id": "MDQ6VXNlcjE2NzYyNzAw", "avatar_url": "https://avatars.githubusercontent.com/u/16762700?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dwaiba", "html_url": "https://github.com/dwaiba", "followers_url": "https://api.github.com/users/dwaiba/followers", "following_url": "https://api.github.com/users/dwaiba/following{/other_user}", "gists_url": "https://api.github.com/users/dwaiba/gists{/gist_id}", "starred_url": "https://api.github.com/users/dwaiba/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dwaiba/subscriptions", "organizations_url": "https://api.github.com/users/dwaiba/orgs", "repos_url": "https://api.github.com/users/dwaiba/repos", "events_url": "https://api.github.com/users/dwaiba/events{/privacy}", "received_events_url": "https://api.github.com/users/dwaiba/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": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-07-19T07:56:15
2023-07-24T10:04:28
2023-07-20T14:26:00
CONTRIBUTOR
null
BedrockEmbeddings does not have endpoint_url so that switching to custom endpoint is not possible. I have access to Bedrock custom endpoint and cannot use BedrockEmbeddings
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7927/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7927/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7927", "html_url": "https://github.com/langchain-ai/langchain/pull/7927", "diff_url": "https://github.com/langchain-ai/langchain/pull/7927.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7927.patch", "merged_at": "2023-07-20T14:26:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/7926
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7926/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7926/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7926/events
https://github.com/langchain-ai/langchain/issues/7926
1,811,368,550
I_kwDOIPDwls5r90pm
7,926
llm can only use OpenAI?
{ "login": "andyzhou1982", "id": 51428368, "node_id": "MDQ6VXNlcjUxNDI4MzY4", "avatar_url": "https://avatars.githubusercontent.com/u/51428368?v=4", "gravatar_id": "", "url": "https://api.github.com/users/andyzhou1982", "html_url": "https://github.com/andyzhou1982", "followers_url": "https://api.github.com/users/andyzhou1982/followers", "following_url": "https://api.github.com/users/andyzhou1982/following{/other_user}", "gists_url": "https://api.github.com/users/andyzhou1982/gists{/gist_id}", "starred_url": "https://api.github.com/users/andyzhou1982/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andyzhou1982/subscriptions", "organizations_url": "https://api.github.com/users/andyzhou1982/orgs", "repos_url": "https://api.github.com/users/andyzhou1982/repos", "events_url": "https://api.github.com/users/andyzhou1982/events{/privacy}", "received_events_url": "https://api.github.com/users/andyzhou1982/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
4
2023-07-19T07:49:20
2023-10-26T16:05:48
2023-10-26T16:05:48
NONE
null
### Issue you'd like to raise. when I use langchain.agents,the parameter llm can only use OpenAI or other large language model ? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7926/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7926/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7925
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7925/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7925/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7925/events
https://github.com/langchain-ai/langchain/issues/7925
1,811,334,507
I_kwDOIPDwls5r9sVr
7,925
Bedrock Embeddings: Add support for endpoint_url
{ "login": "erezzarum", "id": 2168711, "node_id": "MDQ6VXNlcjIxNjg3MTE=", "avatar_url": "https://avatars.githubusercontent.com/u/2168711?v=4", "gravatar_id": "", "url": "https://api.github.com/users/erezzarum", "html_url": "https://github.com/erezzarum", "followers_url": "https://api.github.com/users/erezzarum/followers", "following_url": "https://api.github.com/users/erezzarum/following{/other_user}", "gists_url": "https://api.github.com/users/erezzarum/gists{/gist_id}", "starred_url": "https://api.github.com/users/erezzarum/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/erezzarum/subscriptions", "organizations_url": "https://api.github.com/users/erezzarum/orgs", "repos_url": "https://api.github.com/users/erezzarum/repos", "events_url": "https://api.github.com/users/erezzarum/events{/privacy}", "received_events_url": "https://api.github.com/users/erezzarum/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
2
2023-07-19T07:27:08
2023-10-25T16:06:16
2023-10-25T16:06:15
NONE
null
### System Info Bedrock Embeddings doesn't have support for modifying the endpoint_url, the LLMs one have. ### 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 - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Not able to provide a custom endpoint_url ### Expected behavior Able to provide a custom endpoint_url
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7925/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/7925/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7924
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7924/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7924/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7924/events
https://github.com/langchain-ai/langchain/issues/7924
1,811,300,473
I_kwDOIPDwls5r9kB5
7,924
Issue: Cannot replicate search function on Langchain Milvus
{ "login": "ashczq", "id": 49942750, "node_id": "MDQ6VXNlcjQ5OTQyNzUw", "avatar_url": "https://avatars.githubusercontent.com/u/49942750?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ashczq", "html_url": "https://github.com/ashczq", "followers_url": "https://api.github.com/users/ashczq/followers", "following_url": "https://api.github.com/users/ashczq/following{/other_user}", "gists_url": "https://api.github.com/users/ashczq/gists{/gist_id}", "starred_url": "https://api.github.com/users/ashczq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ashczq/subscriptions", "organizations_url": "https://api.github.com/users/ashczq/orgs", "repos_url": "https://api.github.com/users/ashczq/repos", "events_url": "https://api.github.com/users/ashczq/events{/privacy}", "received_events_url": "https://api.github.com/users/ashczq/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": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
2
2023-07-19T07:06:55
2023-10-25T16:06:22
2023-10-25T16:06:22
NONE
null
### Issue you'd like to raise. Hi I've tried doing the search functionalities using pymilvus and everything works perfectly fine doing similarity search, i am able to get the most relevant documents. However, when i try using the same credentials and parameters on Langchain.vectorstore.Milvus i am unable to replicate the results. Not sure if the connection is correct but my similarity search is returning a blank list. This is the exact same credentials i'm using currently for my on-prem Milvus `vdb = Milvus( collection_name = 'bbc_news', embedding_function = embedding_model, connection_args = {'host': 'server_host','port':'19530','user':'admin','password':'password','database':'db_dsg'}, consistency_level = "Session", index_params = index_params, search_params = search_params )` `vdb.similarity_search("What is the price of crude oil")` Returns a blank list. Am i doing anything wrong here? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7924/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7924/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7923
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7923/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7923/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7923/events
https://github.com/langchain-ai/langchain/issues/7923
1,811,270,099
I_kwDOIPDwls5r9cnT
7,923
InvalidRequestError: Resource not found. when running pandas_dataframe_agent over AzureOpenAI
{ "login": "namgizlat", "id": 71446268, "node_id": "MDQ6VXNlcjcxNDQ2MjY4", "avatar_url": "https://avatars.githubusercontent.com/u/71446268?v=4", "gravatar_id": "", "url": "https://api.github.com/users/namgizlat", "html_url": "https://github.com/namgizlat", "followers_url": "https://api.github.com/users/namgizlat/followers", "following_url": "https://api.github.com/users/namgizlat/following{/other_user}", "gists_url": "https://api.github.com/users/namgizlat/gists{/gist_id}", "starred_url": "https://api.github.com/users/namgizlat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/namgizlat/subscriptions", "organizations_url": "https://api.github.com/users/namgizlat/orgs", "repos_url": "https://api.github.com/users/namgizlat/repos", "events_url": "https://api.github.com/users/namgizlat/events{/privacy}", "received_events_url": "https://api.github.com/users/namgizlat/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-07-19T06:44:17
2023-10-30T12:05:13
2023-10-25T16:06:25
NONE
null
### System Info langchain version: 0.0.216 ### 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 - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from langchain.agents import create_csv_agent from langchain.agents import create_pandas_dataframe_agent from langchain.llms import OpenAI from langchain.chat_models import ChatOpenAI from langchain.agents.agent_types import AgentType from langchain.chat_models import AzureChatOpenAI from langchain.llms import AzureOpenAI import os os.environ["OPENAI_API_TYPE"] = "azure" os.environ["OPENAI_API_VERSION"] = "2023-03-15-preview" os.environ["OPENAI_API_BASE"] = "https://####.openai.azure.com" os.environ["OPENAI_API_KEY"] = "#####" from langchain.llms import OpenAI import pandas as pd df = pd.read_csv("maccabi.csv") agent = create_pandas_dataframe_agent(AzureOpenAI(temperature=0), df, verbose=True) agent.run("how many rows are there?") getting following error: InvalidRequestError Traceback (most recent call last) Cell In[4], line 2 1 #agent.run("how many players's job is scorer and what is their name") ----> 2 agent.run("how many rows are there?") File [~/Library/Python/3.9/lib/python/site-packages/langchain/chains/base.py:290](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/chains/base.py:290), in Chain.run(self, callbacks, tags, *args, **kwargs) 288 if len(args) != 1: 289 raise ValueError("`run` supports only one positional argument.") --> 290 return self(args[0], callbacks=callbacks, tags=tags)[_output_key] 292 if kwargs and not args: 293 return self(kwargs, callbacks=callbacks, tags=tags)[_output_key] File [~/Library/Python/3.9/lib/python/site-packages/langchain/chains/base.py:166](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/chains/base.py:166), in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, include_run_info) 164 except (KeyboardInterrupt, Exception) as e: 165 run_manager.on_chain_error(e) --> 166 raise e 167 run_manager.on_chain_end(outputs) 168 final_outputs: Dict[str, Any] = self.prep_outputs( 169 inputs, outputs, return_only_outputs 170 ) File [~/Library/Python/3.9/lib/python/site-packages/langchain/chains/base.py:160](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/chains/base.py:160), in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, include_run_info) 154 run_manager = callback_manager.on_chain_start( 155 dumpd(self), 156 inputs, 157 ) 158 try: 159 outputs = ( --> 160 self._call(inputs, run_manager=run_manager) 161 if new_arg_supported 162 else self._call(inputs) 163 ) 164 except (KeyboardInterrupt, Exception) as e: 165 run_manager.on_chain_error(e) File [~/Library/Python/3.9/lib/python/site-packages/langchain/agents/agent.py:987](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/agents/agent.py:987), in AgentExecutor._call(self, inputs, run_manager) 985 # We now enter the agent loop (until it returns something). 986 while self._should_continue(iterations, time_elapsed): --> 987 next_step_output = self._take_next_step( 988 name_to_tool_map, 989 color_mapping, 990 inputs, 991 intermediate_steps, 992 run_manager=run_manager, 993 ) 994 if isinstance(next_step_output, AgentFinish): 995 return self._return( 996 next_step_output, intermediate_steps, run_manager=run_manager 997 ) File [~/Library/Python/3.9/lib/python/site-packages/langchain/agents/agent.py:792](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/agents/agent.py:792), in AgentExecutor._take_next_step(self, name_to_tool_map, color_mapping, inputs, intermediate_steps, run_manager) 786 """Take a single step in the thought-action-observation loop. 787 788 Override this to take control of how the agent makes and acts on choices. 789 """ 790 try: 791 # Call the LLM to see what to do. --> 792 output = self.agent.plan( 793 intermediate_steps, 794 callbacks=run_manager.get_child() if run_manager else None, 795 **inputs, 796 ) 797 except OutputParserException as e: 798 if isinstance(self.handle_parsing_errors, bool): File [~/Library/Python/3.9/lib/python/site-packages/langchain/agents/agent.py:443](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/agents/agent.py:443), in Agent.plan(self, intermediate_steps, callbacks, **kwargs) 431 """Given input, decided what to do. 432 433 Args: (...) 440 Action specifying what tool to use. 441 """ 442 full_inputs = self.get_full_inputs(intermediate_steps, **kwargs) --> 443 full_output = self.llm_chain.predict(callbacks=callbacks, **full_inputs) 444 return self.output_parser.parse(full_output) File [~/Library/Python/3.9/lib/python/site-packages/langchain/chains/llm.py:252](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/chains/llm.py:252), in LLMChain.predict(self, callbacks, **kwargs) 237 def predict(self, callbacks: Callbacks = None, **kwargs: Any) -> str: 238 """Format prompt with kwargs and pass to LLM. 239 240 Args: (...) 250 completion = llm.predict(adjective="funny") 251 """ --> 252 return self(kwargs, callbacks=callbacks)[self.output_key] File [~/Library/Python/3.9/lib/python/site-packages/langchain/chains/base.py:166](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/chains/base.py:166), in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, include_run_info) 164 except (KeyboardInterrupt, Exception) as e: 165 run_manager.on_chain_error(e) --> 166 raise e 167 run_manager.on_chain_end(outputs) 168 final_outputs: Dict[str, Any] = self.prep_outputs( 169 inputs, outputs, return_only_outputs 170 ) File [~/Library/Python/3.9/lib/python/site-packages/langchain/chains/base.py:160](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/chains/base.py:160), in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, include_run_info) 154 run_manager = callback_manager.on_chain_start( 155 dumpd(self), 156 inputs, 157 ) 158 try: 159 outputs = ( --> 160 self._call(inputs, run_manager=run_manager) 161 if new_arg_supported 162 else self._call(inputs) 163 ) 164 except (KeyboardInterrupt, Exception) as e: 165 run_manager.on_chain_error(e) File [~/Library/Python/3.9/lib/python/site-packages/langchain/chains/llm.py:92](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/chains/llm.py:92), in LLMChain._call(self, inputs, run_manager) 87 def _call( 88 self, 89 inputs: Dict[str, Any], 90 run_manager: Optional[CallbackManagerForChainRun] = None, 91 ) -> Dict[str, str]: ---> 92 response = self.generate([inputs], run_manager=run_manager) 93 return self.create_outputs(response)[0] File [~/Library/Python/3.9/lib/python/site-packages/langchain/chains/llm.py:102](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/chains/llm.py:102), in LLMChain.generate(self, input_list, run_manager) 100 """Generate LLM result from inputs.""" 101 prompts, stop = self.prep_prompts(input_list, run_manager=run_manager) --> 102 return self.llm.generate_prompt( 103 prompts, 104 stop, 105 callbacks=run_manager.get_child() if run_manager else None, 106 **self.llm_kwargs, 107 ) File [~/Library/Python/3.9/lib/python/site-packages/langchain/llms/base.py:141](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/llms/base.py:141), in BaseLLM.generate_prompt(self, prompts, stop, callbacks, **kwargs) 133 def generate_prompt( 134 self, 135 prompts: List[PromptValue], (...) 138 **kwargs: Any, 139 ) -> LLMResult: 140 prompt_strings = [p.to_string() for p in prompts] --> 141 return self.generate(prompt_strings, stop=stop, callbacks=callbacks, **kwargs) File [~/Library/Python/3.9/lib/python/site-packages/langchain/llms/base.py:227](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/llms/base.py:227), in BaseLLM.generate(self, prompts, stop, callbacks, tags, **kwargs) 221 raise ValueError( 222 "Asked to cache, but no cache found at `langchain.cache`." 223 ) 224 run_managers = callback_manager.on_llm_start( 225 dumpd(self), prompts, invocation_params=params, options=options 226 ) --> 227 output = self._generate_helper( 228 prompts, stop, run_managers, bool(new_arg_supported), **kwargs 229 ) 230 return output 231 if len(missing_prompts) > 0: File [~/Library/Python/3.9/lib/python/site-packages/langchain/llms/base.py:178](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/llms/base.py:178), in BaseLLM._generate_helper(self, prompts, stop, run_managers, new_arg_supported, **kwargs) 176 for run_manager in run_managers: 177 run_manager.on_llm_error(e) --> 178 raise e 179 flattened_outputs = output.flatten() 180 for manager, flattened_output in zip(run_managers, flattened_outputs): File [~/Library/Python/3.9/lib/python/site-packages/langchain/llms/base.py:165](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/llms/base.py:165), in BaseLLM._generate_helper(self, prompts, stop, run_managers, new_arg_supported, **kwargs) 155 def _generate_helper( 156 self, 157 prompts: List[str], (...) 161 **kwargs: Any, 162 ) -> LLMResult: 163 try: 164 output = ( --> 165 self._generate( 166 prompts, 167 stop=stop, 168 # TODO: support multiple run managers 169 run_manager=run_managers[0] if run_managers else None, 170 **kwargs, 171 ) 172 if new_arg_supported 173 else self._generate(prompts, stop=stop) 174 ) 175 except (KeyboardInterrupt, Exception) as e: 176 for run_manager in run_managers: File [~/Library/Python/3.9/lib/python/site-packages/langchain/llms/openai.py:336](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/llms/openai.py:336), in BaseOpenAI._generate(self, prompts, stop, run_manager, **kwargs) 334 choices.extend(response["choices"]) 335 else: --> 336 response = completion_with_retry(self, prompt=_prompts, **params) 337 choices.extend(response["choices"]) 338 if not self.streaming: 339 # Can't update token usage if streaming File [~/Library/Python/3.9/lib/python/site-packages/langchain/llms/openai.py:106](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/llms/openai.py:106), in completion_with_retry(llm, **kwargs) 102 @retry_decorator 103 def _completion_with_retry(**kwargs: Any) -> Any: 104 return llm.client.create(**kwargs) --> 106 return _completion_with_retry(**kwargs) File [~/Library/Python/3.9/lib/python/site-packages/tenacity/__init__.py:289](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/tenacity/__init__.py:289), in BaseRetrying.wraps..wrapped_f(*args, **kw) 287 @functools.wraps(f) 288 def wrapped_f(*args: t.Any, **kw: t.Any) -> t.Any: --> 289 return self(f, *args, **kw) File [~/Library/Python/3.9/lib/python/site-packages/tenacity/__init__.py:379](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/tenacity/__init__.py:379), in Retrying.__call__(self, fn, *args, **kwargs) 377 retry_state = RetryCallState(retry_object=self, fn=fn, args=args, kwargs=kwargs) 378 while True: --> 379 do = self.iter(retry_state=retry_state) 380 if isinstance(do, DoAttempt): 381 try: File [~/Library/Python/3.9/lib/python/site-packages/tenacity/__init__.py:314](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/tenacity/__init__.py:314), in BaseRetrying.iter(self, retry_state) 312 is_explicit_retry = fut.failed and isinstance(fut.exception(), TryAgain) 313 if not (is_explicit_retry or self.retry(retry_state)): --> 314 return fut.result() 316 if self.after is not None: 317 self.after(retry_state) File [/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py:438](https://file+.vscode-resource.vscode-cdn.net/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py:438), in Future.result(self, timeout) 436 raise CancelledError() 437 elif self._state == FINISHED: --> 438 return self.__get_result() 440 self._condition.wait(timeout) 442 if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]: File [/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py:390](https://file+.vscode-resource.vscode-cdn.net/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py:390), in Future.__get_result(self) 388 if self._exception: 389 try: --> 390 raise self._exception 391 finally: 392 # Break a reference cycle with the exception in self._exception 393 self = None File [~/Library/Python/3.9/lib/python/site-packages/tenacity/__init__.py:382](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/tenacity/__init__.py:382), in Retrying.__call__(self, fn, *args, **kwargs) 380 if isinstance(do, DoAttempt): 381 try: --> 382 result = fn(*args, **kwargs) 383 except BaseException: # noqa: B902 384 retry_state.set_exception(sys.exc_info()) # type: ignore[arg-type] File [~/Library/Python/3.9/lib/python/site-packages/langchain/llms/openai.py:104](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/langchain/llms/openai.py:104), in completion_with_retry.._completion_with_retry(**kwargs) 102 @retry_decorator 103 def _completion_with_retry(**kwargs: Any) -> Any: --> 104 return llm.client.create(**kwargs) File [~/Library/Python/3.9/lib/python/site-packages/openai/api_resources/completion.py:25](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/openai/api_resources/completion.py:25), in Completion.create(cls, *args, **kwargs) 23 while True: 24 try: ---> 25 return super().create(*args, **kwargs) 26 except TryAgain as e: 27 if timeout is not None and time.time() > start + timeout: File [~/Library/Python/3.9/lib/python/site-packages/openai/api_resources/abstract/engine_api_resource.py:153](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/openai/api_resources/abstract/engine_api_resource.py:153), in EngineAPIResource.create(cls, api_key, api_base, api_type, request_id, api_version, organization, **params) 127 @classmethod 128 def create( 129 cls, (...) 136 **params, 137 ): 138 ( 139 deployment_id, 140 engine, (...) 150 api_key, api_base, api_type, api_version, organization, **params 151 ) --> 153 response, _, api_key = requestor.request( 154 "post", 155 url, 156 params=params, 157 headers=headers, 158 stream=stream, 159 request_id=request_id, 160 request_timeout=request_timeout, 161 ) 163 if stream: 164 # must be an iterator 165 assert not isinstance(response, OpenAIResponse) File [~/Library/Python/3.9/lib/python/site-packages/openai/api_requestor.py:230](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/openai/api_requestor.py:230), in APIRequestor.request(self, method, url, params, headers, files, stream, request_id, request_timeout) 209 def request( 210 self, 211 method, (...) 218 request_timeout: Optional[Union[float, Tuple[float, float]]] = None, 219 ) -> Tuple[Union[OpenAIResponse, Iterator[OpenAIResponse]], bool, str]: 220 result = self.request_raw( 221 method.lower(), 222 url, (...) 228 request_timeout=request_timeout, 229 ) --> 230 resp, got_stream = self._interpret_response(result, stream) 231 return resp, got_stream, self.api_key File [~/Library/Python/3.9/lib/python/site-packages/openai/api_requestor.py:624](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/openai/api_requestor.py:624), in APIRequestor._interpret_response(self, result, stream) 616 return ( 617 self._interpret_response_line( 618 line, result.status_code, result.headers, stream=True 619 ) 620 for line in parse_stream(result.iter_lines()) 621 ), True 622 else: 623 return ( --> 624 self._interpret_response_line( 625 result.content.decode("utf-8"), 626 result.status_code, 627 result.headers, 628 stream=False, 629 ), 630 False, 631 ) File [~/Library/Python/3.9/lib/python/site-packages/openai/api_requestor.py:687](https://file+.vscode-resource.vscode-cdn.net/Users/talzigm/Library/CloudStorage/OneDrive-AMDOCS/Documents/openai/notebooks/autogpt/~/Library/Python/3.9/lib/python/site-packages/openai/api_requestor.py:687), in APIRequestor._interpret_response_line(self, rbody, rcode, rheaders, stream) 685 stream_error = stream and "error" in resp.data 686 if stream_error or not 200 <= rcode < 300: --> 687 raise self.handle_error_response( 688 rbody, rcode, resp.data, rheaders, stream_error=stream_error 689 ) 690 return resp InvalidRequestError: Resource not found ### Expected behavior getting correct response
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7923/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7923/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7922
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7922/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7922/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7922/events
https://github.com/langchain-ai/langchain/pull/7922
1,811,256,887
PR_kwDOIPDwls5V2vWV
7,922
Add k param for return top documents
{ "login": "vnk8071", "id": 78080480, "node_id": "MDQ6VXNlcjc4MDgwNDgw", "avatar_url": "https://avatars.githubusercontent.com/u/78080480?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vnk8071", "html_url": "https://github.com/vnk8071", "followers_url": "https://api.github.com/users/vnk8071/followers", "following_url": "https://api.github.com/users/vnk8071/following{/other_user}", "gists_url": "https://api.github.com/users/vnk8071/gists{/gist_id}", "starred_url": "https://api.github.com/users/vnk8071/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vnk8071/subscriptions", "organizations_url": "https://api.github.com/users/vnk8071/orgs", "repos_url": "https://api.github.com/users/vnk8071/repos", "events_url": "https://api.github.com/users/vnk8071/events{/privacy}", "received_events_url": "https://api.github.com/users/vnk8071/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
2
2023-07-19T06:34:35
2023-07-22T07:47:04
2023-07-22T07:46:56
NONE
null
- Description: Add k parameter to return top document, - Issue: the issue # it fixes (if applicable), - Dependencies: no, - Tag maintainer: @rlancemartin, @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7922/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7922/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7922", "html_url": "https://github.com/langchain-ai/langchain/pull/7922", "diff_url": "https://github.com/langchain-ai/langchain/pull/7922.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7922.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7921
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7921/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7921/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7921/events
https://github.com/langchain-ai/langchain/issues/7921
1,811,200,154
I_kwDOIPDwls5r9Lia
7,921
Issue: Not getting good chat results on enabling Coversation Memory in langchain
{ "login": "dkiran1", "id": 101701521, "node_id": "U_kgDOBg_XkQ", "avatar_url": "https://avatars.githubusercontent.com/u/101701521?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dkiran1", "html_url": "https://github.com/dkiran1", "followers_url": "https://api.github.com/users/dkiran1/followers", "following_url": "https://api.github.com/users/dkiran1/following{/other_user}", "gists_url": "https://api.github.com/users/dkiran1/gists{/gist_id}", "starred_url": "https://api.github.com/users/dkiran1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dkiran1/subscriptions", "organizations_url": "https://api.github.com/users/dkiran1/orgs", "repos_url": "https://api.github.com/users/dkiran1/repos", "events_url": "https://api.github.com/users/dkiran1/events{/privacy}", "received_events_url": "https://api.github.com/users/dkiran1/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 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
10
2023-07-19T05:47:22
2023-10-27T16:06:29
2023-10-27T16:06:28
NONE
null
### Issue you'd like to raise. Hi, Here is how i have initilized conversation memory memory = ConversationSummaryBufferMemory(llm=llm_model,memory_key="chat_history",return_messages=True,max_token_limit=500) Here is how I have used ConversationalRetrievalChain chain=ConversationalRetrievalChain.from_llm(llm_model,retriever=vector.as_retriever(search_kwargs={"k": 10}), memory=memory,verbose=True) I could see that answer for first question will be good, on asking further questions with result = chain({"question": <question>}) answer from bot is not good for few questions. With verbose enabled I have observed that apart from the actual history langchain is adding few more conversations by itself. Is there a way to supress this(adding additional conversation) I also tried with ConversationBufferWindowMemory aswell. There also Iam seeing the performance drop. I tried with new langchain version as well "0.0.235", there also Iam seeing the same issue. Could you help me to undersatnd if this is an existing issue or any mistake am I doing while configuring ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7921/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7921/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7920
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7920/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7920/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7920/events
https://github.com/langchain-ai/langchain/pull/7920
1,811,155,157
PR_kwDOIPDwls5V2ZRc
7,920
Embeddings Callbacks
{ "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": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
5
2023-07-19T05:08:49
2023-12-14T13:45:06
2023-10-03T01:50:51
COLLABORATOR
null
Similar to https://github.com/hwchase17/langchainjs/pull/1859 from the JS lib (though haven't made serializable yet). Example run: https://dev.smith.langchain.com/public/674633d8-9c38-4cdc-bd11-53202879fad1/r Would like alignment on - New base class vs update existing - Whether OK to stop supporting 'chunk_size' at call time for a handful And this still doesn't address our retriever -> vector store -> embeddings flows. Will need to update a lot of those similarity score methods to accept callbacks since they're all called under the hood.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7920/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/7920/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7920", "html_url": "https://github.com/langchain-ai/langchain/pull/7920", "diff_url": "https://github.com/langchain-ai/langchain/pull/7920.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7920.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7919
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7919/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7919/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7919/events
https://github.com/langchain-ai/langchain/pull/7919
1,811,145,326
PR_kwDOIPDwls5V2XEO
7,919
improve insert performance for hologres
{ "login": "zcgeng", "id": 13724617, "node_id": "MDQ6VXNlcjEzNzI0NjE3", "avatar_url": "https://avatars.githubusercontent.com/u/13724617?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zcgeng", "html_url": "https://github.com/zcgeng", "followers_url": "https://api.github.com/users/zcgeng/followers", "following_url": "https://api.github.com/users/zcgeng/following{/other_user}", "gists_url": "https://api.github.com/users/zcgeng/gists{/gist_id}", "starred_url": "https://api.github.com/users/zcgeng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zcgeng/subscriptions", "organizations_url": "https://api.github.com/users/zcgeng/orgs", "repos_url": "https://api.github.com/users/zcgeng/repos", "events_url": "https://api.github.com/users/zcgeng/events{/privacy}", "received_events_url": "https://api.github.com/users/zcgeng/received_events", "type": "User", "site_admin": false }
[ { "id": 5463330795, "node_id": "LA_kwDOIPDwls8AAAABRaPP6w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20test", "name": "needs test", "color": "E99695", "default": false, "description": "PR needs to be updated with tests" }, { "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
3
2023-07-19T05:00:18
2023-08-01T07:05:12
2023-08-01T07:05:12
CONTRIBUTOR
null
Hi, I made some code changes on Hologres vector store to improve the data insertion performance. The code has passed the format/lint/spell check. And I have run the unit test for Hologres connecting to my own database. Please check this PR, thanks! @rlancemartin, @eyurtsev Best, Changgeng
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7919/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7919/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7919", "html_url": "https://github.com/langchain-ai/langchain/pull/7919", "diff_url": "https://github.com/langchain-ai/langchain/pull/7919.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7919.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7918
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7918/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7918/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7918/events
https://github.com/langchain-ai/langchain/pull/7918
1,811,130,624
PR_kwDOIPDwls5V2T4H
7,918
Docs Nit
{ "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-07-19T04:42:44
2023-07-19T04:47:29
2023-07-19T04:47:28
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7918/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7918/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7918", "html_url": "https://github.com/langchain-ai/langchain/pull/7918", "diff_url": "https://github.com/langchain-ai/langchain/pull/7918.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7918.patch", "merged_at": "2023-07-19T04:47:28" }
https://api.github.com/repos/langchain-ai/langchain/issues/7917
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7917/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7917/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7917/events
https://github.com/langchain-ai/langchain/pull/7917
1,810,950,511
PR_kwDOIPDwls5V1tpJ
7,917
reverting openai embeddings changes
{ "login": "vrushankportkey", "id": 134934501, "node_id": "U_kgDOCArv5Q", "avatar_url": "https://avatars.githubusercontent.com/u/134934501?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vrushankportkey", "html_url": "https://github.com/vrushankportkey", "followers_url": "https://api.github.com/users/vrushankportkey/followers", "following_url": "https://api.github.com/users/vrushankportkey/following{/other_user}", "gists_url": "https://api.github.com/users/vrushankportkey/gists{/gist_id}", "starred_url": "https://api.github.com/users/vrushankportkey/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vrushankportkey/subscriptions", "organizations_url": "https://api.github.com/users/vrushankportkey/orgs", "repos_url": "https://api.github.com/users/vrushankportkey/repos", "events_url": "https://api.github.com/users/vrushankportkey/events{/privacy}", "received_events_url": "https://api.github.com/users/vrushankportkey/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-07-19T01:08:29
2023-07-19T01:08:50
2023-07-19T01:08:49
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7917/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7917/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7917", "html_url": "https://github.com/langchain-ai/langchain/pull/7917", "diff_url": "https://github.com/langchain-ai/langchain/pull/7917.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7917.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7916
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7916/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7916/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7916/events
https://github.com/langchain-ai/langchain/pull/7916
1,810,933,013
PR_kwDOIPDwls5V1p2Z
7,916
Equal Sized Chunks | Adds BalancedRecursiveCharacterTextSplitter to text_splitter.py
{ "login": "ShelbyJenkins", "id": 47464908, "node_id": "MDQ6VXNlcjQ3NDY0OTA4", "avatar_url": "https://avatars.githubusercontent.com/u/47464908?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ShelbyJenkins", "html_url": "https://github.com/ShelbyJenkins", "followers_url": "https://api.github.com/users/ShelbyJenkins/followers", "following_url": "https://api.github.com/users/ShelbyJenkins/following{/other_user}", "gists_url": "https://api.github.com/users/ShelbyJenkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/ShelbyJenkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShelbyJenkins/subscriptions", "organizations_url": "https://api.github.com/users/ShelbyJenkins/orgs", "repos_url": "https://api.github.com/users/ShelbyJenkins/repos", "events_url": "https://api.github.com/users/ShelbyJenkins/events{/privacy}", "received_events_url": "https://api.github.com/users/ShelbyJenkins/received_events", "type": "User", "site_admin": false }
[ { "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": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false } ]
null
4
2023-07-19T00:43:38
2023-08-04T03:14:55
2023-08-04T03:14:55
CONTRIBUTOR
null
- Description: the RecursiveCharacterTextSplitter often leaves final chunks that are too small too be useful. I added this class to ensure that all chunk sizes conform to the desired chunk size. Included docs and a Juypter notebook. - Issue: None, - Dependencies: None, - Tag maintainer: @rlancemartin, @eyurtsev @baskaryan, - Twitter handle: @J_Shelby_J
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7916/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7916/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7916", "html_url": "https://github.com/langchain-ai/langchain/pull/7916", "diff_url": "https://github.com/langchain-ai/langchain/pull/7916.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7916.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7915
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7915/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7915/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7915/events
https://github.com/langchain-ai/langchain/pull/7915
1,810,869,855
PR_kwDOIPDwls5V1cBH
7,915
Fix load map reduce documents chain
{ "login": "deepblue", "id": 2792, "node_id": "MDQ6VXNlcjI3OTI=", "avatar_url": "https://avatars.githubusercontent.com/u/2792?v=4", "gravatar_id": "", "url": "https://api.github.com/users/deepblue", "html_url": "https://github.com/deepblue", "followers_url": "https://api.github.com/users/deepblue/followers", "following_url": "https://api.github.com/users/deepblue/following{/other_user}", "gists_url": "https://api.github.com/users/deepblue/gists{/gist_id}", "starred_url": "https://api.github.com/users/deepblue/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/deepblue/subscriptions", "organizations_url": "https://api.github.com/users/deepblue/orgs", "repos_url": "https://api.github.com/users/deepblue/repos", "events_url": "https://api.github.com/users/deepblue/events{/privacy}", "received_events_url": "https://api.github.com/users/deepblue/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": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false } ]
null
1
2023-07-18T23:36:51
2023-08-04T06:27:38
2023-08-04T06:27:38
CONTRIBUTOR
null
This PR updates _load_reduce_documents_chain to handle `reduce_documents_chain` and `combine_documents_chain` config Please review @hwchase17, @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7915/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7915/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7915", "html_url": "https://github.com/langchain-ai/langchain/pull/7915", "diff_url": "https://github.com/langchain-ai/langchain/pull/7915.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7915.patch", "merged_at": "2023-08-04T06:27:38" }
https://api.github.com/repos/langchain-ai/langchain/issues/7914
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7914/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7914/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7914/events
https://github.com/langchain-ai/langchain/pull/7914
1,810,833,793
PR_kwDOIPDwls5V1UAR
7,914
add serializer methods
{ "login": "balnarendrasapa", "id": 61614290, "node_id": "MDQ6VXNlcjYxNjE0Mjkw", "avatar_url": "https://avatars.githubusercontent.com/u/61614290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/balnarendrasapa", "html_url": "https://github.com/balnarendrasapa", "followers_url": "https://api.github.com/users/balnarendrasapa/followers", "following_url": "https://api.github.com/users/balnarendrasapa/following{/other_user}", "gists_url": "https://api.github.com/users/balnarendrasapa/gists{/gist_id}", "starred_url": "https://api.github.com/users/balnarendrasapa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/balnarendrasapa/subscriptions", "organizations_url": "https://api.github.com/users/balnarendrasapa/orgs", "repos_url": "https://api.github.com/users/balnarendrasapa/repos", "events_url": "https://api.github.com/users/balnarendrasapa/events{/privacy}", "received_events_url": "https://api.github.com/users/balnarendrasapa/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-07-18T22:53:36
2023-08-04T14:21:27
2023-08-04T03:10:36
CONTRIBUTOR
null
Description: I have added two methods serializer and deserializer methods. There was method called save local but it saves the to the local disk. I wanted the vectorstore in the format using which i can push it to the sql database's blob field. I have used this while i was working on something @rlancemartin, @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7914/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7914/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7914", "html_url": "https://github.com/langchain-ai/langchain/pull/7914", "diff_url": "https://github.com/langchain-ai/langchain/pull/7914.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7914.patch", "merged_at": "2023-08-04T03:10:36" }
https://api.github.com/repos/langchain-ai/langchain/issues/7913
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7913/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7913/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7913/events
https://github.com/langchain-ai/langchain/pull/7913
1,810,788,088
PR_kwDOIPDwls5V1J2y
7,913
Add Llama-v2 to Llama.cpp notebook
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-07-18T22:05:23
2023-07-18T22:13:28
2023-07-18T22:13:28
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7913/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7913/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7913", "html_url": "https://github.com/langchain-ai/langchain/pull/7913", "diff_url": "https://github.com/langchain-ai/langchain/pull/7913.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7913.patch", "merged_at": "2023-07-18T22:13:28" }
https://api.github.com/repos/langchain-ai/langchain/issues/7911
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7911/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7911/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7911/events
https://github.com/langchain-ai/langchain/pull/7911
1,810,743,502
PR_kwDOIPDwls5V1AAF
7,911
fix 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": 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-07-18T21:25:41
2023-07-18T21:25:59
2023-07-18T21:25:46
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7911/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7911/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7911", "html_url": "https://github.com/langchain-ai/langchain/pull/7911", "diff_url": "https://github.com/langchain-ai/langchain/pull/7911.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7911.patch", "merged_at": "2023-07-18T21:25:46" }
https://api.github.com/repos/langchain-ai/langchain/issues/7910
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7910/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7910/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7910/events
https://github.com/langchain-ai/langchain/pull/7910
1,810,735,409
PR_kwDOIPDwls5V0-Oa
7,910
Qdrant Vectorstore
{ "login": "hanit-com", "id": 37485638, "node_id": "MDQ6VXNlcjM3NDg1NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/37485638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hanit-com", "html_url": "https://github.com/hanit-com", "followers_url": "https://api.github.com/users/hanit-com/followers", "following_url": "https://api.github.com/users/hanit-com/following{/other_user}", "gists_url": "https://api.github.com/users/hanit-com/gists{/gist_id}", "starred_url": "https://api.github.com/users/hanit-com/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hanit-com/subscriptions", "organizations_url": "https://api.github.com/users/hanit-com/orgs", "repos_url": "https://api.github.com/users/hanit-com/repos", "events_url": "https://api.github.com/users/hanit-com/events{/privacy}", "received_events_url": "https://api.github.com/users/hanit-com/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
4
2023-07-18T21:18:58
2023-07-20T14:15:35
2023-07-20T13:58:55
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this 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 you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> @baskaryan @rlancemartin, @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7910/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7910/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7910", "html_url": "https://github.com/langchain-ai/langchain/pull/7910", "diff_url": "https://github.com/langchain-ai/langchain/pull/7910.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7910.patch", "merged_at": "2023-07-20T13:58:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/7908
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7908/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7908/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7908/events
https://github.com/langchain-ai/langchain/pull/7908
1,810,705,337
PR_kwDOIPDwls5V03ht
7,908
pass callbacks along baby ai
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-07-18T20:56:57
2023-07-20T05:40:35
2023-07-20T05:40:34
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7908/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7908/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7908", "html_url": "https://github.com/langchain-ai/langchain/pull/7908", "diff_url": "https://github.com/langchain-ai/langchain/pull/7908.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7908.patch", "merged_at": "2023-07-20T05:40:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/7907
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7907/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7907/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7907/events
https://github.com/langchain-ai/langchain/pull/7907
1,810,681,272
PR_kwDOIPDwls5V0yPc
7,907
Allow chat models that do not return token usage
{ "login": "alonsosilvaallende", "id": 30263736, "node_id": "MDQ6VXNlcjMwMjYzNzM2", "avatar_url": "https://avatars.githubusercontent.com/u/30263736?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alonsosilvaallende", "html_url": "https://github.com/alonsosilvaallende", "followers_url": "https://api.github.com/users/alonsosilvaallende/followers", "following_url": "https://api.github.com/users/alonsosilvaallende/following{/other_user}", "gists_url": "https://api.github.com/users/alonsosilvaallende/gists{/gist_id}", "starred_url": "https://api.github.com/users/alonsosilvaallende/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alonsosilvaallende/subscriptions", "organizations_url": "https://api.github.com/users/alonsosilvaallende/orgs", "repos_url": "https://api.github.com/users/alonsosilvaallende/repos", "events_url": "https://api.github.com/users/alonsosilvaallende/events{/privacy}", "received_events_url": "https://api.github.com/users/alonsosilvaallende/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
3
2023-07-18T20:39:11
2023-07-19T06:58:55
2023-07-19T01:12:09
CONTRIBUTOR
null
- Description: It allows to use chat models that do not return token usage - Issue: [#7900](https://github.com/hwchase17/langchain/issues/7900) - Dependencies: None - Tag maintainer: @agola11 @hwchase17 - Twitter handle: @alonsosilva
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7907/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7907/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7907", "html_url": "https://github.com/langchain-ai/langchain/pull/7907", "diff_url": "https://github.com/langchain-ai/langchain/pull/7907.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7907.patch", "merged_at": "2023-07-19T01:12:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/7906
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7906/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7906/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7906/events
https://github.com/langchain-ai/langchain/pull/7906
1,810,676,382
PR_kwDOIPDwls5V0xJ6
7,906
Added Databricks support to MLflow Callback
{ "login": "rithwik-db", "id": 81988348, "node_id": "MDQ6VXNlcjgxOTg4MzQ4", "avatar_url": "https://avatars.githubusercontent.com/u/81988348?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rithwik-db", "html_url": "https://github.com/rithwik-db", "followers_url": "https://api.github.com/users/rithwik-db/followers", "following_url": "https://api.github.com/users/rithwik-db/following{/other_user}", "gists_url": "https://api.github.com/users/rithwik-db/gists{/gist_id}", "starred_url": "https://api.github.com/users/rithwik-db/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rithwik-db/subscriptions", "organizations_url": "https://api.github.com/users/rithwik-db/orgs", "repos_url": "https://api.github.com/users/rithwik-db/repos", "events_url": "https://api.github.com/users/rithwik-db/events{/privacy}", "received_events_url": "https://api.github.com/users/rithwik-db/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
4
2023-07-18T20:35:35
2023-07-26T01:23:55
2023-07-26T01:23:55
CONTRIBUTOR
null
Added a quick check to make integration easier with Databricks; another option would be to make a new class, but this seemed more straightfoward. cc: @liangz1 Can this be done in a more straightfoward way?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7906/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7906/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7906", "html_url": "https://github.com/langchain-ai/langchain/pull/7906", "diff_url": "https://github.com/langchain-ai/langchain/pull/7906.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7906.patch", "merged_at": "2023-07-26T01:23:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/7905
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7905/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7905/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7905/events
https://github.com/langchain-ai/langchain/issues/7905
1,810,665,965
I_kwDOIPDwls5r7JHt
7,905
Implementing search threshold on PGVector
{ "login": "hanit-com", "id": 37485638, "node_id": "MDQ6VXNlcjM3NDg1NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/37485638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hanit-com", "html_url": "https://github.com/hanit-com", "followers_url": "https://api.github.com/users/hanit-com/followers", "following_url": "https://api.github.com/users/hanit-com/following{/other_user}", "gists_url": "https://api.github.com/users/hanit-com/gists{/gist_id}", "starred_url": "https://api.github.com/users/hanit-com/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hanit-com/subscriptions", "organizations_url": "https://api.github.com/users/hanit-com/orgs", "repos_url": "https://api.github.com/users/hanit-com/repos", "events_url": "https://api.github.com/users/hanit-com/events{/privacy}", "received_events_url": "https://api.github.com/users/hanit-com/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-07-18T20:27:50
2023-07-18T20:29:07
2023-07-18T20:29:07
CONTRIBUTOR
null
### Issue you'd like to raise. Implementing _similarity_search_with_relevance_scores on PGVector so users can set "search_type" to "similarity_score_threshold" without raising NotImplementedError. ``` retriever = pgvector.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": 0.7}) results = retriever.get_relevant_documents(query) ``` Using the search threshold on PGVector to avoid unrelated documents in the results. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7905/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/7905/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7904
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7904/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7904/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7904/events
https://github.com/langchain-ai/langchain/pull/7904
1,810,647,670
PR_kwDOIPDwls5V0qtc
7,904
add pr template instructions
{ "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-07-18T20:15:19
2023-07-18T20:22:29
2023-07-18T20:22:28
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7904/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7904/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7904", "html_url": "https://github.com/langchain-ai/langchain/pull/7904", "diff_url": "https://github.com/langchain-ai/langchain/pull/7904.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7904.patch", "merged_at": "2023-07-18T20:22:28" }
https://api.github.com/repos/langchain-ai/langchain/issues/7902
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7902/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7902/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7902/events
https://github.com/langchain-ai/langchain/issues/7902
1,810,625,788
I_kwDOIPDwls5r6_T8
7,902
Async calls for HuggingFaceHub
{ "login": "cserpell", "id": 858784, "node_id": "MDQ6VXNlcjg1ODc4NA==", "avatar_url": "https://avatars.githubusercontent.com/u/858784?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cserpell", "html_url": "https://github.com/cserpell", "followers_url": "https://api.github.com/users/cserpell/followers", "following_url": "https://api.github.com/users/cserpell/following{/other_user}", "gists_url": "https://api.github.com/users/cserpell/gists{/gist_id}", "starred_url": "https://api.github.com/users/cserpell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cserpell/subscriptions", "organizations_url": "https://api.github.com/users/cserpell/orgs", "repos_url": "https://api.github.com/users/cserpell/repos", "events_url": "https://api.github.com/users/cserpell/events{/privacy}", "received_events_url": "https://api.github.com/users/cserpell/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
6
2023-07-18T19:59:17
2023-11-15T16:08:10
2023-11-15T16:08:09
NONE
null
### Feature request It would be nice if HuggingFaceHub models could be called in async mode (concurrently), as currently supported by Anthropic and OpenAI models. ### Motivation I wanted to compare performance of some models in a bunch of tasks. I was comparing Anthropic and OpenAI models, and when I tried using a HuggingFaceHub model, I noticed this functionality is not implemented. ### Your contribution I would like to know if someone is already taking on this. I could try to replicate code from other APIs to do it, but I am not sure I would be able to get to a level that is high enough to submit to LangChain.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7902/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7902/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7901
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7901/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7901/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7901/events
https://github.com/langchain-ai/langchain/pull/7901
1,810,624,088
PR_kwDOIPDwls5V0lgS
7,901
Adding code to allow pandas to show all columns instead of truncating…
{ "login": "eahova", "id": 4044511, "node_id": "MDQ6VXNlcjQwNDQ1MTE=", "avatar_url": "https://avatars.githubusercontent.com/u/4044511?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eahova", "html_url": "https://github.com/eahova", "followers_url": "https://api.github.com/users/eahova/followers", "following_url": "https://api.github.com/users/eahova/following{/other_user}", "gists_url": "https://api.github.com/users/eahova/gists{/gist_id}", "starred_url": "https://api.github.com/users/eahova/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eahova/subscriptions", "organizations_url": "https://api.github.com/users/eahova/orgs", "repos_url": "https://api.github.com/users/eahova/repos", "events_url": "https://api.github.com/users/eahova/events{/privacy}", "received_events_url": "https://api.github.com/users/eahova/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
3
2023-07-18T19:57:58
2023-07-20T14:02:02
2023-07-20T14:02:02
CONTRIBUTOR
null
- Description: Adding code to set pandas dataframe to display all the columns. Otherwise, some data get truncated (it puts a "..." in the middle and just shows the first 4 and last 4 columns) and the LLM doesn't realize it isn't getting the full data. Default value is 8, so this helps Dataframes larger than that. - Issue: none - Dependencies: none - Tag maintainer: @hinthornw - Twitter handle: none
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7901/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7901/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7901", "html_url": "https://github.com/langchain-ai/langchain/pull/7901", "diff_url": "https://github.com/langchain-ai/langchain/pull/7901.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7901.patch", "merged_at": "2023-07-20T14:02:02" }
https://api.github.com/repos/langchain-ai/langchain/issues/7900
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7900/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7900/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7900/events
https://github.com/langchain-ai/langchain/issues/7900
1,810,580,170
I_kwDOIPDwls5r60LK
7,900
ChatOpenAI needs usage field that Google PaLM 2 Bison doesn't provide
{ "login": "alonsosilvaallende", "id": 30263736, "node_id": "MDQ6VXNlcjMwMjYzNzM2", "avatar_url": "https://avatars.githubusercontent.com/u/30263736?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alonsosilvaallende", "html_url": "https://github.com/alonsosilvaallende", "followers_url": "https://api.github.com/users/alonsosilvaallende/followers", "following_url": "https://api.github.com/users/alonsosilvaallende/following{/other_user}", "gists_url": "https://api.github.com/users/alonsosilvaallende/gists{/gist_id}", "starred_url": "https://api.github.com/users/alonsosilvaallende/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alonsosilvaallende/subscriptions", "organizations_url": "https://api.github.com/users/alonsosilvaallende/orgs", "repos_url": "https://api.github.com/users/alonsosilvaallende/repos", "events_url": "https://api.github.com/users/alonsosilvaallende/events{/privacy}", "received_events_url": "https://api.github.com/users/alonsosilvaallende/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-07-18T19:25:22
2023-09-22T07:58:21
2023-09-22T07:58:21
CONTRIBUTOR
null
### System Info Langhain v0.0.235 Python v3.11 ### Who can help? @agola11 @hw ### 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 I'm using OpenRouter which uses OpenAI SDK to provide different models. I encounter the problem when I use the model 'google/palm-2-chat-bison' Here is the [gist](https://gist.github.com/alonsosilvaallende/6788eaa388bfa7e60ce84e7e155a86b5) reproducing the error. Otherwise, here is the code: ```python import os import openai from langchain.chat_models import ChatOpenAI openai.api_base = "https://openrouter.ai/api/v1" openai.api_key = os.getenv("OPENROUTER_API_KEY") OPENROUTER_REFERRER = "https://github.com/alexanderatallah/openrouter-streamlit" chat = ChatOpenAI(model_name="google/palm-2-chat-bison", temperature=2, headers={"HTTP-Referer": OPENROUTER_REFERRER}) chat.predict("Tell me a joke") ``` Error message: --------------------------------------------------------------------------- KeyError Traceback (most recent call last) Cell In[3], line 13 7 OPENROUTER_REFERRER = "https://github.com/alexanderatallah/openrouter-streamlit" 8 chat = ChatOpenAI( 9 model_name="google/palm-2-chat-bison", 10 temperature=2, 11 headers={"HTTP-Referer": OPENROUTER_REFERRER} 12 ) ---> 13 chat.predict("Tell me a joke") File ~/miniconda3/envs/langchain/lib/python3.11/site-packages/langchain/chat_models/base.py:385, in BaseChatModel.predict(self, text, stop, **kwargs) 383 else: 384 _stop = list(stop) --> 385 result = self([HumanMessage(content=text)], stop=_stop, **kwargs) 386 return result.content File ~/miniconda3/envs/langchain/lib/python3.11/site-packages/langchain/chat_models/base.py:349, in BaseChatModel.__call__(self, messages, stop, callbacks, **kwargs) 342 def __call__( 343 self, 344 messages: List[BaseMessage], (...) 347 **kwargs: Any, 348 ) -> BaseMessage: --> 349 generation = self.generate( 350 [messages], stop=stop, callbacks=callbacks, **kwargs 351 ).generations[0][0] 352 if isinstance(generation, ChatGeneration): 353 return generation.message File ~/miniconda3/envs/langchain/lib/python3.11/site-packages/langchain/chat_models/base.py:125, in BaseChatModel.generate(self, messages, stop, callbacks, tags, metadata, **kwargs) 123 if run_managers: 124 run_managers[i].on_llm_error(e) --> 125 raise e 126 flattened_outputs = [ 127 LLMResult(generations=[res.generations], llm_output=res.llm_output) 128 for res in results 129 ] 130 llm_output = self._combine_llm_outputs([res.llm_output for res in results]) File ~/miniconda3/envs/langchain/lib/python3.11/site-packages/langchain/chat_models/base.py:115, in BaseChatModel.generate(self, messages, stop, callbacks, tags, metadata, **kwargs) 112 for i, m in enumerate(messages): 113 try: 114 results.append( --> 115 self._generate_with_cache( 116 m, 117 stop=stop, 118 run_manager=run_managers[i] if run_managers else None, 119 **kwargs, 120 ) 121 ) 122 except (KeyboardInterrupt, Exception) as e: 123 if run_managers: File ~/miniconda3/envs/langchain/lib/python3.11/site-packages/langchain/chat_models/base.py:262, in BaseChatModel._generate_with_cache(self, messages, stop, run_manager, **kwargs) 258 raise ValueError( 259 "Asked to cache, but no cache found at `langchain.cache`." 260 ) 261 if new_arg_supported: --> 262 return self._generate( 263 messages, stop=stop, run_manager=run_manager, **kwargs 264 ) 265 else: 266 return self._generate(messages, stop=stop, **kwargs) File ~/miniconda3/envs/langchain/lib/python3.11/site-packages/langchain/chat_models/openai.py:372, in ChatOpenAI._generate(self, messages, stop, run_manager, **kwargs) 370 return ChatResult(generations=[ChatGeneration(message=message)]) 371 response = self.completion_with_retry(messages=message_dicts, **params) --> 372 return self._create_chat_result(response) File ~/miniconda3/envs/langchain/lib/python3.11/site-packages/langchain/chat_models/openai.py:394, in ChatOpenAI._create_chat_result(self, response) 389 gen = ChatGeneration( 390 message=message, 391 generation_info=dict(finish_reason=res.get("finish_reason")), 392 ) 393 generations.append(gen) --> 394 llm_output = {"token_usage": response["usage"], "model_name": self.model_name} 395 return ChatResult(generations=generations, llm_output=llm_output) KeyError: 'usage' ### Expected behavior I expect that it doesn't give me an error since exactly the same code works when I use the model 'openai/gpt-3.5-turbo' instead of the model 'google/palm-2-chat-bison'.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7900/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7900/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7898
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7898/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7898/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7898/events
https://github.com/langchain-ai/langchain/pull/7898
1,810,462,902
PR_kwDOIPDwls5V0H_V
7,898
docs(custom_chain) fix typo
{ "login": "zizhong", "id": 3625100, "node_id": "MDQ6VXNlcjM2MjUxMDA=", "avatar_url": "https://avatars.githubusercontent.com/u/3625100?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zizhong", "html_url": "https://github.com/zizhong", "followers_url": "https://api.github.com/users/zizhong/followers", "following_url": "https://api.github.com/users/zizhong/following{/other_user}", "gists_url": "https://api.github.com/users/zizhong/gists{/gist_id}", "starred_url": "https://api.github.com/users/zizhong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zizhong/subscriptions", "organizations_url": "https://api.github.com/users/zizhong/orgs", "repos_url": "https://api.github.com/users/zizhong/repos", "events_url": "https://api.github.com/users/zizhong/events{/privacy}", "received_events_url": "https://api.github.com/users/zizhong/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-07-18T18:19:03
2023-07-19T01:03:19
2023-07-19T01:03:19
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> Fix typo in the document of custom_chain
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7898/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7898/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7898", "html_url": "https://github.com/langchain-ai/langchain/pull/7898", "diff_url": "https://github.com/langchain-ai/langchain/pull/7898.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7898.patch", "merged_at": "2023-07-19T01:03:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/7897
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7897/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7897/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7897/events
https://github.com/langchain-ai/langchain/issues/7897
1,810,454,689
I_kwDOIPDwls5r6Vih
7,897
CSV Agent JSON Parsing Errors
{ "login": "cdreetz", "id": 117322020, "node_id": "U_kgDOBv4xJA", "avatar_url": "https://avatars.githubusercontent.com/u/117322020?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cdreetz", "html_url": "https://github.com/cdreetz", "followers_url": "https://api.github.com/users/cdreetz/followers", "following_url": "https://api.github.com/users/cdreetz/following{/other_user}", "gists_url": "https://api.github.com/users/cdreetz/gists{/gist_id}", "starred_url": "https://api.github.com/users/cdreetz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cdreetz/subscriptions", "organizations_url": "https://api.github.com/users/cdreetz/orgs", "repos_url": "https://api.github.com/users/cdreetz/repos", "events_url": "https://api.github.com/users/cdreetz/events{/privacy}", "received_events_url": "https://api.github.com/users/cdreetz/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
6
2023-07-18T18:13:05
2023-10-14T12:09:47
null
NONE
null
### System Info Occasional error out of CSV agent with JSON parsing error. Typically occurs when prompting a multi step task, but some multi step tasks are handled fine. Even in the same multi step task, depending on the wording of the prompt it can be run successfully but with different wording will error out. Heres an example of the message returned. File "C:\Users\\env\Lib\site-packages\langchain\agents\openai_functions_agent\base.py", line 212, in plan agent_decision = _parse_ai_message(predicted_message) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\\env\Lib\site-packages\langchain\agents\openai_functions_agent\base.py", line 114, in _parse_ai_message raise OutputParserException( langchain.schema.OutputParserException: Could not parse tool input: {'name': 'python', 'arguments': "df_filtered = df[df['Version1Text'].str.contains('using your budget')]\nlabel_counts = df_filtered['Label'].value_counts()\nlabel_counts"} because the `arguments` is not valid JSON. ### Who can help? @hwchase17 @agol ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Steps to reproduce behavior: 1. Start up CSV agent 2. One example prompt that errors: "of the rows where 'Version1Text' includes 'using your budget' what are the counts of each of the unique 'Label' values" ### Expected behavior Expected behavior is to subset the csv based on the provided conditions and then return counts
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7897/reactions", "total_count": 3, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7897/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7896
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7896/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7896/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7896/events
https://github.com/langchain-ai/langchain/issues/7896
1,810,447,563
I_kwDOIPDwls5r6TzL
7,896
Issue: OpenAI Function Agent with custom prompt from memory
{ "login": "suryasanchez", "id": 32910556, "node_id": "MDQ6VXNlcjMyOTEwNTU2", "avatar_url": "https://avatars.githubusercontent.com/u/32910556?v=4", "gravatar_id": "", "url": "https://api.github.com/users/suryasanchez", "html_url": "https://github.com/suryasanchez", "followers_url": "https://api.github.com/users/suryasanchez/followers", "following_url": "https://api.github.com/users/suryasanchez/following{/other_user}", "gists_url": "https://api.github.com/users/suryasanchez/gists{/gist_id}", "starred_url": "https://api.github.com/users/suryasanchez/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/suryasanchez/subscriptions", "organizations_url": "https://api.github.com/users/suryasanchez/orgs", "repos_url": "https://api.github.com/users/suryasanchez/repos", "events_url": "https://api.github.com/users/suryasanchez/events{/privacy}", "received_events_url": "https://api.github.com/users/suryasanchez/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
2
2023-07-18T18:07:22
2023-07-18T21:27:03
2023-07-18T21:27:02
NONE
null
### Issue you'd like to raise. Hi, I'm updating my code to use the new OpenAI function calling structure. Requirements: - New messages saved in DynamoDB together with past messages for a user - Custom prompt : 10 last messages from DynamoDB memory of the user - Function calling ### Past code The `create_prompt_from_messages(n)` function create a custom prompt based on n last messages. ```python chain = LLMChain(llm=llm, prompt=create_prompt_from_messages(10), verbose=False, memory=memory ) ``` ### New code without custom prompt This code below works but send **all** past messages to the LLM. I want to limit to **n** last messages. I didn't find a way to pass custom prompt to an agent using `AgentType.OPENAI_FUNCTIONS` Note that I don't want to delete past messages from the database. ```python message_history = DynamoDBChatMessageHistory(table_name=conversation_table_name, session_id='0') memory = ConversationBufferMemory(memory_key="chat_history", chat_memory=message_history, return_messages=True) agent_kwargs = { "extra_prompt_messages": [MessagesPlaceholder(variable_name="chat_history")], } agent = initialize_agent( tools, llm, agent=AgentType.OPENAI_FUNCTIONS, # or OPENAI_MULTI_FUNCTIONS ? verbose=True, agent_kwargs=agent_kwargs, memory=memory ) ``` How can I only sent n last message from the agent memory? Or create the a custom prompt and pass it to the OpenAI function agent? Thank you in advance! ### Suggestion: Create a Notebook with this use case for OpenAI Function agent.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7896/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7896/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7895
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7895/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7895/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7895/events
https://github.com/langchain-ai/langchain/issues/7895
1,810,440,214
I_kwDOIPDwls5r6SAW
7,895
Pydantic exception when creating GPT4All model
{ "login": "cserpell", "id": 858784, "node_id": "MDQ6VXNlcjg1ODc4NA==", "avatar_url": "https://avatars.githubusercontent.com/u/858784?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cserpell", "html_url": "https://github.com/cserpell", "followers_url": "https://api.github.com/users/cserpell/followers", "following_url": "https://api.github.com/users/cserpell/following{/other_user}", "gists_url": "https://api.github.com/users/cserpell/gists{/gist_id}", "starred_url": "https://api.github.com/users/cserpell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cserpell/subscriptions", "organizations_url": "https://api.github.com/users/cserpell/orgs", "repos_url": "https://api.github.com/users/cserpell/repos", "events_url": "https://api.github.com/users/cserpell/events{/privacy}", "received_events_url": "https://api.github.com/users/cserpell/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-07-18T18:01:23
2023-10-24T16:05:43
2023-10-24T16:05:42
NONE
null
### System Info Mac OS Versions: Python 3.8.15 Package | Version -----------------------|-------- aiohttp | 3.8.4 aiosignal | 1.3.1 async-timeout | 4.0.2 attrs |23.1.0 certifi |2023.5.7 charset-normalizer | 3.2.0 dataclasses-json | 0.5.9 frozenlist | 1.4.0 **gpt4all** | **1.0.5** greenlet | 2.0.2 idna | 3.4 **langchain** | **0.0.234** langsmith | 0.0.5 marshmallow | 3.19.0 marshmallow-enum | 1.5.1 multidict | 6.0.4 mypy-extensions | 1.0.0 numexpr | 2.8.4 numpy | 1.24.4 openapi-schema-pydantic | 1.2.4 packaging | 23.1 pip | 23.2 **pydantic** | **1.10.11** PyYAML | 6.0 requests | 2.31.0 setuptools | 56.0.0 SQLAlchemy | 2.0.19 tenacity | 8.2.2 tqdm | 4.65.0 typing_extensions | 4.7.1 typing-inspect | 0.9.0 urllib3 | 2.0.3 yarl | 1.9.2 ### Who can help? @agola11 @hwchase17 ### Information - [X] 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 - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction This is a minimum code example to reproduce the error: ```python from langchain.llms.gpt4all import GPT4All llm = GPT4All(model="./models/gpt4all-lora-quantized-ggml.bin") ``` I get the following error: ``` Traceback (most recent call last): File "gpt4all_me.py", line 3, in <module> llm = GPT4All(model="./models/gpt4all-lora-quantized-ggml.bin") File "/home/cserpell/git/activelooplangchain/a/lib/python3.8/site-packages/langchain/load/serializable.py", line 74, in __init__ super().__init__(**kwargs) File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__ pydantic.error_wrappers.ValidationError: 1 validation error for GPT4All __root__ -> __root__ __init__() takes 1 positional argument but 2 were given (type=type_error) ``` I tried giving the directory without the `./`, without the `./model/`, putting the file in the current directory, and some other options, with no success. ### Expected behavior The exception should not be raised, and GPT4All model should be available to use.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7895/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7895/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7894
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7894/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7894/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7894/events
https://github.com/langchain-ai/langchain/pull/7894
1,810,435,714
PR_kwDOIPDwls5V0CC4
7,894
simplified namespace
{ "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": 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-07-18T17:57:48
2023-07-23T20:40:22
2023-07-23T20:40:22
COLLABORATOR
null
label: documentation Simplified namespace to reduce a column length in the API Reference table for the `Agents`. Right now the `agents.agent_toolkits.azure_cognitive_services.toolkit.AzureCognitiveServicesToolkit` name makes the first column [unbalanced with the second column](https://api.python.langchain.com/en/latest/api_reference.html#module-langchain.agents). The first column is too wide and the second column is too narrow, which wraps the class descriptions in several lines. This update reduces the ^ namespace to `agents.agent_toolkits.azure_cognitive_services.AzureCognitiveServicesToolkit` and balances the columns. @baskaryan @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7894/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7894/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7894", "html_url": "https://github.com/langchain-ai/langchain/pull/7894", "diff_url": "https://github.com/langchain-ai/langchain/pull/7894.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7894.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7893
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7893/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7893/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7893/events
https://github.com/langchain-ai/langchain/pull/7893
1,810,420,593
PR_kwDOIPDwls5Vz-yk
7,893
Add llama-v2 to docs
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-07-18T17:45:31
2023-07-18T19:09:10
2023-07-18T19:09:10
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7893/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7893/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7893", "html_url": "https://github.com/langchain-ai/langchain/pull/7893", "diff_url": "https://github.com/langchain-ai/langchain/pull/7893.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7893.patch", "merged_at": "2023-07-18T19:09:10" }
https://api.github.com/repos/langchain-ai/langchain/issues/7892
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7892/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7892/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7892/events
https://github.com/langchain-ai/langchain/pull/7892
1,810,406,133
PR_kwDOIPDwls5Vz7rN
7,892
docstrings `chains`
{ "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": 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-07-18T17:33:54
2023-07-19T01:29:31
2023-07-19T01:25:43
COLLABORATOR
null
Added/updated docstrings. @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7892/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7892/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7892", "html_url": "https://github.com/langchain-ai/langchain/pull/7892", "diff_url": "https://github.com/langchain-ai/langchain/pull/7892.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7892.patch", "merged_at": "2023-07-19T01:25:43" }
https://api.github.com/repos/langchain-ai/langchain/issues/7891
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7891/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7891/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7891/events
https://github.com/langchain-ai/langchain/pull/7891
1,810,383,543
PR_kwDOIPDwls5Vz2uh
7,891
Gpapp/chromadb
{ "login": "gpapp", "id": 4165192, "node_id": "MDQ6VXNlcjQxNjUxOTI=", "avatar_url": "https://avatars.githubusercontent.com/u/4165192?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gpapp", "html_url": "https://github.com/gpapp", "followers_url": "https://api.github.com/users/gpapp/followers", "following_url": "https://api.github.com/users/gpapp/following{/other_user}", "gists_url": "https://api.github.com/users/gpapp/gists{/gist_id}", "starred_url": "https://api.github.com/users/gpapp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gpapp/subscriptions", "organizations_url": "https://api.github.com/users/gpapp/orgs", "repos_url": "https://api.github.com/users/gpapp/repos", "events_url": "https://api.github.com/users/gpapp/events{/privacy}", "received_events_url": "https://api.github.com/users/gpapp/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
5
2023-07-18T17:17:00
2023-07-19T00:03:43
2023-07-19T00:03:42
CONTRIBUTOR
null
- Description: version check to make sure chromadb >=0.4.0 does not throw an error, and uses the default sqlite persistence engine when the directory is set, - Issue: the issue #7887 For attention of - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7891/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7891/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7891", "html_url": "https://github.com/langchain-ai/langchain/pull/7891", "diff_url": "https://github.com/langchain-ai/langchain/pull/7891.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7891.patch", "merged_at": "2023-07-19T00:03:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/7890
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7890/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7890/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7890/events
https://github.com/langchain-ai/langchain/pull/7890
1,810,375,679
PR_kwDOIPDwls5Vz1HN
7,890
Amadeus Flight and Travel Search Tool
{ "login": "sdelgadoc", "id": 17517367, "node_id": "MDQ6VXNlcjE3NTE3MzY3", "avatar_url": "https://avatars.githubusercontent.com/u/17517367?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sdelgadoc", "html_url": "https://github.com/sdelgadoc", "followers_url": "https://api.github.com/users/sdelgadoc/followers", "following_url": "https://api.github.com/users/sdelgadoc/following{/other_user}", "gists_url": "https://api.github.com/users/sdelgadoc/gists{/gist_id}", "starred_url": "https://api.github.com/users/sdelgadoc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sdelgadoc/subscriptions", "organizations_url": "https://api.github.com/users/sdelgadoc/orgs", "repos_url": "https://api.github.com/users/sdelgadoc/repos", "events_url": "https://api.github.com/users/sdelgadoc/events{/privacy}", "received_events_url": "https://api.github.com/users/sdelgadoc/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 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-07-18T17:11:55
2023-07-20T13:59:30
2023-07-20T13:59:29
CONTRIBUTOR
null
## Background With the addition on email and calendar tools, LangChain is continuing to complete its functionality to automate business processes. ## Challenge One of the pieces of business functionality that LangChain currently doesn't have is the ability to search for flights and travel in order to book business travel. ## Changes This PR implements an integration with the [Amadeus](https://developers.amadeus.com/) travel search API for LangChain, enabling seamless search for flights with a single authentication process. ## Who can review? @hinthornw ## Appendix @tsolakoua and @minjikarin, I utilized your [amadeus-python](https://github.com/amadeus4dev/amadeus-python) library extensively. Given the rising popularity of LangChain and similar AI frameworks, the convergence of libraries like amadeus-python and tools like this one is likely. So, I wanted to keep you updated on our progress. <!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7890/reactions", "total_count": 3, "+1": 0, "-1": 0, "laugh": 0, "hooray": 2, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7890/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7890", "html_url": "https://github.com/langchain-ai/langchain/pull/7890", "diff_url": "https://github.com/langchain-ai/langchain/pull/7890.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7890.patch", "merged_at": "2023-07-20T13:59:29" }
https://api.github.com/repos/langchain-ai/langchain/issues/7889
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7889/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7889/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7889/events
https://github.com/langchain-ai/langchain/issues/7889
1,810,278,050
I_kwDOIPDwls5r5qai
7,889
StructuredChatAgent uses SQLDatabaseToolkit tools in wrong order
{ "login": "b-dulaney", "id": 52844767, "node_id": "MDQ6VXNlcjUyODQ0NzY3", "avatar_url": "https://avatars.githubusercontent.com/u/52844767?v=4", "gravatar_id": "", "url": "https://api.github.com/users/b-dulaney", "html_url": "https://github.com/b-dulaney", "followers_url": "https://api.github.com/users/b-dulaney/followers", "following_url": "https://api.github.com/users/b-dulaney/following{/other_user}", "gists_url": "https://api.github.com/users/b-dulaney/gists{/gist_id}", "starred_url": "https://api.github.com/users/b-dulaney/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/b-dulaney/subscriptions", "organizations_url": "https://api.github.com/users/b-dulaney/orgs", "repos_url": "https://api.github.com/users/b-dulaney/repos", "events_url": "https://api.github.com/users/b-dulaney/events{/privacy}", "received_events_url": "https://api.github.com/users/b-dulaney/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-07-18T16:20:09
2023-11-07T16:07:08
2023-11-07T16:07:07
NONE
null
### System Info Langchain version - 0.0.235 Python version - 3.10 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Hello, I'm trying to use a Structured Chat agent with SQL tools as well as a VectorStoreQA tool in order to retrieve data from a Postgres database and our Pinecone store. For the Agent's chat model, I'm using Azure OpenAI's gpt-3.5-turbo version 0301. I have tried providing the tools via the SQLDatabaseToolkit's get_tools() function as well as importing the individual tools and modifying their descriptions, but I get the same issue with both approaches. Despite the descriptions and formatting instructions provided below, the agent has a lot of trouble with querying the DB. It almost always starts off with 'sql_db_query' to construct a query that errors out, which then prompts the agent to check the list of tables and then their schemas. From here, it can usually arrive at the correct query - but this is not the correct behavior. Other times, it will get stuck in a loop of constructing a query, getting an error, and then either checking the query or just constructing a new one. The errors are due to the schema that it hallucinates because it didn't use the 'sql_db_list_tables' and 'sql_db_schema' tools first. In the code excerpt below, you can see the formatting instructions provided as well as the descriptions that I'm giving the SQL tools. Has anybody else had issues with SQL database tools and the StructuredChat agent? Should I be using a different type of agent for this? `````` FORMAT_INSTRUCTIONS = """Use a json blob to specify a tool by providing an action key (tool name) and an action_input key (tool input). For SQL queries, ALWAYS use the available tools in this order: 1. sql_db_list_tables 2. sql_db_schema 3. sql_db_query_checker 4. sql_db_query Valid "action" values: "Final Answer" or {tool_names} Provide only ONE action per $JSON_BLOB, as shown: ``` {{{{ "action": $TOOL_NAME, "action_input": $INPUT }}}} ``` Follow this format: Question: input question to answer Thought: consider previous and subsequent steps Action: ``` $JSON_BLOB ``` Observation: action result ... (repeat Thought/Action/Observation N times) Thought: I know what to respond Action: ``` {{{{ "action": "Final Answer", "action_input": "Final response to human" }}}} ```""" vectorstore_info = VectorStoreInfo( name="incident_resolution_instructions", description="MOP Documents that help users resolve incidents for different devices and causes", vectorstore=pineconeStore, ) llm = AzureChatOpenAI(temperature=0, verbose=True, deployment_name='chatgpt-35', model_name="gpt-35-turbo", max_tokens=4000) query_sql_database_tool_description = ( "ONLY use this tool AFTER using 'sql_db_schema' and 'sql_db_query_checker'." "Input to this tool is a detailed and correct SQL query, output is a " "result from the database. If the query is not correct, an error message " "will be returned. If an error is returned, rewrite the query, check the " "query, and try again. If you encounter an issue with Unknown column " "'xxxx' in 'field list', use 'sql_db_schema' to query the correct table " "fields." ) info_sql_database_tool_description = ( """ ALWAYS use this tool second AFTER 'sql_db_list_tables'. Input to this tool is a comma-separated list of tables, output is the schema and sample rows for those tables. Be sure that the tables actually exist by calling 'sql_db_list_tables' first! Example Input: table1, table2, table3 """ ) list_sql_database_tool_description = ( "ALWAYS use this tool first. Input to this tool is an empty string '', output is the list of PostgreSQL tables in the database." ) query_checker_sql_database_tool_description = ( """ ALWAYS Use this tool third AFTER 'sql_db_list_tables' and 'sql_db_schema'. ALWAYS use this tool to double check if your query is correct before executing it. ALWAYS use this tool BEFORE executing a query with 'sql_db_query' """ ) tools = [ ListSQLDatabaseTool(db=db, description=list_sql_database_tool_description), InfoSQLDatabaseTool(db=db, description=info_sql_database_tool_description), QuerySQLDataBaseTool(db=db, description=query_sql_database_tool_description), QuerySQLCheckerTool(db=db, description=query_checker_sql_database_tool_description, llm=AzureOpenAI(temperature=0, verbose=True, deployment_name='chatgpt-35', model_name="gpt-35-turbo", max_tokens=4000)), VectorStoreQATool(vectorstore=vectorstore_info.vectorstore, llm=AzureOpenAI(temperature=0, verbose=True, deployment_name='chatgpt-35', model_name="gpt-35-turbo", max_tokens=4000), name="incident_resolution_steps", description="Documentation detailing steps to resolve an incident for various device types such as Routers and Switches.") ] agent_chain = initialize_agent(tools, llm, agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION, verbose=True, memory=memory, agent_kwargs={ 'prefix': PREFIX, 'format_instructions': FORMAT_INSTRUCTIONS, 'suffix': SUFFIX, 'input_variables': ["input", "chat_history", "agent_scratchpad"] }) response = agent_chain.run(input=event['question']) `````` ### Expected behavior The agent should: - Follow the order provided in the default descriptions of each SQLDatabase Tool - Follow instructions for tools provided in the formatting instructions or prompt suffix
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7889/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7889/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7888
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7888/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7888/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7888/events
https://github.com/langchain-ai/langchain/pull/7888
1,810,240,198
PR_kwDOIPDwls5VzXmV
7,888
SelfQuery support for deeplake
{ "login": "adolkhan", "id": 54854336, "node_id": "MDQ6VXNlcjU0ODU0MzM2", "avatar_url": "https://avatars.githubusercontent.com/u/54854336?v=4", "gravatar_id": "", "url": "https://api.github.com/users/adolkhan", "html_url": "https://github.com/adolkhan", "followers_url": "https://api.github.com/users/adolkhan/followers", "following_url": "https://api.github.com/users/adolkhan/following{/other_user}", "gists_url": "https://api.github.com/users/adolkhan/gists{/gist_id}", "starred_url": "https://api.github.com/users/adolkhan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/adolkhan/subscriptions", "organizations_url": "https://api.github.com/users/adolkhan/orgs", "repos_url": "https://api.github.com/users/adolkhan/repos", "events_url": "https://api.github.com/users/adolkhan/events{/privacy}", "received_events_url": "https://api.github.com/users/adolkhan/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
5
2023-07-18T15:59:05
2023-07-24T21:22:34
2023-07-24T21:22:33
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> Added support SelfQuery for Deeplake
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7888/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7888/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7888", "html_url": "https://github.com/langchain-ai/langchain/pull/7888", "diff_url": "https://github.com/langchain-ai/langchain/pull/7888.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7888.patch", "merged_at": "2023-07-24T21:22:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/7887
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7887/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7887/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7887/events
https://github.com/langchain-ai/langchain/issues/7887
1,810,236,515
I_kwDOIPDwls5r5gRj
7,887
ChromaDB 0.4+ is no longer compatible with client config
{ "login": "gpapp", "id": 4165192, "node_id": "MDQ6VXNlcjQxNjUxOTI=", "avatar_url": "https://avatars.githubusercontent.com/u/4165192?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gpapp", "html_url": "https://github.com/gpapp", "followers_url": "https://api.github.com/users/gpapp/followers", "following_url": "https://api.github.com/users/gpapp/following{/other_user}", "gists_url": "https://api.github.com/users/gpapp/gists{/gist_id}", "starred_url": "https://api.github.com/users/gpapp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gpapp/subscriptions", "organizations_url": "https://api.github.com/users/gpapp/orgs", "repos_url": "https://api.github.com/users/gpapp/repos", "events_url": "https://api.github.com/users/gpapp/events{/privacy}", "received_events_url": "https://api.github.com/users/gpapp/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" } ]
open
false
null
[]
null
50
2023-07-18T15:56:56
2023-11-05T14:07:23
null
CONTRIBUTOR
null
### System Info - Python 3.9.13 - langchain-0.0.235-py3-none-any.whl - chromadb-0.4.0-py3-none-any.whl ### 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 Steps to reproduce: 1. Create a Chroma store which is locally persisted ``` store = Chroma.from_texts( texts=docs, embedding=embeddings, metadatas=metadatas, persist_directory=environ["DB_DIR"] ) ``` 2. Get the error `You are using a deprecated configuration of Chroma. Please pip install chroma-migrate and run `chroma-migrate` to upgrade your configuration. See https://docs.trychroma.com/migration for more information or join our discord at https://discord.gg/8g5FESbj for help!` 3. Suffer ### Expected behavior 1. Create locally persisted Chroma store 2. Use Chroma store The issue: Starting chromadb 0.40 the chroma_db_impl is no longer a supported parameter, it uses sqlite instead. Removing the line ` chroma_db_impl="duckdb+parquet", ` from langchain.vectorstores/chroma.py solves the issue, but the earlier DB cannot be used or migrated.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7887/reactions", "total_count": 16, "+1": 10, "-1": 0, "laugh": 1, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 5 }
https://api.github.com/repos/langchain-ai/langchain/issues/7887/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7886
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7886/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7886/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7886/events
https://github.com/langchain-ai/langchain/issues/7886
1,810,223,070
I_kwDOIPDwls5r5c_e
7,886
Encryption Key support
{ "login": "iatpatelishan", "id": 8603977, "node_id": "MDQ6VXNlcjg2MDM5Nzc=", "avatar_url": "https://avatars.githubusercontent.com/u/8603977?v=4", "gravatar_id": "", "url": "https://api.github.com/users/iatpatelishan", "html_url": "https://github.com/iatpatelishan", "followers_url": "https://api.github.com/users/iatpatelishan/followers", "following_url": "https://api.github.com/users/iatpatelishan/following{/other_user}", "gists_url": "https://api.github.com/users/iatpatelishan/gists{/gist_id}", "starred_url": "https://api.github.com/users/iatpatelishan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/iatpatelishan/subscriptions", "organizations_url": "https://api.github.com/users/iatpatelishan/orgs", "repos_url": "https://api.github.com/users/iatpatelishan/repos", "events_url": "https://api.github.com/users/iatpatelishan/events{/privacy}", "received_events_url": "https://api.github.com/users/iatpatelishan/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
3
2023-07-18T15:49:30
2023-12-25T16:09:34
2023-12-25T16:09:34
NONE
null
### Feature request When entering the embed text in the database like pgvector, I would like to encrypt the raw text with KMS Key or any such encryption and use raw text for generating embedding ### Motivation Security ### Your contribution N/A
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7886/reactions", "total_count": 6, "+1": 6, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7886/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7885
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7885/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7885/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7885/events
https://github.com/langchain-ai/langchain/issues/7885
1,810,202,518
I_kwDOIPDwls5r5X-W
7,885
Difference between ConversationChain and ConversationalRetrievalChain
{ "login": "miha-bhaskaran", "id": 90109393, "node_id": "MDQ6VXNlcjkwMTA5Mzkz", "avatar_url": "https://avatars.githubusercontent.com/u/90109393?v=4", "gravatar_id": "", "url": "https://api.github.com/users/miha-bhaskaran", "html_url": "https://github.com/miha-bhaskaran", "followers_url": "https://api.github.com/users/miha-bhaskaran/followers", "following_url": "https://api.github.com/users/miha-bhaskaran/following{/other_user}", "gists_url": "https://api.github.com/users/miha-bhaskaran/gists{/gist_id}", "starred_url": "https://api.github.com/users/miha-bhaskaran/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/miha-bhaskaran/subscriptions", "organizations_url": "https://api.github.com/users/miha-bhaskaran/orgs", "repos_url": "https://api.github.com/users/miha-bhaskaran/repos", "events_url": "https://api.github.com/users/miha-bhaskaran/events{/privacy}", "received_events_url": "https://api.github.com/users/miha-bhaskaran/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
3
2023-07-18T15:39:20
2023-11-16T13:39:15
2023-10-24T16:05:47
NONE
null
### Issue you'd like to raise. what is the difference between a conversationChain and a conversationalRetrieval chain. I had originially assumed that the conversational retrieval chain would be able to take in documents, input, and memory (which I have gotten to successfully work) and was under the assumption that the conversationChain could not take in our own documents. However, I found a demo online that suggests otherwise. So what exactly is the difference? It was natural to me to use conversationalretrieval chain becuase I had personal documents I wanted to use and I knew that the retrieval chains were made for that. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7885/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/7885/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7884
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7884/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7884/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7884/events
https://github.com/langchain-ai/langchain/pull/7884
1,810,080,519
PR_kwDOIPDwls5Vy0RA
7,884
docs: added comment from azure llm to azure chat about GPT-4
{ "login": "maciej-skorupka", "id": 9993219, "node_id": "MDQ6VXNlcjk5OTMyMTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9993219?v=4", "gravatar_id": "", "url": "https://api.github.com/users/maciej-skorupka", "html_url": "https://github.com/maciej-skorupka", "followers_url": "https://api.github.com/users/maciej-skorupka/followers", "following_url": "https://api.github.com/users/maciej-skorupka/following{/other_user}", "gists_url": "https://api.github.com/users/maciej-skorupka/gists{/gist_id}", "starred_url": "https://api.github.com/users/maciej-skorupka/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maciej-skorupka/subscriptions", "organizations_url": "https://api.github.com/users/maciej-skorupka/orgs", "repos_url": "https://api.github.com/users/maciej-skorupka/repos", "events_url": "https://api.github.com/users/maciej-skorupka/events{/privacy}", "received_events_url": "https://api.github.com/users/maciej-skorupka/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-07-18T14:42:05
2023-07-18T15:13:58
2023-07-18T15:05:41
CONTRIBUTOR
null
Azure GPT-4 models can't be accessed via LLM model. It's easy to miss that and a lot of discussions about that are on the Internet. Therefore I added a comment in Azure LLM docs that mentions that and points to Azure Chat OpenAI docs. @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7884/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7884/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7884", "html_url": "https://github.com/langchain-ai/langchain/pull/7884", "diff_url": "https://github.com/langchain-ai/langchain/pull/7884.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7884.patch", "merged_at": "2023-07-18T15:05:41" }
https://api.github.com/repos/langchain-ai/langchain/issues/7882
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7882/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7882/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7882/events
https://github.com/langchain-ai/langchain/issues/7882
1,810,022,800
I_kwDOIPDwls5r4sGQ
7,882
Inconsistent behaviour with the 'python_repl' tool and the ZeroShotAgent
{ "login": "sarahboufelja", "id": 8659897, "node_id": "MDQ6VXNlcjg2NTk4OTc=", "avatar_url": "https://avatars.githubusercontent.com/u/8659897?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sarahboufelja", "html_url": "https://github.com/sarahboufelja", "followers_url": "https://api.github.com/users/sarahboufelja/followers", "following_url": "https://api.github.com/users/sarahboufelja/following{/other_user}", "gists_url": "https://api.github.com/users/sarahboufelja/gists{/gist_id}", "starred_url": "https://api.github.com/users/sarahboufelja/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sarahboufelja/subscriptions", "organizations_url": "https://api.github.com/users/sarahboufelja/orgs", "repos_url": "https://api.github.com/users/sarahboufelja/repos", "events_url": "https://api.github.com/users/sarahboufelja/events{/privacy}", "received_events_url": "https://api.github.com/users/sarahboufelja/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": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
2
2023-07-18T14:12:21
2023-10-24T16:05:53
2023-10-24T16:05:52
NONE
null
### Issue you'd like to raise. When using the python_repl tool with the ZeroShotAgent, I keep getting the following error: `Observation: SyntaxError('invalid syntax', ('<string>', 2, 1, '%matplotlib inline\n')) Thought:` The agent keeps looping over and over since it does not understand the issue with the magic command. Is this a known issue? Do we have a fix or ideally a way to enforce some behaviours within the python tool, via a custom prompt? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7882/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7882/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7881
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7881/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7881/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7881/events
https://github.com/langchain-ai/langchain/issues/7881
1,809,932,575
I_kwDOIPDwls5r4WEf
7,881
Integrating Langchain to FHIR API
{ "login": "EthelEz", "id": 15246640, "node_id": "MDQ6VXNlcjE1MjQ2NjQw", "avatar_url": "https://avatars.githubusercontent.com/u/15246640?v=4", "gravatar_id": "", "url": "https://api.github.com/users/EthelEz", "html_url": "https://github.com/EthelEz", "followers_url": "https://api.github.com/users/EthelEz/followers", "following_url": "https://api.github.com/users/EthelEz/following{/other_user}", "gists_url": "https://api.github.com/users/EthelEz/gists{/gist_id}", "starred_url": "https://api.github.com/users/EthelEz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/EthelEz/subscriptions", "organizations_url": "https://api.github.com/users/EthelEz/orgs", "repos_url": "https://api.github.com/users/EthelEz/repos", "events_url": "https://api.github.com/users/EthelEz/events{/privacy}", "received_events_url": "https://api.github.com/users/EthelEz/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
8
2023-07-18T13:24:11
2023-11-09T14:43:56
null
NONE
null
### Feature request I think it'd be a good idea to have Langchain integrated into the fast healthcare interoperability resource (FHIR) API. Integrating chatting techniques with FHIR and having the ability to interact with ChatOpenAI would give FHIR more visibility, versatility, and adaptability in terms of use cases in healthcare. ### Motivation Integrating a ChatOpenAI with FHIR (Fast Healthcare Interoperability Resources) can provide several benefits in the healthcare domain: **Real-time Communication:** Integrating the chat techniques such as ChatOpenAI with FHIR, will have the conversations seamlessly linked to relevant patient health records and clinical data, enhancing the context and relevance of the discussions.   **Collaborative Decision-Making**: By integrating a chat with FHIR, healthcare teams can discuss patient cases, share insights, exchange knowledge, and make informed decisions together. The ability to refer to FHIR resources, such as clinical notes, lab results, or medication information, within the chat streamlines the decision-making process.   **Contextual Information:** FHIR provides a standardized format for representing and exchanging healthcare data. Integrating the chat stream with FHIR allows relevant patient data, such as demographics, diagnoses, allergies, medications, or procedures, to be readily accessible within the chat interface.   **Workflow Efficiency**: By integrating the Lnangchain's ChatOpenAI with FHIR, healthcare professionals can conveniently access patient data and perform necessary actions within the chat interface. For example, they can request lab results, schedule appointments, prescribe medications, or document clinical notes directly within the chat stream. This integration reduces the need for switching between multiple systems, streamlines workflow, and enhances productivity.   **Continuity of Care:** Integrating the chat stream with FHIR helps ensure continuity of care by maintaining a historical record of discussions, decisions, and interventions in the patient's health record. This allows healthcare professionals to refer to previous conversations, review treatment plans, and track the progression of care over time. It also supports care coordination and handoffs between healthcare providers.   **Patient Engagement:** Chat streams integrated with FHIR can empower patients to actively participate in their own healthcare journey. Patients can securely communicate with healthcare providers, ask questions, receive educational materials, or provide updates on their health status. Having access to their FHIR-based health data within the chat stream can enable patients to have informed discussions and take ownership of their care.   The motivation for integrating Langchain with ChatOpenAI is endless. ### Your contribution I thought of this because I have been studying FHIR for a while now. I am yet to understand the nitty-gritty but I am sure the API has a schema https://fhir-ru.github.io/downloads.html that can be downloaded and integrated. In addition, Langchain developers have built API agents, they can do it. I am happy to provide more information.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7881/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/7881/timeline
null
reopened
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7880
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7880/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7880/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7880/events
https://github.com/langchain-ai/langchain/pull/7880
1,809,854,935
PR_kwDOIPDwls5VyC8o
7,880
ArangoDB/AQL support for Graph QA Chain
{ "login": "aMahanna", "id": 43019056, "node_id": "MDQ6VXNlcjQzMDE5MDU2", "avatar_url": "https://avatars.githubusercontent.com/u/43019056?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aMahanna", "html_url": "https://github.com/aMahanna", "followers_url": "https://api.github.com/users/aMahanna/followers", "following_url": "https://api.github.com/users/aMahanna/following{/other_user}", "gists_url": "https://api.github.com/users/aMahanna/gists{/gist_id}", "starred_url": "https://api.github.com/users/aMahanna/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aMahanna/subscriptions", "organizations_url": "https://api.github.com/users/aMahanna/orgs", "repos_url": "https://api.github.com/users/aMahanna/repos", "events_url": "https://api.github.com/users/aMahanna/events{/privacy}", "received_events_url": "https://api.github.com/users/aMahanna/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
8
2023-07-18T12:44:22
2023-07-24T22:16:53
2023-07-24T22:16:53
CONTRIBUTOR
null
**Description**: Serves as an introduction to LangChain's support for [ArangoDB](https://github.com/arangodb/arangodb), similar to https://github.com/hwchase17/langchain/pull/7165 and https://github.com/hwchase17/langchain/pull/4881 **Issue**: No issue has been created for this feature **Dependencies**: `python-arango` has been added as an optional dependency via the `CONTRIBUTING.md` guidelines **Twitter handle**: [at]arangodb - Integration test has been added - Notebook has been added: [graph_arangodb_qa.ipynb](https://github.com/amahanna/langchain/blob/master/docs/extras/modules/chains/additional/graph_arangodb_qa.ipynb) [![Open In Collab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/amahanna/langchain/blob/master/docs/extras/modules/chains/additional/graph_arangodb_qa.ipynb) ``` docker run -p 8529:8529 -e ARANGO_ROOT_PASSWORD= arangodb/arangodb ``` ``` pip install git+https://github.com/amahanna/langchain.git ``` ```python from arango import ArangoClient from langchain.chat_models import ChatOpenAI from langchain.graphs import ArangoGraph from langchain.chains import ArangoGraphQAChain db = ArangoClient(hosts="localhost:8529").db(name="_system", username="root", password="", verify=True) graph = ArangoGraph(db) chain = ArangoGraphQAChain.from_llm(ChatOpenAI(temperature=0), graph=graph) chain.run("Is Ned Stark alive?") ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7880/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7880/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7880", "html_url": "https://github.com/langchain-ai/langchain/pull/7880", "diff_url": "https://github.com/langchain-ai/langchain/pull/7880.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7880.patch", "merged_at": "2023-07-24T22:16:53" }
https://api.github.com/repos/langchain-ai/langchain/issues/7879
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7879/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7879/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7879/events
https://github.com/langchain-ai/langchain/issues/7879
1,809,693,903
I_kwDOIPDwls5r3bzP
7,879
showing progress or message under process
{ "login": "doctsh", "id": 5936743, "node_id": "MDQ6VXNlcjU5MzY3NDM=", "avatar_url": "https://avatars.githubusercontent.com/u/5936743?v=4", "gravatar_id": "", "url": "https://api.github.com/users/doctsh", "html_url": "https://github.com/doctsh", "followers_url": "https://api.github.com/users/doctsh/followers", "following_url": "https://api.github.com/users/doctsh/following{/other_user}", "gists_url": "https://api.github.com/users/doctsh/gists{/gist_id}", "starred_url": "https://api.github.com/users/doctsh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/doctsh/subscriptions", "organizations_url": "https://api.github.com/users/doctsh/orgs", "repos_url": "https://api.github.com/users/doctsh/repos", "events_url": "https://api.github.com/users/doctsh/events{/privacy}", "received_events_url": "https://api.github.com/users/doctsh/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
9
2023-07-18T10:58:52
2023-10-26T16:05:59
2023-10-26T16:05:58
NONE
null
### System Info I am using the following codes to get api call: user_query = prompt.format_prompt(user_prompt=input_text) user_query_output = chat_model(user_query.to_messages()) I am using Django and since it takes some time to get response the entire page freezes. Is there anyway to show progress bar or at least a message it is under progress? ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction include the below code under views.py: user_query = prompt.format_prompt(user_prompt=input_text) user_query_output = chat_model(user_query.to_messages()) upon calling api the page freezes which is normal ### Expected behavior A message or progress bar
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7879/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7879/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7878
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7878/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7878/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7878/events
https://github.com/langchain-ai/langchain/issues/7878
1,809,601,350
I_kwDOIPDwls5r3FNG
7,878
openai.error.InvalidRequestError: The completion operation does not work with the specified model, gpt-4. Please choose different model and try again. You can learn more about which models can be used with each operation here: https://go.microsoft.com/fwlink/?linkid=2197993.
{ "login": "pradeepdev-1995", "id": 41164884, "node_id": "MDQ6VXNlcjQxMTY0ODg0", "avatar_url": "https://avatars.githubusercontent.com/u/41164884?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pradeepdev-1995", "html_url": "https://github.com/pradeepdev-1995", "followers_url": "https://api.github.com/users/pradeepdev-1995/followers", "following_url": "https://api.github.com/users/pradeepdev-1995/following{/other_user}", "gists_url": "https://api.github.com/users/pradeepdev-1995/gists{/gist_id}", "starred_url": "https://api.github.com/users/pradeepdev-1995/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pradeepdev-1995/subscriptions", "organizations_url": "https://api.github.com/users/pradeepdev-1995/orgs", "repos_url": "https://api.github.com/users/pradeepdev-1995/repos", "events_url": "https://api.github.com/users/pradeepdev-1995/events{/privacy}", "received_events_url": "https://api.github.com/users/pradeepdev-1995/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-07-18T10:01:28
2023-07-19T04:44:19
2023-07-19T04:44:19
NONE
null
### System Info langchain==0.0.219 python 3.9 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [X] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I am using the gpt-4 model with azureOpenAI using the below code. ``` from langchain.llms import AzureOpenAI from langchain.chains.question_answering import load_qa_chain from langchain.embeddings.huggingface import HuggingFaceEmbeddings from langchain.document_loaders import DirectoryLoader from langchain.text_splitter import RecursiveCharacterTextSplitter from langchain.vectorstores import Chroma import os import openai openai.api_type = "azure" openai.api_base = os.getenv("OPENAI_API_BASE") openai.api_version = "2023-03-15-preview" openai.api_key = os.getenv("OPENAI_API_KEY") DEPLOYMENT_NAME = 'gpt-4 model' llm = AzureOpenAI( openai_api_base=os.getenv("OPENAI_API_BASE"), openai_api_version="2023-03-15-preview", deployment_name=DEPLOYMENT_NAME, openai_api_key=os.getenv("OPENAI_API_KEY"), openai_api_type="azure", ) embeddings = HuggingFaceEmbeddings(model_name='sentence-transformers/all-MiniLM-L6-v2') query = "sample query" my_loader = DirectoryLoader('/Data', glob='**/*.pdf') docs = my_loader.load() text_split = RecursiveCharacterTextSplitter(chunk_size = 3000, chunk_overlap = 2) texts = text_split.split_documents(docs) docsearch = Chroma.from_documents(texts, embeddings, metadatas=[{"source": str(i)} for i in range(len(texts))],persist_directory="./official_db").as_retriever(search_type="similarity") docs = docsearch.get_relevant_documents(query) chain = load_qa_chain(llm, chain_type="stuff") result = chain.run(input_documents=docs, question=query) ``` But it returns the errror ``` openai.error.InvalidRequestError: The completion operation does not work with the specified model, gpt-4. Please choose different model and try again. You can learn more about which models can be used with each operation here: https://go.microsoft.com/fwlink/?linkid=2197993. ``` **Note: The same code is working well with gpt-3.5 in azureOpenAI llm** ### Expected behavior It should able to integrate gpt-4 without any issue.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7878/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7878/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7877
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7877/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7877/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7877/events
https://github.com/langchain-ai/langchain/pull/7877
1,809,594,246
PR_kwDOIPDwls5VxJuS
7,877
Add Portkey LLMOps integration
{ "login": "vrushankportkey", "id": 134934501, "node_id": "U_kgDOCArv5Q", "avatar_url": "https://avatars.githubusercontent.com/u/134934501?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vrushankportkey", "html_url": "https://github.com/vrushankportkey", "followers_url": "https://api.github.com/users/vrushankportkey/followers", "following_url": "https://api.github.com/users/vrushankportkey/following{/other_user}", "gists_url": "https://api.github.com/users/vrushankportkey/gists{/gist_id}", "starred_url": "https://api.github.com/users/vrushankportkey/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vrushankportkey/subscriptions", "organizations_url": "https://api.github.com/users/vrushankportkey/orgs", "repos_url": "https://api.github.com/users/vrushankportkey/repos", "events_url": "https://api.github.com/users/vrushankportkey/events{/privacy}", "received_events_url": "https://api.github.com/users/vrushankportkey/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": 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
3
2023-07-18T09:57:05
2023-07-20T16:08:45
2023-07-20T16:08:44
CONTRIBUTOR
null
Integrating Portkey, which adds production features like caching, tracing, tagging, retries, etc. to langchain apps. - Dependencies: None - Twitter handle: https://twitter.com/portkeyai - test_portkey.py added for tests - example notebook added in new utilities folder in modules Also fixed a bug with OpenAIEmbeddings where headers weren't passing. cc @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7877/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7877/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7877", "html_url": "https://github.com/langchain-ai/langchain/pull/7877", "diff_url": "https://github.com/langchain-ai/langchain/pull/7877.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7877.patch", "merged_at": "2023-07-20T16:08:44" }
https://api.github.com/repos/langchain-ai/langchain/issues/7876
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7876/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7876/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7876/events
https://github.com/langchain-ai/langchain/issues/7876
1,809,494,390
I_kwDOIPDwls5r2rF2
7,876
Difference between chain() and chain.run()
{ "login": "pradeepdev-1995", "id": 41164884, "node_id": "MDQ6VXNlcjQxMTY0ODg0", "avatar_url": "https://avatars.githubusercontent.com/u/41164884?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pradeepdev-1995", "html_url": "https://github.com/pradeepdev-1995", "followers_url": "https://api.github.com/users/pradeepdev-1995/followers", "following_url": "https://api.github.com/users/pradeepdev-1995/following{/other_user}", "gists_url": "https://api.github.com/users/pradeepdev-1995/gists{/gist_id}", "starred_url": "https://api.github.com/users/pradeepdev-1995/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pradeepdev-1995/subscriptions", "organizations_url": "https://api.github.com/users/pradeepdev-1995/orgs", "repos_url": "https://api.github.com/users/pradeepdev-1995/repos", "events_url": "https://api.github.com/users/pradeepdev-1995/events{/privacy}", "received_events_url": "https://api.github.com/users/pradeepdev-1995/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
6
2023-07-18T09:02:23
2024-01-14T19:04:13
2023-10-25T16:06:46
NONE
null
### Issue you'd like to raise. I came to know that we can do the document question answering in langchain in different ways. One way is - using **load_qa_chain** Also it seems there are two ways to use **load_qa_chain** 1) with **run()** ``` from langchain.chains.question_answering import load_qa_chain chain = load_qa_chain(llm, chain_type="stuff") result = chain.run(input_documents=docs, question=query) ``` 2)without **run** ``` from langchain.chains.question_answering import load_qa_chain chain = load_qa_chain(llm, chain_type="stuff") result = chain({"input_documents": docs, "question": query}, return_only_outputs=True) ``` what is the exact difference between these two methods? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7876/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7876/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7874
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7874/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7874/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7874/events
https://github.com/langchain-ai/langchain/pull/7874
1,809,422,407
PR_kwDOIPDwls5VwjtJ
7,874
Docs Nits
{ "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-07-18T08:26:36
2023-07-18T08:50:15
2023-07-18T08:50:15
COLLABORATOR
null
Add links to reference docs
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7874/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7874/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7874", "html_url": "https://github.com/langchain-ai/langchain/pull/7874", "diff_url": "https://github.com/langchain-ai/langchain/pull/7874.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7874.patch", "merged_at": "2023-07-18T08:50:14" }
https://api.github.com/repos/langchain-ai/langchain/issues/7873
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7873/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7873/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7873/events
https://github.com/langchain-ai/langchain/issues/7873
1,809,372,101
I_kwDOIPDwls5r2NPF
7,873
Refactoring telegram loader
{ "login": "adieyal", "id": 420786, "node_id": "MDQ6VXNlcjQyMDc4Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/420786?v=4", "gravatar_id": "", "url": "https://api.github.com/users/adieyal", "html_url": "https://github.com/adieyal", "followers_url": "https://api.github.com/users/adieyal/followers", "following_url": "https://api.github.com/users/adieyal/following{/other_user}", "gists_url": "https://api.github.com/users/adieyal/gists{/gist_id}", "starred_url": "https://api.github.com/users/adieyal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/adieyal/subscriptions", "organizations_url": "https://api.github.com/users/adieyal/orgs", "repos_url": "https://api.github.com/users/adieyal/repos", "events_url": "https://api.github.com/users/adieyal/events{/privacy}", "received_events_url": "https://api.github.com/users/adieyal/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
2
2023-07-18T07:55:37
2023-10-24T16:06:13
2023-10-24T16:06:12
NONE
null
### Feature request The current Telegram loader is not very flexible. For example: ``` async for message in client.iter_messages(self.chat_entity): ``` Here are the arguments available in the api ``` def iter_messages( self: 'TelegramClient', entity: 'hints.EntityLike', limit: float = None, *, offset_date: 'hints.DateLike' = None, offset_id: int = 0, max_id: int = 0, min_id: int = 0, add_offset: int = 0, search: str = None, filter: 'typing.Union[types.TypeMessagesFilter, typing.Type[types.TypeMessagesFilter]]' = None, from_user: 'hints.EntityLike' = None, wait_time: float = None, ids: 'typing.Union[int, typing.Sequence[int]]' = None, reverse: bool = False, reply_to: int = None, scheduled: bool = False ) -> 'typing.Union[_MessagesIter, _IDsIter]': """ Iterator over the messages for the given chat. The default order is from newest to oldest, but this behaviour can be changed with the `reverse` parameter. If either `search`, `filter` or `from_user` are provided, :tl:`messages.Search` will be used instead of :tl:`messages.getHistory`. .. note:: Telegram's flood wait limit for :tl:`GetHistoryRequest` seems to be around 30 seconds per 10 requests, therefore a sleep of 1 second is the default for this limit (or above). Arguments entity (`entity`): The entity from whom to retrieve the message history. It may be `None` to perform a global search, or to get messages by their ID from no particular chat. Note that some of the offsets will not work if this is the case. Note that if you want to perform a global search, you **must** set a non-empty `search` string, a `filter`. or `from_user`. limit (`int` | `None`, optional): Number of messages to be retrieved. Due to limitations with the API retrieving more than 3000 messages will take longer than half a minute (or even more based on previous calls). The limit may also be `None`, which would eventually return the whole history. offset_date (`datetime`): Offset date (messages *previous* to this date will be retrieved). Exclusive. offset_id (`int`): Offset message ID (only messages *previous* to the given ID will be retrieved). Exclusive. max_id (`int`): All the messages with a higher (newer) ID or equal to this will be excluded. min_id (`int`): All the messages with a lower (older) ID or equal to this will be excluded. add_offset (`int`): Additional message offset (all of the specified offsets + this offset = older messages). search (`str`): The string to be used as a search query. filter (:tl:`MessagesFilter` | `type`): The filter to use when returning messages. For instance, :tl:`InputMessagesFilterPhotos` would yield only messages containing photos. from_user (`entity`): Only messages from this entity will be returned. wait_time (`int`): Wait time (in seconds) between different :tl:`GetHistoryRequest`. Use this parameter to avoid hitting the ``FloodWaitError`` as needed. If left to `None`, it will default to 1 second only if the limit is higher than 3000. If the ``ids`` parameter is used, this time will default to 10 seconds only if the amount of IDs is higher than 300. ids (`int`, `list`): A single integer ID (or several IDs) for the message that should be returned. This parameter takes precedence over the rest (which will be ignored if this is set). This can for instance be used to get the message with ID 123 from a channel. Note that if the message doesn't exist, `None` will appear in its place, so that zipping the list of IDs with the messages can match one-to-one. .. note:: At the time of writing, Telegram will **not** return :tl:`MessageEmpty` for :tl:`InputMessageReplyTo` IDs that failed (i.e. the message is not replying to any, or is replying to a deleted message). This means that it is **not** possible to match messages one-by-one, so be careful if you use non-integers in this parameter. reverse (`bool`, optional): If set to `True`, the messages will be returned in reverse order (from oldest to newest, instead of the default newest to oldest). This also means that the meaning of `offset_id` and `offset_date` parameters is reversed, although they will still be exclusive. `min_id` becomes equivalent to `offset_id` instead of being `max_id` as well since messages are returned in ascending order. You cannot use this if both `entity` and `ids` are `None`. reply_to (`int`, optional): If set to a message ID, the messages that reply to this ID will be returned. This feature is also known as comments in posts of broadcast channels, or viewing threads in groups. This feature can only be used in broadcast channels and their linked megagroups. Using it in a chat or private conversation will result in ``telethon.errors.PeerIdInvalidError`` to occur. When using this parameter, the ``filter`` and ``search`` parameters have no effect, since Telegram's API doesn't support searching messages in replies. .. note:: This feature is used to get replies to a message in the *discussion* group. If the same broadcast channel sends a message and replies to it itself, that reply will not be included in the results. scheduled (`bool`, optional): If set to `True`, messages which are scheduled will be returned. All other parameter will be ignored for this, except `entity`. Yields Instances of `Message <telethon.tl.custom.message.Message>`. Example .. code-block:: python # From most-recent to oldest async for message in client.iter_messages(chat): print(message.id, message.text) # From oldest to most-recent async for message in client.iter_messages(chat, reverse=True): print(message.id, message.text) # Filter by sender async for message in client.iter_messages(chat, from_user='me'): print(message.text) # Server-side search with fuzzy text async for message in client.iter_messages(chat, search='hello'): print(message.id) # Filter by message type: from telethon.tl.types import InputMessagesFilterPhotos async for message in client.iter_messages(chat, filter=InputMessagesFilterPhotos): print(message.photo) # Getting comments from a post in a channel: async for message in client.iter_messages(channel, reply_to=123): print(message.chat.title, message.text) """ ``` Of particular interest to me is the ability to specify `offset_date`, `limit`, and `reverse`. Other users may have other needs. I understand that the `BaseLoader` load method signature doesn't allow for any arguments. That leaves two options (perhaps there is a third way?): 1. Provide something like `**telegram_kwargs` in the TelegramApiChatLoader loader constructor, e.g. ``` class TelegramChatApiLoader(BaseLoader): """Loader that loads Telegram chat json directory dump.""" def __init__( self, chat_entity: Optional[EntityLike] = None, api_id: Optional[int] = None, api_hash: Optional[str] = None, username: Optional[str] = None, file_path: str = "telegram_data.json", **telegram_kwargs # <---- add this new argument ): ``` 2. Alternatively, refactor the `fetch_data_from_telegram` method and extract `async for message in client.iter_messages(self.chat_entity):` into a separate method that can be overriden by child classes, e.g.: ``` async def fetch_data_from_telegram(self) -> None: """Fetch data from Telegram API and save it as a JSON file.""" from telethon.sync import TelegramClient data = [] async with TelegramClient(self.username, self.api_id, self.api_hash) as client: # change this line to call a local method async for message in self.iter_messages(client, self.chat_entity): is_reply = message.reply_to is not None reply_to_id = message.reply_to.reply_to_msg_id if is_reply else None data.append( { "sender_id": message.sender_id, "text": message.text, "date": message.date.isoformat(), "message.id": message.id, "is_reply": is_reply, "reply_to_id": reply_to_id, } ) with open(self.file_path, "w", encoding="utf-8") as f: json.dump(data, f, ensure_ascii=False, indent=4) **# Add this new method** def iter_messages(client: TelegramClient, chat_entity: Optional[EntityLike]): return client.iter_messages(self.chat_entity, self._offset, self._limit, ...): ``` A child class can then override the constructor and the `iter_message` method. My current approach is to override the entire `fetch_data_from_telegram` method. This is problematic since I am duplicating code that may change in future versions of langchain ### Motivation My use case is pretty simple, return all message starting from a certain date. As I understand the current implementation, the entire history is returned. ### Your contribution I'm happy to submit a PR if one of the abovementioned approaches is approved.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7873/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/7873/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7872
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7872/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7872/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7872/events
https://github.com/langchain-ai/langchain/issues/7872
1,809,342,516
I_kwDOIPDwls5r2GA0
7,872
OperationalError with docsearch
{ "login": "rena9155", "id": 89635085, "node_id": "MDQ6VXNlcjg5NjM1MDg1", "avatar_url": "https://avatars.githubusercontent.com/u/89635085?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rena9155", "html_url": "https://github.com/rena9155", "followers_url": "https://api.github.com/users/rena9155/followers", "following_url": "https://api.github.com/users/rena9155/following{/other_user}", "gists_url": "https://api.github.com/users/rena9155/gists{/gist_id}", "starred_url": "https://api.github.com/users/rena9155/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rena9155/subscriptions", "organizations_url": "https://api.github.com/users/rena9155/orgs", "repos_url": "https://api.github.com/users/rena9155/repos", "events_url": "https://api.github.com/users/rena9155/events{/privacy}", "received_events_url": "https://api.github.com/users/rena9155/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
8
2023-07-18T07:40:27
2023-10-24T16:06:18
2023-10-24T16:06:17
NONE
null
### System Info Running on Colab. ### 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 from langchain.document_loaders import GoogleDriveLoader from langchain.embeddings.openai import OpenAIEmbeddings from langchain.vectorstores import Chroma from langchain.text_splitter import CharacterTextSplitter from langchain import OpenAI from langchain.document_loaders import PyPDFDirectoryLoader from langchain.document_loaders import PyPDFLoader from langchain.chains import RetrievalQA os.environ["OPENAI_API_KEY"] = 'Your API Key' loader = GoogleDriveLoader( folder_id="Your folder ID", recursive=True, ) docs = loader.load() text_splitter = CharacterTextSplitter(chunk_size=100, chunk_overlap=0) split_docs = text_splitter.split_documents(docs) embeddings = OpenAIEmbeddings() docsearch = Chroma.from_documents(split_docs, embeddings) ### Expected behavior Expect to load embedding into Chroma, then create a QA object upon that. The code was able to run without a problem yesterday but encountered an error today
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7872/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7872/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7871
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7871/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7871/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7871/events
https://github.com/langchain-ai/langchain/pull/7871
1,809,306,605
PR_kwDOIPDwls5VwKXJ
7,871
LS0010
{ "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": 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-07-18T07:19:24
2023-07-18T07:28:38
2023-07-18T07:28:38
COLLABORATOR
null
Bump langsmith version. Has some additional UX improvements
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7871/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7871/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7871", "html_url": "https://github.com/langchain-ai/langchain/pull/7871", "diff_url": "https://github.com/langchain-ai/langchain/pull/7871.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7871.patch", "merged_at": "2023-07-18T07:28:38" }
https://api.github.com/repos/langchain-ai/langchain/issues/7870
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7870/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7870/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7870/events
https://github.com/langchain-ai/langchain/pull/7870
1,809,165,614
PR_kwDOIPDwls5VvrUD
7,870
Some mitigations for RCE in PAL chain
{ "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": 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-07-18T05:51:46
2023-07-18T05:58:48
2023-07-18T05:58:47
COLLABORATOR
null
Some docstring / small nits to #6003
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7870/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7870/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7870", "html_url": "https://github.com/langchain-ai/langchain/pull/7870", "diff_url": "https://github.com/langchain-ai/langchain/pull/7870.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7870.patch", "merged_at": "2023-07-18T05:58:47" }
https://api.github.com/repos/langchain-ai/langchain/issues/7869
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7869/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7869/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7869/events
https://github.com/langchain-ai/langchain/issues/7869
1,809,140,912
I_kwDOIPDwls5r1Uyw
7,869
Can't use SQLdatabasechain with Multipromptchain
{ "login": "Boopalanoptisol", "id": 105263483, "node_id": "U_kgDOBkYxew", "avatar_url": "https://avatars.githubusercontent.com/u/105263483?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Boopalanoptisol", "html_url": "https://github.com/Boopalanoptisol", "followers_url": "https://api.github.com/users/Boopalanoptisol/followers", "following_url": "https://api.github.com/users/Boopalanoptisol/following{/other_user}", "gists_url": "https://api.github.com/users/Boopalanoptisol/gists{/gist_id}", "starred_url": "https://api.github.com/users/Boopalanoptisol/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Boopalanoptisol/subscriptions", "organizations_url": "https://api.github.com/users/Boopalanoptisol/orgs", "repos_url": "https://api.github.com/users/Boopalanoptisol/repos", "events_url": "https://api.github.com/users/Boopalanoptisol/events{/privacy}", "received_events_url": "https://api.github.com/users/Boopalanoptisol/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-07-18T05:25:09
2023-10-24T16:06:23
2023-10-24T16:06:22
NONE
null
**When i try to use Multiprompt chain getting the below error. Any Suggestions for Solving this Issue??** ValidationError: 16 validation errors for MultiPromptChain destination_chains -> list -> database extra fields not permitted (type=value_error.extra) destination_chains -> list -> input_key extra fields not permitted (type=value_error.extra) destination_chains -> list -> llm_chain extra fields not permitted (type=value_error.extra) destination_chains -> list -> query_checker_prompt extra fields not permitted (type=value_error.extra) destination_chains -> list -> return_direct extra fields not permitted (type=value_error.extra) destination_chains -> list -> return_intermediate_steps extra fields not permitted (type=value_error.extra) destination_chains -> list -> top_k extra fields not permitted (type=value_error.extra) destination_chains -> list -> use_query_checker extra fields not permitted (type=value_error.extra) destination_chains -> query -> database extra fields not permitted (type=value_error.extra) destination_chains -> query -> input_key extra fields not permitted (type=value_error.extra) destination_chains -> query -> llm_chain extra fields not permitted (type=value_error.extra) destination_chains -> query -> query_checker_prompt extra fields not permitted (type=value_error.extra) destination_chains -> query -> return_direct extra fields not permitted (type=value_error.extra) destination_chains -> query -> return_intermediate_steps extra fields not permitted (type=value_error.extra) destination_chains -> query -> top_k extra fields not permitted (type=value_error.extra) destination_chains -> query -> use_query_checker extra fields not permitted (type=value_error.extra) **Getting the Above error when i try to Use the Below code. Any Suggestions to Solve the Above error??** physics_template = """You are a very smart Chatbot for helping users with physics-related questions. \ You excel at answering queries about the laws of nature and phenomena. \ When you don't have an answer, you admit that you don't know. Here is a physics question: {input}""" math_template = """You are a highly skilled mathematician Chatbot. \ You specialize in answering math questions of all levels of difficulty. \ You break down complex problems into simpler components and provide comprehensive solutions. Here is a math question: {input}""" prompt_infos = [ { "name": "list", "description": "Good for answering questions about query the data", "prompt_template": physics_template, }, { "name": "query", "description": "Good for answering math questions", "prompt_template": math_template, }, ] db = SQLDatabase.from_uri( **"YOUR DATABASE URI")** llm = OpenAI(temperature=0, model="text-davinci-003", max_tokens=1000, openai_api_key="**YOUR OPENAI API KEY**") destination_chains = {} textcontainer = st.container() with textcontainer: input = st.text_input("Query: ", key="input") if input: for p_info in prompt_infos: name = p_info["name"] prompt_template = p_info["prompt_template"] prompt = PromptTemplate(template=prompt_template, input_variables=["input"]) db_chain = SQLDatabaseChain( llm=llm, database=db, verbose=True,prompt=prompt) destination_chains[name] = db_chain default_chain = ConversationChain(llm=llm, output_key="text") destinations = [f"{p['name']}: {p['description']}" for p in prompt_infos] destinations_str = "\n".join(destinations) router_template = MULTI_PROMPT_ROUTER_TEMPLATE.format(destinations=destinations_str) router_prompt = PromptTemplate( template=router_template, input_variables=["input"], output_parser=RouterOutputParser(), ) router_chain = LLMRouterChain.from_llm(llm, router_prompt) db_chain = MultiPromptChain( router_chain=router_chain, destination_chains=destination_chains, default_chain=default_chain, verbose=True, ) ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7869/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7869/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7868
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7868/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7868/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7868/events
https://github.com/langchain-ai/langchain/pull/7868
1,809,131,863
PR_kwDOIPDwls5Vvkjq
7,868
Feature: Add openai_api_model attribute to Doctran models
{ "login": "aidendle94", "id": 37786342, "node_id": "MDQ6VXNlcjM3Nzg2MzQy", "avatar_url": "https://avatars.githubusercontent.com/u/37786342?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aidendle94", "html_url": "https://github.com/aidendle94", "followers_url": "https://api.github.com/users/aidendle94/followers", "following_url": "https://api.github.com/users/aidendle94/following{/other_user}", "gists_url": "https://api.github.com/users/aidendle94/gists{/gist_id}", "starred_url": "https://api.github.com/users/aidendle94/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aidendle94/subscriptions", "organizations_url": "https://api.github.com/users/aidendle94/orgs", "repos_url": "https://api.github.com/users/aidendle94/repos", "events_url": "https://api.github.com/users/aidendle94/events{/privacy}", "received_events_url": "https://api.github.com/users/aidendle94/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-07-18T05:17:24
2023-08-21T02:08:08
2023-07-20T14:27:56
CONTRIBUTOR
null
- Description: Added the ability to define the open AI model. - Issue: Currently the Doctran instance uses gpt-4 by default, this does not work if the user has no access to gpt -4. - rlancemartin, @eyurtsev, @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7868/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7868/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7868", "html_url": "https://github.com/langchain-ai/langchain/pull/7868", "diff_url": "https://github.com/langchain-ai/langchain/pull/7868.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7868.patch", "merged_at": "2023-07-20T14:27:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/7866
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7866/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7866/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7866/events
https://github.com/langchain-ai/langchain/pull/7866
1,809,027,603
PR_kwDOIPDwls5VvNU5
7,866
docstrings `agents`
{ "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": 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
2
2023-07-18T03:51:52
2023-07-18T16:01:05
2023-07-18T09:23:25
COLLABORATOR
null
Added/Updated docstrings for `agents` @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7866/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7866/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7866", "html_url": "https://github.com/langchain-ai/langchain/pull/7866", "diff_url": "https://github.com/langchain-ai/langchain/pull/7866.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7866.patch", "merged_at": "2023-07-18T09:23:25" }
https://api.github.com/repos/langchain-ai/langchain/issues/7865
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7865/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7865/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7865/events
https://github.com/langchain-ai/langchain/issues/7865
1,809,020,813
I_kwDOIPDwls5r03eN
7,865
Chroma vectorstore add_texts() method does not return ids when there is a metadatas argument
{ "login": "jciaffi", "id": 62593000, "node_id": "MDQ6VXNlcjYyNTkzMDAw", "avatar_url": "https://avatars.githubusercontent.com/u/62593000?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jciaffi", "html_url": "https://github.com/jciaffi", "followers_url": "https://api.github.com/users/jciaffi/followers", "following_url": "https://api.github.com/users/jciaffi/following{/other_user}", "gists_url": "https://api.github.com/users/jciaffi/gists{/gist_id}", "starred_url": "https://api.github.com/users/jciaffi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jciaffi/subscriptions", "organizations_url": "https://api.github.com/users/jciaffi/orgs", "repos_url": "https://api.github.com/users/jciaffi/repos", "events_url": "https://api.github.com/users/jciaffi/events{/privacy}", "received_events_url": "https://api.github.com/users/jciaffi/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
0
2023-07-18T03:42:15
2023-07-28T23:17:32
2023-07-28T23:17:32
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 - [ ] 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 collection.add_texts(["coucou"], metadatas = [{ 'source' : "here"}]) returns an empty list ### Expected behavior original add_texts() method : https://github.com/hwchase17/langchain/blob/master/langchain/vectorstores/chroma.py#L144 I fixed it by adding the ids_copy at the beginning : ``` ... if ids is None: ids = [str(uuid.uuid1()) for _ in texts] ids_copy = ids ... ``` And by returning it : ``` return ids_copy ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7865/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7865/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7864
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7864/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7864/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7864/events
https://github.com/langchain-ai/langchain/pull/7864
1,809,009,881
PR_kwDOIPDwls5VvJq0
7,864
add HuggingGPT Agent
{ "login": "tricktreat", "id": 25740077, "node_id": "MDQ6VXNlcjI1NzQwMDc3", "avatar_url": "https://avatars.githubusercontent.com/u/25740077?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tricktreat", "html_url": "https://github.com/tricktreat", "followers_url": "https://api.github.com/users/tricktreat/followers", "following_url": "https://api.github.com/users/tricktreat/following{/other_user}", "gists_url": "https://api.github.com/users/tricktreat/gists{/gist_id}", "starred_url": "https://api.github.com/users/tricktreat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tricktreat/subscriptions", "organizations_url": "https://api.github.com/users/tricktreat/orgs", "repos_url": "https://api.github.com/users/tricktreat/repos", "events_url": "https://api.github.com/users/tricktreat/events{/privacy}", "received_events_url": "https://api.github.com/users/tricktreat/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 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-07-18T03:26:14
2023-07-24T17:50:23
2023-07-24T17:50:23
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> - Description: add HuggingGPT Agent, see the [paper](https://arxiv.org/abs/2303.17580) and the [original project](https://github.com/microsoft/JARVIS). - Notebook: add a [notebook](https://github.com/tricktreat/langchain/blob/bc840fe4307690505b3c0b051e0e2d9726777437/docs/extras/use_cases/autonomous_agents/hugginggpt.ipynb) showing its use.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7864/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7864/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7864", "html_url": "https://github.com/langchain-ai/langchain/pull/7864", "diff_url": "https://github.com/langchain-ai/langchain/pull/7864.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7864.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7863
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7863/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7863/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7863/events
https://github.com/langchain-ai/langchain/pull/7863
1,808,847,391
PR_kwDOIPDwls5Vumns
7,863
docs: Mendable: Fixes pretty sources not working
{ "login": "nickscamara", "id": 20311743, "node_id": "MDQ6VXNlcjIwMzExNzQz", "avatar_url": "https://avatars.githubusercontent.com/u/20311743?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nickscamara", "html_url": "https://github.com/nickscamara", "followers_url": "https://api.github.com/users/nickscamara/followers", "following_url": "https://api.github.com/users/nickscamara/following{/other_user}", "gists_url": "https://api.github.com/users/nickscamara/gists{/gist_id}", "starred_url": "https://api.github.com/users/nickscamara/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nickscamara/subscriptions", "organizations_url": "https://api.github.com/users/nickscamara/orgs", "repos_url": "https://api.github.com/users/nickscamara/repos", "events_url": "https://api.github.com/users/nickscamara/events{/privacy}", "received_events_url": "https://api.github.com/users/nickscamara/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-07-18T00:52:30
2023-07-18T01:23:46
2023-07-18T01:23:46
CONTRIBUTOR
null
This new version fixes the"Verified Sources" display that got broken. Instead of displaying the full URL, it shows the title of the page the source is from.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7863/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7863/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7863", "html_url": "https://github.com/langchain-ai/langchain/pull/7863", "diff_url": "https://github.com/langchain-ai/langchain/pull/7863.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7863.patch", "merged_at": "2023-07-18T01:23:46" }
https://api.github.com/repos/langchain-ai/langchain/issues/7862
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7862/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7862/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7862/events
https://github.com/langchain-ai/langchain/pull/7862
1,808,805,243
PR_kwDOIPDwls5VudnL
7,862
Add metadata and page_content filters of documents in AwaDB
{ "login": "ljeagle", "id": 15918167, "node_id": "MDQ6VXNlcjE1OTE4MTY3", "avatar_url": "https://avatars.githubusercontent.com/u/15918167?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ljeagle", "html_url": "https://github.com/ljeagle", "followers_url": "https://api.github.com/users/ljeagle/followers", "following_url": "https://api.github.com/users/ljeagle/following{/other_user}", "gists_url": "https://api.github.com/users/ljeagle/gists{/gist_id}", "starred_url": "https://api.github.com/users/ljeagle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ljeagle/subscriptions", "organizations_url": "https://api.github.com/users/ljeagle/orgs", "repos_url": "https://api.github.com/users/ljeagle/repos", "events_url": "https://api.github.com/users/ljeagle/events{/privacy}", "received_events_url": "https://api.github.com/users/ljeagle/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
2
2023-07-17T23:54:44
2023-07-18T14:50:18
2023-07-18T14:50:18
CONTRIBUTOR
null
1. Add the metadata filter of documents. 2. Add the text page_content filter of documents 3. fix the bug of similarity_search_with_score Improvement and fix bug of AwaDB Fix the conflict https://github.com/hwchase17/langchain/pull/7840 @rlancemartin @eyurtsev Thanks!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7862/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7862/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7862", "html_url": "https://github.com/langchain-ai/langchain/pull/7862", "diff_url": "https://github.com/langchain-ai/langchain/pull/7862.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7862.patch", "merged_at": "2023-07-18T14:50:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/7861
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7861/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7861/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7861/events
https://github.com/langchain-ai/langchain/pull/7861
1,808,769,881
PR_kwDOIPDwls5VuV40
7,861
WeaviateHybridSearchRetriever option to enable scores.
{ "login": "IdkwhatImD0ing", "id": 91146598, "node_id": "MDQ6VXNlcjkxMTQ2NTk4", "avatar_url": "https://avatars.githubusercontent.com/u/91146598?v=4", "gravatar_id": "", "url": "https://api.github.com/users/IdkwhatImD0ing", "html_url": "https://github.com/IdkwhatImD0ing", "followers_url": "https://api.github.com/users/IdkwhatImD0ing/followers", "following_url": "https://api.github.com/users/IdkwhatImD0ing/following{/other_user}", "gists_url": "https://api.github.com/users/IdkwhatImD0ing/gists{/gist_id}", "starred_url": "https://api.github.com/users/IdkwhatImD0ing/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/IdkwhatImD0ing/subscriptions", "organizations_url": "https://api.github.com/users/IdkwhatImD0ing/orgs", "repos_url": "https://api.github.com/users/IdkwhatImD0ing/repos", "events_url": "https://api.github.com/users/IdkwhatImD0ing/events{/privacy}", "received_events_url": "https://api.github.com/users/IdkwhatImD0ing/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
2
2023-07-17T23:16:01
2023-07-18T14:57:18
2023-07-18T14:57:18
CONTRIBUTOR
null
Description: This PR adds the option to retrieve scores and explanations in the WeaviateHybridSearchRetriever. This feature improves the usability of the retriever by allowing users to understand the scoring logic behind the search results and further refine their search queries. Issue: This PR is a solution to the issue #7855 Dependencies: This PR does not introduce any new dependencies. Tag maintainer: @rlancemartin, @eyurtsev I have included a unit test for the added feature, ensuring that it retrieves scores and explanations correctly. I have also included an example notebook demonstrating its use.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7861/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7861/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7861", "html_url": "https://github.com/langchain-ai/langchain/pull/7861", "diff_url": "https://github.com/langchain-ai/langchain/pull/7861.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7861.patch", "merged_at": "2023-07-18T14:57:17" }
https://api.github.com/repos/langchain-ai/langchain/issues/7860
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7860/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7860/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7860/events
https://github.com/langchain-ai/langchain/pull/7860
1,808,753,847
PR_kwDOIPDwls5VuSTb
7,860
Adding Docs for `PromptLayerCallbackHandler`
{ "login": "Jped", "id": 5013466, "node_id": "MDQ6VXNlcjUwMTM0NjY=", "avatar_url": "https://avatars.githubusercontent.com/u/5013466?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Jped", "html_url": "https://github.com/Jped", "followers_url": "https://api.github.com/users/Jped/followers", "following_url": "https://api.github.com/users/Jped/following{/other_user}", "gists_url": "https://api.github.com/users/Jped/gists{/gist_id}", "starred_url": "https://api.github.com/users/Jped/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Jped/subscriptions", "organizations_url": "https://api.github.com/users/Jped/orgs", "repos_url": "https://api.github.com/users/Jped/repos", "events_url": "https://api.github.com/users/Jped/events{/privacy}", "received_events_url": "https://api.github.com/users/Jped/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-07-17T23:01:43
2023-07-18T14:51:16
2023-07-18T14:51:16
CONTRIBUTOR
null
@baskaryan Here I am adding documentation for the `PromptLayerCallbackHandler`. When we created the initial PR for the callback handler the docs were causing issues, so we merged without the docs.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7860/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7860/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7860", "html_url": "https://github.com/langchain-ai/langchain/pull/7860", "diff_url": "https://github.com/langchain-ai/langchain/pull/7860.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7860.patch", "merged_at": "2023-07-18T14:51:16" }
https://api.github.com/repos/langchain-ai/langchain/issues/7859
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7859/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7859/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7859/events
https://github.com/langchain-ai/langchain/pull/7859
1,808,745,491
PR_kwDOIPDwls5VuQfm
7,859
docstrings `output_parsers`
{ "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": 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-07-17T22:51:27
2023-07-18T16:00:49
2023-07-18T14:51:45
COLLABORATOR
null
Added/updated the docstrings from `output_parsers` @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7859/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7859/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7859", "html_url": "https://github.com/langchain-ai/langchain/pull/7859", "diff_url": "https://github.com/langchain-ai/langchain/pull/7859.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7859.patch", "merged_at": "2023-07-18T14:51:45" }
https://api.github.com/repos/langchain-ai/langchain/issues/7858
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7858/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7858/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7858/events
https://github.com/langchain-ai/langchain/pull/7858
1,808,679,085
PR_kwDOIPDwls5VuB0a
7,858
docstrings `retrievers`
{ "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": 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-07-17T21:48:03
2023-07-18T01:37:11
2023-07-18T00:47:17
COLLABORATOR
null
Added/updated docstrings `retrievers` @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7858/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7858/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7858", "html_url": "https://github.com/langchain-ai/langchain/pull/7858", "diff_url": "https://github.com/langchain-ai/langchain/pull/7858.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7858.patch", "merged_at": "2023-07-18T00:47:17" }
https://api.github.com/repos/langchain-ai/langchain/issues/7857
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7857/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7857/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7857/events
https://github.com/langchain-ai/langchain/pull/7857
1,808,618,706
PR_kwDOIPDwls5Vt0dV
7,857
Google Cloud Enterprise Search retriever
{ "login": "jarokaz", "id": 10439102, "node_id": "MDQ6VXNlcjEwNDM5MTAy", "avatar_url": "https://avatars.githubusercontent.com/u/10439102?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jarokaz", "html_url": "https://github.com/jarokaz", "followers_url": "https://api.github.com/users/jarokaz/followers", "following_url": "https://api.github.com/users/jarokaz/following{/other_user}", "gists_url": "https://api.github.com/users/jarokaz/gists{/gist_id}", "starred_url": "https://api.github.com/users/jarokaz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jarokaz/subscriptions", "organizations_url": "https://api.github.com/users/jarokaz/orgs", "repos_url": "https://api.github.com/users/jarokaz/repos", "events_url": "https://api.github.com/users/jarokaz/events{/privacy}", "received_events_url": "https://api.github.com/users/jarokaz/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
4
2023-07-17T21:01:15
2023-07-27T16:26:44
2023-07-19T01:24:08
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Added a retriever that encapsulated Google Cloud Enterprise Search. @rlancemartin, @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7857/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7857/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7857", "html_url": "https://github.com/langchain-ai/langchain/pull/7857", "diff_url": "https://github.com/langchain-ai/langchain/pull/7857.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7857.patch", "merged_at": "2023-07-19T01:24:08" }
https://api.github.com/repos/langchain-ai/langchain/issues/7856
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7856/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7856/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7856/events
https://github.com/langchain-ai/langchain/pull/7856
1,808,596,631
PR_kwDOIPDwls5Vtvp1
7,856
Add text_content kwarg to BrowserlessLoader
{ "login": "jagilley", "id": 37783831, "node_id": "MDQ6VXNlcjM3NzgzODMx", "avatar_url": "https://avatars.githubusercontent.com/u/37783831?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jagilley", "html_url": "https://github.com/jagilley", "followers_url": "https://api.github.com/users/jagilley/followers", "following_url": "https://api.github.com/users/jagilley/following{/other_user}", "gists_url": "https://api.github.com/users/jagilley/gists{/gist_id}", "starred_url": "https://api.github.com/users/jagilley/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jagilley/subscriptions", "organizations_url": "https://api.github.com/users/jagilley/orgs", "repos_url": "https://api.github.com/users/jagilley/repos", "events_url": "https://api.github.com/users/jagilley/events{/privacy}", "received_events_url": "https://api.github.com/users/jagilley/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": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false } ]
null
3
2023-07-17T20:43:18
2023-07-18T00:02:19
2023-07-18T00:02:19
CONTRIBUTOR
null
Added keyword argument to toggle between getting the text content of a site versus its HTML when using the `BrowserlessLoader`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7856/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7856/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7856", "html_url": "https://github.com/langchain-ai/langchain/pull/7856", "diff_url": "https://github.com/langchain-ai/langchain/pull/7856.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7856.patch", "merged_at": "2023-07-18T00:02:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/7855
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7855/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7855/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7855/events
https://github.com/langchain-ai/langchain/issues/7855
1,808,588,557
I_kwDOIPDwls5rzN8N
7,855
WeaviateHybridSearchRetriever has no option to retrieve scores and explanations
{ "login": "IdkwhatImD0ing", "id": 91146598, "node_id": "MDQ6VXNlcjkxMTQ2NTk4", "avatar_url": "https://avatars.githubusercontent.com/u/91146598?v=4", "gravatar_id": "", "url": "https://api.github.com/users/IdkwhatImD0ing", "html_url": "https://github.com/IdkwhatImD0ing", "followers_url": "https://api.github.com/users/IdkwhatImD0ing/followers", "following_url": "https://api.github.com/users/IdkwhatImD0ing/following{/other_user}", "gists_url": "https://api.github.com/users/IdkwhatImD0ing/gists{/gist_id}", "starred_url": "https://api.github.com/users/IdkwhatImD0ing/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/IdkwhatImD0ing/subscriptions", "organizations_url": "https://api.github.com/users/IdkwhatImD0ing/orgs", "repos_url": "https://api.github.com/users/IdkwhatImD0ing/repos", "events_url": "https://api.github.com/users/IdkwhatImD0ing/events{/privacy}", "received_events_url": "https://api.github.com/users/IdkwhatImD0ing/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
2
2023-07-17T20:38:13
2023-07-18T19:50:18
2023-07-18T19:50:18
CONTRIBUTOR
null
### Feature request The WeaviateHybridSearchRetriever does not currently have an option to retrieve scores and explanations. The lack of this feature limits the usability of the retriever, as users cannot gain insights into the scoring logic behind the search results. The feature to retrieve scores and explanations, as provided in the Weaviate library, needs to be integrated into the WeaviateHybridSearchRetriever. Relevant Weaviate library documentation: [Hybrid search](https://weaviate.io/developers/weaviate/search/hybrid) ### Motivation Having access to scores and explanations is crucial for users who need to understand how each result has been scored by the hybrid search algorithm. Such understanding can help in refining search queries and filtering results that do not meet certain score thresholds. In the absence of this feature, it becomes difficult to optimize search queries and the quality of the search results can be compromised. ### Your contribution I am ready to contribute to implementing this feature. I propose to enhance the WeaviateHybridSearchRetriever to include the retrieval of score and explainScore properties from the Weaviate library. This will involve adding relevant parameters and methods in the WeaviateHybridSearchRetriever class. I will also ensure the addition of appropriate tests to validate the functionality and correctness of the implementation.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7855/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/7855/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7854
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7854/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7854/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7854/events
https://github.com/langchain-ai/langchain/issues/7854
1,808,509,106
I_kwDOIPDwls5ry6iy
7,854
Strange chunks coming out of CharacterTextSplitter starting in version 0.0.226
{ "login": "Karin-Basis", "id": 18706112, "node_id": "MDQ6VXNlcjE4NzA2MTEy", "avatar_url": "https://avatars.githubusercontent.com/u/18706112?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Karin-Basis", "html_url": "https://github.com/Karin-Basis", "followers_url": "https://api.github.com/users/Karin-Basis/followers", "following_url": "https://api.github.com/users/Karin-Basis/following{/other_user}", "gists_url": "https://api.github.com/users/Karin-Basis/gists{/gist_id}", "starred_url": "https://api.github.com/users/Karin-Basis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Karin-Basis/subscriptions", "organizations_url": "https://api.github.com/users/Karin-Basis/orgs", "repos_url": "https://api.github.com/users/Karin-Basis/repos", "events_url": "https://api.github.com/users/Karin-Basis/events{/privacy}", "received_events_url": "https://api.github.com/users/Karin-Basis/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-07-17T19:53:47
2023-10-26T16:06:03
2023-10-26T16:06:03
NONE
null
### System Info Langchain version 0.0.226 M1 Mac Python 3.11.3 ### Who can help? @hwchase17 @mmz-001 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` from langchain.text_splitter import CharacterTextSplitter def main(): sample_text = "This is a series of short sentences. I want them to be separated at the periods. Three sentences should be enough." text_splitter = CharacterTextSplitter(separator=". ", chunk_size=30, chunk_overlap=0) chunks = text_splitter.split_text(sample_text) for chunk in chunks: print("CHUNK:", chunk) if __name__ == "__main__": main() ``` Output in version 0.0.225: ``` CHUNK: This is a series of short sentences CHUNK: I want them to be separated at the periods CHUNK: Three sentences should be enough. ``` Output in version 0.0.226: ``` CHUNK: Thi. i. serie. o. shor CHUNK: sentences. wan. the. t. b CHUNK: separate. a. th. periods CHUNK: Thre. sentence. shoul. b CHUNK: enough. ``` ### Expected behavior The output seen in version 0.0.225 should be the same in version 0.0.226. I suspect that the bug is related to the fix for this issue https://github.com/hwchase17/langchain/pull/7263. We have also noticed that in recent versions, the metadata start_index is always -1 when using create_documents(). Please let me know if I should file a separate issue for this.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7854/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7854/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7853
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7853/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7853/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7853/events
https://github.com/langchain-ai/langchain/pull/7853
1,808,446,455
PR_kwDOIPDwls5VtRlK
7,853
propagate RetrievalQA chain callbacks through its own LLMChain and StuffDocumentsChain
{ "login": "alecf", "id": 135340, "node_id": "MDQ6VXNlcjEzNTM0MA==", "avatar_url": "https://avatars.githubusercontent.com/u/135340?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alecf", "html_url": "https://github.com/alecf", "followers_url": "https://api.github.com/users/alecf/followers", "following_url": "https://api.github.com/users/alecf/following{/other_user}", "gists_url": "https://api.github.com/users/alecf/gists{/gist_id}", "starred_url": "https://api.github.com/users/alecf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alecf/subscriptions", "organizations_url": "https://api.github.com/users/alecf/orgs", "repos_url": "https://api.github.com/users/alecf/repos", "events_url": "https://api.github.com/users/alecf/events{/privacy}", "received_events_url": "https://api.github.com/users/alecf/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
2
2023-07-17T19:21:20
2023-08-08T16:04:44
2023-08-04T03:11:58
CONTRIBUTOR
null
This is another case, similar to #5572 and #7565 where the callbacks are getting dropped during construction of the chains. tagging @hwchase17 and @agola11 for callbacks propagation <!-- Thank you for contributing to LangChain! Replace this 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! 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7853/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7853/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7853", "html_url": "https://github.com/langchain-ai/langchain/pull/7853", "diff_url": "https://github.com/langchain-ai/langchain/pull/7853.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7853.patch", "merged_at": "2023-08-04T03:11:58" }
https://api.github.com/repos/langchain-ai/langchain/issues/7852
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7852/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7852/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7852/events
https://github.com/langchain-ai/langchain/pull/7852
1,808,404,445
PR_kwDOIPDwls5VtIEJ
7,852
update notebook
{ "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-07-17T19:01:15
2023-07-17T21:46:43
2023-07-17T21:46:42
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7852/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7852/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7852", "html_url": "https://github.com/langchain-ai/langchain/pull/7852", "diff_url": "https://github.com/langchain-ai/langchain/pull/7852.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7852.patch", "merged_at": "2023-07-17T21:46:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/7851
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7851/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7851/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7851/events
https://github.com/langchain-ai/langchain/issues/7851
1,808,378,977
I_kwDOIPDwls5ryaxh
7,851
Error while creating WeaviateHybridSearchRetriever instance
{ "login": "ashutosh-suryawanshi", "id": 41099320, "node_id": "MDQ6VXNlcjQxMDk5MzIw", "avatar_url": "https://avatars.githubusercontent.com/u/41099320?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ashutosh-suryawanshi", "html_url": "https://github.com/ashutosh-suryawanshi", "followers_url": "https://api.github.com/users/ashutosh-suryawanshi/followers", "following_url": "https://api.github.com/users/ashutosh-suryawanshi/following{/other_user}", "gists_url": "https://api.github.com/users/ashutosh-suryawanshi/gists{/gist_id}", "starred_url": "https://api.github.com/users/ashutosh-suryawanshi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ashutosh-suryawanshi/subscriptions", "organizations_url": "https://api.github.com/users/ashutosh-suryawanshi/orgs", "repos_url": "https://api.github.com/users/ashutosh-suryawanshi/repos", "events_url": "https://api.github.com/users/ashutosh-suryawanshi/events{/privacy}", "received_events_url": "https://api.github.com/users/ashutosh-suryawanshi/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" } ]
open
false
null
[]
null
2
2023-07-17T18:49:19
2023-10-02T22:24:09
null
NONE
null
### System Info LangChain version: 0.0.232 Python version: 3.10.8 Platform: Windows 11, VS Code For following usage of WeaviateHybridSearchRetriever - `w_url = os.environ["WEAVIATE_URL"]` `api_key_w= weaviate.AuthApiKey(api_key=os.environ["WEAVIATE_API_KEY"])` `wclient = weaviate.Client(url=w_url, auth_client_secret=api_key_w, additional_headers={ "X-Openai-Api-Key": os.getenv("OPENAI_API_KEY"), },)` `retriever = WeaviateHybridSearchRetriever(wclient, index_name="testindex", text_key="text")` Getting following error for the line of retriever instance creation - ` TypeError: Serializable.__init__() takes 1 positional argument but 2 were given ` ### Who can help? @hwchase17 @agola11 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Follow the steps given in the official documentation - https://python.langchain.com/docs/modules/data_connection/retrievers/integrations/weaviate-hybrid ### Expected behavior Retriever should be able to initiate correctly and should able to return queried documents.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7851/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7851/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7850
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7850/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7850/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7850/events
https://github.com/langchain-ai/langchain/pull/7850
1,808,373,827
PR_kwDOIPDwls5VtBPM
7,850
feat: optional post-processing for Unstructured loaders
{ "login": "MthwRobinson", "id": 1635179, "node_id": "MDQ6VXNlcjE2MzUxNzk=", "avatar_url": "https://avatars.githubusercontent.com/u/1635179?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MthwRobinson", "html_url": "https://github.com/MthwRobinson", "followers_url": "https://api.github.com/users/MthwRobinson/followers", "following_url": "https://api.github.com/users/MthwRobinson/following{/other_user}", "gists_url": "https://api.github.com/users/MthwRobinson/gists{/gist_id}", "starred_url": "https://api.github.com/users/MthwRobinson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MthwRobinson/subscriptions", "organizations_url": "https://api.github.com/users/MthwRobinson/orgs", "repos_url": "https://api.github.com/users/MthwRobinson/repos", "events_url": "https://api.github.com/users/MthwRobinson/events{/privacy}", "received_events_url": "https://api.github.com/users/MthwRobinson/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": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false } ]
null
2
2023-07-17T18:45:37
2023-07-17T19:14:07
2023-07-17T19:13:05
CONTRIBUTOR
null
### Summary Adds a post-processing method for Unstructured loaders that allows users to optionally modify or clean extracted elements. ### Testing ```python from langchain.document_loaders import UnstructuredFileLoader from unstructured.cleaners.core import clean_extra_whitespace loader = UnstructuredFileLoader( "./example_data/layout-parser-paper.pdf", mode="elements", post_processors=[clean_extra_whitespace], ) docs = loader.load() docs[:5] ``` ### Reviewrs - @rlancemartin - @eyurtsev - @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7850/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7850/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7850", "html_url": "https://github.com/langchain-ai/langchain/pull/7850", "diff_url": "https://github.com/langchain-ai/langchain/pull/7850.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7850.patch", "merged_at": "2023-07-17T19:13:05" }
https://api.github.com/repos/langchain-ai/langchain/issues/7849
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7849/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7849/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7849/events
https://github.com/langchain-ai/langchain/pull/7849
1,808,339,477
PR_kwDOIPDwls5Vs5uM
7,849
Add post-processing to Web Base url loader
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
2
2023-07-17T18:25:12
2023-07-27T15:00:10
2023-07-27T15:00:09
COLLABORATOR
null
Text loaded from urls can have low quality formatting (e.g., repeated newlines) that we want to post-process. We add regex substitution and newline compression to WebBaseLoader.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7849/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7849/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7849", "html_url": "https://github.com/langchain-ai/langchain/pull/7849", "diff_url": "https://github.com/langchain-ai/langchain/pull/7849.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7849.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7848
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7848/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7848/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7848/events
https://github.com/langchain-ai/langchain/pull/7848
1,808,339,025
PR_kwDOIPDwls5Vs5n8
7,848
docstrings `tools`
{ "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": 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-07-17T18:24:57
2023-07-18T01:41:26
2023-07-18T00:50:20
COLLABORATOR
null
Added docstrings in `tools`. @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7848/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7848/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7848", "html_url": "https://github.com/langchain-ai/langchain/pull/7848", "diff_url": "https://github.com/langchain-ai/langchain/pull/7848.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7848.patch", "merged_at": "2023-07-18T00:50:20" }
https://api.github.com/repos/langchain-ai/langchain/issues/7847
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7847/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7847/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7847/events
https://github.com/langchain-ai/langchain/pull/7847
1,808,278,848
PR_kwDOIPDwls5VssPu
7,847
add ls link
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-07-17T17:50:29
2023-07-18T14:39:27
2023-07-18T14:39:26
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7847/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7847/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7847", "html_url": "https://github.com/langchain-ai/langchain/pull/7847", "diff_url": "https://github.com/langchain-ai/langchain/pull/7847.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7847.patch", "merged_at": "2023-07-18T14:39:26" }
https://api.github.com/repos/langchain-ai/langchain/issues/7846
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7846/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7846/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7846/events
https://github.com/langchain-ai/langchain/pull/7846
1,808,178,675
PR_kwDOIPDwls5VsWBg
7,846
fix: SQLDatabaseChain not return sql query even if return_direct=True
{ "login": "tan-yong-sheng", "id": 64836390, "node_id": "MDQ6VXNlcjY0ODM2Mzkw", "avatar_url": "https://avatars.githubusercontent.com/u/64836390?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tan-yong-sheng", "html_url": "https://github.com/tan-yong-sheng", "followers_url": "https://api.github.com/users/tan-yong-sheng/followers", "following_url": "https://api.github.com/users/tan-yong-sheng/following{/other_user}", "gists_url": "https://api.github.com/users/tan-yong-sheng/gists{/gist_id}", "starred_url": "https://api.github.com/users/tan-yong-sheng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tan-yong-sheng/subscriptions", "organizations_url": "https://api.github.com/users/tan-yong-sheng/orgs", "repos_url": "https://api.github.com/users/tan-yong-sheng/repos", "events_url": "https://api.github.com/users/tan-yong-sheng/events{/privacy}", "received_events_url": "https://api.github.com/users/tan-yong-sheng/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-07-17T16:55:07
2023-08-04T03:11:37
2023-08-04T03:11:37
NONE
null
**Description:** SQLDatabaseChain not return sql query even if return_direct=True **Issue:** for SQLDatabaseChain, although its parameter set to return_direct=True, it still returns results (e.g., USB wire 98, Laptop 90, Desktop 86, ....) instead of sql query (e.g., SELECT name AS "Product Category" FROM category ORDER BY category_id LIMIT 10;) I found that it's because final_result variable is wrongly set to result variable instead of sql_cmd if self.return_direct = True, which is different from the documentation: python.langchain.com/docs/modules/chains/popular/sqlite **How to replicate the issue**: ```import os from langchain import OpenAI, SQLDatabase, SQLDatabaseChain from langchain.chat_models import ChatOpenAI os.environ["OPENAI_API_KEY"] = "<your openai api key>" db = SQLDatabase.from_uri("<path to your database>") llm = ChatOpenAI(temperature=0, verbose=True, model_name="gpt-3.5-turbo") question = "What are the top 10 product categories" raw_sql = db_chain(question) raw_sql # you will see the output will not be sql query before this bug fix ```` **Tag mantainer:** @hinthornw **Dependencies:** No change, as it's just a simple fix by replacing a variable **Supporting Evidence:** ![image](https://github.com/hwchase17/langchain/assets/64836390/d26098eb-7879-4cce-b4b5-eb2ea90017a4)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7846/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/7846/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7846", "html_url": "https://github.com/langchain-ai/langchain/pull/7846", "diff_url": "https://github.com/langchain-ai/langchain/pull/7846.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7846.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/7845
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7845/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7845/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7845/events
https://github.com/langchain-ai/langchain/issues/7845
1,808,165,032
I_kwDOIPDwls5rxmio
7,845
DOC: What is the difference between the various QA chains?
{ "login": "FloWsnr", "id": 65916600, "node_id": "MDQ6VXNlcjY1OTE2NjAw", "avatar_url": "https://avatars.githubusercontent.com/u/65916600?v=4", "gravatar_id": "", "url": "https://api.github.com/users/FloWsnr", "html_url": "https://github.com/FloWsnr", "followers_url": "https://api.github.com/users/FloWsnr/followers", "following_url": "https://api.github.com/users/FloWsnr/following{/other_user}", "gists_url": "https://api.github.com/users/FloWsnr/gists{/gist_id}", "starred_url": "https://api.github.com/users/FloWsnr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/FloWsnr/subscriptions", "organizations_url": "https://api.github.com/users/FloWsnr/orgs", "repos_url": "https://api.github.com/users/FloWsnr/repos", "events_url": "https://api.github.com/users/FloWsnr/events{/privacy}", "received_events_url": "https://api.github.com/users/FloWsnr/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" }, { "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-07-17T16:45:46
2023-11-03T16:06:52
2023-11-03T16:06:51
NONE
null
### Issue with current documentation: I think there is lacking documentation on the multitude of chains regarding QA and retrieval. There is: - [retrieval_qa](https://github.com/hwchase17/langchain/tree/master/langchain/chains/retrieval_qa) - [question_answering](https://github.com/hwchase17/langchain/tree/master/langchain/chains/question_answering) - [qa_with_sources](https://github.com/hwchase17/langchain/tree/master/langchain/chains/qa_with_sources) - [conversational_retrieval](https://github.com/hwchase17/langchain/tree/master/langchain/chains/conversational_retrieval) - [chat_vector_db](https://github.com/hwchase17/langchain/tree/master/langchain/chains/chat_vector_db) - [question answering](https://github.com/hwchase17/langchain/tree/master/langchain/chains/question_answering) Which one should be used when? Which are the base chains used by the others etc? ### Idea or request for content: A structured documentation of the different chains are needed. Maybe some refactoring of the directory structure to group chains.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7845/reactions", "total_count": 3, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/7845/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/7844
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7844/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7844/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7844/events
https://github.com/langchain-ai/langchain/pull/7844
1,808,164,437
PR_kwDOIPDwls5VsS9D
7,844
docstrings `prompts`
{ "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": 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-07-17T16:45:20
2023-07-18T14:58:23
2023-07-18T14:58:23
COLLABORATOR
null
Added missed docstrings in `prompts` @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7844/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7844/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7844", "html_url": "https://github.com/langchain-ai/langchain/pull/7844", "diff_url": "https://github.com/langchain-ai/langchain/pull/7844.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7844.patch", "merged_at": "2023-07-18T14:58:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/7843
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7843/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7843/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7843/events
https://github.com/langchain-ai/langchain/pull/7843
1,808,153,566
PR_kwDOIPDwls5VsQjC
7,843
fix nb
{ "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": 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-07-17T16:39:01
2023-07-17T16:39:12
2023-07-17T16:39:11
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7843/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/7843/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/7843", "html_url": "https://github.com/langchain-ai/langchain/pull/7843", "diff_url": "https://github.com/langchain-ai/langchain/pull/7843.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/7843.patch", "merged_at": "2023-07-17T16:39:11" }
https://api.github.com/repos/langchain-ai/langchain/issues/7841
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/7841/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/7841/comments
https://api.github.com/repos/langchain-ai/langchain/issues/7841/events
https://github.com/langchain-ai/langchain/issues/7841
1,808,066,576
I_kwDOIPDwls5rxOgQ
7,841
InvalidVectorQuery error when using AzureSearch with vector db
{ "login": "DSgUY", "id": 34726269, "node_id": "MDQ6VXNlcjM0NzI2MjY5", "avatar_url": "https://avatars.githubusercontent.com/u/34726269?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DSgUY", "html_url": "https://github.com/DSgUY", "followers_url": "https://api.github.com/users/DSgUY/followers", "following_url": "https://api.github.com/users/DSgUY/following{/other_user}", "gists_url": "https://api.github.com/users/DSgUY/gists{/gist_id}", "starred_url": "https://api.github.com/users/DSgUY/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DSgUY/subscriptions", "organizations_url": "https://api.github.com/users/DSgUY/orgs", "repos_url": "https://api.github.com/users/DSgUY/repos", "events_url": "https://api.github.com/users/DSgUY/events{/privacy}", "received_events_url": "https://api.github.com/users/DSgUY/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
7
2023-07-17T15:46:42
2023-11-15T16:07:13
2023-11-15T16:07:12
NONE
null
### System Info langchain==0.0.234, windows 10, azure-identity==1.13.0, Python 3.11.4 ### Who can help? I manage to create an index in Azure Cognitive Search with _id_, _content_, _vector_content_ and _metadata_ fields. I check that docs and chunks are not nulls. I'm getting and error when querying the vector store. docs: [azuresearch-langchain-example](https://python.langchain.com/docs/modules/data_connection/vectorstores/integrations/azuresearch) Any fix for this? @hwchase17 @agola11 Regards ### 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 Embedding is working as I test: ``` # Check that embbding is working input_text = "This is for demonstration." outcome = embeddings.embed_query(input_text) ``` When I'm trying to query with: ``` # Perform a similarity search docs = vector_store.similarity_search( query="What did the president say about Ketanji Brown Jackson", k=3, search_type="similarity", ) print(docs[0].page_content) ``` Error: ``` HttpResponseError: (InvalidRequestParameter) The 'value' property of the vector query can't be null or an empty array. Make sure to enclose the vector within a "value" property: '{"vector": { "value": [ ] } }' Parameter name: vector Code: InvalidRequestParameter Message: The 'value' property of the vector query can't be null or an empty array. Make sure to enclose the vector within a "value" property: '{"vector": { "value": [ ] } }' Parameter name: vector Exception Details: (InvalidVectorQuery) The 'value' property of the vector query can't be null or an empty array. Make sure to enclose the vector within a "value" property: '{"vector": { "value": [ ] } }' Code: InvalidVectorQuery Message: The 'value' property of the vector query can't be null or an empty array. Make sure to enclose the vector within a "value" property: '{"vector": { "value": [ ] } }' ``` ### Expected behavior I can't define is is the azure cognitive configuration index that i manually add or a bug in the code. Splitting and adding chunks to the vector store (Azure Cognitive Search) all where dont without any warning.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/7841/reactions", "total_count": 4, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 3 }
https://api.github.com/repos/langchain-ai/langchain/issues/7841/timeline
null
not_planned
null
null