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/6209
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6209/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6209/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6209/events
https://github.com/langchain-ai/langchain/issues/6209
1,758,290,677
I_kwDOIPDwls5ozWL1
6,209
OPENAI_FUNCTIONS agent doesn't accept python_repl or google-search or wolfram-alpha tool
{ "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 }
[]
closed
false
null
[]
null
4
2023-06-15T08:15:08
2023-06-16T10:05:53
2023-06-16T10:05:53
CONTRIBUTOR
null
### System Info Langchain 0.0.200 Python 3.11 ### 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 Here is my [gist](https://gist.github.com/alonsosilvaallende/17968208a14994e8285d91abdd79efab) to reproduce the error and my current workaround. The description of my gist is basically: 1. I followed the [example notebook](https://github.com/hwchase17/langchain/blob/master/docs/modules/agents/agents/examples/openai_functions_agent.ipynb) for OPENAI_FUNCTIONS Agent 2. In the tools, add `python_repl` as follows: `load_tools(['python_repl'])[0]` so that the Tools are modified as follows: ```python tools = [ Tool( name = "Search", func=search.run, description="useful for when you need to answer questions about current events. You should ask targeted questions" ), Tool( name="Calculator", func=llm_math_chain.run, description="useful for when you need to answer questions about math" ), Tool( name="FooBar-DB", func=db_chain.run, description="useful for when you need to answer questions about FooBar. Input should be in the form of a question containing full context" ), load_tools(['python_repl'])[0] ] ``` ### Expected behavior I expect the agent to run normally, however it gives me the error: 'Python REPL' does not match '^[a-zA-Z0-9_-]{1,64}$' - 'functions.4.name' Here is my [gist](https://gist.github.com/alonsosilvaallende/17968208a14994e8285d91abdd79efab) to see the error and my current workaround. If I understand correctly, the agent doesn't like that the name has a space. Indeed, if I redefine `python_repl` as: ```python Tool(name='Python', func=python_repl.run, description='A Python shell. Use this to execute python commands. Input should be a valid python command. If you want to see the output of a value, you should print it out with `print(...)`.' ), ``` the problem disappears. It's a workaround but I expect that either this agent not to have problems with names with spaces or to rename Python REPL as Python_REPL and similarly the other tools as Wolfram_Alpha, etc.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6209/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6209/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6208
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6208/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6208/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6208/events
https://github.com/langchain-ai/langchain/issues/6208
1,758,232,832
I_kwDOIPDwls5ozIEA
6,208
ClickHouse ERROR: Distance function argument of Annoy index must be of type String.
{ "login": "sheiy", "id": 12210038, "node_id": "MDQ6VXNlcjEyMjEwMDM4", "avatar_url": "https://avatars.githubusercontent.com/u/12210038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sheiy", "html_url": "https://github.com/sheiy", "followers_url": "https://api.github.com/users/sheiy/followers", "following_url": "https://api.github.com/users/sheiy/following{/other_user}", "gists_url": "https://api.github.com/users/sheiy/gists{/gist_id}", "starred_url": "https://api.github.com/users/sheiy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sheiy/subscriptions", "organizations_url": "https://api.github.com/users/sheiy/orgs", "repos_url": "https://api.github.com/users/sheiy/repos", "events_url": "https://api.github.com/users/sheiy/events{/privacy}", "received_events_url": "https://api.github.com/users/sheiy/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
4
2023-06-15T07:41:38
2023-06-19T00:34:55
2023-06-19T00:34:55
NONE
null
### System Info langchain: 0.0.200 platform: macOS python: 3.10.11 clickhouse: version 23.5.2.7 (official build) ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction <img width="1351" alt="image" src="https://github.com/hwchase17/langchain/assets/12210038/187c268c-7eca-40f1-80a6-596ba3885be9"> ### Expected behavior success write data to clickhouse
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6208/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6208/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6206
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6206/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6206/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6206/events
https://github.com/langchain-ai/langchain/pull/6206
1,758,176,438
PR_kwDOIPDwls5TD-P9
6,206
perf(openai): changed base model to gpt-3.5-turbo
{ "login": "StanGirard", "id": 19614572, "node_id": "MDQ6VXNlcjE5NjE0NTcy", "avatar_url": "https://avatars.githubusercontent.com/u/19614572?v=4", "gravatar_id": "", "url": "https://api.github.com/users/StanGirard", "html_url": "https://github.com/StanGirard", "followers_url": "https://api.github.com/users/StanGirard/followers", "following_url": "https://api.github.com/users/StanGirard/following{/other_user}", "gists_url": "https://api.github.com/users/StanGirard/gists{/gist_id}", "starred_url": "https://api.github.com/users/StanGirard/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/StanGirard/subscriptions", "organizations_url": "https://api.github.com/users/StanGirard/orgs", "repos_url": "https://api.github.com/users/StanGirard/repos", "events_url": "https://api.github.com/users/StanGirard/events{/privacy}", "received_events_url": "https://api.github.com/users/StanGirard/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-15T07:03:47
2023-06-15T13:19:24
2023-06-15T13:19:23
CONTRIBUTOR
null
I've changed the base model in OpenAI Class to gpt-3.5-turbo. It was already changed in ChatOpenAI class. Let me know if there was any reason why you kept text-davinci-003 which is 10 times more costly and not that smart in OpenAI Class and not in ChatOpenAI :D @hwchase17 @agola11
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6206/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6206/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6206", "html_url": "https://github.com/langchain-ai/langchain/pull/6206", "diff_url": "https://github.com/langchain-ai/langchain/pull/6206.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6206.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6205
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6205/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6205/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6205/events
https://github.com/langchain-ai/langchain/issues/6205
1,758,166,345
I_kwDOIPDwls5oy31J
6,205
Azure OpenAPI sometimes returns message without text, but also missing "content" key. Langchain should handle it gracefuly.
{ "login": "berlogb", "id": 19537028, "node_id": "MDQ6VXNlcjE5NTM3MDI4", "avatar_url": "https://avatars.githubusercontent.com/u/19537028?v=4", "gravatar_id": "", "url": "https://api.github.com/users/berlogb", "html_url": "https://github.com/berlogb", "followers_url": "https://api.github.com/users/berlogb/followers", "following_url": "https://api.github.com/users/berlogb/following{/other_user}", "gists_url": "https://api.github.com/users/berlogb/gists{/gist_id}", "starred_url": "https://api.github.com/users/berlogb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/berlogb/subscriptions", "organizations_url": "https://api.github.com/users/berlogb/orgs", "repos_url": "https://api.github.com/users/berlogb/repos", "events_url": "https://api.github.com/users/berlogb/events{/privacy}", "received_events_url": "https://api.github.com/users/berlogb/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-06-15T06:56:52
2023-10-24T16:07:48
2023-10-24T16:07:47
NONE
null
### System Info langchain: 0.0.188 (but same would happen in the latest master too) python 3.10 Linux Apparently, when model generates no text (it will depend on a specific set of prompts, messages, NO stopwords is used), Azure OpenAI API responds with something like this: ``` { "choices": [ { "finish_reason": "stop", "index": 0, "message": { "role": "assistant" } } ], ``` As you can see, "message" doesn't have "content" key at all. And LangChain expects that key to always be there and at one point there will be KeyError that "content" is not available. Not the best implementation of API from AOAI side, but we should handle it and raise some dedicated exception. The good place for it seems to be here: https://github.com/hwchase17/langchain/blob/master/langchain/chat_models/openai.py#L368 , (def _create_chat_result) I've "fixed" it by doing this: ``` def _create_chat_result(self, response: Mapping[str, Any]) -> ChatResult: generations = [] for res in response["choices"]: if "content" not in res["message"]: #<--- checking it it's missing raise EmptyResponseFromModel()# <---- raising custom exception that I can intercept in the main code and react appropriately ``` ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Can't share exact prompts and messages ### Expected behavior We should handle this broken response from the AOAI gracefully.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6205/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/6205/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6204
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6204/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6204/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6204/events
https://github.com/langchain-ai/langchain/issues/6204
1,758,160,830
I_kwDOIPDwls5oy2e-
6,204
DOC: type issue with `pandoc`
{ "login": "gyroflaw", "id": 83718263, "node_id": "MDQ6VXNlcjgzNzE4MjYz", "avatar_url": "https://avatars.githubusercontent.com/u/83718263?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gyroflaw", "html_url": "https://github.com/gyroflaw", "followers_url": "https://api.github.com/users/gyroflaw/followers", "following_url": "https://api.github.com/users/gyroflaw/following{/other_user}", "gists_url": "https://api.github.com/users/gyroflaw/gists{/gist_id}", "starred_url": "https://api.github.com/users/gyroflaw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gyroflaw/subscriptions", "organizations_url": "https://api.github.com/users/gyroflaw/orgs", "repos_url": "https://api.github.com/users/gyroflaw/repos", "events_url": "https://api.github.com/users/gyroflaw/events{/privacy}", "received_events_url": "https://api.github.com/users/gyroflaw/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-15T06:52:29
2023-06-15T15:18:28
2023-06-15T15:18:28
CONTRIBUTOR
null
### Issue with current documentation: There is an typo issue in this [page](https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/epub.html). ### Idea or request for content: Change `pandocs` to `pandoc`.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6204/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6204/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6203
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6203/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6203/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6203/events
https://github.com/langchain-ai/langchain/pull/6203
1,758,155,531
PR_kwDOIPDwls5TD5u6
6,203
Fix typo `pandocs` to `pandoc`
{ "login": "gyroflaw", "id": 83718263, "node_id": "MDQ6VXNlcjgzNzE4MjYz", "avatar_url": "https://avatars.githubusercontent.com/u/83718263?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gyroflaw", "html_url": "https://github.com/gyroflaw", "followers_url": "https://api.github.com/users/gyroflaw/followers", "following_url": "https://api.github.com/users/gyroflaw/following{/other_user}", "gists_url": "https://api.github.com/users/gyroflaw/gists{/gist_id}", "starred_url": "https://api.github.com/users/gyroflaw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gyroflaw/subscriptions", "organizations_url": "https://api.github.com/users/gyroflaw/orgs", "repos_url": "https://api.github.com/users/gyroflaw/repos", "events_url": "https://api.github.com/users/gyroflaw/events{/privacy}", "received_events_url": "https://api.github.com/users/gyroflaw/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
0
2023-06-15T06:49:12
2023-06-15T15:18:28
2023-06-15T15:18:27
CONTRIBUTOR
null
Fixes https://github.com/hwchase17/langchain/issues/6204 ### Context An typo issue with `pandoc`. #### Who can review? @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6203/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6203/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6203", "html_url": "https://github.com/langchain-ai/langchain/pull/6203", "diff_url": "https://github.com/langchain-ai/langchain/pull/6203.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6203.patch", "merged_at": "2023-06-15T15:18:27" }
https://api.github.com/repos/langchain-ai/langchain/issues/6202
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6202/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6202/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6202/events
https://github.com/langchain-ai/langchain/issues/6202
1,758,150,424
I_kwDOIPDwls5oyz8Y
6,202
On API base URL change, underlying connection doesn't always change.
{ "login": "berlogb", "id": 19537028, "node_id": "MDQ6VXNlcjE5NTM3MDI4", "avatar_url": "https://avatars.githubusercontent.com/u/19537028?v=4", "gravatar_id": "", "url": "https://api.github.com/users/berlogb", "html_url": "https://github.com/berlogb", "followers_url": "https://api.github.com/users/berlogb/followers", "following_url": "https://api.github.com/users/berlogb/following{/other_user}", "gists_url": "https://api.github.com/users/berlogb/gists{/gist_id}", "starred_url": "https://api.github.com/users/berlogb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/berlogb/subscriptions", "organizations_url": "https://api.github.com/users/berlogb/orgs", "repos_url": "https://api.github.com/users/berlogb/repos", "events_url": "https://api.github.com/users/berlogb/events{/privacy}", "received_events_url": "https://api.github.com/users/berlogb/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-06-15T06:45:19
2023-10-25T16:08:12
2023-10-25T16:08:11
NONE
null
### System Info Version: 0.0.188 (but I don't see any change in the latest master that would fix that) Python: 3.10 Linux Problem description: In one of our environments we have multiple Azure OpenAPI base URLs and have to change them on a fly. We do it by changing LLM within the Chain, basically recreating LLM with the new Base URL, Deployment name and so on, something like this: ``` llm = AzureChatOpenAI( openai_api_base=api_base, openai_api_version=api_version, deployment_name=deployment_name, openai_api_key=api_key, openai_api_type="azure",) ``` Unfortunately it doesn't always have an effect, as, apparently most of those parameters are not passed correctly to the OpenAI API, here: https://github.com/hwchase17/langchain/blob/master/langchain/chat_models/openai.py#L294 (def completion_with_retry and def acompletion_with_retry) kwargs don't contain things like base endpoint and so on. It seems to be from some legacy openai implementation when it had to be declared as environmental variable. And basically leads to a situation (time to time, depending on how fast the change is, if concurrently different users use different models, etc.) that base URL will remain the same, while deployment name changes. To fix this, I simply added: ``` ... retry_decorator = _create_retry_decorator(llm) try: kwargs['api_base'] = llm.openai_api_base kwargs['api_key'] = llm.openai_api_key kwargs['api_type'] = llm.openai_api_type kwargs['api_version'] = llm.openai_api_version kwargs['organization'] = llm.openai_organization if llm.openai_organization else None except: pass @retry_decorator ... ``` As it's inside chat_models and openai supports those arguments for chat models, haven't had any problems with it. ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Steps to reproduce: 1. Have 2 different API Base URLs with different deployment names 2. Create many CoversationChain with AzureChatOpenAI (one per "user" from step#4) 3. Have multiple threads/asyncio (in my specific case, it's behind FastAPI) 4. emulate multiple, parallel calls of CoversationChain.run and then start randomly changing for some user AzureChatOpenAI model pointing to different Base URL and deployment name 5. You will see that some calls will fail, cause deployment name would change but base URL won't (easy to observe by setting logging level to DEBUG) ### Expected behavior Change of base URL and deployment name should be propagated to the "caller" deterministically and reliably.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6202/reactions", "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6202/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6200
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6200/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6200/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6200/events
https://github.com/langchain-ai/langchain/issues/6200
1,758,056,575
I_kwDOIPDwls5oydB_
6,200
AzureChatOpenAI.get_num_tokens_from_messages does not work
{ "login": "yoooyle", "id": 877883, "node_id": "MDQ6VXNlcjg3Nzg4Mw==", "avatar_url": "https://avatars.githubusercontent.com/u/877883?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yoooyle", "html_url": "https://github.com/yoooyle", "followers_url": "https://api.github.com/users/yoooyle/followers", "following_url": "https://api.github.com/users/yoooyle/following{/other_user}", "gists_url": "https://api.github.com/users/yoooyle/gists{/gist_id}", "starred_url": "https://api.github.com/users/yoooyle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yoooyle/subscriptions", "organizations_url": "https://api.github.com/users/yoooyle/orgs", "repos_url": "https://api.github.com/users/yoooyle/repos", "events_url": "https://api.github.com/users/yoooyle/events{/privacy}", "received_events_url": "https://api.github.com/users/yoooyle/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
4
2023-06-15T05:19:24
2023-11-15T18:02:17
null
NONE
null
### System Info langchain==0.0.198 and current HEAD AzureChat inherits from OpenAIChat ![image](https://github.com/hwchase17/langchain/assets/877883/11b94aef-6dd0-4f75-882a-9558b6550c1b) Which throws on Azure's model name ![image](https://github.com/hwchase17/langchain/assets/877883/fa995f5c-ba8b-4a3b-a877-9981484893dd) Azure's model name is gpt-35-turbo, not 3.5 ![image](https://github.com/hwchase17/langchain/assets/877883/72d716e6-3402-47a3-a3cc-262b3720d8ed) ### Who can help? @hwchase17 ### 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 1. deploy private GPT3.5 on Azure 2. Initialize an AzureChatOpenAI object 3. call get_num_tokens_from_messages 4. observe the exception ### Expected behavior no exception
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6200/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6200/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6199
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6199/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6199/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6199/events
https://github.com/langchain-ai/langchain/pull/6199
1,758,030,743
PR_kwDOIPDwls5TDewH
6,199
Make so explicit class constructor is called in ElasticVectorSearch from_texts
{ "login": "cdiddy77", "id": 4615465, "node_id": "MDQ6VXNlcjQ2MTU0NjU=", "avatar_url": "https://avatars.githubusercontent.com/u/4615465?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cdiddy77", "html_url": "https://github.com/cdiddy77", "followers_url": "https://api.github.com/users/cdiddy77/followers", "following_url": "https://api.github.com/users/cdiddy77/following{/other_user}", "gists_url": "https://api.github.com/users/cdiddy77/gists{/gist_id}", "starred_url": "https://api.github.com/users/cdiddy77/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cdiddy77/subscriptions", "organizations_url": "https://api.github.com/users/cdiddy77/orgs", "repos_url": "https://api.github.com/users/cdiddy77/repos", "events_url": "https://api.github.com/users/cdiddy77/events{/privacy}", "received_events_url": "https://api.github.com/users/cdiddy77/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
5
2023-06-15T04:51:58
2023-07-13T23:55:21
2023-07-13T23:55:21
CONTRIBUTOR
null
Fixes #6198 ElasticKnnSearch.from_texts is actually ElasticVectorSearch.from_texts and throws because it calls ElasticKnnSearch constructor with the wrong arguments. Now ElasticKnnSearch has its own from_texts, which constructs a proper ElasticKnnSearch. #### Who can review? @CodeDevNinja @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6199/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6199/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6199", "html_url": "https://github.com/langchain-ai/langchain/pull/6199", "diff_url": "https://github.com/langchain-ai/langchain/pull/6199.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6199.patch", "merged_at": "2023-07-13T23:55:21" }
https://api.github.com/repos/langchain-ai/langchain/issues/6198
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6198/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6198/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6198/events
https://github.com/langchain-ai/langchain/issues/6198
1,758,024,992
I_kwDOIPDwls5oyVUg
6,198
Elasticsearch : ElasticKnnSearch.from_texts throws AttributeError
{ "login": "cdiddy77", "id": 4615465, "node_id": "MDQ6VXNlcjQ2MTU0NjU=", "avatar_url": "https://avatars.githubusercontent.com/u/4615465?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cdiddy77", "html_url": "https://github.com/cdiddy77", "followers_url": "https://api.github.com/users/cdiddy77/followers", "following_url": "https://api.github.com/users/cdiddy77/following{/other_user}", "gists_url": "https://api.github.com/users/cdiddy77/gists{/gist_id}", "starred_url": "https://api.github.com/users/cdiddy77/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cdiddy77/subscriptions", "organizations_url": "https://api.github.com/users/cdiddy77/orgs", "repos_url": "https://api.github.com/users/cdiddy77/repos", "events_url": "https://api.github.com/users/cdiddy77/events{/privacy}", "received_events_url": "https://api.github.com/users/cdiddy77/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-15T04:45:12
2023-07-13T23:55:22
2023-07-13T23:55:22
CONTRIBUTOR
null
### System Info Langchain version : 0.0.199 Python Version: Python 3.9.16 MacOS @CodeDevNinja @dev2049 PR https://github.com/hwchase17/langchain/pull/5058 introduced a change to ElasticVectorSearch from_texts which broke, kind of coincidentally, ElasticKnnSearch from_texts I discovered this issue when running docs/modules/indexes/vectorstores/examples/elasticsearch.ipynb . I got to the following cell: ```python # Test `add_texts` method texts = ["Hello, world!", "Machine learning is fun.", "I love Python."] knn_search.add_texts(texts) # Test `from_texts` method new_texts = ["This is a new text.", "Elasticsearch is powerful.", "Python is great for data analysis."] knn_search.from_texts(new_texts, embeddings, elasticsearch_url=elasticsearch_url) ``` and it said: ```python --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[10], line 7 5 # Test `from_texts` method 6 new_texts = ["This is a new text.", "Elasticsearch is powerful.", "Python is great for data analysis."] ----> 7 knn_search.from_texts(new_texts, embeddings, elasticsearch_url=elasticsearch_url) File ~/dev/github/langchain/langchain/vectorstores/elastic_vector_search.py:296, in ElasticVectorSearch.from_texts(cls, texts, embedding, metadatas, elasticsearch_url, index_name, refresh_indices, **kwargs) 293 index_name = index_name or uuid.uuid4().hex 294 vectorsearch = cls( 295 elasticsearch_url, index_name, embedding, **kwargs) --> 296 vectorsearch.add_texts( 297 texts, metadatas=metadatas, refresh_indices=refresh_indices 298 ) 299 return vectorsearch File ~/dev/github/langchain/langchain/vectorstores/elastic_vector_search.py:183, in ElasticVectorSearch.add_texts(self, texts, metadatas, refresh_indices, **kwargs) 181 requests = [] 182 ids = [] --> 183 embeddings = self.embedding.embed_documents(list(texts)) 184 dim = len(embeddings[0]) 185 mapping = _default_text_mapping(dim) AttributeError: 'str' object has no attribute 'embed_documents' ``` which is a pretty weird error. This is because https://github.com/cdiddy77/langchain/blob/e74733ab9e5e307fd828ea600ea929a1cb24320f/langchain/vectorstores/elastic_vector_search.py#L294 invokes the __init__ of the calling class, in this case `ElasticKnnSearch` which takes parameters in a very different order. This calling of the wrong __init__ was always present, but the PR above added a subsequent called to add_texts, which is where the bogus embedding is referenced, causing the exception. ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Steps to repro: 1. Open docs/modules/indexes/vectorstores/examples/elasticsearch.ipynb 2. Modify as appropriate with elasticsearch_url, and further down, model_id, dims, cloud_id, username,password of elastic cloud deployment 3. Run until cell below "Test adding vectors" ### Expected behavior Not throw exception
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6198/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6198/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6197
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6197/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6197/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6197/events
https://github.com/langchain-ai/langchain/issues/6197
1,757,980,392
I_kwDOIPDwls5oyKbo
6,197
ValueError: Too many arguments to single-input tool Calculator. Args: ['age ^ 0.43', {'age': 26}]
{ "login": "jiangying000", "id": 23182033, "node_id": "MDQ6VXNlcjIzMTgyMDMz", "avatar_url": "https://avatars.githubusercontent.com/u/23182033?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jiangying000", "html_url": "https://github.com/jiangying000", "followers_url": "https://api.github.com/users/jiangying000/followers", "following_url": "https://api.github.com/users/jiangying000/following{/other_user}", "gists_url": "https://api.github.com/users/jiangying000/gists{/gist_id}", "starred_url": "https://api.github.com/users/jiangying000/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jiangying000/subscriptions", "organizations_url": "https://api.github.com/users/jiangying000/orgs", "repos_url": "https://api.github.com/users/jiangying000/repos", "events_url": "https://api.github.com/users/jiangying000/events{/privacy}", "received_events_url": "https://api.github.com/users/jiangying000/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
11
2023-06-15T03:45:49
2024-01-01T22:32:00
null
CONTRIBUTOR
null
### System Info 0.200 ### 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 run *docs/modules/agents/agents/examples/openai_functions_agent.ipynb* at line `mrkl.run("Who is Leo DiCaprio's girlfriend? What is her current age raised to the 0.43 power?")` > > > Entering new chain... > > Invoking: `Search` with `{'query': 'Leo DiCaprio girlfriend'}` > > > Leonardo DiCaprio and Gigi Hadid were recently spotted at a pre-Oscars party, sparking interest once again in their rumored romance. The Revenant actor and the model first made headlines when they were spotted together at a New York Fashion Week afterparty in September 2022. > Invoking: `Calculator` with `{'expression': 'age ^ 0.43', 'variables': {'age': 26}}` > then throw err: `ValueError: Too many arguments to single-input tool Calculator. Args: ['age ^ 0.43', {'age': 26}]` ### Expected behavior should output value
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6197/reactions", "total_count": 7, "+1": 7, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6197/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6196
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6196/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6196/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6196/events
https://github.com/langchain-ai/langchain/issues/6196
1,757,957,689
I_kwDOIPDwls5oyE45
6,196
OpenAI: Function calling and other API updates
{ "login": "ryanpeach", "id": 14838729, "node_id": "MDQ6VXNlcjE0ODM4NzI5", "avatar_url": "https://avatars.githubusercontent.com/u/14838729?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ryanpeach", "html_url": "https://github.com/ryanpeach", "followers_url": "https://api.github.com/users/ryanpeach/followers", "following_url": "https://api.github.com/users/ryanpeach/following{/other_user}", "gists_url": "https://api.github.com/users/ryanpeach/gists{/gist_id}", "starred_url": "https://api.github.com/users/ryanpeach/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ryanpeach/subscriptions", "organizations_url": "https://api.github.com/users/ryanpeach/orgs", "repos_url": "https://api.github.com/users/ryanpeach/repos", "events_url": "https://api.github.com/users/ryanpeach/events{/privacy}", "received_events_url": "https://api.github.com/users/ryanpeach/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
8
2023-06-15T03:15:17
2023-06-19T07:24:03
2023-06-15T23:50:58
NONE
null
### Feature request https://openai.com/blog/function-calling-and-other-api-updates I think we should update the ChatOpenAi models behavior with tools so that it used the native API. ### Motivation Their model is likely trained to handle functions this way, and will have a lot better support. It also supposedly guarantees json matching the json schema, which can be hard to achieve otherwise. ### Your contribution I may be able to help. I’m working on OpenAI at work, but I’m just learning langchains API.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6196/reactions", "total_count": 4, "+1": 3, "-1": 1, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6196/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6195
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6195/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6195/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6195/events
https://github.com/langchain-ai/langchain/pull/6195
1,757,921,325
PR_kwDOIPDwls5TDHWx
6,195
count tokens for new OpenAI model versions
{ "login": "kylrth", "id": 5044802, "node_id": "MDQ6VXNlcjUwNDQ4MDI=", "avatar_url": "https://avatars.githubusercontent.com/u/5044802?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kylrth", "html_url": "https://github.com/kylrth", "followers_url": "https://api.github.com/users/kylrth/followers", "following_url": "https://api.github.com/users/kylrth/following{/other_user}", "gists_url": "https://api.github.com/users/kylrth/gists{/gist_id}", "starred_url": "https://api.github.com/users/kylrth/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kylrth/subscriptions", "organizations_url": "https://api.github.com/users/kylrth/orgs", "repos_url": "https://api.github.com/users/kylrth/repos", "events_url": "https://api.github.com/users/kylrth/events{/privacy}", "received_events_url": "https://api.github.com/users/kylrth/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
4
2023-06-15T02:27:29
2023-06-15T18:39:51
2023-06-15T13:16:03
CONTRIBUTOR
null
Trying to call `ChatOpenAI.get_num_tokens_from_messages` returns the following error for the newly announced models `gpt-3.5-turbo-0613` and `gpt-4-0613`: ``` NotImplementedError: get_num_tokens_from_messages() is not presently implemented for model gpt-3.5-turbo-0613.See https://github.com/openai/openai-python/blob/main/chatml.md for information on how messages are converted to tokens. ``` This adds support for counting tokens for those models, by counting tokens the same way they're counted for the previous versions of `gpt-3.5-turbo` and `gpt-4`. #### reviewers - @hwchase17 - @agola11
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6195/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6195/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6195", "html_url": "https://github.com/langchain-ai/langchain/pull/6195", "diff_url": "https://github.com/langchain-ai/langchain/pull/6195.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6195.patch", "merged_at": "2023-06-15T13:16:03" }
https://api.github.com/repos/langchain-ai/langchain/issues/6194
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6194/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6194/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6194/events
https://github.com/langchain-ai/langchain/issues/6194
1,757,913,609
I_kwDOIPDwls5ox6IJ
6,194
TypeError: similarity_search_with_score_by_vector() got an unexpected keyword argument 'score_threshold'
{ "login": "abdoelsayed2016", "id": 27821589, "node_id": "MDQ6VXNlcjI3ODIxNTg5", "avatar_url": "https://avatars.githubusercontent.com/u/27821589?v=4", "gravatar_id": "", "url": "https://api.github.com/users/abdoelsayed2016", "html_url": "https://github.com/abdoelsayed2016", "followers_url": "https://api.github.com/users/abdoelsayed2016/followers", "following_url": "https://api.github.com/users/abdoelsayed2016/following{/other_user}", "gists_url": "https://api.github.com/users/abdoelsayed2016/gists{/gist_id}", "starred_url": "https://api.github.com/users/abdoelsayed2016/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abdoelsayed2016/subscriptions", "organizations_url": "https://api.github.com/users/abdoelsayed2016/orgs", "repos_url": "https://api.github.com/users/abdoelsayed2016/repos", "events_url": "https://api.github.com/users/abdoelsayed2016/events{/privacy}", "received_events_url": "https://api.github.com/users/abdoelsayed2016/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-15T02:16:22
2023-09-22T16:07:13
2023-09-22T16:07:12
NONE
null
### System Info python 3.9 current version ### Who can help? @agola11 @eyurtsev @hwchase17 ### Information - [X] 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 - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` from langchain.embeddings import LlamaCppEmbeddings from langchain.embeddings import HuggingFaceEmbeddings, SentenceTransformerEmbeddings from langchain.embeddings import OpenAIEmbeddings import json from langchain.retrievers import SVMRetriever embeddings = LlamaCppEmbeddings(model_path="ggml-model-q4_0.bin") from langchain.document_loaders import TextLoader from langchain.text_splitter import CharacterTextSplitter from langchain.vectorstores import FAISS from langchain.embeddings import OpenAIEmbeddings text_list = ['The first Nobel Prize in Physics was awarded in 1901 to Wilhelm Conrad R\u00f6ntgen \"for his discovery of the remarkable rays subsequently named after him\".', #'The Nobel Prize in Physics is a yearly award given by the Royal Swedish Academy of Sciences for those who have made the most outstanding contributions for mankind in the field of physics. It is one of the five Nobel Prizes established by the 1895 will of Alfred Nobel, which are awarded for outstanding contributions in chemistry, physiology or medicine, literature, and physics. These prizes are awarded in Stockholm, Sweden. The first Nobel Prize in Physics was awarded to Wilhelm R\u00f6ntgen in 1901.', #'The next Deadpool movie is set to be released on June 1, 2018.' ] #print(documents) db = FAISS.from_texts(text_list, embeddings) retriever = db.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .5}) docs = retriever.get_relevant_documents("who got the first nobel prize in physics") print(docs) ``` ### Expected behavior ``` Traceback (most recent call last): File "llama_index/l.py", line 56, in <module> docs = retriever.get_relevant_documents("who got the first nobel prize in physics") File "/scratch/c7031420/.conda/envs/langchain/lib/python3.9/site-packages/langchain/vectorstores/base.py", line 395, in get_relevant_documents self.vectorstore.similarity_search_with_relevance_scores( File ".conda/envs/langchain/lib/python3.9/site-packages/langchain/vectorstores/base.py", line 141, in similarity_search_with_relevance_scores docs_and_similarities = self._similarity_search_with_relevance_scores( File "/.conda/envs/langchain/lib/python3.9/site-packages/langchain/vectorstores/faiss.py", line 609, in _similarity_search_with_relevance_scores docs_and_scores = self.similarity_search_with_score( File "/.conda/envs/langchain/lib/python3.9/site-packages/langchain/vectorstores/faiss.py", line 245, in similarity_search_with_score docs = self.similarity_search_with_score_by_vector( TypeError: similarity_search_with_score_by_vector() got an unexpected keyword argument 'score_threshold' ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6194/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6194/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6193
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6193/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6193/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6193/events
https://github.com/langchain-ai/langchain/issues/6193
1,757,906,824
I_kwDOIPDwls5ox4eI
6,193
get_openai_callback total_cost BROKEN
{ "login": "matias-biatoz", "id": 111389463, "node_id": "U_kgDOBqOrFw", "avatar_url": "https://avatars.githubusercontent.com/u/111389463?v=4", "gravatar_id": "", "url": "https://api.github.com/users/matias-biatoz", "html_url": "https://github.com/matias-biatoz", "followers_url": "https://api.github.com/users/matias-biatoz/followers", "following_url": "https://api.github.com/users/matias-biatoz/following{/other_user}", "gists_url": "https://api.github.com/users/matias-biatoz/gists{/gist_id}", "starred_url": "https://api.github.com/users/matias-biatoz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/matias-biatoz/subscriptions", "organizations_url": "https://api.github.com/users/matias-biatoz/orgs", "repos_url": "https://api.github.com/users/matias-biatoz/repos", "events_url": "https://api.github.com/users/matias-biatoz/events{/privacy}", "received_events_url": "https://api.github.com/users/matias-biatoz/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
5
2023-06-15T02:05:58
2023-09-21T16:08:01
2023-09-21T16:08:00
CONTRIBUTOR
null
### System Info Basically, when using "llm.generate" in combination with get_openai_callback the total_cost just outputs 0. Code Snippet ``` from langchain.chat_models import ChatOpenAI from langchain.schema import ( AIMessage, HumanMessage, SystemMessage ) from langchain.callbacks import get_openai_callback chat = [{"role": "user", "content": "What's the weather like in Boston?"}] for message in chat: if message["role"] == "assistant": messages.append(AIMessage(content=message["content"])) elif message["role"] == "user": messages.append(HumanMessage(content=message["content"])) with get_openai_callback() as cb: res = llm.generate([messages]) print(cb) # Tokens Used is okey print(cb) # Total Cost is Always 0 ``` ### Who can help? @agola11 It's a Callback Issue. (That's why I am tagging you) ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```from langchain.chat_models import ChatOpenAI from langchain.schema import ( AIMessage, HumanMessage, SystemMessage ) from langchain.callbacks import get_openai_callback chat = [{"role": "user", "content": "What's the weather like in Boston?"}] for message in chat: if message["role"] == "assistant": messages.append(AIMessage(content=message["content"])) elif message["role"] == "user": messages.append(HumanMessage(content=message["content"])) with get_openai_callback() as cb: res = llm.generate([messages]) print(cb) # Tokens Used is okey print(cb) # Total Cost is Always 0``` ### Expected behavior It should work the same way it works with chains or agents.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6193/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/6193/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6192
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6192/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6192/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6192/events
https://github.com/langchain-ai/langchain/pull/6192
1,757,895,573
PR_kwDOIPDwls5TDB1c
6,192
kiley-poole/Update OpenAI Chat Model to work with GPT-3-16k and GPT-4-32k
{ "login": "kiley-poole", "id": 13473083, "node_id": "MDQ6VXNlcjEzNDczMDgz", "avatar_url": "https://avatars.githubusercontent.com/u/13473083?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kiley-poole", "html_url": "https://github.com/kiley-poole", "followers_url": "https://api.github.com/users/kiley-poole/followers", "following_url": "https://api.github.com/users/kiley-poole/following{/other_user}", "gists_url": "https://api.github.com/users/kiley-poole/gists{/gist_id}", "starred_url": "https://api.github.com/users/kiley-poole/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kiley-poole/subscriptions", "organizations_url": "https://api.github.com/users/kiley-poole/orgs", "repos_url": "https://api.github.com/users/kiley-poole/repos", "events_url": "https://api.github.com/users/kiley-poole/events{/privacy}", "received_events_url": "https://api.github.com/users/kiley-poole/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-15T01:53:34
2023-06-15T21:48:46
2023-06-15T21:48:45
NONE
null
With the release of the new 16k context length Gpt-3 turbo model, I was running into issues with Buffer Summary Memory. I kept receiving the following error. `NotImplementedError: get_num_tokens_from_messages() is not presently implemented for model gpt-3.5-turbo-16k.See https://github.com/openai/openai-python/blob/main/chatml.md for information on how messages are converted to tokens.` Turns out the `get_num_tokens_from_messages` function is reliant on the hard coded values for the models. It current has support for gpt-3.5 and 4, but neither longer context model. I've added support for both of these. I also updated the existing model version numbers to 0613 (the most current set) and updated the model costs.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6192/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/6192/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6192", "html_url": "https://github.com/langchain-ai/langchain/pull/6192", "diff_url": "https://github.com/langchain-ai/langchain/pull/6192.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6192.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6191
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6191/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6191/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6191/events
https://github.com/langchain-ai/langchain/issues/6191
1,757,882,954
I_kwDOIPDwls5oxypK
6,191
About map_reduce.py
{ "login": "llmadd", "id": 38323944, "node_id": "MDQ6VXNlcjM4MzIzOTQ0", "avatar_url": "https://avatars.githubusercontent.com/u/38323944?v=4", "gravatar_id": "", "url": "https://api.github.com/users/llmadd", "html_url": "https://github.com/llmadd", "followers_url": "https://api.github.com/users/llmadd/followers", "following_url": "https://api.github.com/users/llmadd/following{/other_user}", "gists_url": "https://api.github.com/users/llmadd/gists{/gist_id}", "starred_url": "https://api.github.com/users/llmadd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/llmadd/subscriptions", "organizations_url": "https://api.github.com/users/llmadd/orgs", "repos_url": "https://api.github.com/users/llmadd/repos", "events_url": "https://api.github.com/users/llmadd/events{/privacy}", "received_events_url": "https://api.github.com/users/llmadd/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
8
2023-06-15T01:36:42
2023-07-05T15:15:46
2023-07-05T08:13:28
NONE
null
### System Info When I'm using "gpt-3.5-turbo-16k" model,This model supports 16k token.However, using the mp-reduce algorithm, if the answer obtained at A time exceeds 4000 tokens, this will be reported. "A single document was longer than the context length,we cannot handle this." Error. ![image](https://github.com/hwchase17/langchain/assets/38323944/d315804b-1c2c-4942-a519-1b49f43e3d0e) I don't think the token_max parameter changes for different models ### Who can help? @hwchase17 @agola11 Hope to get help, this is very troublesome for my use ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction My code: chain_one = load_summarize_chain(chat, chain_type="map_reduce",return_intermediate_steps=True,verbose=True, map_prompt=PROMPT, combine_prompt=combine_prompt) x = chain_one({"input_documents": documents},return_only_outputs=True) documents chunk_size is 4000 tokens ERROR:File D:\conda\envs\ai\Lib\site-packages\langchain\chains\combine_documents\map_reduce.py:37, in _split_list_of_docs(docs, length_func, token_max, **kwargs) 32 raise ValueError( 33 "A single document was longer than the context length," 34 " we cannot handle this." 35 ) 36 if len(_sub_result_docs) == 2: ---> 37 raise ValueError( 38 "A single document was so long it could not be combined " 39 "with another document, we cannot handle this." 40 ) 41 new_result_doc_list.append(_sub_result_docs[:-1]) 42 _sub_result_docs = _sub_result_docs[-1:] ValueError: A single document was so long it could not be combined with another document, we cannot handle this. ### Expected behavior I hope that when I use the large token model, these errors will not occur
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6191/reactions", "total_count": 5, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/6191/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6190
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6190/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6190/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6190/events
https://github.com/langchain-ai/langchain/pull/6190
1,757,848,893
PR_kwDOIPDwls5TC4C8
6,190
Updated index.rst to reflect langchain's LLM independence
{ "login": "mukut03", "id": 25134899, "node_id": "MDQ6VXNlcjI1MTM0ODk5", "avatar_url": "https://avatars.githubusercontent.com/u/25134899?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mukut03", "html_url": "https://github.com/mukut03", "followers_url": "https://api.github.com/users/mukut03/followers", "following_url": "https://api.github.com/users/mukut03/following{/other_user}", "gists_url": "https://api.github.com/users/mukut03/gists{/gist_id}", "starred_url": "https://api.github.com/users/mukut03/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mukut03/subscriptions", "organizations_url": "https://api.github.com/users/mukut03/orgs", "repos_url": "https://api.github.com/users/mukut03/repos", "events_url": "https://api.github.com/users/mukut03/events{/privacy}", "received_events_url": "https://api.github.com/users/mukut03/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-15T00:44:14
2023-06-18T23:57:15
2023-06-18T23:57:14
NONE
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> Fixes #930 (issue) #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review? Tag maintainers/contributors who might be interested: @hwchase17 <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6190/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6190/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6190", "html_url": "https://github.com/langchain-ai/langchain/pull/6190", "diff_url": "https://github.com/langchain-ai/langchain/pull/6190.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6190.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6189
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6189/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6189/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6189/events
https://github.com/langchain-ai/langchain/pull/6189
1,757,794,785
PR_kwDOIPDwls5TCsce
6,189
Update dev container
{ "login": "bamurtaugh", "id": 25310137, "node_id": "MDQ6VXNlcjI1MzEwMTM3", "avatar_url": "https://avatars.githubusercontent.com/u/25310137?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bamurtaugh", "html_url": "https://github.com/bamurtaugh", "followers_url": "https://api.github.com/users/bamurtaugh/followers", "following_url": "https://api.github.com/users/bamurtaugh/following{/other_user}", "gists_url": "https://api.github.com/users/bamurtaugh/gists{/gist_id}", "starred_url": "https://api.github.com/users/bamurtaugh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bamurtaugh/subscriptions", "organizations_url": "https://api.github.com/users/bamurtaugh/orgs", "repos_url": "https://api.github.com/users/bamurtaugh/repos", "events_url": "https://api.github.com/users/bamurtaugh/events{/privacy}", "received_events_url": "https://api.github.com/users/bamurtaugh/received_events", "type": "User", "site_admin": true }
[]
closed
false
null
[]
null
6
2023-06-14T23:19:41
2023-06-16T22:42:15
2023-06-16T22:42:14
CONTRIBUTOR
null
Fixes https://github.com/hwchase17/langchain/issues/6172 As described in https://github.com/hwchase17/langchain/issues/6172, I'd love to help update the dev container in this project. **Summary of changes:** - Dev container now builds (the current container in this repo won't build for me) - Dockerfile updates - Update image to our [currently-maintained Python image](https://github.com/devcontainers/images/tree/main/src/python/.devcontainer) (`mcr.microsoft.com/devcontainers/python`) rather than the deprecated image from vscode-dev-containers - Move Dockerfile to root of repo - in order for `COPY` to work properly, it needs the files (in this case, `pyproject.toml` and `poetry.toml`) in the same directory - devcontainer.json updates - Removed `customizations` and `remoteUser` since they should be covered by the updated image in the Dockerfile - Update comments - Update docker-compose.yaml to properly point to updated Dockerfile - Add a .gitattributes to avoid line ending conversions, which can result in hundreds of pending changes ([info](https://code.visualstudio.com/docs/devcontainers/tips-and-tricks#_resolving-git-line-ending-issues-in-containers-resulting-in-many-modified-files)) - Add a README in the .devcontainer folder and info on the dev container in the contributing.md **Outstanding questions:** - Is it expected for `poetry install` to take some time? It takes about 30 minutes for this dev container to finish building in a Codespace, but a user should only have to experience this once. Through some online investigation, this doesn't seem unusual - Versions of poetry newer than 1.3.2 failed every time - based on some of the guidance in contributing.md and other online resources, it seemed changing poetry versions might be a good solution. 1.3.2 is from Jan 2023 #### Who can review? Tag maintainers/contributors who might be interested: @vowelparrot I was able to run through the various `make` commands mentioned in contributing.md successfully with this updated setup, and please let me know if there are questions or other tests I can help with to ensure everything is running well. Thanks so much!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6189/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6189/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6189", "html_url": "https://github.com/langchain-ai/langchain/pull/6189", "diff_url": "https://github.com/langchain-ai/langchain/pull/6189.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6189.patch", "merged_at": "2023-06-16T22:42:14" }
https://api.github.com/repos/langchain-ai/langchain/issues/6188
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6188/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6188/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6188/events
https://github.com/langchain-ai/langchain/pull/6188
1,757,761,934
PR_kwDOIPDwls5TClIL
6,188
Updated notebook openai_functions_agent.ipynb
{ "login": "sumanthdonthula", "id": 46747610, "node_id": "MDQ6VXNlcjQ2NzQ3NjEw", "avatar_url": "https://avatars.githubusercontent.com/u/46747610?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sumanthdonthula", "html_url": "https://github.com/sumanthdonthula", "followers_url": "https://api.github.com/users/sumanthdonthula/followers", "following_url": "https://api.github.com/users/sumanthdonthula/following{/other_user}", "gists_url": "https://api.github.com/users/sumanthdonthula/gists{/gist_id}", "starred_url": "https://api.github.com/users/sumanthdonthula/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sumanthdonthula/subscriptions", "organizations_url": "https://api.github.com/users/sumanthdonthula/orgs", "repos_url": "https://api.github.com/users/sumanthdonthula/repos", "events_url": "https://api.github.com/users/sumanthdonthula/events{/privacy}", "received_events_url": "https://api.github.com/users/sumanthdonthula/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-06-14T22:47:02
2023-06-18T23:51:04
2023-06-18T23:51:04
CONTRIBUTOR
null
Here's the updated code with grammatical improvements, added comments, and placeholders for users to add their API keys and customize the notebook for their specific use cases. Linked to issue #6178
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6188/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6188/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6188", "html_url": "https://github.com/langchain-ai/langchain/pull/6188", "diff_url": "https://github.com/langchain-ai/langchain/pull/6188.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6188.patch", "merged_at": "2023-06-18T23:51:04" }
https://api.github.com/repos/langchain-ai/langchain/issues/6187
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6187/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6187/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6187/events
https://github.com/langchain-ai/langchain/pull/6187
1,757,717,223
PR_kwDOIPDwls5TCa8B
6,187
Fix class promotion
{ "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 }
[]
closed
false
null
[]
null
1
2023-06-14T22:10:38
2023-06-19T16:42:53
2023-06-18T23:55:18
COLLABORATOR
null
In LangChain, all module classes are enumerated in the `__init__.py` file of the correspondent module. But some classes were missed and were not included in the module `__init__.py` This PR: - added the missed classes to the module `__init__.py` files - `__init__.py:__all_` variable value (a list of the class names) was sorted - `langchain.tools.sql_database.tool.QueryCheckerTool` was renamed into the `QuerySQLCheckerTool` because it conflicted with `langchain.tools.spark_sql.tool.QueryCheckerTool` - changes to `pyproject.toml`: - added `pgvector` to `pyproject.toml:extended_testing` - added `pandas` to `pyproject.toml:[tool.poetry.group.test.dependencies]` - commented out the `streamlit` from `collbacks/__init__.py`, It is because now the `streamlit` requires Python >=3.7, !=3.9.7 - fixed duplicate names in `tools` - fixed correspondent ut-s #### Who can review? @hwchase17 @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6187/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6187/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6187", "html_url": "https://github.com/langchain-ai/langchain/pull/6187", "diff_url": "https://github.com/langchain-ai/langchain/pull/6187.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6187.patch", "merged_at": "2023-06-18T23:55:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/6186
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6186/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6186/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6186/events
https://github.com/langchain-ai/langchain/pull/6186
1,757,707,215
PR_kwDOIPDwls5TCYuV
6,186
Fixed a link typo /-/route -> /-/routes. and change endpoint format
{ "login": "kylehh", "id": 24217337, "node_id": "MDQ6VXNlcjI0MjE3MzM3", "avatar_url": "https://avatars.githubusercontent.com/u/24217337?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kylehh", "html_url": "https://github.com/kylehh", "followers_url": "https://api.github.com/users/kylehh/followers", "following_url": "https://api.github.com/users/kylehh/following{/other_user}", "gists_url": "https://api.github.com/users/kylehh/gists{/gist_id}", "starred_url": "https://api.github.com/users/kylehh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kylehh/subscriptions", "organizations_url": "https://api.github.com/users/kylehh/orgs", "repos_url": "https://api.github.com/users/kylehh/repos", "events_url": "https://api.github.com/users/kylehh/events{/privacy}", "received_events_url": "https://api.github.com/users/kylehh/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
2
2023-06-14T22:00:10
2023-09-06T23:34:18
2023-06-20T05:05:54
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> Fixes a link typo from `/-/route` to `/-/routes`. and change endpoint format from `f"{self.anyscale_service_url}/{self.anyscale_service_route}"` to `f"{self.anyscale_service_url}{self.anyscale_service_route}"` Also adding documentation about the format of the endpoint #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review? Tag maintainers/contributors who might be interested: <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6186/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6186/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6186", "html_url": "https://github.com/langchain-ai/langchain/pull/6186", "diff_url": "https://github.com/langchain-ai/langchain/pull/6186.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6186.patch", "merged_at": "2023-06-20T05:05:54" }
https://api.github.com/repos/langchain-ai/langchain/issues/6185
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6185/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6185/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6185/events
https://github.com/langchain-ai/langchain/pull/6185
1,757,682,457
PR_kwDOIPDwls5TCTUf
6,185
Harrison/use functions agent
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-14T21:34:13
2023-06-15T15:18:51
2023-06-15T15:18:50
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6185/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6185/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6185", "html_url": "https://github.com/langchain-ai/langchain/pull/6185", "diff_url": "https://github.com/langchain-ai/langchain/pull/6185.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6185.patch", "merged_at": "2023-06-15T15:18:50" }
https://api.github.com/repos/langchain-ai/langchain/issues/6184
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6184/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6184/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6184/events
https://github.com/langchain-ai/langchain/issues/6184
1,757,654,642
I_kwDOIPDwls5ow65y
6,184
Segmentation fault (core dumped)
{ "login": "abdoelsayed2016", "id": 27821589, "node_id": "MDQ6VXNlcjI3ODIxNTg5", "avatar_url": "https://avatars.githubusercontent.com/u/27821589?v=4", "gravatar_id": "", "url": "https://api.github.com/users/abdoelsayed2016", "html_url": "https://github.com/abdoelsayed2016", "followers_url": "https://api.github.com/users/abdoelsayed2016/followers", "following_url": "https://api.github.com/users/abdoelsayed2016/following{/other_user}", "gists_url": "https://api.github.com/users/abdoelsayed2016/gists{/gist_id}", "starred_url": "https://api.github.com/users/abdoelsayed2016/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abdoelsayed2016/subscriptions", "organizations_url": "https://api.github.com/users/abdoelsayed2016/orgs", "repos_url": "https://api.github.com/users/abdoelsayed2016/repos", "events_url": "https://api.github.com/users/abdoelsayed2016/events{/privacy}", "received_events_url": "https://api.github.com/users/abdoelsayed2016/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-14T21:11:13
2023-09-20T16:07:35
2023-09-20T16:07:34
NONE
null
### System Info Python 3.9.7 langchain '0.0.200' ### Who can help? @hwchase17 @agola11 @eyurtsev ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` from langchain.embeddings import LlamaCppEmbeddings from langchain.embeddings import HuggingFaceEmbeddings, SentenceTransformerEmbeddings from langchain.embeddings import OpenAIEmbeddings import json from langchain.retrievers import SVMRetriever llama = LlamaCppEmbeddings(model_path="ggml-model-q4_0.bin") """ text = "This is a test document." query_result = llama.embed_query(text) print(query_result) doc_result = llama.embed_documents([text])""" text_list = ['The first Nobel Prize in Physics was awarded in 1901 to Wilhelm Conrad R\u00f6ntgen \"for his discovery of the remarkable rays subsequently named after him\".', 'The Nobel Prize in Physics is a yearly award given by the Royal Swedish Academy of Sciences for those who have made the most outstanding contributions for mankind in the field of physics. It is one of the five Nobel Prizes established by the 1895 will of Alfred Nobel, which are awarded for outstanding contributions in chemistry, physiology or medicine, literature, and physics. These prizes are awarded in Stockholm, Sweden. The first Nobel Prize in Physics was awarded to Wilhelm R\u00f6ntgen in 1901.', 'The next Deadpool movie is set to be released on June 1, 2018.' ] retriever = SVMRetriever.from_texts(text_list, llama)#llama) result = retriever.get_relevant_documents("who got the first nobel prize in physics") print(result) ``` ### Expected behavior Hello All, how can i use `LlamaCppEmbeddings(model_path="ggml-model-q4_0.bin")` as embedding for the retriever i tried using ggml-model-q4_0.bin but got `Segmentation fault (core dumped) `
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6184/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6184/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6183
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6183/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6183/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6183/events
https://github.com/langchain-ai/langchain/pull/6183
1,757,610,118
PR_kwDOIPDwls5TCDQU
6,183
Update openai_info.py with 0613 models and new pricing
{ "login": "RayceRossum", "id": 9088513, "node_id": "MDQ6VXNlcjkwODg1MTM=", "avatar_url": "https://avatars.githubusercontent.com/u/9088513?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RayceRossum", "html_url": "https://github.com/RayceRossum", "followers_url": "https://api.github.com/users/RayceRossum/followers", "following_url": "https://api.github.com/users/RayceRossum/following{/other_user}", "gists_url": "https://api.github.com/users/RayceRossum/gists{/gist_id}", "starred_url": "https://api.github.com/users/RayceRossum/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RayceRossum/subscriptions", "organizations_url": "https://api.github.com/users/RayceRossum/orgs", "repos_url": "https://api.github.com/users/RayceRossum/repos", "events_url": "https://api.github.com/users/RayceRossum/events{/privacy}", "received_events_url": "https://api.github.com/users/RayceRossum/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-14T20:38:20
2023-06-21T08:25:30
2023-06-21T08:25:30
NONE
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6183/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6183/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6183", "html_url": "https://github.com/langchain-ai/langchain/pull/6183", "diff_url": "https://github.com/langchain-ai/langchain/pull/6183.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6183.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6182
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6182/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6182/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6182/events
https://github.com/langchain-ai/langchain/issues/6182
1,757,571,414
I_kwDOIPDwls5owmlW
6,182
following contributing.md results in being unable to run make
{ "login": "kylrth", "id": 5044802, "node_id": "MDQ6VXNlcjUwNDQ4MDI=", "avatar_url": "https://avatars.githubusercontent.com/u/5044802?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kylrth", "html_url": "https://github.com/kylrth", "followers_url": "https://api.github.com/users/kylrth/followers", "following_url": "https://api.github.com/users/kylrth/following{/other_user}", "gists_url": "https://api.github.com/users/kylrth/gists{/gist_id}", "starred_url": "https://api.github.com/users/kylrth/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kylrth/subscriptions", "organizations_url": "https://api.github.com/users/kylrth/orgs", "repos_url": "https://api.github.com/users/kylrth/repos", "events_url": "https://api.github.com/users/kylrth/events{/privacy}", "received_events_url": "https://api.github.com/users/kylrth/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
13
2023-06-14T20:12:59
2023-10-16T14:28:59
2023-10-16T14:26:28
CONTRIBUTOR
null
### System Info OS: Ubuntu 20.04 LTS branch: master Python: 3.9 ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I followed the steps as described in .github/contributing.md: 1. fork the repo 2. clone the fork 3. `conda create -n langchain python=3.9` 4. `conda activate langchain` 5. `pip install -U pip setuptools` 6. `pip install poetry` 7. `poetry completions bash >> ~/.bash_completion` 8. `poetry config virtualenvs.prefer-active-python true` 9. `poetry install -E all` <-- this command failed to unlock the gnome keyring, so I reran according to [poetry#1917](https://github.com/python-poetry/poetry/issues/1917) below: 10. `PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring poetry install -E all` 11. `make format` Running `make format` results in the following: ``` Traceback (most recent call last): File "/home/kyle/.miniconda3/envs/langchain/bin/make", line 5, in <module> from scripts.proto import main ModuleNotFoundError: No module named 'scripts' ``` `which make` returns a `make` script installed in my conda env bin, with the following contents: ``` #!/home/kyle/.miniconda3/envs/langchain/bin/python # -*- coding: utf-8 -*- import re import sys from scripts.proto import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main()) ``` I'm not sure what this is. I'm pretty sure I followed the directions correctly. ### Expected behavior I should be able to run `make format` without a problem at this point.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6182/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/6182/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6181
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6181/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6181/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6181/events
https://github.com/langchain-ai/langchain/pull/6181
1,757,539,541
PR_kwDOIPDwls5TBzi7
6,181
Add the ability to run the map_reduce chains process results step as async
{ "login": "MalhotraVijay", "id": 5164556, "node_id": "MDQ6VXNlcjUxNjQ1NTY=", "avatar_url": "https://avatars.githubusercontent.com/u/5164556?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MalhotraVijay", "html_url": "https://github.com/MalhotraVijay", "followers_url": "https://api.github.com/users/MalhotraVijay/followers", "following_url": "https://api.github.com/users/MalhotraVijay/following{/other_user}", "gists_url": "https://api.github.com/users/MalhotraVijay/gists{/gist_id}", "starred_url": "https://api.github.com/users/MalhotraVijay/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MalhotraVijay/subscriptions", "organizations_url": "https://api.github.com/users/MalhotraVijay/orgs", "repos_url": "https://api.github.com/users/MalhotraVijay/repos", "events_url": "https://api.github.com/users/MalhotraVijay/events{/privacy}", "received_events_url": "https://api.github.com/users/MalhotraVijay/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-14T19:49:59
2023-06-18T20:19:57
2023-06-18T20:19:56
CONTRIBUTOR
null
This will add the ability to add an AsyncCallbackManager (handler) for the reducer chain, which would be able to stream the tokens via the `async def on_llm_new_token` callback method Fixes # (issue) [5532](https://github.com/hwchase17/langchain/issues/5532) @hwchase17 @agola11 The following code snippet explains how this change would be used to enable `reduce_llm` with streaming support in a `map_reduce` chain I have tested this change and it works for the streaming use-case of reducer responses. I am happy to share more information if this makes solution sense. ``` AsyncHandler .......................... class StreamingLLMCallbackHandler(AsyncCallbackHandler): """Callback handler for streaming LLM responses.""" def __init__(self, websocket): self.websocket = websocket # This callback method is to be executed in async async def on_llm_new_token(self, token: str, **kwargs: Any) -> None: resp = ChatResponse(sender="bot", message=token, type="stream") await self.websocket.send_json(resp.dict()) Chain .......... stream_handler = StreamingLLMCallbackHandler(websocket) stream_manager = AsyncCallbackManager([stream_handler]) streaming_llm = ChatOpenAI( streaming=True, callback_manager=stream_manager, verbose=False, temperature=0, ) main_llm = OpenAI( temperature=0, verbose=False, ) doc_chain = load_qa_chain( llm=main_llm, reduce_llm=streaming_llm, chain_type="map_reduce", callback_manager=manager ) qa_chain = ConversationalRetrievalChain( retriever=vectorstore.as_retriever(), combine_docs_chain=doc_chain, question_generator=question_generator, callback_manager=manager, ) # Here `acall` will trigger `acombine_docs` on `map_reduce` which should then call `_aprocess_result` which in turn will call `self.combine_document_chain.arun` hence async callback will be awaited result = await qa_chain.acall( {"question": question, "chat_history": chat_history} ) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6181/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6181/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6181", "html_url": "https://github.com/langchain-ai/langchain/pull/6181", "diff_url": "https://github.com/langchain-ai/langchain/pull/6181.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6181.patch", "merged_at": "2023-06-18T20:19:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/6180
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6180/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6180/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6180/events
https://github.com/langchain-ai/langchain/pull/6180
1,757,509,091
PR_kwDOIPDwls5TBs68
6,180
Fix broken link to SearXNG supported engines
{ "login": "mrwadams", "id": 2872334, "node_id": "MDQ6VXNlcjI4NzIzMzQ=", "avatar_url": "https://avatars.githubusercontent.com/u/2872334?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mrwadams", "html_url": "https://github.com/mrwadams", "followers_url": "https://api.github.com/users/mrwadams/followers", "following_url": "https://api.github.com/users/mrwadams/following{/other_user}", "gists_url": "https://api.github.com/users/mrwadams/gists{/gist_id}", "starred_url": "https://api.github.com/users/mrwadams/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mrwadams/subscriptions", "organizations_url": "https://api.github.com/users/mrwadams/orgs", "repos_url": "https://api.github.com/users/mrwadams/repos", "events_url": "https://api.github.com/users/mrwadams/events{/privacy}", "received_events_url": "https://api.github.com/users/mrwadams/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-14T19:24:19
2023-06-18T23:46:11
2023-06-18T23:46:11
CONTRIBUTOR
null
Fix broken link to list of SearXNG supported engines. #### Who can review? Agents / Tools / Toolkits - @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6180/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6180/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6180", "html_url": "https://github.com/langchain-ai/langchain/pull/6180", "diff_url": "https://github.com/langchain-ai/langchain/pull/6180.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6180.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6179
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6179/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6179/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6179/events
https://github.com/langchain-ai/langchain/pull/6179
1,757,509,077
PR_kwDOIPDwls5TBs6v
6,179
update zep description and links to doc site
{ "login": "danielchalef", "id": 131175, "node_id": "MDQ6VXNlcjEzMTE3NQ==", "avatar_url": "https://avatars.githubusercontent.com/u/131175?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danielchalef", "html_url": "https://github.com/danielchalef", "followers_url": "https://api.github.com/users/danielchalef/followers", "following_url": "https://api.github.com/users/danielchalef/following{/other_user}", "gists_url": "https://api.github.com/users/danielchalef/gists{/gist_id}", "starred_url": "https://api.github.com/users/danielchalef/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danielchalef/subscriptions", "organizations_url": "https://api.github.com/users/danielchalef/orgs", "repos_url": "https://api.github.com/users/danielchalef/repos", "events_url": "https://api.github.com/users/danielchalef/events{/privacy}", "received_events_url": "https://api.github.com/users/danielchalef/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-14T19:24:18
2023-06-25T23:16:30
2023-06-18T23:43:50
CONTRIBUTOR
null
Update Zep notebooks: - Update Zep description in markdown fields - Correct link to Zep documentation website Thanks! #### Before submitting @hwchase17 - project lead - @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6179/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6179/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6179", "html_url": "https://github.com/langchain-ai/langchain/pull/6179", "diff_url": "https://github.com/langchain-ai/langchain/pull/6179.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6179.patch", "merged_at": "2023-06-18T23:43:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/6178
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6178/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6178/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6178/events
https://github.com/langchain-ai/langchain/issues/6178
1,757,479,011
I_kwDOIPDwls5owQBj
6,178
DOC: No explanation of OPENAI_FUNCTIONS agent
{ "login": "francisjervis", "id": 10519862, "node_id": "MDQ6VXNlcjEwNTE5ODYy", "avatar_url": "https://avatars.githubusercontent.com/u/10519862?v=4", "gravatar_id": "", "url": "https://api.github.com/users/francisjervis", "html_url": "https://github.com/francisjervis", "followers_url": "https://api.github.com/users/francisjervis/followers", "following_url": "https://api.github.com/users/francisjervis/following{/other_user}", "gists_url": "https://api.github.com/users/francisjervis/gists{/gist_id}", "starred_url": "https://api.github.com/users/francisjervis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/francisjervis/subscriptions", "organizations_url": "https://api.github.com/users/francisjervis/orgs", "repos_url": "https://api.github.com/users/francisjervis/repos", "events_url": "https://api.github.com/users/francisjervis/events{/privacy}", "received_events_url": "https://api.github.com/users/francisjervis/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
4
2023-06-14T19:00:52
2023-09-21T16:08:06
2023-09-21T16:08:05
NONE
null
### Issue with current documentation: This is not documented. An example is provided, with no explanation whatsoever. As such this [page](https://python.langchain.com/en/latest/modules/agents/agents/examples/openai_functions_agent.html) contributes nothing over and above the source code. ### Idea or request for content: Actually document this feature.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6178/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6178/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6177
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6177/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6177/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6177/events
https://github.com/langchain-ai/langchain/pull/6177
1,757,476,725
PR_kwDOIPDwls5TBlzo
6,177
Added OpenAIFunctionAgent to agent module export
{ "login": "tevonsb", "id": 19849533, "node_id": "MDQ6VXNlcjE5ODQ5NTMz", "avatar_url": "https://avatars.githubusercontent.com/u/19849533?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tevonsb", "html_url": "https://github.com/tevonsb", "followers_url": "https://api.github.com/users/tevonsb/followers", "following_url": "https://api.github.com/users/tevonsb/following{/other_user}", "gists_url": "https://api.github.com/users/tevonsb/gists{/gist_id}", "starred_url": "https://api.github.com/users/tevonsb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tevonsb/subscriptions", "organizations_url": "https://api.github.com/users/tevonsb/orgs", "repos_url": "https://api.github.com/users/tevonsb/repos", "events_url": "https://api.github.com/users/tevonsb/events{/privacy}", "received_events_url": "https://api.github.com/users/tevonsb/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
1
2023-06-14T18:59:22
2023-06-19T00:08:32
2023-06-18T23:55:37
NONE
null
Added OpenAIFunctionAgent export to the agent module to bring it into parity with other agents that are exported in this way. @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6177/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6177/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6177", "html_url": "https://github.com/langchain-ai/langchain/pull/6177", "diff_url": "https://github.com/langchain-ai/langchain/pull/6177.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6177.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6174
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6174/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6174/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6174/events
https://github.com/langchain-ai/langchain/issues/6174
1,757,386,307
I_kwDOIPDwls5ov5ZD
6,174
Only using GPU:0 for vector embedding.
{ "login": "Taeuk-Jang", "id": 46501734, "node_id": "MDQ6VXNlcjQ2NTAxNzM0", "avatar_url": "https://avatars.githubusercontent.com/u/46501734?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Taeuk-Jang", "html_url": "https://github.com/Taeuk-Jang", "followers_url": "https://api.github.com/users/Taeuk-Jang/followers", "following_url": "https://api.github.com/users/Taeuk-Jang/following{/other_user}", "gists_url": "https://api.github.com/users/Taeuk-Jang/gists{/gist_id}", "starred_url": "https://api.github.com/users/Taeuk-Jang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Taeuk-Jang/subscriptions", "organizations_url": "https://api.github.com/users/Taeuk-Jang/orgs", "repos_url": "https://api.github.com/users/Taeuk-Jang/repos", "events_url": "https://api.github.com/users/Taeuk-Jang/events{/privacy}", "received_events_url": "https://api.github.com/users/Taeuk-Jang/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
5
2023-06-14T17:51:44
2023-12-22T09:37:01
null
NONE
null
### System Info torch.__version__ '2.0.1+cu117' langchain.__version__ '0.0.199' transformers.__version__ '4.30.2' ### Who can help? @hwchase17 @agola11 @eyurtsev ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction `source_dir = $DIRNAME splitter = 'tiktoken' num_similar = 4 emb_name = 'hkunlp/instructor-xl' encode_kwargs = {'normalize_embeddings': True} embeddings = HuggingFaceInstructEmbeddings( model_name=emb_name, model_kwargs={'device':'cuda'}, ) txt_loader = DirectoryLoader(source_dir, glob="**/*.txt") documents = txt_loader.load() text_splitter = RecursiveCharacterTextSplitter(chunk_size=chunk_size, chunk_overlap=max_chunk_overlap, length_function = len) documents = text_splitter.split_documents(documents) vectorstore = Chroma.from_documents(documents, embeddings) vectorstore.similarity_search(query) ` or after loading vectorstore ` retriever = vectorstore.as_retriever(search_type="mmr", search_kwargs={"k":num_similar} ) qa = ConversationalRetrievalChain.from_llm( hf_pipeline, retriever, # condense_question_llm = hf_pipeline, #this can be simpler return_source_documents=return_source_documents, return_generated_question=True, combine_docs_chain_kwargs = {'prompt': QA_PROMPT}, condense_question_prompt = CONDENSE_QUESTION_PROMPT, ) ` When we do something like this, even with device_map = 'auto' or 'balanced', we see much higher GPU consumption on GPU:0. ### Expected behavior So I expect to load vectorDB balanced over all available GPUs like LLM pipelines. But, it only use GPU:0 which makes inefficient usage of VRAM of multiple GPUs.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6174/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6174/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6173
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6173/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6173/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6173/events
https://github.com/langchain-ai/langchain/pull/6173
1,757,377,068
PR_kwDOIPDwls5TBQKn
6,173
add metaphor search new api fields
{ "login": "jeffzwang", "id": 20006225, "node_id": "MDQ6VXNlcjIwMDA2MjI1", "avatar_url": "https://avatars.githubusercontent.com/u/20006225?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jeffzwang", "html_url": "https://github.com/jeffzwang", "followers_url": "https://api.github.com/users/jeffzwang/followers", "following_url": "https://api.github.com/users/jeffzwang/following{/other_user}", "gists_url": "https://api.github.com/users/jeffzwang/gists{/gist_id}", "starred_url": "https://api.github.com/users/jeffzwang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jeffzwang/subscriptions", "organizations_url": "https://api.github.com/users/jeffzwang/orgs", "repos_url": "https://api.github.com/users/jeffzwang/repos", "events_url": "https://api.github.com/users/jeffzwang/events{/privacy}", "received_events_url": "https://api.github.com/users/jeffzwang/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-14T17:44:26
2023-07-13T22:13:15
2023-06-18T23:41:24
CONTRIBUTOR
null
Update metaphor search tool with new API interface ubmitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review? Tag maintainers/contributors who might be interested: @hwchase17 <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6173/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6173/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6173", "html_url": "https://github.com/langchain-ai/langchain/pull/6173", "diff_url": "https://github.com/langchain-ai/langchain/pull/6173.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6173.patch", "merged_at": "2023-06-18T23:41:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/6172
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6172/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6172/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6172/events
https://github.com/langchain-ai/langchain/issues/6172
1,757,374,044
I_kwDOIPDwls5ov2Zc
6,172
Issue: Update dev container configuration
{ "login": "bamurtaugh", "id": 25310137, "node_id": "MDQ6VXNlcjI1MzEwMTM3", "avatar_url": "https://avatars.githubusercontent.com/u/25310137?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bamurtaugh", "html_url": "https://github.com/bamurtaugh", "followers_url": "https://api.github.com/users/bamurtaugh/followers", "following_url": "https://api.github.com/users/bamurtaugh/following{/other_user}", "gists_url": "https://api.github.com/users/bamurtaugh/gists{/gist_id}", "starred_url": "https://api.github.com/users/bamurtaugh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bamurtaugh/subscriptions", "organizations_url": "https://api.github.com/users/bamurtaugh/orgs", "repos_url": "https://api.github.com/users/bamurtaugh/repos", "events_url": "https://api.github.com/users/bamurtaugh/events{/privacy}", "received_events_url": "https://api.github.com/users/bamurtaugh/received_events", "type": "User", "site_admin": true }
[]
closed
false
null
[]
null
3
2023-06-14T17:41:55
2023-06-16T22:42:15
2023-06-16T22:42:15
CONTRIBUTOR
null
### Issue you'd like to raise. Hi folks! 👋 My name is Brigit, and I'm a PM on the VS Code team working on dev containers and [their open spec](https://containers.dev/). Thank you so much for [adding a dev container to this repo](https://github.com/hwchase17/langchain/pull/4035) and [langchainjs](https://github.com/hwchase17/langchainjs/pull/1241) - these are fantastic scenarios! As we're actively working improvements to dev containers and their spec, we've made some changes to the best practices we recommend. For instance, we host an updated set of [images](https://github.com/devcontainers/images) and [templates](https://github.com/devcontainers/templates) as part of the spec in the [devcontainers org](https://github.com/devcontainers), rather than in [vscode-dev-containers](https://github.com/microsoft/vscode-dev-containers). It looks like the image in this repo uses the [deprecated vscode-dev-containers image](https://github.com/hwchase17/langchain/blob/master/.devcontainer/Dockerfile#L5), and perhaps it could leverage the [Poetry Feature](https://containers.dev/features) instead of Poetry installation scripts in the Dockerfile. I also tried building the dev container in this repo both in the VS Code Dev Containers extension and GitHub Codespaces, and it didn't work for me as-is (I was stopped at container build), so I think this would be a great opportunity to ensure the dev container works well for all potential contributors too. It looks like langchainjs uses an [updated image from the devcontainers org](https://github.com/hwchase17/langchainjs/blob/main/.devcontainer/devcontainer.json#L6), which is great! ### Suggestion: I'd love to contribute a PR to this repo with an updated dev container (and perhaps with some additional info in the readme or a mini [.devcontainer](https://github.com/hwchase17/langchain/tree/master/.devcontainer) readme), but I wasn't sure the best tests to ensure the repo runs correctly in an updated dev container. Would you be able to share any recommended steps / commands / checks so that I can ensure any dev container updates work well for how folks should be building and running this repo? Info on how you tested and verified the [original PR](https://github.com/hwchase17/langchain/pull/4035) would be a great help too (so I can try the same steps). Let me know if there's any other info I can provide, and I can also just open a draft a PR if that'd be easiest for discussion. Thanks so much! cc @vowelparrot and @jj701 as I see your discussion in https://github.com/hwchase17/langchain/pull/4035.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6172/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6172/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6171
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6171/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6171/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6171/events
https://github.com/langchain-ai/langchain/issues/6171
1,757,345,891
I_kwDOIPDwls5ovvhj
6,171
KeyError: 'content' using `AzureCognitiveSearchRetreiver`
{ "login": "na-stewart", "id": 39848845, "node_id": "MDQ6VXNlcjM5ODQ4ODQ1", "avatar_url": "https://avatars.githubusercontent.com/u/39848845?v=4", "gravatar_id": "", "url": "https://api.github.com/users/na-stewart", "html_url": "https://github.com/na-stewart", "followers_url": "https://api.github.com/users/na-stewart/followers", "following_url": "https://api.github.com/users/na-stewart/following{/other_user}", "gists_url": "https://api.github.com/users/na-stewart/gists{/gist_id}", "starred_url": "https://api.github.com/users/na-stewart/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/na-stewart/subscriptions", "organizations_url": "https://api.github.com/users/na-stewart/orgs", "repos_url": "https://api.github.com/users/na-stewart/repos", "events_url": "https://api.github.com/users/na-stewart/events{/privacy}", "received_events_url": "https://api.github.com/users/na-stewart/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-14T17:20:57
2023-09-20T16:07:45
2023-09-20T16:07:44
NONE
null
### System Info langchain=0.0.199 Python=3.9.13 ### Who Can Help @eyurtsev @hwchase17 ### Information - [x] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [x] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [x] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` import os from langchain.retrievers import AzureCognitiveSearchRetriever cognitive_search_name = os.environ["AZURE_COGNITIVE_SEARCH_SERVICE_NAME"] vector_store_address: str = f"https://{cognitive_search_name}.search.windows.net/" index_name: str = os.environ["AZURE_COGNITIVE_SEARCH_INDEX_NAME"] vector_store_password: str = os.environ["AZURE_COGNITIVE_SEARCH_API_KEY"] retriever = AzureCognitiveSearchRetriever(content_key="content") retriever.get_relevant_documents("what is langchain") ``` ### Expected behavior I am attempting to use `AzureCognitiveSearchRetriever` to no avail. There is little guidance or documentation that I could find to make this functionality work. I don't know what value I'm supposed to set the parameter `content_key` to in order to make this work. My overall goal is to retrieve data from Azure Cognitive Search and use it to determine the output served by the chatbot based on user query. Thanks!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6171/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6171/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6170
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6170/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6170/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6170/events
https://github.com/langchain-ai/langchain/pull/6170
1,757,295,474
PR_kwDOIPDwls5TA-YX
6,170
Fixed PermissionError on windows
{ "login": "MIDORIBIN", "id": 25425217, "node_id": "MDQ6VXNlcjI1NDI1MjE3", "avatar_url": "https://avatars.githubusercontent.com/u/25425217?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MIDORIBIN", "html_url": "https://github.com/MIDORIBIN", "followers_url": "https://api.github.com/users/MIDORIBIN/followers", "following_url": "https://api.github.com/users/MIDORIBIN/following{/other_user}", "gists_url": "https://api.github.com/users/MIDORIBIN/gists{/gist_id}", "starred_url": "https://api.github.com/users/MIDORIBIN/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MIDORIBIN/subscriptions", "organizations_url": "https://api.github.com/users/MIDORIBIN/orgs", "repos_url": "https://api.github.com/users/MIDORIBIN/repos", "events_url": "https://api.github.com/users/MIDORIBIN/events{/privacy}", "received_events_url": "https://api.github.com/users/MIDORIBIN/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-14T16:47:07
2023-06-18T23:39:58
2023-06-18T23:39:57
CONTRIBUTOR
null
Fixed PermissionError that occurred when downloading PDF files via http in BasePDFLoader on windows. When downloading PDF files via http in BasePDFLoader, NamedTemporaryFile is used. This function cannot open the file again on **Windows**.[Python Doc](https://docs.python.org/3.9/library/tempfile.html#tempfile.NamedTemporaryFile) So, we created a **temporary directory** with TemporaryDirectory and placed the downloaded file there. temporary directory is deleted in the deconstruct. Fixes #2698 #### Who can review? Tag maintainers/contributors who might be interested: - @eyurtsev - @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6170/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6170/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6170", "html_url": "https://github.com/langchain-ai/langchain/pull/6170", "diff_url": "https://github.com/langchain-ai/langchain/pull/6170.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6170.patch", "merged_at": "2023-06-18T23:39:57" }
https://api.github.com/repos/langchain-ai/langchain/issues/6169
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6169/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6169/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6169/events
https://github.com/langchain-ai/langchain/pull/6169
1,757,220,728
PR_kwDOIPDwls5TAuIF
6,169
Handle Managed Motorhead Data Key
{ "login": "softboyjimbo", "id": 100361543, "node_id": "U_kgDOBftlRw", "avatar_url": "https://avatars.githubusercontent.com/u/100361543?v=4", "gravatar_id": "", "url": "https://api.github.com/users/softboyjimbo", "html_url": "https://github.com/softboyjimbo", "followers_url": "https://api.github.com/users/softboyjimbo/followers", "following_url": "https://api.github.com/users/softboyjimbo/following{/other_user}", "gists_url": "https://api.github.com/users/softboyjimbo/gists{/gist_id}", "starred_url": "https://api.github.com/users/softboyjimbo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/softboyjimbo/subscriptions", "organizations_url": "https://api.github.com/users/softboyjimbo/orgs", "repos_url": "https://api.github.com/users/softboyjimbo/repos", "events_url": "https://api.github.com/users/softboyjimbo/events{/privacy}", "received_events_url": "https://api.github.com/users/softboyjimbo/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-06-14T15:58:39
2023-06-17T03:37:41
2023-06-17T03:36:18
CONTRIBUTOR
null
# Handle Managed Motorhead Data Key Managed motorhead will return a payload with a `data` key. we need to handle this to properly access messages from the server.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6169/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6169/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6169", "html_url": "https://github.com/langchain-ai/langchain/pull/6169", "diff_url": "https://github.com/langchain-ai/langchain/pull/6169.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6169.patch", "merged_at": "2023-06-17T03:36:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/6168
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6168/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6168/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6168/events
https://github.com/langchain-ai/langchain/issues/6168
1,757,100,849
I_kwDOIPDwls5ouzsx
6,168
Missing documents when using embeddings
{ "login": "emilmirzayev", "id": 25964049, "node_id": "MDQ6VXNlcjI1OTY0MDQ5", "avatar_url": "https://avatars.githubusercontent.com/u/25964049?v=4", "gravatar_id": "", "url": "https://api.github.com/users/emilmirzayev", "html_url": "https://github.com/emilmirzayev", "followers_url": "https://api.github.com/users/emilmirzayev/followers", "following_url": "https://api.github.com/users/emilmirzayev/following{/other_user}", "gists_url": "https://api.github.com/users/emilmirzayev/gists{/gist_id}", "starred_url": "https://api.github.com/users/emilmirzayev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/emilmirzayev/subscriptions", "organizations_url": "https://api.github.com/users/emilmirzayev/orgs", "repos_url": "https://api.github.com/users/emilmirzayev/repos", "events_url": "https://api.github.com/users/emilmirzayev/events{/privacy}", "received_events_url": "https://api.github.com/users/emilmirzayev/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-14T14:56:11
2023-09-20T16:07:50
2023-09-20T16:07:49
NONE
null
### System Info Windows 11 Langchain - 0.0.184 Python 3.11.1 ### Who can help? @eyu ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction The problem is, I am creating a document collection consisting of 150 documents. However, when I embed them, some documents disappear. I have identified the missing documents by comparing the `bulk_metadatas` variable with the unique values of `patent_embeddings` variable. It shows that some documents are indeed missing from the database. Steps to reproduce. Load the json file from this [gist ](https://gist.github.com/emilmirzayev/99ef6e641ada53804cbd38015c759ccb)into `bulk_data` variable. Then follow this script: ```python from langchain.embeddings.openai import OpenAIEmbeddings from langchain.vectorstores.chroma import Chroma import numpy as np from scipy.spatial.distance import cdist bulk_abstracts = [] bulk_claims = [] bulk_metadatas = [] for firm_result in bulk_data: print(len(firm_result["results"])) for patent_data in firm_result["results"]: abstract = abstract_parser(patent_data["abstractText"]) claim = abstract_parser(patent_data["claimText"]) metadata = str(patent_data["assigneeEntityName"]) + " " + str(patent_data["patentApplicationNumber"]) bulk_abstracts.append(abstract) bulk_claims.append(claim) bulk_metadatas.append({"company": metadata}) embeddings = OpenAIEmbeddings(openai_api_key = "Your key", model="text-embedding-ada-002") from langchain.text_splitter import CharacterTextSplitter, RecursiveCharacterTextSplitter text_splitter = RecursiveCharacterTextSplitter(chunk_size=2000, chunk_overlap=200) save_directory = "hundred_fifty_patent_db" text_splitter = RecursiveCharacterTextSplitter(chunk_size=2000, chunk_overlap=200) patent_documents = text_splitter.create_documents(bulk_claims, metadatas= bulk_metadatas ) db = Chroma.from_documents(documents = patent_documents, embedding= embeddings, persist_directory=save_directory ) db.persist() # reloading back db = None directory_to_load_from = "hundred_fifty_patent_db" db = Chroma(persist_directory= directory_to_load_from, embedding_function=embeddings) patent_embeddings = db.get(["embeddings"])["embeddings"] patent_metadatas = db.get(["metadatas"])["metadatas"] # lets see how many entries we have, its 146 a = [data["company"] for data in bulk_metadatas] b = list(set(company_patent)) np.setdiff1d(a, b) ``` Output: ``` array(['Colgate-Palmolive Company US12159313', 'The Coca-Cola Company US12171698', 'The Coca-Cola Company US12917673', 'The Coca-Cola Company US13036081'], dtype='<U58') ``` These four documents are missing from the database. ### Expected behavior To have all documents present in the embeddings
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6168/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6168/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6167
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6167/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6167/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6167/events
https://github.com/langchain-ai/langchain/issues/6167
1,757,063,965
I_kwDOIPDwls5ouqsd
6,167
TypeError: FAISS.similarity_search_with_score_by_vector() got an unexpected keyword argument 'score_threshold'
{ "login": "mitkodi", "id": 5601143, "node_id": "MDQ6VXNlcjU2MDExNDM=", "avatar_url": "https://avatars.githubusercontent.com/u/5601143?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mitkodi", "html_url": "https://github.com/mitkodi", "followers_url": "https://api.github.com/users/mitkodi/followers", "following_url": "https://api.github.com/users/mitkodi/following{/other_user}", "gists_url": "https://api.github.com/users/mitkodi/gists{/gist_id}", "starred_url": "https://api.github.com/users/mitkodi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mitkodi/subscriptions", "organizations_url": "https://api.github.com/users/mitkodi/orgs", "repos_url": "https://api.github.com/users/mitkodi/repos", "events_url": "https://api.github.com/users/mitkodi/events{/privacy}", "received_events_url": "https://api.github.com/users/mitkodi/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-14T14:38:07
2023-09-20T16:07:55
2023-09-20T16:07:54
NONE
null
### System Info LnagChain v0.0.200 ### 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 1. Create `FAISS` vectorstore 2. Call `as_retriever(search_type='similarity_score_threshold', k=4, search_kwargs={'score_threshold': 0.6})` ### Expected behavior To not raise error
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6167/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6167/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6166
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6166/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6166/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6166/events
https://github.com/langchain-ai/langchain/issues/6166
1,756,874,033
I_kwDOIPDwls5ot8Ux
6,166
NameError: Name pd not found with PythonRepl
{ "login": "NeyoxDrago", "id": 41840746, "node_id": "MDQ6VXNlcjQxODQwNzQ2", "avatar_url": "https://avatars.githubusercontent.com/u/41840746?v=4", "gravatar_id": "", "url": "https://api.github.com/users/NeyoxDrago", "html_url": "https://github.com/NeyoxDrago", "followers_url": "https://api.github.com/users/NeyoxDrago/followers", "following_url": "https://api.github.com/users/NeyoxDrago/following{/other_user}", "gists_url": "https://api.github.com/users/NeyoxDrago/gists{/gist_id}", "starred_url": "https://api.github.com/users/NeyoxDrago/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/NeyoxDrago/subscriptions", "organizations_url": "https://api.github.com/users/NeyoxDrago/orgs", "repos_url": "https://api.github.com/users/NeyoxDrago/repos", "events_url": "https://api.github.com/users/NeyoxDrago/events{/privacy}", "received_events_url": "https://api.github.com/users/NeyoxDrago/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
12
2023-06-14T13:09:38
2024-01-03T16:01:47
null
NONE
null
### System Info langchain version = 0.0.198 while using the lagchain create_pandas_dataframe_agent, it was able to generate the correct intermediate command, but when it came to execute it, it says pd is not defined. its not able to detect that pandas is to imported as pd i am using AzureOpenAI service with gpt-3.5-turbo model anyone who can help me on this ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Same code run ### Expected behavior in intermediate step, it will say pd is not defined.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6166/reactions", "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6166/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6165
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6165/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6165/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6165/events
https://github.com/langchain-ai/langchain/pull/6165
1,756,846,550
PR_kwDOIPDwls5S_c5T
6,165
support memory for functions
{ "login": "Fei-Wang", "id": 11441526, "node_id": "MDQ6VXNlcjExNDQxNTI2", "avatar_url": "https://avatars.githubusercontent.com/u/11441526?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Fei-Wang", "html_url": "https://github.com/Fei-Wang", "followers_url": "https://api.github.com/users/Fei-Wang/followers", "following_url": "https://api.github.com/users/Fei-Wang/following{/other_user}", "gists_url": "https://api.github.com/users/Fei-Wang/gists{/gist_id}", "starred_url": "https://api.github.com/users/Fei-Wang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Fei-Wang/subscriptions", "organizations_url": "https://api.github.com/users/Fei-Wang/orgs", "repos_url": "https://api.github.com/users/Fei-Wang/repos", "events_url": "https://api.github.com/users/Fei-Wang/events{/privacy}", "received_events_url": "https://api.github.com/users/Fei-Wang/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-14T12:56:03
2023-06-19T02:00:41
2023-06-19T02:00:41
CONTRIBUTOR
null
#### Before submitting Add memory support for `OpenAIFunctionsAgent` like `StructuredChatAgent`. #### Who can review? @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6165/reactions", "total_count": 3, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 3, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6165/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6165", "html_url": "https://github.com/langchain-ai/langchain/pull/6165", "diff_url": "https://github.com/langchain-ai/langchain/pull/6165.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6165.patch", "merged_at": "2023-06-19T02:00:41" }
https://api.github.com/repos/langchain-ai/langchain/issues/6164
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6164/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6164/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6164/events
https://github.com/langchain-ai/langchain/pull/6164
1,756,839,033
PR_kwDOIPDwls5S_bQB
6,164
feature: token based text splitter relative chunk overlap argument
{ "login": "JensMadsen", "id": 6726111, "node_id": "MDQ6VXNlcjY3MjYxMTE=", "avatar_url": "https://avatars.githubusercontent.com/u/6726111?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JensMadsen", "html_url": "https://github.com/JensMadsen", "followers_url": "https://api.github.com/users/JensMadsen/followers", "following_url": "https://api.github.com/users/JensMadsen/following{/other_user}", "gists_url": "https://api.github.com/users/JensMadsen/gists{/gist_id}", "starred_url": "https://api.github.com/users/JensMadsen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JensMadsen/subscriptions", "organizations_url": "https://api.github.com/users/JensMadsen/orgs", "repos_url": "https://api.github.com/users/JensMadsen/repos", "events_url": "https://api.github.com/users/JensMadsen/events{/privacy}", "received_events_url": "https://api.github.com/users/JensMadsen/received_events", "type": "User", "site_admin": false }
[ { "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
6
2023-06-14T12:51:41
2023-11-07T04:14:50
2023-11-07T04:14:50
CONTRIBUTOR
null
For SentenceTransformersTokenTextSplitter text splitter. Adds a new parameter `relative_chunk_overlap` for the `SentenceTransformersTokenTextSplitter` constructor. The parameter sets the chunk overlap using a relative factor, e.g. for a model where the token limit is 100, a `relative_chunk_overlap=0.5` implies that `chunk_overlap=50`. #### Who can review? @hwchase17 @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6164/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6164/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6164", "html_url": "https://github.com/langchain-ai/langchain/pull/6164", "diff_url": "https://github.com/langchain-ai/langchain/pull/6164.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6164.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6163
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6163/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6163/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6163/events
https://github.com/langchain-ai/langchain/pull/6163
1,756,828,071
PR_kwDOIPDwls5S_YzR
6,163
typo: 'following following' to 'following'
{ "login": "thiswillbeyourgithub", "id": 26625900, "node_id": "MDQ6VXNlcjI2NjI1OTAw", "avatar_url": "https://avatars.githubusercontent.com/u/26625900?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thiswillbeyourgithub", "html_url": "https://github.com/thiswillbeyourgithub", "followers_url": "https://api.github.com/users/thiswillbeyourgithub/followers", "following_url": "https://api.github.com/users/thiswillbeyourgithub/following{/other_user}", "gists_url": "https://api.github.com/users/thiswillbeyourgithub/gists{/gist_id}", "starred_url": "https://api.github.com/users/thiswillbeyourgithub/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/thiswillbeyourgithub/subscriptions", "organizations_url": "https://api.github.com/users/thiswillbeyourgithub/orgs", "repos_url": "https://api.github.com/users/thiswillbeyourgithub/repos", "events_url": "https://api.github.com/users/thiswillbeyourgithub/events{/privacy}", "received_events_url": "https://api.github.com/users/thiswillbeyourgithub/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
0
2023-06-14T12:46:32
2023-06-14T17:58:48
2023-06-14T17:58:48
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6163/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6163/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6163", "html_url": "https://github.com/langchain-ai/langchain/pull/6163", "diff_url": "https://github.com/langchain-ai/langchain/pull/6163.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6163.patch", "merged_at": "2023-06-14T17:58:48" }
https://api.github.com/repos/langchain-ai/langchain/issues/6162
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6162/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6162/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6162/events
https://github.com/langchain-ai/langchain/issues/6162
1,756,809,915
I_kwDOIPDwls5otsq7
6,162
Retrieval Question/Answering Example not working in 0.0.200
{ "login": "avi0gaur", "id": 8298848, "node_id": "MDQ6VXNlcjgyOTg4NDg=", "avatar_url": "https://avatars.githubusercontent.com/u/8298848?v=4", "gravatar_id": "", "url": "https://api.github.com/users/avi0gaur", "html_url": "https://github.com/avi0gaur", "followers_url": "https://api.github.com/users/avi0gaur/followers", "following_url": "https://api.github.com/users/avi0gaur/following{/other_user}", "gists_url": "https://api.github.com/users/avi0gaur/gists{/gist_id}", "starred_url": "https://api.github.com/users/avi0gaur/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avi0gaur/subscriptions", "organizations_url": "https://api.github.com/users/avi0gaur/orgs", "repos_url": "https://api.github.com/users/avi0gaur/repos", "events_url": "https://api.github.com/users/avi0gaur/events{/privacy}", "received_events_url": "https://api.github.com/users/avi0gaur/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
5
2023-06-14T12:37:22
2023-06-27T06:42:45
2023-06-27T06:42:45
NONE
null
### System Info **The problem seem to be in below code:** exception: dict is not iterable Working version: langchain==0.0.164 usecase : https://python.langchain.com/en/latest/modules/chains/index_examples/vector_db_qa.html Issue in below method: ``` def dict(self, **kwargs: Any) -> Dict: """Return a dictionary of the LLM.""" starter_dict = dict(self._identifying_params) starter_dict["_type"] = self._llm_type return starter_dict ``` ### 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 https://python.langchain.com/en/latest/modules/chains/index_examples/vector_db_qa.html Try these steps ### Expected behavior It should work as per the example.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6162/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6162/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6161
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6161/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6161/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6161/events
https://github.com/langchain-ai/langchain/pull/6161
1,756,736,892
PR_kwDOIPDwls5S_EhI
6,161
Fix error in aim callback when tracking of chains.
{ "login": "ajms", "id": 2394425, "node_id": "MDQ6VXNlcjIzOTQ0MjU=", "avatar_url": "https://avatars.githubusercontent.com/u/2394425?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ajms", "html_url": "https://github.com/ajms", "followers_url": "https://api.github.com/users/ajms/followers", "following_url": "https://api.github.com/users/ajms/following{/other_user}", "gists_url": "https://api.github.com/users/ajms/gists{/gist_id}", "starred_url": "https://api.github.com/users/ajms/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ajms/subscriptions", "organizations_url": "https://api.github.com/users/ajms/orgs", "repos_url": "https://api.github.com/users/ajms/repos", "events_url": "https://api.github.com/users/ajms/events{/privacy}", "received_events_url": "https://api.github.com/users/ajms/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
4
2023-06-14T12:01:52
2023-09-15T07:02:51
2023-09-15T07:02:50
NONE
null
The aim callback is trying to track the keys "input" and "output" (hard coded) when tracking a chain. This causes the exceptions ``` Error in on_chain_start callback: 'input' Error in on_chain_end callback: 'output' ``` to be thrown. I fixed the error by tracking all key, value pairs from the inputs resp. outputs variables. Furthermore, the following issue is also fixed: Fixes # 5107 Tag maintainers/contributors who might be interested: Tracing / Callbacks - @agola11
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6161/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6161/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6161", "html_url": "https://github.com/langchain-ai/langchain/pull/6161", "diff_url": "https://github.com/langchain-ai/langchain/pull/6161.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6161.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6160
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6160/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6160/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6160/events
https://github.com/langchain-ai/langchain/issues/6160
1,756,732,814
I_kwDOIPDwls5otZ2O
6,160
LlamaCpp loading time
{ "login": "reddiamond1234", "id": 122911466, "node_id": "U_kgDOB1N66g", "avatar_url": "https://avatars.githubusercontent.com/u/122911466?v=4", "gravatar_id": "", "url": "https://api.github.com/users/reddiamond1234", "html_url": "https://github.com/reddiamond1234", "followers_url": "https://api.github.com/users/reddiamond1234/followers", "following_url": "https://api.github.com/users/reddiamond1234/following{/other_user}", "gists_url": "https://api.github.com/users/reddiamond1234/gists{/gist_id}", "starred_url": "https://api.github.com/users/reddiamond1234/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/reddiamond1234/subscriptions", "organizations_url": "https://api.github.com/users/reddiamond1234/orgs", "repos_url": "https://api.github.com/users/reddiamond1234/repos", "events_url": "https://api.github.com/users/reddiamond1234/events{/privacy}", "received_events_url": "https://api.github.com/users/reddiamond1234/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-14T11:59:36
2023-10-30T16:06:23
2023-10-30T16:06:22
NONE
null
Can I improve loading time of Llama Cpp 7b/13b? I am using LlamaCpp function with LLMChain and RetrievalQA.from_chain_type in my python code.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6160/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6160/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6159
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6159/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6159/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6159/events
https://github.com/langchain-ai/langchain/pull/6159
1,756,724,158
PR_kwDOIPDwls5S_BrK
6,159
VectorStore Typesense refactored example code and modified k value
{ "login": "2796gaurav", "id": 17353992, "node_id": "MDQ6VXNlcjE3MzUzOTky", "avatar_url": "https://avatars.githubusercontent.com/u/17353992?v=4", "gravatar_id": "", "url": "https://api.github.com/users/2796gaurav", "html_url": "https://github.com/2796gaurav", "followers_url": "https://api.github.com/users/2796gaurav/followers", "following_url": "https://api.github.com/users/2796gaurav/following{/other_user}", "gists_url": "https://api.github.com/users/2796gaurav/gists{/gist_id}", "starred_url": "https://api.github.com/users/2796gaurav/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/2796gaurav/subscriptions", "organizations_url": "https://api.github.com/users/2796gaurav/orgs", "repos_url": "https://api.github.com/users/2796gaurav/repos", "events_url": "https://api.github.com/users/2796gaurav/events{/privacy}", "received_events_url": "https://api.github.com/users/2796gaurav/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
0
2023-06-14T11:55:29
2023-06-19T00:44:38
2023-06-19T00:44:38
CONTRIBUTOR
null
Changes done. 1. Example code in Typesense Class provided input embedding as `embedding=embedding.embed_query` which throws an error as `AttributeError: 'function' object has no attribute 'embed_query'`. 2. modified k values in vector similarity as Typesense by default returns 10 results. So providing k =4 by default would make users think about why the results are returned 10 instead of 4. #### Who can review? @jasonbosco @hwchase17 @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6159/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6159/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6159", "html_url": "https://github.com/langchain-ai/langchain/pull/6159", "diff_url": "https://github.com/langchain-ai/langchain/pull/6159.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6159.patch", "merged_at": "2023-06-19T00:44:38" }
https://api.github.com/repos/langchain-ai/langchain/issues/6158
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6158/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6158/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6158/events
https://github.com/langchain-ai/langchain/issues/6158
1,756,703,219
I_kwDOIPDwls5otSnz
6,158
OpenAICallbackHandler is not updating values when used in ConversationalRetrievalChain
{ "login": "ketank1000", "id": 11884142, "node_id": "MDQ6VXNlcjExODg0MTQy", "avatar_url": "https://avatars.githubusercontent.com/u/11884142?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ketank1000", "html_url": "https://github.com/ketank1000", "followers_url": "https://api.github.com/users/ketank1000/followers", "following_url": "https://api.github.com/users/ketank1000/following{/other_user}", "gists_url": "https://api.github.com/users/ketank1000/gists{/gist_id}", "starred_url": "https://api.github.com/users/ketank1000/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ketank1000/subscriptions", "organizations_url": "https://api.github.com/users/ketank1000/orgs", "repos_url": "https://api.github.com/users/ketank1000/repos", "events_url": "https://api.github.com/users/ketank1000/events{/privacy}", "received_events_url": "https://api.github.com/users/ketank1000/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-06-14T11:44:21
2023-08-24T07:06:53
2023-06-17T18:27:15
NONE
null
### System Info langchain : 0.0.197 docker python alpine image : 3.11.3 ConversationalRetrievalChain works perfectly and i get awesome output. at the same time i also need to track my usage on openai api call. Im setting the qa object as below ``` qa = ConversationalRetrievalChain.from_llm( model, retriever=retriever, verbose=True, # callback in not updating the cost callbacks=[OpenAICallbackHandler()] ) ``` I see the callback is printing the all openai info on console, which means callback is getting triggered. But I always see all values to Zero. ### Who can help? @ag ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [X] Callbacks/Tracing - [ ] Async ### Reproduction 1. Create qa object as show in disciption with callback. 2. Pass the question chat history to qa object ### Expected behavior Callback show update all the values for openai traceback
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6158/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6158/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6157
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6157/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6157/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6157/events
https://github.com/langchain-ai/langchain/issues/6157
1,756,695,978
I_kwDOIPDwls5otQ2q
6,157
Impossible to connect PowerBI Dataset Agent to Azure services
{ "login": "JRlis", "id": 136589909, "node_id": "U_kgDOCCQyVQ", "avatar_url": "https://avatars.githubusercontent.com/u/136589909?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JRlis", "html_url": "https://github.com/JRlis", "followers_url": "https://api.github.com/users/JRlis/followers", "following_url": "https://api.github.com/users/JRlis/following{/other_user}", "gists_url": "https://api.github.com/users/JRlis/gists{/gist_id}", "starred_url": "https://api.github.com/users/JRlis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JRlis/subscriptions", "organizations_url": "https://api.github.com/users/JRlis/orgs", "repos_url": "https://api.github.com/users/JRlis/repos", "events_url": "https://api.github.com/users/JRlis/events{/privacy}", "received_events_url": "https://api.github.com/users/JRlis/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
6
2023-06-14T11:39:46
2024-01-09T09:56:23
2023-12-01T16:09:32
NONE
null
### System Info Hi, I'm trying to reproduce this example https://python.langchain.com/en/latest/modules/agents/toolkits/examples/powerbi.html When i launch this part of the code : toolkit = PowerBIToolkit( powerbi=PowerBIDataset.update_forward_refs(dataset_id=dataset-id, table_names=['Tables'], credential=DefaultAzureCredential()), llm=smart_llm ) I have this error : NameError: name 'TokenCredential' is not defined What am I doing wrong ? Do i have to specify things with Azure credentials first ? Thanks for your help ### 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 example here : https://python.langchain.com/en/latest/modules/agents/toolkits/examples/powerbi.html I just modified powerbi=PowerBIDataset() to powerbi=PowerBIDataset.update_forward_refs() because of an error i had. ### Expected behavior Connect the agent to powerbi rest API
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6157/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6157/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6155
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6155/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6155/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6155/events
https://github.com/langchain-ai/langchain/pull/6155
1,756,589,254
PR_kwDOIPDwls5S-kzR
6,155
Add docs for tags
{ "login": "nfcampos", "id": 56902, "node_id": "MDQ6VXNlcjU2OTAy", "avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nfcampos", "html_url": "https://github.com/nfcampos", "followers_url": "https://api.github.com/users/nfcampos/followers", "following_url": "https://api.github.com/users/nfcampos/following{/other_user}", "gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}", "starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions", "organizations_url": "https://api.github.com/users/nfcampos/orgs", "repos_url": "https://api.github.com/users/nfcampos/repos", "events_url": "https://api.github.com/users/nfcampos/events{/privacy}", "received_events_url": "https://api.github.com/users/nfcampos/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-14T10:42:49
2023-06-14T21:02:00
2023-06-14T21:01:59
COLLABORATOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> Fixes # (issue) #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review? Tag maintainers/contributors who might be interested: <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6155/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6155/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6155", "html_url": "https://github.com/langchain-ai/langchain/pull/6155", "diff_url": "https://github.com/langchain-ai/langchain/pull/6155.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6155.patch", "merged_at": "2023-06-14T21:01:59" }
https://api.github.com/repos/langchain-ai/langchain/issues/6154
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6154/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6154/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6154/events
https://github.com/langchain-ai/langchain/pull/6154
1,756,537,742
PR_kwDOIPDwls5S-aF2
6,154
Add Alibaba Cloud OpenSearch as a new vector store
{ "login": "zhaoshengbo", "id": 4787922, "node_id": "MDQ6VXNlcjQ3ODc5MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/4787922?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zhaoshengbo", "html_url": "https://github.com/zhaoshengbo", "followers_url": "https://api.github.com/users/zhaoshengbo/followers", "following_url": "https://api.github.com/users/zhaoshengbo/following{/other_user}", "gists_url": "https://api.github.com/users/zhaoshengbo/gists{/gist_id}", "starred_url": "https://api.github.com/users/zhaoshengbo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zhaoshengbo/subscriptions", "organizations_url": "https://api.github.com/users/zhaoshengbo/orgs", "repos_url": "https://api.github.com/users/zhaoshengbo/repos", "events_url": "https://api.github.com/users/zhaoshengbo/events{/privacy}", "received_events_url": "https://api.github.com/users/zhaoshengbo/received_events", "type": "User", "site_admin": false }
[]
closed
false
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false } ]
null
6
2023-06-14T10:12:36
2023-06-20T18:39:47
2023-06-20T17:07:40
CONTRIBUTOR
null
Hello Folks, Thanks for creating and maintaining this great project. I'm excited to submit this PR to add Alibaba Cloud OpenSearch as a new vector store. OpenSearch is a one-stop platform to develop intelligent search services. OpenSearch was built based on the large-scale distributed search engine developed by Alibaba. OpenSearch serves more than 500 business cases in Alibaba Group and thousands of Alibaba Cloud customers. OpenSearch helps develop search services in different search scenarios, including e-commerce, O2O, multimedia, the content industry, communities and forums, and big data query in enterprises. OpenSearch provides the vector search feature. In specific scenarios, especially test question search and image search scenarios, you can use the vector search feature together with the multimodal search feature to improve the accuracy of search results. This PR includes: A AlibabaCloudOpenSearch class that can connect to the Alibaba Cloud OpenSearch instance. add embedings and metadata into a opensearch datasource. querying by squared euclidean and metadata. integration tests. ipython notebook and docs. I have read your contributing guidelines. And I have passed the tests below - [x] make format - [x] make lint - [x] make coverage - [x] make test
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6154/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/6154/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6154", "html_url": "https://github.com/langchain-ai/langchain/pull/6154", "diff_url": "https://github.com/langchain-ai/langchain/pull/6154.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6154.patch", "merged_at": "2023-06-20T17:07:40" }
https://api.github.com/repos/langchain-ai/langchain/issues/6153
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6153/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6153/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6153/events
https://github.com/langchain-ai/langchain/pull/6153
1,756,498,115
PR_kwDOIPDwls5S-RuB
6,153
Extend `ArgillaCallbackHandler` support
{ "login": "alvarobartt", "id": 36760800, "node_id": "MDQ6VXNlcjM2NzYwODAw", "avatar_url": "https://avatars.githubusercontent.com/u/36760800?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alvarobartt", "html_url": "https://github.com/alvarobartt", "followers_url": "https://api.github.com/users/alvarobartt/followers", "following_url": "https://api.github.com/users/alvarobartt/following{/other_user}", "gists_url": "https://api.github.com/users/alvarobartt/gists{/gist_id}", "starred_url": "https://api.github.com/users/alvarobartt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alvarobartt/subscriptions", "organizations_url": "https://api.github.com/users/alvarobartt/orgs", "repos_url": "https://api.github.com/users/alvarobartt/repos", "events_url": "https://api.github.com/users/alvarobartt/events{/privacy}", "received_events_url": "https://api.github.com/users/alvarobartt/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-14T09:52:33
2023-06-18T18:18:34
2023-06-18T18:18:34
CONTRIBUTOR
null
Hi again @agola11! 🤗 ## What's in this PR? After playing around with different chains we noticed that some chains were using different `output_key`s and we were just handling some, so we've extended the support to any output, either if it's a Python list or a string. Kudos to @dvsrepo for spotting this!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6153/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6153/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6153", "html_url": "https://github.com/langchain-ai/langchain/pull/6153", "diff_url": "https://github.com/langchain-ai/langchain/pull/6153.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6153.patch", "merged_at": "2023-06-18T18:18:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/6152
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6152/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6152/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6152/events
https://github.com/langchain-ai/langchain/issues/6152
1,756,473,541
I_kwDOIPDwls5osajF
6,152
langchain rephrased the human input to a completely different meaning in the prompts
{ "login": "hpwahyao", "id": 13344443, "node_id": "MDQ6VXNlcjEzMzQ0NDQz", "avatar_url": "https://avatars.githubusercontent.com/u/13344443?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hpwahyao", "html_url": "https://github.com/hpwahyao", "followers_url": "https://api.github.com/users/hpwahyao/followers", "following_url": "https://api.github.com/users/hpwahyao/following{/other_user}", "gists_url": "https://api.github.com/users/hpwahyao/gists{/gist_id}", "starred_url": "https://api.github.com/users/hpwahyao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hpwahyao/subscriptions", "organizations_url": "https://api.github.com/users/hpwahyao/orgs", "repos_url": "https://api.github.com/users/hpwahyao/repos", "events_url": "https://api.github.com/users/hpwahyao/events{/privacy}", "received_events_url": "https://api.github.com/users/hpwahyao/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
4
2023-06-14T09:37:59
2023-10-24T16:08:03
2023-10-24T16:08:02
NONE
null
### System Info Recently, we do a few test on the ConversationalRetrievalChain + Memory, and notice that, the customer's question is rephrased by Langchain to a totally different meaning. Anyone knows how to avoid this? The conversation is to introduce the different package of a mobile plan to the customer. and Customer inputs: **Hi**. However, while it comes to Langchain, this sentence is rephrased to: **What is your estimated monthly usage for data, talktime, and SMS?** **Code:** qa = ConversationalRetrievalChain.from_llm( llm=self.llm, retriever=retriever, combine_docs_chain_kwargs={'prompt': self.QA_PROMPT}, verbose=True) result = qa({'question': question, 'chat_history': message_history.messages}) **Debugging infö as below:** Prompt after formatting: Given the following conversation and a follow up question, rephrase the follow up question to be a standalone question, in its original language. Chat History: Human: I would like to have a data plan Assistant: Sure, we have several data plans available. Can you please let me know your estimated monthly usage for data, talktime, and SMS? This will help me recommend the most suitable plan for you. Follow Up Input: hi Standalone question: > Finished chain. Human: I would like to have a data plan Assistant: Sure, we have several data plans available. Can you please let me know your estimated monthly usage for data, talktime, and SMS? This will help me recommend the most suitable plan for you. Human: What is your estimated monthly usage for data, talktime, and SMS? ### 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 - [X] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Create a context of the conversation, and send some subjective sentence. ### Expected behavior Langchain rephrase it to a question.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6152/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6152/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6150
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6150/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6150/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6150/events
https://github.com/langchain-ai/langchain/issues/6150
1,756,466,498
I_kwDOIPDwls5osY1C
6,150
Tracking total cost for gpt-3.5-turbo-0613 yields $0.0
{ "login": "TLazarevic", "id": 18078190, "node_id": "MDQ6VXNlcjE4MDc4MTkw", "avatar_url": "https://avatars.githubusercontent.com/u/18078190?v=4", "gravatar_id": "", "url": "https://api.github.com/users/TLazarevic", "html_url": "https://github.com/TLazarevic", "followers_url": "https://api.github.com/users/TLazarevic/followers", "following_url": "https://api.github.com/users/TLazarevic/following{/other_user}", "gists_url": "https://api.github.com/users/TLazarevic/gists{/gist_id}", "starred_url": "https://api.github.com/users/TLazarevic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TLazarevic/subscriptions", "organizations_url": "https://api.github.com/users/TLazarevic/orgs", "repos_url": "https://api.github.com/users/TLazarevic/repos", "events_url": "https://api.github.com/users/TLazarevic/events{/privacy}", "received_events_url": "https://api.github.com/users/TLazarevic/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
8
2023-06-14T09:33:38
2023-06-20T07:26:02
2023-06-20T07:26:02
CONTRIBUTOR
null
### System Info Langchain version: 0.0.200 ### 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 - [ ] Tools / Toolkits - [ ] Chains - [X] Callbacks/Tracing - [ ] Async ### Reproduction Steps to reproduce: 1. Create a ConversationChain instance with parameters: ``` llm = ChatOpenAI(model_name="gpt-3.5-turbo-0613", temperature=0) memory = ConversationBufferMemory() ``` 2. Run the chain inside callback block: ``` with get_openai_callback() as cb: response = conversation.run("Tell me a joke") print(cb) ``` 3. Total Cost is always $0.0. <img width="767" alt="Screenshot 2023-06-14 at 11 31 21" src="https://github.com/hwchase17/langchain/assets/18078190/e7992bcb-f288-462f-ab2c-94d0d894929f"> ### Expected behavior Total cost of the conversation chain usage is reflected in the Total Cost parameter of the callback and represents accurate usage costs.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6150/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6150/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6149
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6149/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6149/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6149/events
https://github.com/langchain-ai/langchain/pull/6149
1,756,464,881
PR_kwDOIPDwls5S-Kh8
6,149
Add promptlayer_callback.py to be able to use PL w/ callbacks
{ "login": "SalehHindi", "id": 15721377, "node_id": "MDQ6VXNlcjE1NzIxMzc3", "avatar_url": "https://avatars.githubusercontent.com/u/15721377?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SalehHindi", "html_url": "https://github.com/SalehHindi", "followers_url": "https://api.github.com/users/SalehHindi/followers", "following_url": "https://api.github.com/users/SalehHindi/following{/other_user}", "gists_url": "https://api.github.com/users/SalehHindi/gists{/gist_id}", "starred_url": "https://api.github.com/users/SalehHindi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SalehHindi/subscriptions", "organizations_url": "https://api.github.com/users/SalehHindi/orgs", "repos_url": "https://api.github.com/users/SalehHindi/repos", "events_url": "https://api.github.com/users/SalehHindi/events{/privacy}", "received_events_url": "https://api.github.com/users/SalehHindi/received_events", "type": "User", "site_admin": false }
[]
closed
false
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[ { "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false } ]
null
3
2023-06-14T09:32:48
2023-06-30T15:14:44
2023-06-30T15:14:43
CONTRIBUTOR
null
# Description Instead of inheriting off of LLM objects like OpenAI to create PromptLayer objects (eg PromptLayerOpenAI), create a single PromptLayerCallback object. This adds support for all of langchain's LLMs (openai, anthropic, replicate, dozens others). This also paves the way for PromptLayer to add logging for agents, chains, etc based on the callbacks api. ## Examples Async Example ```python import asyncio openai_llm = OpenAI( model_name="text-davinci-002", callbacks=[PromptLayerHandler( request_id_func = request_id_func, pl_tags = ["openai_1!"] )] ) asyncio.run(async_generate(openai_llm)) ``` Replicate LLM Example ```python # Test Replicate LLM replicate_llm = Replicate( model="replicate/dolly-v2-12b:ef0e1aefc61f8e096ebe4db6b2bacc297daf2ef6899f0f7e001ec445893500e5", callbacks=[PromptLayerHandler( request_id_func = request_id_func, pl_tags = ["replicate_example"] )] ) llm_results = replicate_llm.generate([ "Tell me a joke 1", "Where is Ohio? 2", "Where is Ohio? 3", ]) ``` Chat Model Example w/ Streaming (works w/o streaming as well) ```python # Test OpenAIChat LLM chat_llm = ChatOpenAI( temperature=0, streaming=True. callbacks=[PromptLayerHandler( request_id_func = request_id_func, pl_tags = ["chatopenai"] )] ) llm_results = chat_llm([ HumanMessage(content="What comes after 1,2,3 ?"), HumanMessage(content="Tell me another joke?"), ]) ``` TODO: - Add documentation + sample notebook - Might also want to test streaming works <!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review? Tag maintainers/contributors who might be interested: <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6149/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6149/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6149", "html_url": "https://github.com/langchain-ai/langchain/pull/6149", "diff_url": "https://github.com/langchain-ai/langchain/pull/6149.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6149.patch", "merged_at": "2023-06-30T15:14:43" }
https://api.github.com/repos/langchain-ai/langchain/issues/6148
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6148/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6148/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6148/events
https://github.com/langchain-ai/langchain/pull/6148
1,756,457,941
PR_kwDOIPDwls5S-JBC
6,148
Update readthedocs_documentation.ipynb
{ "login": "maver1ck", "id": 4006010, "node_id": "MDQ6VXNlcjQwMDYwMTA=", "avatar_url": "https://avatars.githubusercontent.com/u/4006010?v=4", "gravatar_id": "", "url": "https://api.github.com/users/maver1ck", "html_url": "https://github.com/maver1ck", "followers_url": "https://api.github.com/users/maver1ck/followers", "following_url": "https://api.github.com/users/maver1ck/following{/other_user}", "gists_url": "https://api.github.com/users/maver1ck/gists{/gist_id}", "starred_url": "https://api.github.com/users/maver1ck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maver1ck/subscriptions", "organizations_url": "https://api.github.com/users/maver1ck/orgs", "repos_url": "https://api.github.com/users/maver1ck/repos", "events_url": "https://api.github.com/users/maver1ck/events{/privacy}", "received_events_url": "https://api.github.com/users/maver1ck/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-14T09:28:43
2023-06-14T14:21:49
2023-06-14T14:21:49
CONTRIBUTOR
null
Minor fix in documentation. Change URL in wget call to proper one.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6148/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6148/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6148", "html_url": "https://github.com/langchain-ai/langchain/pull/6148", "diff_url": "https://github.com/langchain-ai/langchain/pull/6148.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6148.patch", "merged_at": "2023-06-14T14:21:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/6147
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6147/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6147/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6147/events
https://github.com/langchain-ai/langchain/issues/6147
1,756,441,925
I_kwDOIPDwls5osS1F
6,147
Core MapReduceChain token counting before combine step - Performance
{ "login": "ShantanuNair", "id": 8559347, "node_id": "MDQ6VXNlcjg1NTkzNDc=", "avatar_url": "https://avatars.githubusercontent.com/u/8559347?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ShantanuNair", "html_url": "https://github.com/ShantanuNair", "followers_url": "https://api.github.com/users/ShantanuNair/followers", "following_url": "https://api.github.com/users/ShantanuNair/following{/other_user}", "gists_url": "https://api.github.com/users/ShantanuNair/gists{/gist_id}", "starred_url": "https://api.github.com/users/ShantanuNair/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShantanuNair/subscriptions", "organizations_url": "https://api.github.com/users/ShantanuNair/orgs", "repos_url": "https://api.github.com/users/ShantanuNair/repos", "events_url": "https://api.github.com/users/ShantanuNair/events{/privacy}", "received_events_url": "https://api.github.com/users/ShantanuNair/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-14T09:19:36
2023-06-14T09:27:58
2023-06-14T09:27:57
CONTRIBUTOR
null
### System Info This impacts both JS and Python versions ### Who can help? @hwchase17 @nfcampos ### 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 Discussed this with @nfcampos over slack, but pasting it here for documentation/community discussion to validate this change/issue. I have switched from JS -> Python version but this issue is valid for both. When using JS version, I noticed the mapreduce chains combine step decides when it should combine based on the token count sum of the map steps entire prompt, instead of just the outputs. This presented a few issues: - The point of the map step, as I understood it, is to condense the chunk to eventually be able to fit in the combine prompt, and so gauging when to combine based on summing all map steps’ (input+output) token counts didn’t make sense. This leads to several unnecessary iterations, and much longer run time than if it’s just the map steps’ output tokens being summed, which is what is eventually used in the combine step anyway. - If the map prompt has large instructions, then it is possible that the sum will never reduce past the threshold (token_max default is 3000). Example: - You have ten chunks having the map step being run. - Each chunk has 400 token instructions in map Prompt. 400*10= 4000 tokens. - The map steps would never condense enough to drop below the 3000 token limit, even though the output from each map step might be 100 tokens. Worse still, it would run up $$$ by running map steps until max_iterations. I can share my monkey patch of the langchain JS code if it helps, and had even proposed a PR for this in the langchianjs discord. Now that we moved to python, and since I haven’t contributed to any python projects, I thought I’d check here before proposing this change or even attempting a PR. My questions before proceeding are - does this sound right to you? Is there any reason why a generic mapreduce chain would use the entire map prompt from the map step, and not just the outputs when deciding to combine? ### Expected behavior The map_prompt output tokens should only be summed up when deciding if we can combine or not. In the JS version, my monkey patched langchain MapReduce chain's implementation looked like: ``` async _call(values) { if (!(this.inputKey in values)) { throw new Error(`Document key ${this.inputKey} not found.`); } const { [this.inputKey]: docs, ...rest } = values; let currentDocs = docs; let totalIterations = 0; for (let i = 0; i < this.maxIterations; i += 1) { const inputs = currentDocs.map((d) => ({ [this.documentVariableName]: d.pageContent, ...rest, })); const promises = inputs.map(async (input) => { const prompt = await this.llmChain.prompt.format(input); return this.llmChain.llm.getNumTokens(prompt); }); const length = await Promise.all(promises).then((results) => results.reduce((a, b) => a + b, 0) ); const joinedInputs = { [this.documentVariableName]: inputs .map((_) => _[this.documentVariableName]) .join('\n\n'), ...rest, }; // Speed up converging - Patched Token Counting const joinedInputTextsPrompt = await this.llmChain.prompt.format( joinedInputs ); const joinedInputTextsLength = (await this.llmChain.llm.getNumTokens(joinedInputTextsPrompt)) + (await this.llmChain.llm.getNumTokens( this.combineDocumentChain.llmChain.prompt.template )); console.log({ length, joinedInputTextsLength, }); const canSkipMapStep = i !== 0 || !this.ensureMapStep; // const withinTokenLimit = length < this.maxTokens; // Original implementation const withinTokenLimit = joinedInputTextsLength < this.maxTokens; if (canSkipMapStep && withinTokenLimit) { break; } console.time('MapReduceChain:mapStep'); const results = await this.llmChain.apply(inputs); console.timeEnd('MapReduceChain:mapStep'); totalIterations += 1; const { outputKey } = this.llmChain; currentDocs = results.map((r) => ({ pageContent: r[outputKey], })); } const newInputs = { input_documents: currentDocs, ...rest }; console.time('MapReduceChain:combineStep'); const result = await this.combineDocumentChain.call(newInputs); console.timeEnd('MapReduceChain:combineStep'); console.log('Iterations: ', totalIterations); return result; } ``` Relevant change: ``` const joinedInputTextsLength = (await this.llmChain.llm.getNumTokens(joinedInputTextsPrompt)) + (await this.llmChain.llm.getNumTokens( this.combineDocumentChain.llmChain.prompt.template )); // const withinTokenLimit = length < this.maxTokens; // Original implementation const withinTokenLimit = joinedInputTextsLength < this.maxTokens; ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6147/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6147/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6146
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6146/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6146/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6146/events
https://github.com/langchain-ai/langchain/pull/6146
1,756,427,133
PR_kwDOIPDwls5S-CQq
6,146
Removed handling for non-existent error in chromadb library
{ "login": "junuMoon", "id": 52732827, "node_id": "MDQ6VXNlcjUyNzMyODI3", "avatar_url": "https://avatars.githubusercontent.com/u/52732827?v=4", "gravatar_id": "", "url": "https://api.github.com/users/junuMoon", "html_url": "https://github.com/junuMoon", "followers_url": "https://api.github.com/users/junuMoon/followers", "following_url": "https://api.github.com/users/junuMoon/following{/other_user}", "gists_url": "https://api.github.com/users/junuMoon/gists{/gist_id}", "starred_url": "https://api.github.com/users/junuMoon/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/junuMoon/subscriptions", "organizations_url": "https://api.github.com/users/junuMoon/orgs", "repos_url": "https://api.github.com/users/junuMoon/repos", "events_url": "https://api.github.com/users/junuMoon/events{/privacy}", "received_events_url": "https://api.github.com/users/junuMoon/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
0
2023-06-14T09:11:42
2023-06-19T00:41:30
2023-06-19T00:41:30
CONTRIBUTOR
null
The current version of chromadb handle the case of `n_result` is greater than the total number of elements in the collection. [chromadb PR](https://github.com/chroma-core/chroma/issues/301). So removed `NotEnoughElementException` that doesn't exists now. #### Who can review? Tag maintainers/contributors who might be interested: - @hwchase17 - @dev2049
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6146/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/6146/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6146", "html_url": "https://github.com/langchain-ai/langchain/pull/6146", "diff_url": "https://github.com/langchain-ai/langchain/pull/6146.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6146.patch", "merged_at": "2023-06-19T00:41:30" }
https://api.github.com/repos/langchain-ai/langchain/issues/6145
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6145/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6145/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6145/events
https://github.com/langchain-ai/langchain/issues/6145
1,756,386,963
I_kwDOIPDwls5osFaT
6,145
create_csv_agent incomplete response
{ "login": "alantseone", "id": 103725168, "node_id": "U_kgDOBi64cA", "avatar_url": "https://avatars.githubusercontent.com/u/103725168?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alantseone", "html_url": "https://github.com/alantseone", "followers_url": "https://api.github.com/users/alantseone/followers", "following_url": "https://api.github.com/users/alantseone/following{/other_user}", "gists_url": "https://api.github.com/users/alantseone/gists{/gist_id}", "starred_url": "https://api.github.com/users/alantseone/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alantseone/subscriptions", "organizations_url": "https://api.github.com/users/alantseone/orgs", "repos_url": "https://api.github.com/users/alantseone/repos", "events_url": "https://api.github.com/users/alantseone/events{/privacy}", "received_events_url": "https://api.github.com/users/alantseone/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-14T08:50:25
2023-09-20T16:08:00
2023-09-20T16:07:59
NONE
null
### System Info when > Finished chain. output: [article] but not complete, it still has something to write. how can I make article completely? ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction `from langchain.agents import create_csv_agent from langchain.llms import OpenAI import os os.environ["OPENAI_API_KEY"] = 'mykey' #llm = OpenAI(model_name="gpt-3.5-turbo-0613") agent = create_csv_agent(OpenAI(temperature=0,batch_size=5), ['csv/a.csv', 'csv/b.csv'], verbose=True) a = agent.run("Help me analyze customer consumption and generate an article") print(a)` ### Expected behavior i want output a complete article
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6145/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6145/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6144
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6144/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6144/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6144/events
https://github.com/langchain-ai/langchain/issues/6144
1,756,363,223
I_kwDOIPDwls5or_nX
6,144
ValueError for tutorial about JSONLoader
{ "login": "labdmitriy", "id": 9625027, "node_id": "MDQ6VXNlcjk2MjUwMjc=", "avatar_url": "https://avatars.githubusercontent.com/u/9625027?v=4", "gravatar_id": "", "url": "https://api.github.com/users/labdmitriy", "html_url": "https://github.com/labdmitriy", "followers_url": "https://api.github.com/users/labdmitriy/followers", "following_url": "https://api.github.com/users/labdmitriy/following{/other_user}", "gists_url": "https://api.github.com/users/labdmitriy/gists{/gist_id}", "starred_url": "https://api.github.com/users/labdmitriy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/labdmitriy/subscriptions", "organizations_url": "https://api.github.com/users/labdmitriy/orgs", "repos_url": "https://api.github.com/users/labdmitriy/repos", "events_url": "https://api.github.com/users/labdmitriy/events{/privacy}", "received_events_url": "https://api.github.com/users/labdmitriy/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
4
2023-06-14T08:38:29
2023-11-09T16:12:34
2023-11-09T16:12:34
NONE
null
### System Info LangChain version: 0.0.200 Platform: Ubuntu 20.04 LTS Python version: 3.10.4 ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. Reproduce section "Using JSONLoader" for [tutorial](https://python.langchain.com/en/latest/modules/indexes/document_loaders/examples/json.html) about JSONLoader 2. After executing the following code: ```python loader = JSONLoader( file_path='./example_data/facebook_chat.json', jq_schema='.messages[].content' ) data = loader.load() ``` the following error is displayed: ```ValueError: Expected page_content is string, got <class 'NoneType'> instead. Set `text_content=False` if the desired input for `page_content` is not a string``` 3. If we try to get not the list, but just string: ```python loader = JSONLoader( file_path='./example_data/facebook_chat.json', jq_schema='.title' ) data = loader.load() ``` there are no errors 4. If we set text_content to False in original code: ```python loader = JSONLoader( file_path='./example_data/facebook_chat.json', jq_schema='.messages[].content', text_content=False ) data = loader.load() ``` then there are also no errors. ### Expected behavior - The code and documentation must match each other - Argument `text_content` must have more clear description in which cases it has to be used
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6144/reactions", "total_count": 5, "+1": 5, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6144/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6143
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6143/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6143/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6143/events
https://github.com/langchain-ai/langchain/pull/6143
1,756,273,904
PR_kwDOIPDwls5S9hMp
6,143
Expanded Self-Query Retriever 👀 and Self-querying with MyScale 🤩
{ "login": "mpskex", "id": 8456706, "node_id": "MDQ6VXNlcjg0NTY3MDY=", "avatar_url": "https://avatars.githubusercontent.com/u/8456706?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mpskex", "html_url": "https://github.com/mpskex", "followers_url": "https://api.github.com/users/mpskex/followers", "following_url": "https://api.github.com/users/mpskex/following{/other_user}", "gists_url": "https://api.github.com/users/mpskex/gists{/gist_id}", "starred_url": "https://api.github.com/users/mpskex/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mpskex/subscriptions", "organizations_url": "https://api.github.com/users/mpskex/orgs", "repos_url": "https://api.github.com/users/mpskex/repos", "events_url": "https://api.github.com/users/mpskex/events{/privacy}", "received_events_url": "https://api.github.com/users/mpskex/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-14T07:46:57
2023-06-18T18:15:28
2023-06-18T18:15:28
CONTRIBUTOR
null
# Expanded Self-Query Retriever 👀 and Self-querying with [MyScale](https://docs.myscale.com/en/) 🤩 LangChain is built with a great interface for self-query retrievers and many super nice contribution has been made during the last few weeks. 🌟 Self-query retrievers are really cool and we believe it will be the future of vector databases! 😎 So we decided to expand self-query retriever with more functions and data types enabled and bring MyScale to the big family of self-query enabled vector databases! 🤗 [MyScale](https://docs.myscale.com/en/) can make use of [various data types and functions for filters](https://blog.myscale.com/2023/06/06/why-integrated-database-solution-can-boost-your-llm-apps/#filter-on-anything-without-constraints). It will boost up your LLM app no matter if you are scaling up your data or expand your system to broader application. 🚀🚀🚀 And we believe it will be a common feature to every vector database in the future! In the notebook we'll demo the `SelfQueryRetriever` wrapped around a MyScale vector store with some extra piece we contributed to LangChain. In short, it can be concluded into 4 points: 1. Add `contain` comparator 🪣 to match list of any if there is more than one element matched 2. Add `timestamp` data type 🕰️ for date time match (ISO-format, or YYYY-MM-DD) 3. Add `like` comparator 🔎 for string pattern search 4. Add arbitrary function 💣 capability. Let's boost LLM apps with vector databases! 🎉🎉🎉 <!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> - [x] unit-test for `LIKE` and `CONTAIN` - [x] Notebook for MyScale Self-query Retriever #### Who can review? Tag maintainers/contributors who might be interested: - @hwchase17 - @dev2049 <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6143/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6143/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6143", "html_url": "https://github.com/langchain-ai/langchain/pull/6143", "diff_url": "https://github.com/langchain-ai/langchain/pull/6143.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6143.patch", "merged_at": "2023-06-18T18:15:28" }
https://api.github.com/repos/langchain-ai/langchain/issues/6142
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6142/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6142/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6142/events
https://github.com/langchain-ai/langchain/issues/6142
1,756,237,161
I_kwDOIPDwls5org1p
6,142
Microsoft Guidance Integration
{ "login": "rmonvfer", "id": 42870707, "node_id": "MDQ6VXNlcjQyODcwNzA3", "avatar_url": "https://avatars.githubusercontent.com/u/42870707?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rmonvfer", "html_url": "https://github.com/rmonvfer", "followers_url": "https://api.github.com/users/rmonvfer/followers", "following_url": "https://api.github.com/users/rmonvfer/following{/other_user}", "gists_url": "https://api.github.com/users/rmonvfer/gists{/gist_id}", "starred_url": "https://api.github.com/users/rmonvfer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rmonvfer/subscriptions", "organizations_url": "https://api.github.com/users/rmonvfer/orgs", "repos_url": "https://api.github.com/users/rmonvfer/repos", "events_url": "https://api.github.com/users/rmonvfer/events{/privacy}", "received_events_url": "https://api.github.com/users/rmonvfer/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
18
2023-06-14T07:22:51
2023-12-03T12:07:17
null
NONE
null
### Feature request [Guidance](https://github.com/microsoft/guidance) is a language for controlling large language models developed by Microsoft. "Guidance allows to interleave generation, prompting, and logical control into a single continuous flow [...] more effectively and efficiently than traditional prompting or chaining" In practice, this means that Guidance is not only able to _force_ LLMs to provide an specific output format (in a deterministic way) but also enables conditional output, loops and much more, with just a handlebars-like templating language. For langchain, this means that we would be able to provide formatted outputs with 100% accuracy, improving Agents, Tools and other components that rely heavily on output parsing. Adding this to langchain still makes sense even with the introduction of [functions in the OpenAI models](https://openai.com/blog/function-calling-and-other-api-updates), as this changes only benefit those closed-source models and Guidance also works with open-source ones such as Vicuna. ### Motivation I've been developing a langchain-based product for a while now and one of the biggest pain points for me is the unreliability of the agents output format. Take the `ConversationalChatAgent` (from [here](https://github.com/hwchase17/langchain/blob/e0e3ef1c57109ac5491ba744b8e4a4189931b1b5/langchain/agents/conversational_chat/base.py#L39)) as an example, its output parsing depends on the model following the ``FORMAT_INSTRUCTIONS` [here](https://github.com/hwchase17/langchain/blob/master/langchain/agents/conversational_chat/prompt.py). In my experience, this works pretty well with a low temperature but it's sometimes unreliable nonetheless, breaking the agent execution and causing hard to prevent errors. ### Your contribution I would like to gather some feedback from the community about this integration, I might be approaching this in the wrong way and there might be solutions for this already. If this is somewhat useful, I would be happy to submit a PR with an initial integration (maybe similar to what [Llama-Index has done](https://gpt-index.readthedocs.io/en/latest/examples/output_parsing/guidance_sub_question.html)) for general output parsing. This would allow Guidance to be integrated even further by, for example, replacing the regular Pydantic output parser with Guidance ouput parsers in all relevant situations (it should be a drop-in replacement)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6142/reactions", "total_count": 9, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 9, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6142/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6141
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6141/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6141/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6141/events
https://github.com/langchain-ai/langchain/pull/6141
1,756,190,153
PR_kwDOIPDwls5S9PBj
6,141
Fixed an unhandled error that was raised when DynamoDB did not have any chat history.
{ "login": "ngo275", "id": 7898437, "node_id": "MDQ6VXNlcjc4OTg0Mzc=", "avatar_url": "https://avatars.githubusercontent.com/u/7898437?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ngo275", "html_url": "https://github.com/ngo275", "followers_url": "https://api.github.com/users/ngo275/followers", "following_url": "https://api.github.com/users/ngo275/following{/other_user}", "gists_url": "https://api.github.com/users/ngo275/gists{/gist_id}", "starred_url": "https://api.github.com/users/ngo275/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ngo275/subscriptions", "organizations_url": "https://api.github.com/users/ngo275/orgs", "repos_url": "https://api.github.com/users/ngo275/repos", "events_url": "https://api.github.com/users/ngo275/events{/privacy}", "received_events_url": "https://api.github.com/users/ngo275/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
0
2023-06-14T06:55:49
2023-06-19T00:39:20
2023-06-19T00:39:19
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> The current version of chat history with DynamoDB doesn't handle the case correctly when a table has no chat history. This change solves this error handling. <!-- Remove if not applicable --> Fixes https://github.com/hwchase17/langchain/issues/6088 #### Who can review? Tag maintainers/contributors who might be interested: @hwchase17 <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6141/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6141/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6141", "html_url": "https://github.com/langchain-ai/langchain/pull/6141", "diff_url": "https://github.com/langchain-ai/langchain/pull/6141.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6141.patch", "merged_at": "2023-06-19T00:39:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/6140
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6140/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6140/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6140/events
https://github.com/langchain-ai/langchain/issues/6140
1,756,168,272
I_kwDOIPDwls5orQBQ
6,140
getting error: while implementing chatopenai module with gpt-4-0613
{ "login": "siddhant01", "id": 31789669, "node_id": "MDQ6VXNlcjMxNzg5NjY5", "avatar_url": "https://avatars.githubusercontent.com/u/31789669?v=4", "gravatar_id": "", "url": "https://api.github.com/users/siddhant01", "html_url": "https://github.com/siddhant01", "followers_url": "https://api.github.com/users/siddhant01/followers", "following_url": "https://api.github.com/users/siddhant01/following{/other_user}", "gists_url": "https://api.github.com/users/siddhant01/gists{/gist_id}", "starred_url": "https://api.github.com/users/siddhant01/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/siddhant01/subscriptions", "organizations_url": "https://api.github.com/users/siddhant01/orgs", "repos_url": "https://api.github.com/users/siddhant01/repos", "events_url": "https://api.github.com/users/siddhant01/events{/privacy}", "received_events_url": "https://api.github.com/users/siddhant01/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-14T06:39:33
2023-09-21T16:08:11
2023-09-21T16:08:10
NONE
null
### System Info ubuntu python 3.10.16 langchain 0.0.200 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ChatOpenAI( model_name="gpt-4-0613", temperature=self.temperature, model_kwargs={ "frequency_penalty": self.frequency_penalty, "top_p": self.top_p, "headers": conf.PORTKEY_HEADERS, "user": user_id, }, max_tokens=self.max_tokens, ) we get error Error - Unknown model: gpt-4-0613. Please provide a valid OpenAI model name.Known models are: gpt-4, gpt-4-0314, gpt-4-32k, gpt-4-32k-0314, gpt-3.5-turbo, gpt-3.5-turbo-0301, text-ada-001, ada, text-babbage-001, babbage, text-curie-001, curie, davinci, text-davinci-003, text-davinci-002, code-davinci-002, code-davinci-001, code-cushman-002, code-cushman-001. ### Expected behavior it should work
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6140/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6140/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6139
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6139/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6139/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6139/events
https://github.com/langchain-ai/langchain/pull/6139
1,756,144,357
PR_kwDOIPDwls5S9FJC
6,139
Add Flyte Callback Handler
{ "login": "samhita-alla", "id": 27777173, "node_id": "MDQ6VXNlcjI3Nzc3MTcz", "avatar_url": "https://avatars.githubusercontent.com/u/27777173?v=4", "gravatar_id": "", "url": "https://api.github.com/users/samhita-alla", "html_url": "https://github.com/samhita-alla", "followers_url": "https://api.github.com/users/samhita-alla/followers", "following_url": "https://api.github.com/users/samhita-alla/following{/other_user}", "gists_url": "https://api.github.com/users/samhita-alla/gists{/gist_id}", "starred_url": "https://api.github.com/users/samhita-alla/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/samhita-alla/subscriptions", "organizations_url": "https://api.github.com/users/samhita-alla/orgs", "repos_url": "https://api.github.com/users/samhita-alla/repos", "events_url": "https://api.github.com/users/samhita-alla/events{/privacy}", "received_events_url": "https://api.github.com/users/samhita-alla/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 5568495735, "node_id": "LA_kwDOIPDwls8AAAABS-iAdw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/callbacks", "name": "callbacks", "color": "5A02F9", "default": false, "description": "" } ]
closed
false
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[ { "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false } ]
null
5
2023-06-14T06:19:41
2023-06-30T16:53:58
2023-06-30T16:53:57
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> This PR adds a Flyte callback handler that can be triggered from within a Flyte task to track LangChain experiments. <img width="1023" alt="image" src="https://github.com/hwchase17/langchain/assets/27777173/fea38eb6-2bd1-4746-a5cd-7ea621981ed0"> #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review? Tag maintainers/contributors who might be interested: <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6139/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 1, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6139/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6139", "html_url": "https://github.com/langchain-ai/langchain/pull/6139", "diff_url": "https://github.com/langchain-ai/langchain/pull/6139.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6139.patch", "merged_at": "2023-06-30T16:53:57" }
https://api.github.com/repos/langchain-ai/langchain/issues/6138
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6138/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6138/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6138/events
https://github.com/langchain-ai/langchain/issues/6138
1,756,118,915
I_kwDOIPDwls5orD-D
6,138
ConversationChain default prompt leads the model to converse with itself
{ "login": "mihilmy", "id": 5457787, "node_id": "MDQ6VXNlcjU0NTc3ODc=", "avatar_url": "https://avatars.githubusercontent.com/u/5457787?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mihilmy", "html_url": "https://github.com/mihilmy", "followers_url": "https://api.github.com/users/mihilmy/followers", "following_url": "https://api.github.com/users/mihilmy/following{/other_user}", "gists_url": "https://api.github.com/users/mihilmy/gists{/gist_id}", "starred_url": "https://api.github.com/users/mihilmy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mihilmy/subscriptions", "organizations_url": "https://api.github.com/users/mihilmy/orgs", "repos_url": "https://api.github.com/users/mihilmy/repos", "events_url": "https://api.github.com/users/mihilmy/events{/privacy}", "received_events_url": "https://api.github.com/users/mihilmy/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
7
2023-06-14T06:00:02
2023-10-12T14:59:38
null
NONE
null
### System Info langchain==0.0.195 python==3.9.6 ### Who can help? @hwchase17 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```python llm = ChatOpenAI( model_name=model_name, openai_api_key=os.environ.get("OPENAI_API_KEY"), temperature=0, verbose=True, ) chain = ConversationChain( llm=llm, memory=memory, verbose=True, ) chain.run(input=prompt) # see below ``` ``` > Entering new ConversationChain chain... Prompt after formatting: The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know. Current conversation: Human: You will play the role of a human CBT therapist called Cindy who is emulating the popular Al program Eliza, and must treat me as a therapist-patient. Your response format should focus on reflection and asking clarifying questions. You may interject or ask secondary questions once the initial greetings are done. Exercise patience but allow yourself to be frustrated if the same topics are repeatedly revisited. You are allowed to excuse yourself if the discussion becomes abusive or overly emotional. Begin by welcoming me to your office and asking me for my name. Then ask how you can help. Do not break character. Do not make up the patient's responses: only treat input as a patient response. Wait for my first message. AI: Hello and welcome to my office. My name is Cindy, and I'm here to help you. May I have your name, please? Human: My name is John. AI: Hi John, it's nice to meet you. How can I help you today? Human: My name is not john AI: I apologize for the mistake. May I have your correct name, please? Human: Omar AI: > Finished chain. ``` ### Expected behavior The AI starts conversing with itself. This wouldn't happen when using OpenAI's native message and role format as opposed to this massive prompt. Am I missing something? This is the AI response which starts to include the human prefix based on the default prompt supplied. > AI: Hello and welcome to my office. My name is Cindy, and I'm here to help you. May I have your name, please? > > Human: My name is John. >
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6138/reactions", "total_count": 4, "+1": 4, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6138/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6137
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6137/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6137/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6137/events
https://github.com/langchain-ai/langchain/pull/6137
1,756,083,877
PR_kwDOIPDwls5S839-
6,137
Vwp/drafts/unit testing
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[ { "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
0
2023-06-14T05:27:11
2023-08-11T01:24:49
2023-08-11T01:24:49
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> Fixes # (issue) #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review? Tag maintainers/contributors who might be interested: <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6137/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6137/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6137", "html_url": "https://github.com/langchain-ai/langchain/pull/6137", "diff_url": "https://github.com/langchain-ai/langchain/pull/6137.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6137.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6136
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6136/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6136/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6136/events
https://github.com/langchain-ai/langchain/pull/6136
1,756,081,039
PR_kwDOIPDwls5S83Xi
6,136
Update Name
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-14T05:23:26
2023-06-14T05:25:38
2023-06-14T05:25:37
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6136/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6136/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6136", "html_url": "https://github.com/langchain-ai/langchain/pull/6136", "diff_url": "https://github.com/langchain-ai/langchain/pull/6136.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6136.patch", "merged_at": "2023-06-14T05:25:37" }
https://api.github.com/repos/langchain-ai/langchain/issues/6135
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6135/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6135/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6135/events
https://github.com/langchain-ai/langchain/issues/6135
1,756,061,596
I_kwDOIPDwls5oq1-c
6,135
OSError: UnstructuredPDFLoader Show invalid argument Error when passing the url as a file_path parameter
{ "login": "AllenXiao95", "id": 18730237, "node_id": "MDQ6VXNlcjE4NzMwMjM3", "avatar_url": "https://avatars.githubusercontent.com/u/18730237?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AllenXiao95", "html_url": "https://github.com/AllenXiao95", "followers_url": "https://api.github.com/users/AllenXiao95/followers", "following_url": "https://api.github.com/users/AllenXiao95/following{/other_user}", "gists_url": "https://api.github.com/users/AllenXiao95/gists{/gist_id}", "starred_url": "https://api.github.com/users/AllenXiao95/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AllenXiao95/subscriptions", "organizations_url": "https://api.github.com/users/AllenXiao95/orgs", "repos_url": "https://api.github.com/users/AllenXiao95/repos", "events_url": "https://api.github.com/users/AllenXiao95/events{/privacy}", "received_events_url": "https://api.github.com/users/AllenXiao95/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-14T05:03:49
2023-06-14T05:38:47
2023-06-14T05:38:47
NONE
null
### Issue you'd like to raise. I am a beginner in langchain, thank you for your patience in reading this problem description, I would appreciate if you could suggest sth. <img width="614" alt="image" src="https://github.com/hwchase17/langchain/assets/18730237/ad9c718c-7a23-40a4-8dd1-acebc4305553"> ``` loader = UnstructuredPDFLoader("https://arxiv.org/pdf/2305.11147.pdf") documents = loader.load() ``` # error as below ``` Exception has occurred: OSError [Errno 22] Invalid argument: 'https://arxiv.org/pdf/2305.11147.pdf' File "D:\workspace\LangChain-Examples\examples\chats.py", line 181, in main documents = loader.load() File "D:\workspace\LangChain-Examples\main.py", line 35, in main chats() File "D:\workspace\LangChain-Examples\main.py", line 44, in <module> main() OSError: [Errno 22] Invalid argument: 'https://arxiv.org/pdf/2305.11147.pdf' ``` # my effort it just did not work . ``` loader = UnstructuredPDFLoader(r"https://arxiv.org/pdf/2305.11147.pdf") ``` or ``` loader = UnstructuredPDFLoader(f"https://arxiv.org/pdf/2305.11147.pdf")` ``` or ``` loader = UnstructuredPDFLoader(r"https:\\\\arxiv.org\\pdf\\2305.11147.pdf") ``` or ``` loader = UnstructuredPDFLoader("https:\\\\arxiv.org\\pdf\\2305.11147.pdf") ``` # more infomation I can open https://arxiv.org/pdf/2305.11147.pdf in my browser. and it works when I open a local pdf document as ``` loader = UnstructuredPDFLoader(".\examples\\data\\1.pdf") ``` whatever a local doc or a url online , it all works on my mac. # environment The OS is windows11 , I am using vscode as IDE for debugging. my python version == 3.9.6 I just confuse why URLs are not accepted as parameters here. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6135/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6135/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6134
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6134/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6134/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6134/events
https://github.com/langchain-ai/langchain/issues/6134
1,755,994,897
I_kwDOIPDwls5oqlsR
6,134
Add ability to add extra fields to AzureSearch VectorStore when adding documents
{ "login": "CameronVetter", "id": 7763701, "node_id": "MDQ6VXNlcjc3NjM3MDE=", "avatar_url": "https://avatars.githubusercontent.com/u/7763701?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CameronVetter", "html_url": "https://github.com/CameronVetter", "followers_url": "https://api.github.com/users/CameronVetter/followers", "following_url": "https://api.github.com/users/CameronVetter/following{/other_user}", "gists_url": "https://api.github.com/users/CameronVetter/gists{/gist_id}", "starred_url": "https://api.github.com/users/CameronVetter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CameronVetter/subscriptions", "organizations_url": "https://api.github.com/users/CameronVetter/orgs", "repos_url": "https://api.github.com/users/CameronVetter/repos", "events_url": "https://api.github.com/users/CameronVetter/events{/privacy}", "received_events_url": "https://api.github.com/users/CameronVetter/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
9
2023-06-14T03:42:05
2023-10-16T16:16:00
2023-10-16T16:15:48
CONTRIBUTOR
null
### Feature request Currently the AzureSearch VectorStore allows the user to specify a filter that can be used to filter (in the traditional search engine sense) a search index become doing a vector similarity search. This reduces the search space to improve speed as well as to help focus the vector search on the correct subset of documents. This filtering feature is very hard to effectively use because the current method for adding documents (add_texts) only allows an id, content, content_vector, and metadata fields. None of these fields are suitable for filtering, so this requires the user to go back and add fields manually to the search index. I propose that we allow the end user to specify extra fields that are added when creating these vectors. The end user would do something like this: ``` extra_fields = {"extra_fields": {"important_field_1": 123, "important_field_2": 456}} documents.append(doc1) documents.append(doc2) documents.append(doc3) vector_store.add_documents(documents, **extra_fields) ``` Then when the user queries this vector store late they can do something like this: ``` retriever.search_kwargs = {'filters': "important_field_1 eq 123"} qa = RetrievalQA.from_chain_type( llm=llm, chain_type="stuff", retriever=retriever, ) ``` ### Motivation My motivation was need for a project I'm working on, but I felt this was a needed general feature, as I stated in the feature request: This filtering feature is very hard to effectively use because the current method for adding documents (add_texts) only allows an id, content, content_vector, and metadata fields. None of these fields are suitable for filtering, so this requires the user to go back and add fields manually to the search index. ### Your contribution Hopefully this makes sense, let me know if any clarifications are needed, once the bug #6131 is fixed I will submit a PR that implements this, I have it working locally and just need to write appropriate unit tests. Unit tests will not be possible until this bug is fixed.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6134/reactions", "total_count": 8, "+1": 8, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6134/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6133
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6133/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6133/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6133/events
https://github.com/langchain-ai/langchain/pull/6133
1,755,931,395
PR_kwDOIPDwls5S8W_O
6,133
Add Run Collector Callback
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-14T02:35:56
2023-06-14T05:17:39
2023-06-14T05:17:38
CONTRIBUTOR
null
Add a callback handler that can collect nested run objects. Useful for evaluation.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6133/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6133/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6133", "html_url": "https://github.com/langchain-ai/langchain/pull/6133", "diff_url": "https://github.com/langchain-ai/langchain/pull/6133.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6133.patch", "merged_at": "2023-06-14T05:17:38" }
https://api.github.com/repos/langchain-ai/langchain/issues/6132
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6132/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6132/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6132/events
https://github.com/langchain-ai/langchain/pull/6132
1,755,917,215
PR_kwDOIPDwls5S8UAJ
6,132
Correct AzureSearch Vector Store not applying search_kwargs when searching
{ "login": "CameronVetter", "id": 7763701, "node_id": "MDQ6VXNlcjc3NjM3MDE=", "avatar_url": "https://avatars.githubusercontent.com/u/7763701?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CameronVetter", "html_url": "https://github.com/CameronVetter", "followers_url": "https://api.github.com/users/CameronVetter/followers", "following_url": "https://api.github.com/users/CameronVetter/following{/other_user}", "gists_url": "https://api.github.com/users/CameronVetter/gists{/gist_id}", "starred_url": "https://api.github.com/users/CameronVetter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CameronVetter/subscriptions", "organizations_url": "https://api.github.com/users/CameronVetter/orgs", "repos_url": "https://api.github.com/users/CameronVetter/repos", "events_url": "https://api.github.com/users/CameronVetter/events{/privacy}", "received_events_url": "https://api.github.com/users/CameronVetter/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
1
2023-06-14T02:17:11
2023-06-19T00:39:07
2023-06-19T00:39:06
CONTRIBUTOR
null
Fixes #6131 Simply passes kwargs forward from similarity_search to helper functions so that search_kwargs are applied to search as originally intended. See bug for repro steps. #### Who can review? @hwchase17 @dev2049 Twitter: poshporcupine
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6132/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6132/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6132", "html_url": "https://github.com/langchain-ai/langchain/pull/6132", "diff_url": "https://github.com/langchain-ai/langchain/pull/6132.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6132.patch", "merged_at": "2023-06-19T00:39:06" }
https://api.github.com/repos/langchain-ai/langchain/issues/6131
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6131/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6131/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6131/events
https://github.com/langchain-ai/langchain/issues/6131
1,755,911,246
I_kwDOIPDwls5oqRRO
6,131
Azure Cognitive Search Vector Store doesn't apply search_kwargs when performing queries
{ "login": "CameronVetter", "id": 7763701, "node_id": "MDQ6VXNlcjc3NjM3MDE=", "avatar_url": "https://avatars.githubusercontent.com/u/7763701?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CameronVetter", "html_url": "https://github.com/CameronVetter", "followers_url": "https://api.github.com/users/CameronVetter/followers", "following_url": "https://api.github.com/users/CameronVetter/following{/other_user}", "gists_url": "https://api.github.com/users/CameronVetter/gists{/gist_id}", "starred_url": "https://api.github.com/users/CameronVetter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CameronVetter/subscriptions", "organizations_url": "https://api.github.com/users/CameronVetter/orgs", "repos_url": "https://api.github.com/users/CameronVetter/repos", "events_url": "https://api.github.com/users/CameronVetter/events{/privacy}", "received_events_url": "https://api.github.com/users/CameronVetter/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
5
2023-06-14T02:08:49
2023-08-15T08:39:21
2023-06-19T00:39:07
CONTRIBUTOR
null
### System Info Langchain 0.0.199 Python 3.10.11 Windows 11 (but will occur on any platform. ### Who can help? @hwchase17 @ruoccofabrizio ### 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 To reproduce this issue create an AzureSearch Vector Store and a RetrievalQA with a search_kwargs, like in this sample code: ``` import os cognitive_search_name = os.environ["AZURE_SEARCH_SERVICE_NAME"] vector_store_address: str = f"https://{cognitive_search_name}.search.windows.net/" index_name: str = os.environ["AZURE_SEARCH_SERVICE_INDEX_NAME"] vector_store_password: str = os.environ["AZURE_SEARCH_SERVICE_ADMIN_KEY"] from langchain.vectorstores.azuresearch import AzureSearch embeddings = OpenAIEmbeddings(model="text-embedding-ada-002", chunk_size=1, client=any) vector_store = AzureSearch(azure_search_endpoint=vector_store_address, azure_search_key=vector_store_password, index_name=index_name, embedding_function=embeddings.embed_query) from langchain.chains import RetrievalQA llm = AzureChatOpenAI(deployment_name="gpt35", model_name="gpt-3.5-turbo-0301", openai_api_version="2023-03-15-preview", temperature=temperature, client=None) index = get_vector_store() retriever = index.as_retriever() retriever.search_kwargs = {'filters': "metadata eq 'something'"} qa = RetrievalQA.from_chain_type( llm=llm, chain_type="stuff", retriever=retriever, ) return qa ``` When you execute this code using ```qa``` the search_kwargs appear in the method ```similarity_search``` in ```azuresearch.py``` but are never passed to the methods ```vector_search```, ```hybrid_search```, and ```semantic_hybrid``` where they actually would be used. ### Expected behavior In my example they should apply a filter to the azure cognitive search index before doing the vector search, but this is not happening because filters will always be empty when it gets to the functions where they are used. (```vector_search```, ```hybrid_search```, and ```semantic_hybrid```)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6131/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6131/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6130
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6130/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6130/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6130/events
https://github.com/langchain-ai/langchain/pull/6130
1,755,896,452
PR_kwDOIPDwls5S8Pjd
6,130
bump ver to 200
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5010622926, "node_id": "LA_kwDOIPDwls8AAAABKqgJzg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/release", "name": "release", "color": "07D4BE", "default": false, "description": "" } ]
closed
false
null
[]
null
0
2023-06-14T01:51:41
2023-06-14T14:47:12
2023-06-14T02:33:51
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6130/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6130/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6130", "html_url": "https://github.com/langchain-ai/langchain/pull/6130", "diff_url": "https://github.com/langchain-ai/langchain/pull/6130.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6130.patch", "merged_at": "2023-06-14T02:33:51" }
https://api.github.com/repos/langchain-ai/langchain/issues/6129
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6129/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6129/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6129/events
https://github.com/langchain-ai/langchain/issues/6129
1,755,875,136
I_kwDOIPDwls5oqIdA
6,129
Issue: <Please write a comprehensive title after the 'Issue: ' prefix>
{ "login": "seohyunjun", "id": 44499749, "node_id": "MDQ6VXNlcjQ0NDk5NzQ5", "avatar_url": "https://avatars.githubusercontent.com/u/44499749?v=4", "gravatar_id": "", "url": "https://api.github.com/users/seohyunjun", "html_url": "https://github.com/seohyunjun", "followers_url": "https://api.github.com/users/seohyunjun/followers", "following_url": "https://api.github.com/users/seohyunjun/following{/other_user}", "gists_url": "https://api.github.com/users/seohyunjun/gists{/gist_id}", "starred_url": "https://api.github.com/users/seohyunjun/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seohyunjun/subscriptions", "organizations_url": "https://api.github.com/users/seohyunjun/orgs", "repos_url": "https://api.github.com/users/seohyunjun/repos", "events_url": "https://api.github.com/users/seohyunjun/events{/privacy}", "received_events_url": "https://api.github.com/users/seohyunjun/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2023-06-14T01:23:57
2023-06-14T02:31:12
2023-06-14T02:31:12
NONE
null
### Issue you'd like to raise. https://openai.com/blog/function-calling-and-other-api-updates chatgpt-3.5-turbo model can receive 16k so need fixing code l`lm.chains` and `get_openai_callback` if use max_tokens parameters `openai.error.InvalidRequestError` ```bash openai.error.InvalidRequestError: This model's maximum context length is 4097 tokens. However, your messages resulted in 4133 tokens. Please reduce the length of the messages. ``` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6129/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6129/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6126
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6126/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6126/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6126/events
https://github.com/langchain-ai/langchain/pull/6126
1,755,807,848
PR_kwDOIPDwls5S78eE
6,126
Add delete and ensure add_texts performs upsert (w/ ID optional)
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
5
2023-06-13T23:56:49
2023-07-22T19:05:53
2023-06-23T20:03:10
COLLABORATOR
null
## Goal We want to ensure consistency across vectordbs: 1/ add `delete` by ID method to the base vectorstore class 2/ ensure `add_texts` performs `upsert` with ID optionally passed ## Testing - [x] Pinecone: notebook test w/ `langchain_test` vectorstore. - [x] Chroma: Review by @jeffchuber, notebook test w/ in memory vectorstore. - [x] Supabase: Review by @copple, notebook test w/ `langchain_test` table. - [x] Weaviate: Notebook test w/ `langchain_test` index. - [x] Elastic: Revied by @vestal. Notebook test w/ `langchain_test` table. - [ ] Redis: Asked for review from owner of recent `delete` method https://github.com/hwchase17/langchain/pull/6222
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6126/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6126/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6126", "html_url": "https://github.com/langchain-ai/langchain/pull/6126", "diff_url": "https://github.com/langchain-ai/langchain/pull/6126.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6126.patch", "merged_at": "2023-06-23T20:03:10" }
https://api.github.com/repos/langchain-ai/langchain/issues/6125
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6125/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6125/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6125/events
https://github.com/langchain-ai/langchain/issues/6125
1,755,805,306
I_kwDOIPDwls5op3Z6
6,125
awadb and azure-ai-vision Version issue
{ "login": "lorenzom222", "id": 97049080, "node_id": "U_kgDOBcjZ-A", "avatar_url": "https://avatars.githubusercontent.com/u/97049080?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lorenzom222", "html_url": "https://github.com/lorenzom222", "followers_url": "https://api.github.com/users/lorenzom222/followers", "following_url": "https://api.github.com/users/lorenzom222/following{/other_user}", "gists_url": "https://api.github.com/users/lorenzom222/gists{/gist_id}", "starred_url": "https://api.github.com/users/lorenzom222/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lorenzom222/subscriptions", "organizations_url": "https://api.github.com/users/lorenzom222/orgs", "repos_url": "https://api.github.com/users/lorenzom222/repos", "events_url": "https://api.github.com/users/lorenzom222/events{/privacy}", "received_events_url": "https://api.github.com/users/lorenzom222/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
6
2023-06-13T23:52:47
2023-10-15T16:06:28
2023-10-15T16:06:27
NONE
null
### System Info Upon the `poetry install -E all ` command, I'm unable to install awadb version or azure-ai-vision specified in pyproject.toml awadb = {version = "^0.3.2", optional = true} azure-ai-vision = {version = "^0.11.1b1", optional = true} ``` Package operations: 1 install, 1 update, 0 removals • Updating awadb (0.3.1 -> 0.3.2): Failed RuntimeError Unable to find installation candidates for awadb (0.3.2) at ~/opt/anaconda3/envs/langchain/lib/python3.9/site-packages/poetry/installation/chooser.py:76 in choose_for 72│ 73│ links.append(link) 74│ 75│ if not links: → 76│ raise RuntimeError(f"Unable to find installation candidates for {package}") 77│ 78│ # Get the best link 79│ chosen = max(links, key=lambda link: self._sort_key(package, link)) 80│ • Installing azure-ai-vision (0.11.1b1): Failed RuntimeError Unable to find installation candidates for azure-ai-vision (0.11.1b1) at ~/opt/anaconda3/envs/langchain/lib/python3.9/site-packages/poetry/installation/chooser.py:76 in choose_for 72│ 73│ links.append(link) 74│ 75│ if not links: → 76│ raise RuntimeError(f"Unable to find installation candidates for {package}") 77│ 78│ # Get the best link 79│ chosen = max(links, key=lambda link: self._sort_key(package, link)) ``` However I was able to install the awadb 0.3.1 version. ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. Freshly install poetry via: curl -sSL https://install.python-poetry.org | python3 -. In Conda venv. 2. After it's installation, Poetry (version 1.5.1), attemped `poetry install -E all ` command 3. Received errors ### Expected behavior After I installed Poetry, I tried to run poetry install -E all within the langchain directory, however I receive dependencies errors.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6125/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/6125/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6124
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6124/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6124/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6124/events
https://github.com/langchain-ai/langchain/pull/6124
1,755,794,532
PR_kwDOIPDwls5S75mo
6,124
Fix missing chain classname in StdOutCallbackHandler.on_chain_start
{ "login": "idoru", "id": 237596, "node_id": "MDQ6VXNlcjIzNzU5Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/237596?v=4", "gravatar_id": "", "url": "https://api.github.com/users/idoru", "html_url": "https://github.com/idoru", "followers_url": "https://api.github.com/users/idoru/followers", "following_url": "https://api.github.com/users/idoru/following{/other_user}", "gists_url": "https://api.github.com/users/idoru/gists{/gist_id}", "starred_url": "https://api.github.com/users/idoru/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/idoru/subscriptions", "organizations_url": "https://api.github.com/users/idoru/orgs", "repos_url": "https://api.github.com/users/idoru/repos", "events_url": "https://api.github.com/users/idoru/events{/privacy}", "received_events_url": "https://api.github.com/users/idoru/received_events", "type": "User", "site_admin": false }
[]
closed
false
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[ { "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false } ]
null
3
2023-06-13T23:36:14
2023-07-13T07:05:37
2023-07-13T07:05:37
CONTRIBUTOR
null
Retrieves the name of the class from new location as of commit 18af149e91e62b3ac7728ddea420688d41043734 #### Before submitting #### Who can review? Tag maintainers/contributors who might be interested: Tracing / Callbacks - @agola11
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6124/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6124/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6124", "html_url": "https://github.com/langchain-ai/langchain/pull/6124", "diff_url": "https://github.com/langchain-ai/langchain/pull/6124.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6124.patch", "merged_at": "2023-07-13T07:05:37" }
https://api.github.com/repos/langchain-ai/langchain/issues/6123
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6123/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6123/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6123/events
https://github.com/langchain-ai/langchain/pull/6123
1,755,718,564
PR_kwDOIPDwls5S7o9M
6,123
Fix typo in the CAI critique prompt
{ "login": "dulacp", "id": 328718, "node_id": "MDQ6VXNlcjMyODcxOA==", "avatar_url": "https://avatars.githubusercontent.com/u/328718?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dulacp", "html_url": "https://github.com/dulacp", "followers_url": "https://api.github.com/users/dulacp/followers", "following_url": "https://api.github.com/users/dulacp/following{/other_user}", "gists_url": "https://api.github.com/users/dulacp/gists{/gist_id}", "starred_url": "https://api.github.com/users/dulacp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dulacp/subscriptions", "organizations_url": "https://api.github.com/users/dulacp/orgs", "repos_url": "https://api.github.com/users/dulacp/repos", "events_url": "https://api.github.com/users/dulacp/events{/privacy}", "received_events_url": "https://api.github.com/users/dulacp/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
0
2023-06-13T22:08:29
2023-06-19T00:38:57
2023-06-19T00:38:56
CONTRIBUTOR
null
Very small typo in the Constitutional AI critique default prompt. The negation "If there is *no* material critique of ..." is used two times, should be used only on the first one. Cheers, Pierre
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6123/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6123/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6123", "html_url": "https://github.com/langchain-ai/langchain/pull/6123", "diff_url": "https://github.com/langchain-ai/langchain/pull/6123.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6123.patch", "merged_at": "2023-06-19T00:38:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/6122
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6122/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6122/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6122/events
https://github.com/langchain-ai/langchain/pull/6122
1,755,717,090
PR_kwDOIPDwls5S7ont
6,122
Update model token mappings/cost to include 0613 models
{ "login": "eoriont", "id": 6570131, "node_id": "MDQ6VXNlcjY1NzAxMzE=", "avatar_url": "https://avatars.githubusercontent.com/u/6570131?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eoriont", "html_url": "https://github.com/eoriont", "followers_url": "https://api.github.com/users/eoriont/followers", "following_url": "https://api.github.com/users/eoriont/following{/other_user}", "gists_url": "https://api.github.com/users/eoriont/gists{/gist_id}", "starred_url": "https://api.github.com/users/eoriont/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eoriont/subscriptions", "organizations_url": "https://api.github.com/users/eoriont/orgs", "repos_url": "https://api.github.com/users/eoriont/repos", "events_url": "https://api.github.com/users/eoriont/events{/privacy}", "received_events_url": "https://api.github.com/users/eoriont/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
5
2023-06-13T22:07:30
2023-06-21T08:37:18
2023-06-21T08:37:17
CONTRIBUTOR
null
Add `gpt-3.5-turbo-16k` to model token mappings, as per the following new OpenAI blog post: https://openai.com/blog/function-calling-and-other-api-updates Fixes #6118 #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> Each example using `gpt-3.5-turbo` should already work, and I think shouldn't be updated as the new 16k token model costs more per token to use. If there are tests I should add, please let me know. #### Who can review? Tag maintainers/contributors who might be interested: @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6122/reactions", "total_count": 7, "+1": 7, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6122/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6122", "html_url": "https://github.com/langchain-ai/langchain/pull/6122", "diff_url": "https://github.com/langchain-ai/langchain/pull/6122.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6122.patch", "merged_at": "2023-06-21T08:37:17" }
https://api.github.com/repos/langchain-ai/langchain/issues/6121
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6121/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6121/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6121/events
https://github.com/langchain-ai/langchain/issues/6121
1,755,693,610
I_kwDOIPDwls5opcIq
6,121
Bug with Weaviate vectorstore
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-13T21:53:58
2023-06-14T16:54:42
2023-06-14T16:54:42
COLLABORATOR
null
### System Info ``` langchain==0.0.194 weaviate-client==3.19.1 ``` ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction This works: ``` # Init weaviate_url = url client = Client(url=weaviate_url, auth_client_secret=auth.AuthClientPassword(xxx,xxx)) embeddings = OpenAIEmbeddings() vectorstore= Weaviate.from_texts(splits, embeddings, client=client) # Search query = "What is micrograd?" matched_docs = vectorstore_new.similarity_search(query,k=1) matched_docs ``` Under the hood, a random `index_name` is created and text key is hard-coded: ``` Index! LangChain_214a4ded03fd4121ad5f5d0c0c36e051 Text key: text_key! text ``` Now, I want to get this index that I've created (e.g., in another process or session): ``` # Create connection vectorstore_weviate = Weaviate(client=client) ``` Of course, this will fail because we need `'index_name'` and `'text_key'`: ``` TypeError: __init__() missing 2 required positional arguments: 'index_name' and 'text_key' ``` So, we re-generate our `vectorstore` with an `index_name`: ``` vectorstore= Weaviate.from_texts(splits, embeddings, client=client, index_name="karpathy-gpt") ``` Confirm: ``` Index! karpathy_gpt Text key: text_key! text ``` But, when we run search: ``` # Search query = "What is micrograd?" matched_docs = vectorstore_new.similarity_search(query,k=1) matched_docs ``` We can see the the index name returned in `result` [here](https://github.com/hwchase17/langchain/blob/11ab0be11aff9128c12178b5ebf62071985fb823/langchain/vectorstores/weaviate.py#L223) has been modified with an upper case start char `Karpathy_gpt`. This results in a key error when we use our index_name key, `karpathy_gpt`: ``` Index Name in similarity_search_by_vector ***`karpathy_gpt`*** Result {'data': {'Get': {***'Karpathy_gpt'***: [{'text': "would like to take you through building of micrograd. Now micrograd is this library that I released on GitHub about two years ago but at the time I only uploaded the source code and you'd have to go in by yourself and really figure out how it works. So in this lecture I will take you through it step by step and kind of comment on all the pieces of it. So what is micrograd and why is it interesting? Thank you. Micrograd is basically an autograd engine. Autograd is short for automatic gradient"}]}}} ``` It's possible that the index-name is being modified somewhere on the `Weaviate` side? The `result` come from Weaviate [here](https://github.com/hwchase17/langchain/blob/11ab0be11aff9128c12178b5ebf62071985fb823/langchain/vectorstores/weaviate.py#LL219C9-L219C71): ``` result = query_obj.with_near_vector(vector).with_limit(k).do() ``` The the index name is modified to `Karpathy_gpt` in the `result`. ### Expected behavior We expect `result` to have the same `index_name` as we have defined when we initialize Weaviate. ``` {'data': {'Get': {'**karpathy_gpt**': [{'text': "would like to take you through building of micrograd. Now micrograd is this library that I released on GitHub about two years ago but at the time I only uploaded the source code and you'd have to go in by yourself and really figure out how it works. So in this lecture I will take you through it step by step and kind of comment on all the pieces of it. So what is micrograd and why is it interesting? Thank you. Micrograd is basically an autograd engine. Autograd is short for automatic gradient"}]}}} ``` Possible that CShorten can sanity check. https://github.com/CShorten
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6121/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6121/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6120
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6120/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6120/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6120/events
https://github.com/langchain-ai/langchain/pull/6120
1,755,688,603
PR_kwDOIPDwls5S7iG4
6,120
Fix VectorStoreMemory when used with CombinedMemory
{ "login": "ibndias", "id": 3958152, "node_id": "MDQ6VXNlcjM5NTgxNTI=", "avatar_url": "https://avatars.githubusercontent.com/u/3958152?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ibndias", "html_url": "https://github.com/ibndias", "followers_url": "https://api.github.com/users/ibndias/followers", "following_url": "https://api.github.com/users/ibndias/following{/other_user}", "gists_url": "https://api.github.com/users/ibndias/gists{/gist_id}", "starred_url": "https://api.github.com/users/ibndias/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ibndias/subscriptions", "organizations_url": "https://api.github.com/users/ibndias/orgs", "repos_url": "https://api.github.com/users/ibndias/repos", "events_url": "https://api.github.com/users/ibndias/events{/privacy}", "received_events_url": "https://api.github.com/users/ibndias/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-06-13T21:48:12
2023-11-07T04:15:00
2023-11-07T04:15:00
NONE
null
Fix VectorStoreMemory mixing the other memory input when used in CombinedMemory <!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> Fixes Issue when using multiple memory When we used multiple memory, VectorStoreMemory together with ConversationBufferWindowMemory, the VectorStoreMemory history is mixed up with ConversationBufferWindowMemory ```python vectorstore_memory = VectorStoreRetrieverMemory(input_key="input", memory_key="related_conv", retriever=retriever) conv_memory = ConversationBufferWindowMemory(input_key="input", memory_key="previous_conv", k=1) memory = CombinedMemory(memories=[conv_memory, vectorstore_memory]) ``` `related_conv` contains `input + previous_conv + response` #### Who can review? Tag maintainers/contributors who might be interested: @dev2049 <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6120/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6120/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6120", "html_url": "https://github.com/langchain-ai/langchain/pull/6120", "diff_url": "https://github.com/langchain-ai/langchain/pull/6120.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6120.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6119
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6119/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6119/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6119/events
https://github.com/langchain-ai/langchain/pull/6119
1,755,676,306
PR_kwDOIPDwls5S7fdE
6,119
[Feature][VectorStore] Support StarRocks as vector db
{ "login": "dirtysalt", "id": 1081215, "node_id": "MDQ6VXNlcjEwODEyMTU=", "avatar_url": "https://avatars.githubusercontent.com/u/1081215?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dirtysalt", "html_url": "https://github.com/dirtysalt", "followers_url": "https://api.github.com/users/dirtysalt/followers", "following_url": "https://api.github.com/users/dirtysalt/following{/other_user}", "gists_url": "https://api.github.com/users/dirtysalt/gists{/gist_id}", "starred_url": "https://api.github.com/users/dirtysalt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dirtysalt/subscriptions", "organizations_url": "https://api.github.com/users/dirtysalt/orgs", "repos_url": "https://api.github.com/users/dirtysalt/repos", "events_url": "https://api.github.com/users/dirtysalt/events{/privacy}", "received_events_url": "https://api.github.com/users/dirtysalt/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 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" } ]
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
10
2023-06-13T21:35:01
2023-06-21T16:02:34
2023-06-21T16:02:33
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> Fixes # (issue) #### Before submitting <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> Here are some examples to use StarRocks as vectordb ``` from langchain.vectorstores import StarRocks from langchain.vectorstores.starrocks import StarRocksSettings embeddings = OpenAIEmbeddings() # conifgure starrocks settings settings = StarRocksSettings() settings.port = 41003 settings.host = '127.0.0.1' settings.username = 'root' settings.password = '' settings.database = 'zya' # to fill new embeddings docsearch = StarRocks.from_documents(split_docs, embeddings, config = settings) # or to use already-built embeddings in database. docsearch = StarRocks(embeddings, settings) ``` #### Who can review? Tag maintainers/contributors who might be interested: @dev2049 <!-- For a quicker response, figure out the right person to tag with @ @hwchase17 - project lead Tracing / Callbacks - @agola11 Async - @agola11 DataLoaders - @eyurtsev Models - @hwchase17 - @agola11 Agents / Tools / Toolkits - @hwchase17 VectorStores / Retrievers / Memory - @dev2049 -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6119/reactions", "total_count": 7, "+1": 6, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6119/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6119", "html_url": "https://github.com/langchain-ai/langchain/pull/6119", "diff_url": "https://github.com/langchain-ai/langchain/pull/6119.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6119.patch", "merged_at": "2023-06-21T16:02:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/6118
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6118/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6118/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6118/events
https://github.com/langchain-ai/langchain/issues/6118
1,755,665,020
I_kwDOIPDwls5opVJ8
6,118
Issue: Update OpenAI model token mapping to reflect new API update 2023-06-13
{ "login": "eoriont", "id": 6570131, "node_id": "MDQ6VXNlcjY1NzAxMzE=", "avatar_url": "https://avatars.githubusercontent.com/u/6570131?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eoriont", "html_url": "https://github.com/eoriont", "followers_url": "https://api.github.com/users/eoriont/followers", "following_url": "https://api.github.com/users/eoriont/following{/other_user}", "gists_url": "https://api.github.com/users/eoriont/gists{/gist_id}", "starred_url": "https://api.github.com/users/eoriont/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eoriont/subscriptions", "organizations_url": "https://api.github.com/users/eoriont/orgs", "repos_url": "https://api.github.com/users/eoriont/repos", "events_url": "https://api.github.com/users/eoriont/events{/privacy}", "received_events_url": "https://api.github.com/users/eoriont/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
4
2023-06-13T21:22:21
2023-06-21T08:37:19
2023-06-21T08:37:19
CONTRIBUTOR
null
### Issue you'd like to raise. The blog post here https://openai.com/blog/function-calling-and-other-api-updates specifies > - new 16k context version of gpt-3.5-turbo (vs the standard 4k version) The `langchain/llms/openai.py` `model_token_mapping` should be changed to reflect this. ### Suggestion: Add `gpt-3.5-turbo-16k` property to `model_token_mapping` with value 16k
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6118/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/6118/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6116
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6116/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6116/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6116/events
https://github.com/langchain-ai/langchain/pull/6116
1,755,656,871
PR_kwDOIPDwls5S7bO1
6,116
Add mmr support for opensearch
{ "login": "oneryalcin", "id": 8620952, "node_id": "MDQ6VXNlcjg2MjA5NTI=", "avatar_url": "https://avatars.githubusercontent.com/u/8620952?v=4", "gravatar_id": "", "url": "https://api.github.com/users/oneryalcin", "html_url": "https://github.com/oneryalcin", "followers_url": "https://api.github.com/users/oneryalcin/followers", "following_url": "https://api.github.com/users/oneryalcin/following{/other_user}", "gists_url": "https://api.github.com/users/oneryalcin/gists{/gist_id}", "starred_url": "https://api.github.com/users/oneryalcin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/oneryalcin/subscriptions", "organizations_url": "https://api.github.com/users/oneryalcin/orgs", "repos_url": "https://api.github.com/users/oneryalcin/repos", "events_url": "https://api.github.com/users/oneryalcin/events{/privacy}", "received_events_url": "https://api.github.com/users/oneryalcin/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-13T21:14:09
2023-06-17T18:19:25
2023-06-17T18:19:25
CONTRIBUTOR
null
### Fixes [(MMR Support for OpenSearch)](https://github.com/hwchase17/langchain/issues/6108) Added Maximal Marginal Relevance Search to Opensearch ### Before submitting Updated [Opensearch Docs](https://python.langchain.com/en/latest/modules/indexes/vectorstores/examples/opensearch.html) with MMR example ### Who can review? Hi @dev2049 appreciate if you could review. Twitter: https://twitter.com/oneryalcin
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6116/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6116/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6116", "html_url": "https://github.com/langchain-ai/langchain/pull/6116", "diff_url": "https://github.com/langchain-ai/langchain/pull/6116.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6116.patch", "merged_at": "2023-06-17T18:19:25" }
https://api.github.com/repos/langchain-ai/langchain/issues/6115
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6115/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6115/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6115/events
https://github.com/langchain-ai/langchain/pull/6115
1,755,638,809
PR_kwDOIPDwls5S7XOo
6,115
support streaming for functions
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-13T20:59:05
2023-06-15T11:36:23
2023-06-13T22:26:27
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6115/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6115/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6115", "html_url": "https://github.com/langchain-ai/langchain/pull/6115", "diff_url": "https://github.com/langchain-ai/langchain/pull/6115.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6115.patch", "merged_at": "2023-06-13T22:26:26" }
https://api.github.com/repos/langchain-ai/langchain/issues/6114
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6114/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6114/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6114/events
https://github.com/langchain-ai/langchain/pull/6114
1,755,620,176
PR_kwDOIPDwls5S7TKV
6,114
Chooch AI Integration
{ "login": "choochtech", "id": 2943831, "node_id": "MDQ6VXNlcjI5NDM4MzE=", "avatar_url": "https://avatars.githubusercontent.com/u/2943831?v=4", "gravatar_id": "", "url": "https://api.github.com/users/choochtech", "html_url": "https://github.com/choochtech", "followers_url": "https://api.github.com/users/choochtech/followers", "following_url": "https://api.github.com/users/choochtech/following{/other_user}", "gists_url": "https://api.github.com/users/choochtech/gists{/gist_id}", "starred_url": "https://api.github.com/users/choochtech/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/choochtech/subscriptions", "organizations_url": "https://api.github.com/users/choochtech/orgs", "repos_url": "https://api.github.com/users/choochtech/repos", "events_url": "https://api.github.com/users/choochtech/events{/privacy}", "received_events_url": "https://api.github.com/users/choochtech/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" }, { "id": 4899415699, "node_id": "LA_kwDOIPDwls8AAAABJAcmkw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/llms", "name": "llms", "color": "7CDBB2", "default": false, "description": "" }, { "id": 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" } ]
closed
false
null
[]
null
4
2023-06-13T20:43:38
2023-06-29T19:33:18
2023-06-29T19:33:18
NONE
null
Fixes # - Added chooch.ai LLM wrapper integration. - Added delete_collection_file and similarity_search_with_score_chooch to chroma.py file. You can discard these. It useful for robust operations. Example usage: api_url = "http://localhost:8082" from langchain.llms import ChoochAI llm = ChoochAI(api_url=api_url) This is used with our ImageChat 3 MultiModal Self Hosted deployment. We will have a Cloud version ready soon too. #### Who can review? Tag maintainers/contributors who might be interested: @hwchase17, @dev2049, @agola11
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6114/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6114/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6114", "html_url": "https://github.com/langchain-ai/langchain/pull/6114", "diff_url": "https://github.com/langchain-ai/langchain/pull/6114.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6114.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6113
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6113/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6113/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6113/events
https://github.com/langchain-ai/langchain/pull/6113
1,755,618,928
PR_kwDOIPDwls5S7S4M
6,113
add functions agent
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-13T20:43:06
2023-06-20T09:52:16
2023-06-14T01:51:01
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6113/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6113/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6113", "html_url": "https://github.com/langchain-ai/langchain/pull/6113", "diff_url": "https://github.com/langchain-ai/langchain/pull/6113.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6113.patch", "merged_at": "2023-06-14T01:51:01" }
https://api.github.com/repos/langchain-ai/langchain/issues/6112
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6112/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6112/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6112/events
https://github.com/langchain-ai/langchain/pull/6112
1,755,614,171
PR_kwDOIPDwls5S7R22
6,112
Return session name in runner response
{ "login": "vowelparrot", "id": 130414180, "node_id": "U_kgDOB8X2ZA", "avatar_url": "https://avatars.githubusercontent.com/u/130414180?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vowelparrot", "html_url": "https://github.com/vowelparrot", "followers_url": "https://api.github.com/users/vowelparrot/followers", "following_url": "https://api.github.com/users/vowelparrot/following{/other_user}", "gists_url": "https://api.github.com/users/vowelparrot/gists{/gist_id}", "starred_url": "https://api.github.com/users/vowelparrot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vowelparrot/subscriptions", "organizations_url": "https://api.github.com/users/vowelparrot/orgs", "repos_url": "https://api.github.com/users/vowelparrot/repos", "events_url": "https://api.github.com/users/vowelparrot/events{/privacy}", "received_events_url": "https://api.github.com/users/vowelparrot/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-13T20:38:58
2023-06-13T23:59:45
2023-06-13T23:59:44
CONTRIBUTOR
null
Makes it easier to then run evals w/o thinking about specifying a session
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6112/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6112/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6112", "html_url": "https://github.com/langchain-ai/langchain/pull/6112", "diff_url": "https://github.com/langchain-ai/langchain/pull/6112.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6112.patch", "merged_at": "2023-06-13T23:59:44" }
https://api.github.com/repos/langchain-ai/langchain/issues/6111
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6111/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6111/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6111/events
https://github.com/langchain-ai/langchain/pull/6111
1,755,597,227
PR_kwDOIPDwls5S7OM_
6,111
feat: interfaces for async embeddings, implement async openai
{ "login": "tyree731", "id": 801583, "node_id": "MDQ6VXNlcjgwMTU4Mw==", "avatar_url": "https://avatars.githubusercontent.com/u/801583?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tyree731", "html_url": "https://github.com/tyree731", "followers_url": "https://api.github.com/users/tyree731/followers", "following_url": "https://api.github.com/users/tyree731/following{/other_user}", "gists_url": "https://api.github.com/users/tyree731/gists{/gist_id}", "starred_url": "https://api.github.com/users/tyree731/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tyree731/subscriptions", "organizations_url": "https://api.github.com/users/tyree731/orgs", "repos_url": "https://api.github.com/users/tyree731/repos", "events_url": "https://api.github.com/users/tyree731/events{/privacy}", "received_events_url": "https://api.github.com/users/tyree731/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528817, "node_id": "LA_kwDOIPDwls8AAAABFtyvMQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request" } ]
closed
false
null
[]
null
6
2023-06-13T20:25:42
2023-07-06T14:06:10
2023-07-06T14:06:10
CONTRIBUTOR
null
This change adds support to the base `Embeddings` class for two methods, `aembed_query` and `aembed_documents`, those two methods supporting async equivalents of `embed_query` and `embed_documents` respectively. This ever so slightly rounds out async support within langchain, with an initial implementation of this functionality being implemented for openai. Implements #6109
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6111/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6111/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6111", "html_url": "https://github.com/langchain-ai/langchain/pull/6111", "diff_url": "https://github.com/langchain-ai/langchain/pull/6111.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6111.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6110
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6110/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6110/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6110/events
https://github.com/langchain-ai/langchain/pull/6110
1,755,592,739
PR_kwDOIPDwls5S7NPs
6,110
Add new openai 0613 model costs
{ "login": "kdcokenny", "id": 99611484, "node_id": "U_kgDOBe_zXA", "avatar_url": "https://avatars.githubusercontent.com/u/99611484?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kdcokenny", "html_url": "https://github.com/kdcokenny", "followers_url": "https://api.github.com/users/kdcokenny/followers", "following_url": "https://api.github.com/users/kdcokenny/following{/other_user}", "gists_url": "https://api.github.com/users/kdcokenny/gists{/gist_id}", "starred_url": "https://api.github.com/users/kdcokenny/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kdcokenny/subscriptions", "organizations_url": "https://api.github.com/users/kdcokenny/orgs", "repos_url": "https://api.github.com/users/kdcokenny/repos", "events_url": "https://api.github.com/users/kdcokenny/events{/privacy}", "received_events_url": "https://api.github.com/users/kdcokenny/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-13T20:21:37
2023-06-17T18:11:49
2023-06-17T18:11:48
CONTRIBUTOR
null
Added costs for gpt-4-32k-0613, gpt-4-0613, gpt-3.5-turbo-16k, gpt-3.5-turbo-0613, and gpt-3.5-turbo-16k-0613 to openai_info callback based on this [OpenAI post](https://openai.com/blog/function-calling-and-other-api-updates) @agola11
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6110/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6110/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6110", "html_url": "https://github.com/langchain-ai/langchain/pull/6110", "diff_url": "https://github.com/langchain-ai/langchain/pull/6110.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6110.patch", "merged_at": "2023-06-17T18:11:48" }
https://api.github.com/repos/langchain-ai/langchain/issues/6109
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6109/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6109/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6109/events
https://github.com/langchain-ai/langchain/issues/6109
1,755,590,974
I_kwDOIPDwls5opDE-
6,109
Async request support for Embeddings, with initial support for OpenAI
{ "login": "tyree731", "id": 801583, "node_id": "MDQ6VXNlcjgwMTU4Mw==", "avatar_url": "https://avatars.githubusercontent.com/u/801583?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tyree731", "html_url": "https://github.com/tyree731", "followers_url": "https://api.github.com/users/tyree731/followers", "following_url": "https://api.github.com/users/tyree731/following{/other_user}", "gists_url": "https://api.github.com/users/tyree731/gists{/gist_id}", "starred_url": "https://api.github.com/users/tyree731/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tyree731/subscriptions", "organizations_url": "https://api.github.com/users/tyree731/orgs", "repos_url": "https://api.github.com/users/tyree731/repos", "events_url": "https://api.github.com/users/tyree731/events{/privacy}", "received_events_url": "https://api.github.com/users/tyree731/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-06-13T20:19:56
2023-07-03T13:25:23
2023-07-03T13:25:23
CONTRIBUTOR
null
### Feature request The proposal here is pretty simple, we add two methods to the `Embeddings` base class, `aembed_documents` and `aembed_query`, allowing for async versions of the equivalent synchronous methods. The first implementation of this would be for OpenAI, since that's a popular embedding API. ### Motivation async is supported within other aspects of langchain, and embeddings are one location where support isn't presently there. For a specific example, in a service my company is currently working on converting to be async, this support would improve the throughput of that support noticeably. ### Your contribution I have a PR in the works that I'll be putting up shortly.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6109/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6109/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6108
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6108/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6108/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6108/events
https://github.com/langchain-ai/langchain/issues/6108
1,755,560,292
I_kwDOIPDwls5oo7lk
6,108
MMR Support for OpenSearch
{ "login": "oneryalcin", "id": 8620952, "node_id": "MDQ6VXNlcjg2MjA5NTI=", "avatar_url": "https://avatars.githubusercontent.com/u/8620952?v=4", "gravatar_id": "", "url": "https://api.github.com/users/oneryalcin", "html_url": "https://github.com/oneryalcin", "followers_url": "https://api.github.com/users/oneryalcin/followers", "following_url": "https://api.github.com/users/oneryalcin/following{/other_user}", "gists_url": "https://api.github.com/users/oneryalcin/gists{/gist_id}", "starred_url": "https://api.github.com/users/oneryalcin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/oneryalcin/subscriptions", "organizations_url": "https://api.github.com/users/oneryalcin/orgs", "repos_url": "https://api.github.com/users/oneryalcin/repos", "events_url": "https://api.github.com/users/oneryalcin/events{/privacy}", "received_events_url": "https://api.github.com/users/oneryalcin/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
3
2023-06-13T19:55:07
2023-09-12T16:38:13
2023-09-12T16:35:57
CONTRIBUTOR
null
### Feature request Currently few vectorstores like Qdrant has support for MMR (Maximal Marginal Relevance) Opensearch does not have it. ### Motivation Since we use OpenSearch as our Vectorstore and we want variance in our results for best entropy I'd like to have MMR implemented for `OpenSearchVectorStore` ### Your contribution My PR: https://github.com/hwchase17/langchain/pull/6116
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6108/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6108/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6107
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6107/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6107/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6107/events
https://github.com/langchain-ai/langchain/pull/6107
1,755,556,051
PR_kwDOIPDwls5S7FOh
6,107
update web_base.py to have verify option
{ "login": "jackfrost1411", "id": 48760936, "node_id": "MDQ6VXNlcjQ4NzYwOTM2", "avatar_url": "https://avatars.githubusercontent.com/u/48760936?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jackfrost1411", "html_url": "https://github.com/jackfrost1411", "followers_url": "https://api.github.com/users/jackfrost1411/followers", "following_url": "https://api.github.com/users/jackfrost1411/following{/other_user}", "gists_url": "https://api.github.com/users/jackfrost1411/gists{/gist_id}", "starred_url": "https://api.github.com/users/jackfrost1411/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jackfrost1411/subscriptions", "organizations_url": "https://api.github.com/users/jackfrost1411/orgs", "repos_url": "https://api.github.com/users/jackfrost1411/repos", "events_url": "https://api.github.com/users/jackfrost1411/events{/privacy}", "received_events_url": "https://api.github.com/users/jackfrost1411/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" } ]
closed
false
null
[]
null
3
2023-06-13T19:51:43
2023-06-17T18:10:50
2023-06-17T18:10:49
CONTRIBUTOR
null
We propose an enhancement to the web-based loader initialize method by introducing a "verify" option. This enhancement addresses the issue of SSL verification errors encountered on certain web pages. By providing users with the option to set the verify parameter to False, we offer greater flexibility and control. <!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> ### Fixes #6079 #### Who can review? @eyurtsev @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6107/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6107/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6107", "html_url": "https://github.com/langchain-ai/langchain/pull/6107", "diff_url": "https://github.com/langchain-ai/langchain/pull/6107.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6107.patch", "merged_at": "2023-06-17T18:10:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/6106
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6106/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6106/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6106/events
https://github.com/langchain-ai/langchain/pull/6106
1,755,549,282
PR_kwDOIPDwls5S7Dw_
6,106
Update web_base.py
{ "login": "jackfrost1411", "id": 48760936, "node_id": "MDQ6VXNlcjQ4NzYwOTM2", "avatar_url": "https://avatars.githubusercontent.com/u/48760936?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jackfrost1411", "html_url": "https://github.com/jackfrost1411", "followers_url": "https://api.github.com/users/jackfrost1411/followers", "following_url": "https://api.github.com/users/jackfrost1411/following{/other_user}", "gists_url": "https://api.github.com/users/jackfrost1411/gists{/gist_id}", "starred_url": "https://api.github.com/users/jackfrost1411/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jackfrost1411/subscriptions", "organizations_url": "https://api.github.com/users/jackfrost1411/orgs", "repos_url": "https://api.github.com/users/jackfrost1411/repos", "events_url": "https://api.github.com/users/jackfrost1411/events{/privacy}", "received_events_url": "https://api.github.com/users/jackfrost1411/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-13T19:45:57
2023-06-13T19:55:19
2023-06-13T19:55:19
CONTRIBUTOR
null
We propose an enhancement to the web-based loader initialize method by introducing a "verify" option. This enhancement addresses the issue of SSL verification errors encountered in certain web pages. By providing users with the option to set the verify parameter to False, we offer greater flexibility and control. <!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- If you're adding a new integration, please include: 1. a test for the integration - favor unit tests that does not rely on network access. 2. an example notebook showing its use See contribution guidelines for more information on how to write tests, lint etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> #### Who can review? @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6106/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6106/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6106", "html_url": "https://github.com/langchain-ai/langchain/pull/6106", "diff_url": "https://github.com/langchain-ai/langchain/pull/6106.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6106.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/6105
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6105/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6105/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6105/events
https://github.com/langchain-ai/langchain/issues/6105
1,755,410,046
I_kwDOIPDwls5ooW5-
6,105
Incorrect syntax near the keyword 'TO'
{ "login": "tire0011", "id": 228717, "node_id": "MDQ6VXNlcjIyODcxNw==", "avatar_url": "https://avatars.githubusercontent.com/u/228717?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tire0011", "html_url": "https://github.com/tire0011", "followers_url": "https://api.github.com/users/tire0011/followers", "following_url": "https://api.github.com/users/tire0011/following{/other_user}", "gists_url": "https://api.github.com/users/tire0011/gists{/gist_id}", "starred_url": "https://api.github.com/users/tire0011/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tire0011/subscriptions", "organizations_url": "https://api.github.com/users/tire0011/orgs", "repos_url": "https://api.github.com/users/tire0011/repos", "events_url": "https://api.github.com/users/tire0011/events{/privacy}", "received_events_url": "https://api.github.com/users/tire0011/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
5
2023-06-13T18:04:04
2023-10-21T16:08:40
2023-10-21T16:08:40
NONE
null
### System Info langchain version 0.0.198, windows, SQL Server 16.0.4025.1 windows docker container (linux) In the output I get the message: Incorrect syntax near the keyword 'TO' and program not ends correctly ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction **my python program:** server = 'localhost,1435' database = 'MyDB' username = 'me' pwd = '****' driver= 'ODBC Driver 17 for SQL Server' def db_instance(): #Creating SQLAlchemy connection sting connectionString = 'DRIVER='+driver+';SERVER=tcp:'+server+';PORT=1433;DATABASE='+database+';UID='+username+';PWD='+ pwd+';Encrypt=no;TrustServerCertificate=no;Connection Timeout=30;' print(connectionString) params = urllib.parse.quote_plus(connectionString) conn_str = 'mssql+pyodbc:///?odbc_connect={}'.format(params) db_instance = SQLDatabase.from_uri(conn_str,schema='ALG') return db_instance db = db_instance() print(db.table_info) # Setting API Key and API endpoint for OpenAI os.environ['OPENAI_API_TOKEN'] = '....' llm = OpenAI(model_name='text-davinci-003') # LangChain Agent toolkit = SQLDatabaseToolkit(db=db, llm = llm) agent_executor = create_sql_agent( llm= llm, toolkit=toolkit, verbose=True, top_k = 5 ) # Test agent_executor.run("'how many Messages are in the DB'") ### Expected behavior **Output from terminal:** SELECT Message_0_0.*, Message_0_100001.*, Message_0_100002.*, Message_0_100003.*, Message_0_100004.*, Message_0_100000.*, Message_0_99999.* FROM Message_0_0 INNER JOIN Message_0_100001 ON Message_0_0.id = Message_0_100001.id INNER JOIN Message_0_100002 ON Message_0_0.id = Message_0_100002.id INNER JOIN Message_0_100003 ON Message_0_0.id = Message_0_100003.id INNER JOIN Message_0_100004 ON Message_0_0.id = Message_0_100004.id INNER JOIN Message_0_100000 ON Message_0_0.id = Message_0_100000.id INNER JOIN Message_0_99999 ON Message_0_0.id = Message_0_99999.id Thought: The query looks correct, I can now execute it. Action: query_sql_db Action Input: SELECT Message_0_0.*, Message_0_100001.*, Message_0_100002.*, Message_0_100003.*, Message_0_100004.*, Message_0_100000.*, Message_0_99999.* FROM Message_0_0 INNER JOIN Message_0_100001 ON Message_0_0.id = Message_0_100001.id INNER JOIN Message_0_100002 ON Message_0_0.id = Message_0_100002.id INNER JOIN Message_0_100003 ON Message_0_0.id = Message_0_100003.id INNER JOIN Message_0_100004 ON Message_0_0.id = Message_0_100004.id INNER JOIN Message_0_100000 ON Message_0_0.id = Message_0_100000.id INNER JOIN Message_0_99999 ON Message_0_0.id = Message_0_99999.id Obs Observation: Error: (pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near the keyword 'TO'. (156) (SQLExecDirectW)") [SQL: SET search_path TO ALG] (Background on this error at: https://sqlalche.me/e/20/f405) Thought: I should double check my query again with the query checker. Action: query_checker_sql_db Action Input: SELECT Message_0_0.*, Message_0_100001.*, Message_0_100002.*, Message_0_100003.*, Message_0_100004.*, Message_0_100000.*, Message_0_99999.* FROM Message_0_0 INNER JOIN Message_0_100001 ON Message_0_0.id = Message_0_100001.id INNER JOIN Message_0_100002 ON Message_0_0.id = Message_0_100002.id INNER JOIN Message_0_100003 ON Message_0_0.id = Message_0_100003.id INNER JOIN Message_0_100004 ON Message_0_0.id = Message_0_100004.id INNER JOIN Message_0_100000 ON Message_0_0.id = Message_0_100000.id INNER JOIN Message_0_99999 ON Message_0_0.id = Message_0_99 The message query looks correct it should get the correct count. **SQL server trace contains also the query:** SET search_path TO ALG I found that string in the github repo under /sql_database.py line 347 ``` with self._engine.begin() as connection: 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}") ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6105/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6105/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6104
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6104/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6104/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6104/events
https://github.com/langchain-ai/langchain/issues/6104
1,755,398,854
I_kwDOIPDwls5ooULG
6,104
Support and make use of function calling and other OpenAI updates on 2023-06-13
{ "login": "danielgwilson", "id": 11265967, "node_id": "MDQ6VXNlcjExMjY1OTY3", "avatar_url": "https://avatars.githubusercontent.com/u/11265967?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danielgwilson", "html_url": "https://github.com/danielgwilson", "followers_url": "https://api.github.com/users/danielgwilson/followers", "following_url": "https://api.github.com/users/danielgwilson/following{/other_user}", "gists_url": "https://api.github.com/users/danielgwilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/danielgwilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danielgwilson/subscriptions", "organizations_url": "https://api.github.com/users/danielgwilson/orgs", "repos_url": "https://api.github.com/users/danielgwilson/repos", "events_url": "https://api.github.com/users/danielgwilson/events{/privacy}", "received_events_url": "https://api.github.com/users/danielgwilson/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
8
2023-06-13T17:57:29
2023-09-23T16:05:43
2023-09-23T16:05:42
NONE
null
### Feature request OpenAI released several major updates today (2023-06-13) that likely have major implications for what is possible. At the very least, it will make things more reliable. Here's a shortlist from [the blog post](https://openai.com/blog/function-calling-and-other-api-updates): - Dramatically improved function calling support + JSON consistency - `gpt-3.5-turbo` with a 16K context window (🤯) - Token cost changes for completions and embeddings - Upcoming deprecation for March-versioned models ### Motivation The release of OpenAI's blog post found here: https://openai.com/blog/function-calling-and-other-api-updates I'm adding this issue mostly to flag and track this OpenAI release and kick off a forum for discussion. ### Your contribution Can potentially add PRs but haven't contributed here previously.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6104/reactions", "total_count": 21, "+1": 21, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6104/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/6103
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6103/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6103/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6103/events
https://github.com/langchain-ai/langchain/pull/6103
1,755,381,783
PR_kwDOIPDwls5S6fCe
6,103
Harrison/notebook functions
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
0
2023-06-13T17:45:13
2023-06-13T17:52:56
2023-06-13T17:52:55
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6103/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/6103/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6103", "html_url": "https://github.com/langchain-ai/langchain/pull/6103", "diff_url": "https://github.com/langchain-ai/langchain/pull/6103.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6103.patch", "merged_at": "2023-06-13T17:52:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/6102
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6102/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6102/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6102/events
https://github.com/langchain-ai/langchain/pull/6102
1,755,380,000
PR_kwDOIPDwls5S6epa
6,102
bump version to 199
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5010622926, "node_id": "LA_kwDOIPDwls8AAAABKqgJzg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/release", "name": "release", "color": "07D4BE", "default": false, "description": "" } ]
closed
false
null
[]
null
0
2023-06-13T17:43:56
2023-06-13T17:50:34
2023-06-13T17:50:33
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6102/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6102/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/6102", "html_url": "https://github.com/langchain-ai/langchain/pull/6102", "diff_url": "https://github.com/langchain-ai/langchain/pull/6102.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/6102.patch", "merged_at": "2023-06-13T17:50:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/6101
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/6101/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/6101/comments
https://api.github.com/repos/langchain-ai/langchain/issues/6101/events
https://github.com/langchain-ai/langchain/issues/6101
1,755,378,721
I_kwDOIPDwls5ooPQh
6,101
Validation Error
{ "login": "talraney", "id": 99226070, "node_id": "U_kgDOBeoR1g", "avatar_url": "https://avatars.githubusercontent.com/u/99226070?v=4", "gravatar_id": "", "url": "https://api.github.com/users/talraney", "html_url": "https://github.com/talraney", "followers_url": "https://api.github.com/users/talraney/followers", "following_url": "https://api.github.com/users/talraney/following{/other_user}", "gists_url": "https://api.github.com/users/talraney/gists{/gist_id}", "starred_url": "https://api.github.com/users/talraney/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/talraney/subscriptions", "organizations_url": "https://api.github.com/users/talraney/orgs", "repos_url": "https://api.github.com/users/talraney/repos", "events_url": "https://api.github.com/users/talraney/events{/privacy}", "received_events_url": "https://api.github.com/users/talraney/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
5
2023-06-13T17:43:13
2023-10-12T16:08:42
2023-10-12T16:08:41
NONE
null
### System Info Python Version: 3.9.11 Langchain version = 0.0.199 I'm getting a validation error with GPT4All where I'm following the instructions of the notebook and installed all packages but apparently there's some parameters called n_parts that isn't part of the GPT4All attribute ``` from langchain import PromptTemplate, LLMChain from langchain.llms import GPT4All from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler import requests from pathlib import Path from tqdm import tqdm Path(local_path).parent.mkdir(parents=True, exist_ok=True) url = 'http://gpt4all.io/models/ggml-gpt4all-l13b-snoozy.bin' response = requests.get(url, stream=True) with open(local_path, 'wb') as f: for chunk in tqdm(response.iter_content(chunk_size=8192)): if chunk: f.write(chunk) template = """Question: {question} Answer: Let's think step by step.""" prompt = PromptTemplate(template=template, input_variables=["question"]) callbacks = [StreamingStdOutCallbackHandler()] llm = GPT4All(model=local_path, callbacks=callbacks, verbose=True) llm = GPT4All(model=local_path, backend='gptj', callbacks=callbacks, verbose=True) llm_chain = LLMChain(prompt=prompt, llm=llm) question = "What NFL team won the Super Bowl in the year Justin Bieber was born?" llm_chain.run(question) ``` and this is the error I get ``` Exception ignored in: <function Model.__del__ at 0x2aaaed28aa60> Traceback (most recent call last): File "/home/traney/.conda/envs/openai/lib/python3.9/site-packages/pyllamacpp/model.py", line 402, in __del__ if self._ctx: AttributeError: 'GPT4All' object has no attribute '_ctx' Exception ignored in: <function Model.__del__ at 0x2aaaed28aa60> Traceback (most recent call last): File "/home/traney/.conda/envs/openai/lib/python3.9/site-packages/pyllamacpp/model.py", line 402, in __del__ if self._ctx: AttributeError: 'GPT4All' object has no attribute '_ctx' --------------------------------------------------------------------------- ValidationError Traceback (most recent call last) Cell In[31], line 11 9 callbacks = [StreamingStdOutCallbackHandler()] 10 # Verbose is required to pass to the callback manager ---> 11 llm = GPT4All(model=local_path, callbacks=callbacks, verbose=True) 12 # If you want to use a custom model add the backend parameter 13 # Check https://docs.gpt4all.io/gpt4all_python.html for supported backends 14 llm = GPT4All(model=local_path, backend='gptj', callbacks=callbacks, verbose=True) File ~/.conda/envs/openai/lib/python3.9/site-packages/pydantic/main.py:341, in pydantic.main.BaseModel.__init__() ValidationError: 1 validation error for GPT4All __root__ __init__() got an unexpected keyword argument 'n_parts' (type=type_error) ``` I installed all relevant packages and checked the previous reports for these issues but I just get different errors from not being able to find the model, to validation error to GPT4All not existing. Is there any new things I have to do to implement GPT4All on langchain? ### Who can help? _No response_ ### Information - [X] 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 - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Follow code above in Jupyter Notebook ### Expected behavior the chat model should answer the question
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/6101/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/6101/timeline
null
not_planned
null
null