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/15347
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15347/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15347/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15347/events
https://github.com/langchain-ai/langchain/issues/15347
2,060,810,975
I_kwDOIPDwls561Xrf
15,347
DOC: Summarization 'map_reduce' - Can't load tokenizer for 'gpt2'
{ "login": "analyticsinsights", "id": 117514870, "node_id": "U_kgDOBwEidg", "avatar_url": "https://avatars.githubusercontent.com/u/117514870?v=4", "gravatar_id": "", "url": "https://api.github.com/users/analyticsinsights", "html_url": "https://github.com/analyticsinsights", "followers_url": "https://api.github.com/users/analyticsinsights/followers", "following_url": "https://api.github.com/users/analyticsinsights/following{/other_user}", "gists_url": "https://api.github.com/users/analyticsinsights/gists{/gist_id}", "starred_url": "https://api.github.com/users/analyticsinsights/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/analyticsinsights/subscriptions", "organizations_url": "https://api.github.com/users/analyticsinsights/orgs", "repos_url": "https://api.github.com/users/analyticsinsights/repos", "events_url": "https://api.github.com/users/analyticsinsights/events{/privacy}", "received_events_url": "https://api.github.com/users/analyticsinsights/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
4
2023-12-30T17:44:16
2024-01-04T15:35:08
null
NONE
null
### Issue with current documentation: The [documentation](https://python.langchain.com/docs/use_cases/summarization) describes the different options for summarizing a text, for longer texts the 'map_reduce' option is suggested. It is mentioned further under 'Go deeper' that it is possible to use different LLMs via the `llm` parameter. This seems to work well using the code below with the `chain_type='stuff'` parameter and, in particular, using a local model (in the example below [this model](https://huggingface.co./TheBloke/Llama-2-7B-Chat-GGUF) is used). ``` from langchain.document_loaders import PyPDFLoader from langchain.llms import CTransformers from langchain.chains.summarize import load_summarize_chain # load a PDF-file loader = PyPDFLoader("C:/xyz.pdf") docs = loader.load() # use a local LLAMA2 model llm = CTransformers(model='./models/llama-2-7b-chat.Q5_K_M.gguf', model_type='llama', config={'context_length': 4096, 'max_new_tokens': 256, 'temperature': 0}, local_files_only=True) # summarise the text (this works only if it fits into the context length of ~4000 tokens) chain = load_summarize_chain(llm, chain_type="stuff") chain.run(docs) ``` However, surprisingly, it returns the following error when using the `chain_type='map_reduce'` parameter: 'OSError: Can't load tokenizer for 'gpt2'. If you were trying to load it from 'https://huggingface.co./models', make sure you don't have a local directory with the same name. Otherwise, make sure 'gpt2' is the correct path to a directory containing all relevant files for a GPT2TokenizerFast tokenizer.' The suggestion [mentioned in this issue on Github](https://github.com/langchain-ai/langchain/issues/9273) doesn't work for the local model used above. It would be great to have more specific information in the LangChain documentation on (1) how to perform text summarization with LangChain using different LLMs, and (2) specifically for using local models that don't require an internet connection and/or require gpt2. Since the above code works with the parameter `chain_type='stuff'` but not with the parameter `chain_type='map_reduce'`, it would be important to explain what happens under the hood so users can make this work for local models. ### Idea or request for content: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15347/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15347/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15345
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15345/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15345/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15345/events
https://github.com/langchain-ai/langchain/issues/15345
2,060,781,653
I_kwDOIPDwls561QhV
15,345
Issue: <Saving intermediate variable chains ' prefix>
{ "login": "aypetrunin", "id": 136048128, "node_id": "U_kgDOCBvuAA", "avatar_url": "https://avatars.githubusercontent.com/u/136048128?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aypetrunin", "html_url": "https://github.com/aypetrunin", "followers_url": "https://api.github.com/users/aypetrunin/followers", "following_url": "https://api.github.com/users/aypetrunin/following{/other_user}", "gists_url": "https://api.github.com/users/aypetrunin/gists{/gist_id}", "starred_url": "https://api.github.com/users/aypetrunin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aypetrunin/subscriptions", "organizations_url": "https://api.github.com/users/aypetrunin/orgs", "repos_url": "https://api.github.com/users/aypetrunin/repos", "events_url": "https://api.github.com/users/aypetrunin/events{/privacy}", "received_events_url": "https://api.github.com/users/aypetrunin/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
2
2023-12-30T15:47:22
2023-12-30T16:27:47
null
NONE
null
### Issue you'd like to raise. Help me understand how I can save the intermediate data of chain execution results? ![output 4](https://github.com/langchain-ai/langchain/assets/136048128/be97b9eb-0537-4e76-bcd2-b616bfdd6a5d) ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15345/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15345/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15344
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15344/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15344/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15344/events
https://github.com/langchain-ai/langchain/pull/15344
2,060,771,029
PR_kwDOIPDwls5i-Ewf
15,344
google-vertexai[minor]: added safety_settings property to gemini wrapper
{ "login": "izapolsk", "id": 21039333, "node_id": "MDQ6VXNlcjIxMDM5MzMz", "avatar_url": "https://avatars.githubusercontent.com/u/21039333?v=4", "gravatar_id": "", "url": "https://api.github.com/users/izapolsk", "html_url": "https://github.com/izapolsk", "followers_url": "https://api.github.com/users/izapolsk/followers", "following_url": "https://api.github.com/users/izapolsk/following{/other_user}", "gists_url": "https://api.github.com/users/izapolsk/gists{/gist_id}", "starred_url": "https://api.github.com/users/izapolsk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/izapolsk/subscriptions", "organizations_url": "https://api.github.com/users/izapolsk/orgs", "repos_url": "https://api.github.com/users/izapolsk/repos", "events_url": "https://api.github.com/users/izapolsk/events{/privacy}", "received_events_url": "https://api.github.com/users/izapolsk/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." }, { "id": 6348691034, "node_id": "LA_kwDOIPDwls8AAAABemlWWg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner", "name": "partner", "color": "ededed", "default": false, "description": null } ]
open
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
12
2023-12-30T15:04:38
2024-01-18T04:25:24
null
NONE
null
**Description:** Gemini model has quite annoying default safety_settings settings. In addition, current VertexAI class doesn't provide a property to override such settings. So, this PR aims to - add safety_settings property to VertexAI - fix issue with incorrect LLM output parsing when LLM responds with appropriate 'blocked' response - fix issue with incorrect parsing LLM output when Gemini API blocks prompt itself as inappropriate - add safety_settings related tests I'm not enough familiar with langchain code base and guidelines. So, any comments and/or suggestions are very welcome. **Issue:** it will likely fix #14841
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15344/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/15344/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15344", "html_url": "https://github.com/langchain-ai/langchain/pull/15344", "diff_url": "https://github.com/langchain-ai/langchain/pull/15344.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15344.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15342
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15342/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15342/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15342/events
https://github.com/langchain-ai/langchain/issues/15342
2,060,716,887
I_kwDOIPDwls561AtX
15,342
DOC: Prompt Templates "Page Not Found"
{ "login": "3051360", "id": 131248521, "node_id": "U_kgDOB9KxiQ", "avatar_url": "https://avatars.githubusercontent.com/u/131248521?v=4", "gravatar_id": "", "url": "https://api.github.com/users/3051360", "html_url": "https://github.com/3051360", "followers_url": "https://api.github.com/users/3051360/followers", "following_url": "https://api.github.com/users/3051360/following{/other_user}", "gists_url": "https://api.github.com/users/3051360/gists{/gist_id}", "starred_url": "https://api.github.com/users/3051360/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/3051360/subscriptions", "organizations_url": "https://api.github.com/users/3051360/orgs", "repos_url": "https://api.github.com/users/3051360/repos", "events_url": "https://api.github.com/users/3051360/events{/privacy}", "received_events_url": "https://api.github.com/users/3051360/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
open
false
null
[]
null
3
2023-12-30T11:14:48
2024-01-07T20:59:57
null
NONE
null
### Issue with current documentation: A few days back, I was referring to the [Prompt templates](https://python.langchain.com/docs/modules/model_io/prompts/prompt_templates/) page which now shows: "**Page Not Found**" ### Idea or request for content: I understand that LangChain is an evolving framework undergoing continuous development. - Could we consider implementing versioning for the documentation? This would allow users to access specific documentation versions. - Alternatively, if a section undergoes modification, we could preserve the existing documentation and label it as 'Legacy,' ensuring clarity about deprecated practices.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15342/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/15342/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15341
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15341/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15341/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15341/events
https://github.com/langchain-ai/langchain/issues/15341
2,060,706,496
I_kwDOIPDwls560-LA
15,341
_OllamaCommon contains top_p with int-restriction
{ "login": "andrePankraz", "id": 2312884, "node_id": "MDQ6VXNlcjIzMTI4ODQ=", "avatar_url": "https://avatars.githubusercontent.com/u/2312884?v=4", "gravatar_id": "", "url": "https://api.github.com/users/andrePankraz", "html_url": "https://github.com/andrePankraz", "followers_url": "https://api.github.com/users/andrePankraz/followers", "following_url": "https://api.github.com/users/andrePankraz/following{/other_user}", "gists_url": "https://api.github.com/users/andrePankraz/gists{/gist_id}", "starred_url": "https://api.github.com/users/andrePankraz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andrePankraz/subscriptions", "organizations_url": "https://api.github.com/users/andrePankraz/orgs", "repos_url": "https://api.github.com/users/andrePankraz/repos", "events_url": "https://api.github.com/users/andrePankraz/events{/privacy}", "received_events_url": "https://api.github.com/users/andrePankraz/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-12-30T10:29:06
2024-01-15T19:59:40
2024-01-15T19:59:40
NONE
null
### System Info LangChain 0.0.353 ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Cannot set top_p to useful values via ChatOllama(top_p=0.3), is reduced to value 0 because it's an int: top_p: Optional[int] = None top_p must be float. ### Expected behavior top_p must be a float, 0.3 should appear in ollama log.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15341/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15341/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15339
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15339/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15339/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15339/events
https://github.com/langchain-ai/langchain/issues/15339
2,060,626,887
I_kwDOIPDwls560qvH
15,339
Issue: Not getting desired output while implementing memory
{ "login": "deepak-habilelabs", "id": 137885024, "node_id": "U_kgDOCDf1YA", "avatar_url": "https://avatars.githubusercontent.com/u/137885024?v=4", "gravatar_id": "", "url": "https://api.github.com/users/deepak-habilelabs", "html_url": "https://github.com/deepak-habilelabs", "followers_url": "https://api.github.com/users/deepak-habilelabs/followers", "following_url": "https://api.github.com/users/deepak-habilelabs/following{/other_user}", "gists_url": "https://api.github.com/users/deepak-habilelabs/gists{/gist_id}", "starred_url": "https://api.github.com/users/deepak-habilelabs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/deepak-habilelabs/subscriptions", "organizations_url": "https://api.github.com/users/deepak-habilelabs/orgs", "repos_url": "https://api.github.com/users/deepak-habilelabs/repos", "events_url": "https://api.github.com/users/deepak-habilelabs/events{/privacy}", "received_events_url": "https://api.github.com/users/deepak-habilelabs/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5924999838, "node_id": "LA_kwDOIPDwls8AAAABYShSng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma", "name": "integration: chroma", "color": "B78AF8", "default": false, "description": "Related to ChromaDB" } ]
open
false
null
[]
null
7
2023-12-30T04:32:17
2023-12-30T05:26:39
null
NONE
null
### Issue you'd like to raise. `below is my code for generating custom prompt which takes context and user query and we pass it into model: def generate_custom_prompt(new_project_qa,query,name,not_uuid): check = query.lower() result = new_project_qa(query) relevant_document = result['source_documents'] context_text="\n\n---\n\n".join([doc.page_content for doc in relevant_document]) # print(context_text,"context_text") user_experience_inst = UserExperience.objects.get(not_uuid=not_uuid) greetings = ['hi', 'hello', 'hey', 'hui', 'hiiii', 'hii', 'hiii', 'heyyy'] if check in greetings: custom_prompt_template = f""" Just simply reply with "Hello {name}! How can I assist you today?" """ elif check not in greetings and user_experience_inst.custom_prompt: custom_prompt_template = f"""Answer the question based only on following context: ```{context_text} ``` You are a chatbot designed to provide answers to User's Questions:```{check}```, delimited by triple backticks. Generate your answer to match the user's requirements: {user_experience_inst.custom_prompt} If you encounter a question for which you don't know the answer, please respond with 'I don't know' and refrain from making up an answer. - Before saying 'I don't know,' please re-verify your vector store to ensure the answer is not present in the database. Remember, your goal is to assist the user in the best way possible. If the question is unclear or ambiguous, feel free to ask for clarification. User's Question: ```{check}``` AI Answer:""" else: # Create the custom prompt template custom_prompt_template = f"""Generate your response exclusively from the provided context: {{context_text}}. You function as a chatbot specializing in delivering detailed answers to the User's Question: ```{{check}} ```, enclosed within triple backticks. Generate your answer in points in the following format: 1. Point no 1 1.1 Its subpoint in details 1.2 More information if needed. 2. Point no 2 2.1 Its subpoint in details 2.2 More information if needed. … N. Another main point. If you encounter a question for which you don't know the answer based on the predefined points, please respond with 'I don't know' and refrain from making up an answer. However, if the answer is not present in the predefined points, then Provide comprehensive information related to the user's query. Remember, your goal is to assist the user in the best way possible. If the question is unclear or ambiguous, you can ask for clarification. User's Question: ```{{check}} ``` AI Answer:""" # Create the PromptTemplate custom_prompt = ChatPromptTemplate.from_template(custom_prompt_template) formatted_prompt = custom_prompt.format(context_text=context_text, check=check) return formatted_prompt below is my conversation chain where i am inplementing memory def retreival_qa_chain(chroma_db_path): embedding = OpenAIEmbeddings() vectordb = Chroma(persist_directory=chroma_db_path, embedding_function=embedding) llm = ChatOpenAI(temperature=0.1) memory = ConversationBufferMemory(llm=llm,output_key='answer',memory_key='chat_history',return_messages=True) retriever = vectordb.as_retriever(search_kwargs={"k": 2}) qa = ConversationalRetrievalChain.from_llm(llm=llm,memory=memory,chain_type="stuff",retriever=retriever,return_source_documents=True,get_chat_history=lambda h : h,verbose=True) # qa = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever,return_source_documents=True) return qa but I am not getting desired output as expected ` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15339/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15339/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15338
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15338/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15338/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15338/events
https://github.com/langchain-ai/langchain/pull/15338
2,060,502,197
PR_kwDOIPDwls5i9T4o
15,338
<langchain>: add checks for qaSourcesChain to check if the returned answer referen…
{ "login": "mehrdad-es", "id": 124646200, "node_id": "U_kgDOB23zOA", "avatar_url": "https://avatars.githubusercontent.com/u/124646200?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mehrdad-es", "html_url": "https://github.com/mehrdad-es", "followers_url": "https://api.github.com/users/mehrdad-es/followers", "following_url": "https://api.github.com/users/mehrdad-es/following{/other_user}", "gists_url": "https://api.github.com/users/mehrdad-es/gists{/gist_id}", "starred_url": "https://api.github.com/users/mehrdad-es/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mehrdad-es/subscriptions", "organizations_url": "https://api.github.com/users/mehrdad-es/orgs", "repos_url": "https://api.github.com/users/mehrdad-es/repos", "events_url": "https://api.github.com/users/mehrdad-es/events{/privacy}", "received_events_url": "https://api.github.com/users/mehrdad-es/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
2023-12-30T02:09:07
2024-01-01T21:34:50
2024-01-01T21:34:50
NONE
null
…ces the source from which it returning an answer <!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** when using QAWithSourcesChain I realized many times that the language model would return results which was not in the source being referenced. The example in this PR checks if the LLM refers to the actual source by mentioning its name. For example, if you ask an LLM tell me something from Book A the LLM must mention something from Book A. The implementation presented is preliminary and has to further developed but I want your general thoughts on the matter :) , - **Issue:** hallucination of an answer which is not grounded in the source by the chain, - **Dependencies:** None, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15338/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15338/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15338", "html_url": "https://github.com/langchain-ai/langchain/pull/15338", "diff_url": "https://github.com/langchain-ai/langchain/pull/15338.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15338.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15337
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15337/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15337/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15337/events
https://github.com/langchain-ai/langchain/pull/15337
2,060,487,247
PR_kwDOIPDwls5i9ROw
15,337
Langchain: FAISS Translator for Self Query Retriver
{ "login": "keenborder786", "id": 45242107, "node_id": "MDQ6VXNlcjQ1MjQyMTA3", "avatar_url": "https://avatars.githubusercontent.com/u/45242107?v=4", "gravatar_id": "", "url": "https://api.github.com/users/keenborder786", "html_url": "https://github.com/keenborder786", "followers_url": "https://api.github.com/users/keenborder786/followers", "following_url": "https://api.github.com/users/keenborder786/following{/other_user}", "gists_url": "https://api.github.com/users/keenborder786/gists{/gist_id}", "starred_url": "https://api.github.com/users/keenborder786/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/keenborder786/subscriptions", "organizations_url": "https://api.github.com/users/keenborder786/orgs", "repos_url": "https://api.github.com/users/keenborder786/repos", "events_url": "https://api.github.com/users/keenborder786/events{/privacy}", "received_events_url": "https://api.github.com/users/keenborder786/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false } ]
null
4
2023-12-30T01:10:51
2024-01-15T19:22:53
2024-01-15T19:22:52
CONTRIBUTOR
null
**Description:** Issue #15331 pointed out that there was no support for FAISS for `SelfQueryRetriever`. Therefore, I decided to add the desired support. I understand that FAISS does not have an internal query language like other vector stores (e.g., Chroma), but I noticed that the current implementation of the `FAISS` VectorStore Class in Langchain allows the user to filter documents based on given metadata attributes. Therefore, the translator simply translates the structured query according to the logic of filtering defined in `similarity_search_with_score_by_vector` and `max_marginal_relevance_search_with_score_by_vector`, which filters the documents for the specific values present in metadata keys. **Issue:** #15331 PS: I have not added the docs for this one. Only once you see the value in adding this translator, I will add the docs.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15337/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15337/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15337", "html_url": "https://github.com/langchain-ai/langchain/pull/15337", "diff_url": "https://github.com/langchain-ai/langchain/pull/15337.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15337.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15336
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15336/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15336/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15336/events
https://github.com/langchain-ai/langchain/pull/15336
2,060,481,617
PR_kwDOIPDwls5i9QHo
15,336
Catch type errors in dumps/dumpd
{ "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 }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-30T00:48:10
2023-12-30T01:37:13
2023-12-30T01:37:13
COLLABORATOR
null
These can happen for edge cases not covered by `default` handler (eg. "strange" keys in dicts) <!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15336/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15336/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15336", "html_url": "https://github.com/langchain-ai/langchain/pull/15336", "diff_url": "https://github.com/langchain-ai/langchain/pull/15336.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15336.patch", "merged_at": "2023-12-30T01:37:13" }
https://api.github.com/repos/langchain-ai/langchain/issues/15335
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15335/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15335/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15335/events
https://github.com/langchain-ai/langchain/pull/15335
2,060,479,965
PR_kwDOIPDwls5i9PzK
15,335
refactor `community` memory
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
closed
false
null
[]
null
5
2023-12-30T00:41:30
2024-01-02T23:52:43
2024-01-02T23:52:42
COLLABORATOR
null
- created `language_community.memory` - moved zep and motorhed from `langchain.memory` to `language_community.memory` - created `language_core.memory` - moved several base classes into `language_core.memory` - moved `ChatMessageHistory` from `langchain_community` to `langchain_core`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15335/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15335/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15335", "html_url": "https://github.com/langchain-ai/langchain/pull/15335", "diff_url": "https://github.com/langchain-ai/langchain/pull/15335.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15335.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15334
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15334/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15334/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15334/events
https://github.com/langchain-ai/langchain/pull/15334
2,060,466,339
PR_kwDOIPDwls5i9NKr
15,334
Fetch runnable config from context var inside runnable lambda and runnable generator
{ "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 }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714130, "node_id": "LA_kwDOIPDwls8AAAABc3-rkg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL", "name": "size:XL", "color": "D4C5F9", "default": false, "description": "This PR changes 500-999 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T23:52:44
2024-01-02T20:16:40
2024-01-02T20:16:39
COLLABORATOR
null
- easier to write custom logic/loops with automatic tracing - if you don't want to streaming support write a regular function and pass to RunnableLambda - if you do want streaming write a generator and pass it to RunnableGenerator ```py import json from typing import AsyncIterator from langchain_core.messages import BaseMessage, FunctionMessage, HumanMessage from langchain_core.agents import AgentAction, AgentFinish from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder from langchain_core.runnables import Runnable, RunnableGenerator, RunnablePassthrough from langchain_core.tools import BaseTool from langchain.agents.output_parsers import OpenAIFunctionsAgentOutputParser from langchain.chat_models import ChatOpenAI from langchain.tools.render import format_tool_to_openai_function def _get_tavily(): from langchain.tools.tavily_search import TavilySearchResults from langchain.utilities.tavily_search import TavilySearchAPIWrapper tavily_search = TavilySearchAPIWrapper() return TavilySearchResults(api_wrapper=tavily_search) async def _agent_executor_generator( input: AsyncIterator[list[BaseMessage]], *, max_iterations: int = 10, tools: dict[str, BaseTool], agent: Runnable[list[BaseMessage], BaseMessage], parser: Runnable[BaseMessage, AgentAction | AgentFinish], ) -> AsyncIterator[BaseMessage]: messages = [m async for mm in input for m in mm] for _ in range(max_iterations): next_message = await agent.ainvoke(messages) yield next_message messages.append(next_message) parsed = await parser.ainvoke(next_message) if isinstance(parsed, AgentAction): result = await tools[parsed.tool].ainvoke(parsed.tool_input) next_message = FunctionMessage(name=parsed.tool, content=json.dumps(result)) yield next_message messages.append(next_message) elif isinstance(parsed, AgentFinish): return def get_agent_executor(tools: list[BaseTool], system_message: str): llm = ChatOpenAI(model="gpt-4-1106-preview", temperature=0, streaming=True) prompt = ChatPromptTemplate.from_messages( [ ("system", system_message), MessagesPlaceholder(variable_name="messages"), ] ) llm_with_tools = llm.bind( functions=[format_tool_to_openai_function(t) for t in tools] ) agent = {"messages": RunnablePassthrough()} | prompt | llm_with_tools parser = OpenAIFunctionsAgentOutputParser() executor = RunnableGenerator(_agent_executor_generator) return executor.bind( tools={tool.name for tool in tools}, agent=agent, parser=parser ) agent = get_agent_executor([_get_tavily()], "You are a very nice agent!") async def main(): async for message in agent.astream( [HumanMessage(content="whats the weather in sf tomorrow?")] ): print(message) if __name__ == "__main__": import asyncio asyncio.run(main()) ``` results in this trace https://smith.langchain.com/public/fa17f05d-9724-4d08-8fa1-750f8fcd051b/r
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15334/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15334/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15334", "html_url": "https://github.com/langchain-ai/langchain/pull/15334", "diff_url": "https://github.com/langchain-ai/langchain/pull/15334.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15334.patch", "merged_at": "2024-01-02T20:16:39" }
https://api.github.com/repos/langchain-ai/langchain/issues/15333
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15333/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15333/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15333/events
https://github.com/langchain-ai/langchain/issues/15333
2,060,459,074
I_kwDOIPDwls560BxC
15,333
This model's maximum context length is 4097 tokens, however you requested 4177 tokens
{ "login": "DonTizi", "id": 66443081, "node_id": "MDQ6VXNlcjY2NDQzMDgx", "avatar_url": "https://avatars.githubusercontent.com/u/66443081?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DonTizi", "html_url": "https://github.com/DonTizi", "followers_url": "https://api.github.com/users/DonTizi/followers", "following_url": "https://api.github.com/users/DonTizi/following{/other_user}", "gists_url": "https://api.github.com/users/DonTizi/gists{/gist_id}", "starred_url": "https://api.github.com/users/DonTizi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DonTizi/subscriptions", "organizations_url": "https://api.github.com/users/DonTizi/orgs", "repos_url": "https://api.github.com/users/DonTizi/repos", "events_url": "https://api.github.com/users/DonTizi/events{/privacy}", "received_events_url": "https://api.github.com/users/DonTizi/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 5932474361, "node_id": "LA_kwDOIPDwls8AAAABYZpf-Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone", "name": "integration: pinecone", "color": "BC53BE", "default": false, "description": "Related to Pinecone vector store integration" } ]
open
false
null
[]
null
1
2023-12-29T23:25:32
2023-12-29T23:32:56
null
NONE
null
### System Info New versions ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Start the code ### Expected behavior Hi , I'm trying to do a chain stuff query, but sometimes when I ask questions I have this error: openai.BadRequestError: Error code: 400 - {'error': {'message': "This model's maximum context length is 4097 tokens, however you requested 4177 tokens (3921 in your prompt; 256 for the completion). Please reduce your prompt; or completion length.", 'type': 'invalid_request_error', 'param': None, 'code': None}} How can I solve this ? Can I cut my prompt ? If yes how? Or Can I upgrade the max_token ? IF yes How please.. Here is my code: import getpass import os from langchain.document_loaders import TextLoader from langchain.embeddings.openai import OpenAIEmbeddings from langchain.text_splitter import CharacterTextSplitter from langchain.vectorstores import Pinecone from langchain_community.vectorstores import Pinecone from langchain_community.embeddings.openai import OpenAIEmbeddings import pinecone import sys # Set your Pinecone API key and environment pinecone_api = "API" pinecone_env = "API" # Set your OpenAI API key openai_api = "API" # Initialize Pinecone pinecone.init(api_key=pinecone_api, environment=pinecone_env) # Define the index name index_name = "rewind" # Check if the index already exists, if not, create it if index_name not in pinecone.list_indexes(): pinecone.create_index(name=index_name, metric="cosine", dimension=1536) # Initialize the OpenAIEmbeddings embeddings = OpenAIEmbeddings(api_key=openai_api) # Create or load the Pinecone index docsearch = Pinecone.from_existing_index(index_name, embeddings) # Perform similarity search query = sys.argv[1] if len(sys.argv) > 1 else "what Commits there is in github" text_splitter = CharacterTextSplitter(chunk_size=3000, chunk_overlap=0) docs = docsearch.similarity_search(query) docs = text_splitter.split_documents(docs) if __name__ == '__main__': results = docsearch.similarity_search(query) # Load the question answering chain from langchain.chains.question_answering import load_qa_chain from langchain.llms import OpenAI chain = load_qa_chain(OpenAI(), chain_type="stuff") answers = chain.run(input_documents=docs, question=query) print(answers)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15333/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15333/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15331
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15331/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15331/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15331/events
https://github.com/langchain-ai/langchain/issues/15331
2,060,431,327
I_kwDOIPDwls56z6_f
15,331
Self query retriever with Vector Store type <class 'langchain_community.vectorstores.faiss.FAISS'> not supported.
{ "login": "XariZaru", "id": 18338434, "node_id": "MDQ6VXNlcjE4MzM4NDM0", "avatar_url": "https://avatars.githubusercontent.com/u/18338434?v=4", "gravatar_id": "", "url": "https://api.github.com/users/XariZaru", "html_url": "https://github.com/XariZaru", "followers_url": "https://api.github.com/users/XariZaru/followers", "following_url": "https://api.github.com/users/XariZaru/following{/other_user}", "gists_url": "https://api.github.com/users/XariZaru/gists{/gist_id}", "starred_url": "https://api.github.com/users/XariZaru/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/XariZaru/subscriptions", "organizations_url": "https://api.github.com/users/XariZaru/orgs", "repos_url": "https://api.github.com/users/XariZaru/repos", "events_url": "https://api.github.com/users/XariZaru/events{/privacy}", "received_events_url": "https://api.github.com/users/XariZaru/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
4
2023-12-29T22:05:18
2024-01-11T22:59:30
2024-01-11T22:59:29
NONE
null
### System Info I've been trying to create a self query retriever so that I can look at metadata field info. This issue comes up. Should I be using another vector store to make this work? I can only really work with FAISS. I cannot use ChromaDB since my Python environment is limited to a previous version. ### Who can help? _No response_ ### 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 1. Create a FAISS Vectorstore DB 2. Create a metadata_field_info object and pass it to a SelfQuery object 3. Create LLM with this retriever ```python embedding_function = OpenAIEmbeddings(openai_api_key=OPENAI_API_KEY, model="text-embedding-ada-002") db = FAISS.load_local(input_dir + "/" + "storage/deploy/faiss-db", embedding_function)#, distance_strategy="COSINE", normalize_L2 = True) # retriever = KNNRetriever(vectorstore=db) llm = ChatOpenAI( temperature=0, verbose=False, openai_api_key=key, model_name="gpt-3.5-turbo" ) metadata_field_info = [ AttributeInfo( name="source", description="The document this chunk is from.", type="string", ), AttributeInfo( name="origin", description="The origin the document came from. Comes from either scraped websites like TheKinection.org, Kinecta.org or database files like Bancworks. Bancworks is the higher priority.", type="string", ), AttributeInfo( name="date_day", description="The day the document was uploaded.", type="integer", ), AttributeInfo( name="date_month", description="The month the document was uploaded.", type="integer", ), AttributeInfo( name="date_year", description="The year the document was uploaded.", type="integer", ), ] # retriever = db.as_retriever(search_type="similarity", search_kwargs={'k': 6}, metadata_field_info=metadata_field_info) retriever = SelfQueryRetriever.from_llm( llm, db, "Information about where documents originated from and when they were published.", metadata_field_info, verbose=True ) ``` ### Expected behavior Successfully create a SelfQuery retriever with FAISS vector store.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15331/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15331/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15330
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15330/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15330/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15330/events
https://github.com/langchain-ai/langchain/pull/15330
2,060,416,384
PR_kwDOIPDwls5i9DDw
15,330
Community: Newlines before bullets in IPYNB files (Vectara)
{ "login": "ofermend", "id": 1823547, "node_id": "MDQ6VXNlcjE4MjM1NDc=", "avatar_url": "https://avatars.githubusercontent.com/u/1823547?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ofermend", "html_url": "https://github.com/ofermend", "followers_url": "https://api.github.com/users/ofermend/followers", "following_url": "https://api.github.com/users/ofermend/following{/other_user}", "gists_url": "https://api.github.com/users/ofermend/gists{/gist_id}", "starred_url": "https://api.github.com/users/ofermend/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ofermend/subscriptions", "organizations_url": "https://api.github.com/users/ofermend/orgs", "repos_url": "https://api.github.com/users/ofermend/repos", "events_url": "https://api.github.com/users/ofermend/events{/privacy}", "received_events_url": "https://api.github.com/users/ofermend/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T21:37:37
2023-12-30T22:04:04
2023-12-30T22:04:04
CONTRIBUTOR
null
- **Description:** updated all Vectara IPYNB files so that bullets look okay in docs (added newline) - **Twitter handle:** @ofermend
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15330/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15330/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15330", "html_url": "https://github.com/langchain-ai/langchain/pull/15330", "diff_url": "https://github.com/langchain-ai/langchain/pull/15330.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15330.patch", "merged_at": "2023-12-30T22:04:04" }
https://api.github.com/repos/langchain-ai/langchain/issues/15329
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15329/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15329/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15329/events
https://github.com/langchain-ai/langchain/pull/15329
2,060,386,705
PR_kwDOIPDwls5i889s
15,329
Propagate context vars in all classes/methods
{ "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 }
[ { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714130, "node_id": "LA_kwDOIPDwls8AAAABc3-rkg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL", "name": "size:XL", "color": "D4C5F9", "default": false, "description": "This PR changes 500-999 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T20:34:25
2023-12-29T23:59:01
2023-12-29T23:59:00
COLLABORATOR
null
- Any direct usage of ThreadPoolExecutor or asyncio.run_in_executor needs manual handling of context vars <!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15329/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15329/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15329", "html_url": "https://github.com/langchain-ai/langchain/pull/15329", "diff_url": "https://github.com/langchain-ai/langchain/pull/15329.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15329.patch", "merged_at": "2023-12-29T23:59:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/15328
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15328/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15328/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15328/events
https://github.com/langchain-ai/langchain/issues/15328
2,060,386,330
I_kwDOIPDwls56zwAa
15,328
Integration with OpenAI's Latest Models and API Compatibility
{ "login": "nsgoneape", "id": 96844188, "node_id": "U_kgDOBcW5nA", "avatar_url": "https://avatars.githubusercontent.com/u/96844188?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nsgoneape", "html_url": "https://github.com/nsgoneape", "followers_url": "https://api.github.com/users/nsgoneape/followers", "following_url": "https://api.github.com/users/nsgoneape/following{/other_user}", "gists_url": "https://api.github.com/users/nsgoneape/gists{/gist_id}", "starred_url": "https://api.github.com/users/nsgoneape/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nsgoneape/subscriptions", "organizations_url": "https://api.github.com/users/nsgoneape/orgs", "repos_url": "https://api.github.com/users/nsgoneape/repos", "events_url": "https://api.github.com/users/nsgoneape/events{/privacy}", "received_events_url": "https://api.github.com/users/nsgoneape/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
4
2023-12-29T20:33:36
2023-12-30T00:22:08
null
NONE
null
### Feature request This proposal requests the integration of the latest OpenAI models, specifically gpt-4-1106-preview, into the existing framework of [relevant GitHub project, e.g., LangChain]. The newer models offer significantly larger context windows, which are crucial for complex SQL querying and other advanced functionalities. This feature would involve ensuring compatibility with the latest version of the OpenAI API (version 1.0.0 and beyond), which has undergone substantial changes, including the deprecation of certain features like openai.ChatCompletion. Relevant links: OpenAI API (1.0.0): [OpenAI API Documentation](https://github.com/openai/openai-python) Migration Guide: [OpenAI Python Library Migration Guide](https://github.com/openai/openai-python/discussions/742) ### Motivation The primary motivation for this feature request is to leverage the advanced capabilities of the newer OpenAI models, particularly the extended context windows they offer. These capabilities are essential for applications involving extensive data interaction and complex language understanding, such as SQL database querying and management. Current limitations with the older models and API versions restrict the potential of applications, especially when dealing with lengthy queries or requiring deeper contextual understanding. For example, while working on a project involving the LangChain framework for SQL database interaction, I encountered the APIRemovedInV1 error, which signifies incompatibility with the latest OpenAI API. This issue underscores the need for updating the framework to align with the latest advancements in language models and API standards. ### Your contribution Might make my own SQL Agent or modify yours.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15328/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15328/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15327
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15327/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15327/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15327/events
https://github.com/langchain-ai/langchain/pull/15327
2,060,369,764
PR_kwDOIPDwls5i85gQ
15,327
core: Update messages/__init__.py to account for AIMessageChunk which breaks message history runnable.
{ "login": "jonnolen", "id": 617662, "node_id": "MDQ6VXNlcjYxNzY2Mg==", "avatar_url": "https://avatars.githubusercontent.com/u/617662?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jonnolen", "html_url": "https://github.com/jonnolen", "followers_url": "https://api.github.com/users/jonnolen/followers", "following_url": "https://api.github.com/users/jonnolen/following{/other_user}", "gists_url": "https://api.github.com/users/jonnolen/gists{/gist_id}", "starred_url": "https://api.github.com/users/jonnolen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jonnolen/subscriptions", "organizations_url": "https://api.github.com/users/jonnolen/orgs", "repos_url": "https://api.github.com/users/jonnolen/repos", "events_url": "https://api.github.com/users/jonnolen/events{/privacy}", "received_events_url": "https://api.github.com/users/jonnolen/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
2023-12-29T20:00:52
2023-12-29T21:47:54
2023-12-29T21:41:47
CONTRIBUTOR
null
- **Description:** fix parse issue for AIMessageChunk when using - **Issue:** https://github.com/langchain-ai/langchain/issues/14511 - **Dependencies:** none - **Twitter handle:** none Taken from this fix: https://github.com/gpt-engineer-org/gpt-engineer/issues/804#issuecomment-1769853850 Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15327/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15327/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15327", "html_url": "https://github.com/langchain-ai/langchain/pull/15327", "diff_url": "https://github.com/langchain-ai/langchain/pull/15327.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15327.patch", "merged_at": "2023-12-29T21:41:47" }
https://api.github.com/repos/langchain-ai/langchain/issues/15326
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15326/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15326/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15326/events
https://github.com/langchain-ai/langchain/pull/15326
2,060,368,463
PR_kwDOIPDwls5i85Pv
15,326
Delete V1 tracer and refactor tracer tests to core
{ "login": "agola11", "id": 9536492, "node_id": "MDQ6VXNlcjk1MzY0OTI=", "avatar_url": "https://avatars.githubusercontent.com/u/9536492?v=4", "gravatar_id": "", "url": "https://api.github.com/users/agola11", "html_url": "https://github.com/agola11", "followers_url": "https://api.github.com/users/agola11/followers", "following_url": "https://api.github.com/users/agola11/following{/other_user}", "gists_url": "https://api.github.com/users/agola11/gists{/gist_id}", "starred_url": "https://api.github.com/users/agola11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/agola11/subscriptions", "organizations_url": "https://api.github.com/users/agola11/orgs", "repos_url": "https://api.github.com/users/agola11/repos", "events_url": "https://api.github.com/users/agola11/events{/privacy}", "received_events_url": "https://api.github.com/users/agola11/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T19:58:33
2023-12-29T23:55:58
2023-12-29T23:55:57
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15326/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15326/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15326", "html_url": "https://github.com/langchain-ai/langchain/pull/15326", "diff_url": "https://github.com/langchain-ai/langchain/pull/15326.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15326.patch", "merged_at": "2023-12-29T23:55:57" }
https://api.github.com/repos/langchain-ai/langchain/issues/15325
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15325/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15325/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15325/events
https://github.com/langchain-ai/langchain/issues/15325
2,060,357,840
I_kwDOIPDwls56zpDQ
15,325
DOC: how to use embeddings in langchain with fireworks?
{ "login": "hherpa", "id": 146547175, "node_id": "U_kgDOCLwh5w", "avatar_url": "https://avatars.githubusercontent.com/u/146547175?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hherpa", "html_url": "https://github.com/hherpa", "followers_url": "https://api.github.com/users/hherpa/followers", "following_url": "https://api.github.com/users/hherpa/following{/other_user}", "gists_url": "https://api.github.com/users/hherpa/gists{/gist_id}", "starred_url": "https://api.github.com/users/hherpa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hherpa/subscriptions", "organizations_url": "https://api.github.com/users/hherpa/orgs", "repos_url": "https://api.github.com/users/hherpa/repos", "events_url": "https://api.github.com/users/hherpa/events{/privacy}", "received_events_url": "https://api.github.com/users/hherpa/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
1
2023-12-29T19:38:49
2023-12-29T19:48:21
null
NONE
null
### Issue with current documentation: how to use embeddings in langchain with fireworks?(I need it for RAG) It's just that the documentation only talks about OpenAIEmbeddings https://python.langchain.com/docs/modules/data_connection/text_embedding/ ### Idea or request for content: RAG with fireworks API
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15325/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15325/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15324
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15324/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15324/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15324/events
https://github.com/langchain-ai/langchain/pull/15324
2,060,288,983
PR_kwDOIPDwls5i8oyA
15,324
langchain: Exclude non-utf8 file from loader since it causes an error in the code_understanding example
{ "login": "Tchotchke", "id": 9420778, "node_id": "MDQ6VXNlcjk0MjA3Nzg=", "avatar_url": "https://avatars.githubusercontent.com/u/9420778?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Tchotchke", "html_url": "https://github.com/Tchotchke", "followers_url": "https://api.github.com/users/Tchotchke/followers", "following_url": "https://api.github.com/users/Tchotchke/following{/other_user}", "gists_url": "https://api.github.com/users/Tchotchke/gists{/gist_id}", "starred_url": "https://api.github.com/users/Tchotchke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tchotchke/subscriptions", "organizations_url": "https://api.github.com/users/Tchotchke/orgs", "repos_url": "https://api.github.com/users/Tchotchke/repos", "events_url": "https://api.github.com/users/Tchotchke/events{/privacy}", "received_events_url": "https://api.github.com/users/Tchotchke/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T17:46:57
2023-12-29T19:50:06
2023-12-29T19:50:05
CONTRIBUTOR
null
- **Description:** in the code_understanding.ipynb example, the loader errors out on the langchain/libs/community/tests/examples/non-utf8-encoding.py file, so I updated the loader to exclude that file. Excluding that file allows the example to run. - **Issue:** not applicable - **Dependencies:** none
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15324/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15324/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15324", "html_url": "https://github.com/langchain-ai/langchain/pull/15324", "diff_url": "https://github.com/langchain-ai/langchain/pull/15324.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15324.patch", "merged_at": "2023-12-29T19:50:05" }
https://api.github.com/repos/langchain-ai/langchain/issues/15323
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15323/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15323/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15323/events
https://github.com/langchain-ai/langchain/pull/15323
2,060,282,246
PR_kwDOIPDwls5i8nZV
15,323
Harrison/new docs revamp
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T17:35:10
2024-01-01T22:25:45
2024-01-01T22:25:45
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15323/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15323/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15323", "html_url": "https://github.com/langchain-ai/langchain/pull/15323", "diff_url": "https://github.com/langchain-ai/langchain/pull/15323.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15323.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15322
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15322/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15322/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15322/events
https://github.com/langchain-ai/langchain/pull/15322
2,060,256,173
PR_kwDOIPDwls5i8iGE
15,322
langchain[patch]: Release 0.0.353
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T16:52:51
2023-12-29T17:02:52
2023-12-29T17:02:52
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15322/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15322/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15322", "html_url": "https://github.com/langchain-ai/langchain/pull/15322", "diff_url": "https://github.com/langchain-ai/langchain/pull/15322.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15322.patch", "merged_at": "2023-12-29T17:02:52" }
https://api.github.com/repos/langchain-ai/langchain/issues/15321
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15321/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15321/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15321/events
https://github.com/langchain-ai/langchain/pull/15321
2,060,248,483
PR_kwDOIPDwls5i8gce
15,321
langchain: minor changes to StuffDocumentsChain._get_inputs
{ "login": "romainfd", "id": 32517197, "node_id": "MDQ6VXNlcjMyNTE3MTk3", "avatar_url": "https://avatars.githubusercontent.com/u/32517197?v=4", "gravatar_id": "", "url": "https://api.github.com/users/romainfd", "html_url": "https://github.com/romainfd", "followers_url": "https://api.github.com/users/romainfd/followers", "following_url": "https://api.github.com/users/romainfd/following{/other_user}", "gists_url": "https://api.github.com/users/romainfd/gists{/gist_id}", "starred_url": "https://api.github.com/users/romainfd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/romainfd/subscriptions", "organizations_url": "https://api.github.com/users/romainfd/orgs", "repos_url": "https://api.github.com/users/romainfd/repos", "events_url": "https://api.github.com/users/romainfd/events{/privacy}", "received_events_url": "https://api.github.com/users/romainfd/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T16:42:17
2023-12-29T19:53:31
2023-12-29T19:53:31
CONTRIBUTOR
null
Correcting a small typo ('the' instead of 'then') and changing another 'the' (instead of 'then' too, it was a hard day for the 'n' key :D) to 'also' to match better with what is done in the code <!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15321/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15321/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15321", "html_url": "https://github.com/langchain-ai/langchain/pull/15321", "diff_url": "https://github.com/langchain-ai/langchain/pull/15321.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15321.patch", "merged_at": "2023-12-29T19:53:31" }
https://api.github.com/repos/langchain-ai/langchain/issues/15320
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15320/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15320/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15320/events
https://github.com/langchain-ai/langchain/pull/15320
2,060,247,897
PR_kwDOIPDwls5i8gUg
15,320
community[patch]: Release 0.0.7
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T16:41:26
2023-12-29T18:10:24
2023-12-29T18:10:23
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15320/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15320/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15320", "html_url": "https://github.com/langchain-ai/langchain/pull/15320", "diff_url": "https://github.com/langchain-ai/langchain/pull/15320.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15320.patch", "merged_at": "2023-12-29T18:10:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/15319
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15319/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15319/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15319/events
https://github.com/langchain-ai/langchain/pull/15319
2,060,233,402
PR_kwDOIPDwls5i8dYj
15,319
core[patch]: Release 0.1.4
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T16:20:08
2023-12-29T16:33:08
2023-12-29T16:33:07
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15319/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15319/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15319", "html_url": "https://github.com/langchain-ai/langchain/pull/15319", "diff_url": "https://github.com/langchain-ai/langchain/pull/15319.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15319.patch", "merged_at": "2023-12-29T16:33:07" }
https://api.github.com/repos/langchain-ai/langchain/issues/15318
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15318/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15318/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15318/events
https://github.com/langchain-ai/langchain/issues/15318
2,060,210,050
I_kwDOIPDwls56zE-C
15,318
Issue when running a simple ChatOllama prompt in Next.js/TypeScript: "Error: Single '}' in template."
{ "login": "polooner", "id": 114031148, "node_id": "U_kgDOBsv6LA", "avatar_url": "https://avatars.githubusercontent.com/u/114031148?v=4", "gravatar_id": "", "url": "https://api.github.com/users/polooner", "html_url": "https://github.com/polooner", "followers_url": "https://api.github.com/users/polooner/followers", "following_url": "https://api.github.com/users/polooner/following{/other_user}", "gists_url": "https://api.github.com/users/polooner/gists{/gist_id}", "starred_url": "https://api.github.com/users/polooner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/polooner/subscriptions", "organizations_url": "https://api.github.com/users/polooner/orgs", "repos_url": "https://api.github.com/users/polooner/repos", "events_url": "https://api.github.com/users/polooner/events{/privacy}", "received_events_url": "https://api.github.com/users/polooner/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-12-29T15:48:07
2023-12-29T16:03:41
2023-12-29T16:03:41
NONE
null
### System Info "langchain": "^0.0.211", MacOS Sonoma 14.2 Next.js 14.0.4 ### Who can help? @agola11 @hwc ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. pnpm add langchain in a Next.js project 2. Create a Next.js Route handler 3. Create the following route: ``` import { NextResponse } from 'next/server'; import { ChatOllama } from 'langchain/chat_models/ollama'; import { ChatPromptTemplate, MessagesPlaceholder } from 'langchain/prompts'; import { BufferMemory, ChatMessageHistory } from 'langchain/memory'; import { ConversationChain } from 'langchain/chains'; export async function POST(req: Request) { const data = await req.json(); const prompt = ChatPromptTemplate.fromMessages([ [ 'system', `You are an AI Computer Science Data Structures teaching system that responds to all questions STRICTLY in JSON format. You will be given a question on DSA concepts. Contents of JSON made by you will be used to create elements within a node of a graph that displays explanations of topics, and a user interface that allows users to follow up if they need help or want more information. There are 4 elements, "Topic", "Description", "Subtopics", "Questions": an array of strings. You will also be given a number of nodes that already exist, to be able to assign unique ids. IDs MUST BE STRINGS. MAKE SURE YOU ARE ONLY REPLYING WITH JSON AND NOT MARKDOWN These are the only node types you are allowed to pick from: "promptNode": USE FOR ALL EXPLANATIONS "confusedNode": USED WHEN CONFUSED { "{DEFINE ID BUT IN "STRING" FORM! +1 HIGHER THAN NUMBER GIVEN}": { "THE ID AGAIN": {number}, "type": "promptNode", "position": { "x": 0, "y": 0 }, "data": { "topic": "{Short name of topic}", "description": "{The explanation of topic}", "subtopics": [an array of strings of 5 related topics], "questions": [an array of objects of 4 related questions and answers, eg: {'q': 'Question?', 'a': 'Ans'}], "im_confused": [array of concepts mentioned in the description that they could be confused about] } }`, ], new MessagesPlaceholder('history'), ['human', '{input}'], ]); //@ts-ignore const chatHistory = []; const llm = new ChatOllama({ baseUrl: 'http://localhost:11434', // Default value model: 'mistral', // Default value }); const memory = new BufferMemory({ returnMessages: true, memoryKey: 'history', //@ts-ignore chatHistory: new ChatMessageHistory(chatHistory), }); const chain = new ConversationChain({ memory: memory, prompt: prompt, llm: llm, verbose: true, }); const result = await chain.invoke({ input: data.prompt, }); console.log(result); return NextResponse.json( { }, { status: 200 } ); } ``` ### Expected behavior Model output.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15318/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15318/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15317
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15317/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15317/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15317/events
https://github.com/langchain-ai/langchain/issues/15317
2,059,715,813
I_kwDOIPDwls56xMTl
15,317
Issue: Error Handling in Tools used in custom agents
{ "login": "Akashdawari", "id": 51261048, "node_id": "MDQ6VXNlcjUxMjYxMDQ4", "avatar_url": "https://avatars.githubusercontent.com/u/51261048?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Akashdawari", "html_url": "https://github.com/Akashdawari", "followers_url": "https://api.github.com/users/Akashdawari/followers", "following_url": "https://api.github.com/users/Akashdawari/following{/other_user}", "gists_url": "https://api.github.com/users/Akashdawari/gists{/gist_id}", "starred_url": "https://api.github.com/users/Akashdawari/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Akashdawari/subscriptions", "organizations_url": "https://api.github.com/users/Akashdawari/orgs", "repos_url": "https://api.github.com/users/Akashdawari/repos", "events_url": "https://api.github.com/users/Akashdawari/events{/privacy}", "received_events_url": "https://api.github.com/users/Akashdawari/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
1
2023-12-29T12:44:32
2023-12-29T12:53:47
null
NONE
null
### Issue you'd like to raise. I have built a custom LLM Agent by following the Documentation provided. The custom agent contains multiple tools, one of them is the "LLMMathChain" which is giving me ValueError, cause my agent is passing "None" as an Action Input. I want to handle that error. So that my chatbot doesn't break in the middle of a conversation. ## My Custom Agent ![image](https://github.com/langchain-ai/langchain/assets/51261048/0750c101-871d-4146-9dfb-5a2a52e7ff3b) ## Calculator Tool ![image](https://github.com/langchain-ai/langchain/assets/51261048/123708d8-afc0-4ed3-82ad-84c28881d95e) ## Prompt Template ![image](https://github.com/langchain-ai/langchain/assets/51261048/90ee198d-075f-40bc-b248-ea0ba1292f20) ## Output Parser ![image](https://github.com/langchain-ai/langchain/assets/51261048/1ba3af29-c650-4fcd-ad64-f11b371f0977) ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15317/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15317/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15316
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15316/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15316/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15316/events
https://github.com/langchain-ai/langchain/issues/15316
2,059,700,790
I_kwDOIPDwls56xIo2
15,316
Add common mulit model support
{ "login": "calvinweb", "id": 38599774, "node_id": "MDQ6VXNlcjM4NTk5Nzc0", "avatar_url": "https://avatars.githubusercontent.com/u/38599774?v=4", "gravatar_id": "", "url": "https://api.github.com/users/calvinweb", "html_url": "https://github.com/calvinweb", "followers_url": "https://api.github.com/users/calvinweb/followers", "following_url": "https://api.github.com/users/calvinweb/following{/other_user}", "gists_url": "https://api.github.com/users/calvinweb/gists{/gist_id}", "starred_url": "https://api.github.com/users/calvinweb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/calvinweb/subscriptions", "organizations_url": "https://api.github.com/users/calvinweb/orgs", "repos_url": "https://api.github.com/users/calvinweb/repos", "events_url": "https://api.github.com/users/calvinweb/events{/privacy}", "received_events_url": "https://api.github.com/users/calvinweb/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
3
2023-12-29T12:42:22
2024-01-01T09:42:37
null
NONE
null
### Feature request Presently, JSON can be utilized to enable the multimodal capability of GPT-4 series models within ChatOpenAI and OpenAI. However, this functionality lacks portability. ### Motivation Using multimodal approaches lacks portability, and GPT-4 isn't the sole model employing multimodal capabilities. Therefore, it becomes imperative to establish a standardized method for accessing various multimodal models. ### Your contribution I may submit a PR about this if I have spare time
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15316/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15316/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15315
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15315/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15315/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15315/events
https://github.com/langchain-ai/langchain/issues/15315
2,059,344,749
I_kwDOIPDwls56vxtt
15,315
Issue: How can I implement Conversation Chain along with ConversationSummaryMemory
{ "login": "deepak-habilelabs", "id": 137885024, "node_id": "U_kgDOCDf1YA", "avatar_url": "https://avatars.githubusercontent.com/u/137885024?v=4", "gravatar_id": "", "url": "https://api.github.com/users/deepak-habilelabs", "html_url": "https://github.com/deepak-habilelabs", "followers_url": "https://api.github.com/users/deepak-habilelabs/followers", "following_url": "https://api.github.com/users/deepak-habilelabs/following{/other_user}", "gists_url": "https://api.github.com/users/deepak-habilelabs/gists{/gist_id}", "starred_url": "https://api.github.com/users/deepak-habilelabs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/deepak-habilelabs/subscriptions", "organizations_url": "https://api.github.com/users/deepak-habilelabs/orgs", "repos_url": "https://api.github.com/users/deepak-habilelabs/repos", "events_url": "https://api.github.com/users/deepak-habilelabs/events{/privacy}", "received_events_url": "https://api.github.com/users/deepak-habilelabs/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5924999838, "node_id": "LA_kwDOIPDwls8AAAABYShSng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma", "name": "integration: chroma", "color": "B78AF8", "default": false, "description": "Related to ChromaDB" } ]
open
false
null
[]
null
1
2023-12-29T11:23:25
2023-12-29T11:31:41
null
NONE
null
### Issue you'd like to raise. below is my code, How can I implement Conversation Chain along with ConversationSummaryMemory in my code `def retreival_qa_chain(chroma_db_path): embedding = OpenAIEmbeddings() vectordb = Chroma(persist_directory=chroma_db_path, embedding_function=embedding) llm = ChatOpenAI(temperature=0.1) retriever = vectordb.as_retriever(search_kwargs={"k": 2}) qa = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever,return_source_documents=True) return qa def create_global_qa_chain(): chroma_db_path = "chroma-databases" folders = os.listdir(chroma_db_path) qa_chains = {} for index, folder in enumerate(folders): folder_path = f"{chroma_db_path}/{folder}" project = retreival_qa_chain(folder_path) qa_chains[folder] = project return qa_chains` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15315/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15315/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15314
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15314/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15314/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15314/events
https://github.com/langchain-ai/langchain/issues/15314
2,059,302,480
I_kwDOIPDwls56vnZQ
15,314
Issue: document_variable_name context was not found in llm_chain input_variables
{ "login": "summer1704", "id": 48026561, "node_id": "MDQ6VXNlcjQ4MDI2NTYx", "avatar_url": "https://avatars.githubusercontent.com/u/48026561?v=4", "gravatar_id": "", "url": "https://api.github.com/users/summer1704", "html_url": "https://github.com/summer1704", "followers_url": "https://api.github.com/users/summer1704/followers", "following_url": "https://api.github.com/users/summer1704/following{/other_user}", "gists_url": "https://api.github.com/users/summer1704/gists{/gist_id}", "starred_url": "https://api.github.com/users/summer1704/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/summer1704/subscriptions", "organizations_url": "https://api.github.com/users/summer1704/orgs", "repos_url": "https://api.github.com/users/summer1704/repos", "events_url": "https://api.github.com/users/summer1704/events{/privacy}", "received_events_url": "https://api.github.com/users/summer1704/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-12-29T10:42:37
2023-12-29T10:52:37
null
NONE
null
### Issue you'd like to raise. I am trying to add a specific prompt template to my ConversationalRetrievalChain. This is my current code: > PROMPT_TEMPLATE = """ Act as the policies interactive Bot that gives advice on the Company policies, Travel policies, and Information security policies for the company. Do not try to make up an answer. Use only the given pieces of context; do not use your own knowledge. Chat History: {chat_history} Follow Up Input: {question} """ qa_prompt = PromptTemplate(input_variables=["chat_history", "question",], template=PROMPT_TEMPLATE) > chat = ChatOpenAI( verbose=True, model_name=MODEl_NAME, temperature=TEMPERATURE, max_retries=MAX_RETRIES, streaming=True, ) qa_chain =ConversationalRetrievalChain.from_llm( llm=chat, retriever=MyVectorStoreRetriever( vectorstore=vectordb, search_type="similarity_score_threshold", search_kwargs={"score_threshold": SIMILARITY_THRESHOLD, "k": 1}, ), return_source_documents=True, combine_docs_chain_kwargs={'prompt': qa_prompt}, ) response = qa_chain( { "question": query, "chat_history": chat_history, }, callbacks=[stream_handler], ) This is the error I'm currently getting, > qa_chain =ConversationalRetrievalChain.from_llm( File "/home/sfm/anaconda3/envs/chat_v2/lib/python3.10/site-packages/langchain/chains/conversational_retrieval/base.py", line 360, in from_llm doc_chain = load_qa_chain( File "/home/sfm/anaconda3/envs/chat_v2/lib/python3.10/site-packages/langchain/chains/question_answering/__init__.py", line 249, in load_qa_chain return loader_mapping[chain_type]( File "/home/sfm/anaconda3/envs/chat_v2/lib/python3.10/site-packages/langchain/chains/question_answering/__init__.py", line 81, in _load_stuff_chain return StuffDocumentsChain( File "/home/sfm/anaconda3/envs/chat_v2/lib/python3.10/site-packages/langchain/load/serializable.py", line 97, in __init__ super().__init__(**kwargs) File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__ pydantic.error_wrappers.ValidationError: 1 validation error for StuffDocumentsChain __root__ document_variable_name context was not found in llm_chain input_variables: ['chat_history', 'question'] (type=value_error) can you help me to figure out the error and correct it? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15314/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15314/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15311
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15311/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15311/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15311/events
https://github.com/langchain-ai/langchain/pull/15311
2,059,260,313
PR_kwDOIPDwls5i7ZVy
15,311
Feat: support RunnableBranch constructed with `|`
{ "login": "chyroc", "id": 15604894, "node_id": "MDQ6VXNlcjE1NjA0ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chyroc", "html_url": "https://github.com/chyroc", "followers_url": "https://api.github.com/users/chyroc/followers", "following_url": "https://api.github.com/users/chyroc/following{/other_user}", "gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}", "starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chyroc/subscriptions", "organizations_url": "https://api.github.com/users/chyroc/orgs", "repos_url": "https://api.github.com/users/chyroc/repos", "events_url": "https://api.github.com/users/chyroc/events{/privacy}", "received_events_url": "https://api.github.com/users/chyroc/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
2023-12-29T09:55:58
2024-01-02T02:34:14
2024-01-01T22:25:59
CONTRIBUTOR
null
```python from langchain_core.runnables import RunnableBranch branch = RunnableBranch( (lambda x: isinstance(x, str), lambda x: x.upper()), (lambda x: isinstance(x, int), lambda x: x + 1), (lambda x: isinstance(x, float), lambda x: x * 2), lambda x: "goodbye", ) branch.invoke("hello") # "HELLO" branch.invoke(None) # "goodbye" # A RunnableBranch constructed using the `|` operator branch = branch | (lambda x: isinstance(x, bool), lambda x: f'{x}') branch.invoke(true) # "true" ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15311/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15311/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15311", "html_url": "https://github.com/langchain-ai/langchain/pull/15311", "diff_url": "https://github.com/langchain-ai/langchain/pull/15311.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15311.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15310
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15310/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15310/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15310/events
https://github.com/langchain-ai/langchain/issues/15310
2,059,251,491
I_kwDOIPDwls56va8j
15,310
Slow aadd_documents using Qdrant and HuggingfaceEmbeddings on CPU
{ "login": "draganjovanovich", "id": 13547364, "node_id": "MDQ6VXNlcjEzNTQ3MzY0", "avatar_url": "https://avatars.githubusercontent.com/u/13547364?v=4", "gravatar_id": "", "url": "https://api.github.com/users/draganjovanovich", "html_url": "https://github.com/draganjovanovich", "followers_url": "https://api.github.com/users/draganjovanovich/followers", "following_url": "https://api.github.com/users/draganjovanovich/following{/other_user}", "gists_url": "https://api.github.com/users/draganjovanovich/gists{/gist_id}", "starred_url": "https://api.github.com/users/draganjovanovich/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/draganjovanovich/subscriptions", "organizations_url": "https://api.github.com/users/draganjovanovich/orgs", "repos_url": "https://api.github.com/users/draganjovanovich/repos", "events_url": "https://api.github.com/users/draganjovanovich/events{/privacy}", "received_events_url": "https://api.github.com/users/draganjovanovich/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
1
2023-12-29T09:45:06
2023-12-29T09:52:34
null
NONE
null
### System Info lc: 0.0.352, os: ubuntu 22, python 3.10 ### Who can help? ### Description I am encountering a significant performance issue when using Qdrant with HuggingfaceEmbeddings in a CPU-only environment, specifically within a FastAPI endpoint. The process is notably slow, particularly at the `aadd_documents(...)` stage. ### Additional Information - As a comparison, I tried embedding a document directly using `sentence_transformers`. This approach utilized all CPU cores, resulting in a much faster process. - I also experimented with a custom implementation, using only necessary functions from [this Qdrant file](https://github.com/langchain-ai/langchain/blob/master/libs/community/langchain_community/vectorstores/qdrant.py) to perform `aadd_documents`. This approach also showed improved performance and full CPU utilization. ### Question Does anyone have an idea or suggestion on what might be causing this performance bottleneck when using Qdrant with HuggingfaceEmbeddings in a CPU-only environment? ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ### Steps to Reproduce 1. Set up Qdrant with HuggingfaceEmbeddings in a CPU-only machine (no GPU). 2. Integrate it within a FastAPI endpoint. 3. Execute `aadd_documents(...)` for documents (for example, documents with around 45K characters). ### Expected behavior ### Expected Behavior I expected the embedding and addition of documents to Qdrant to be efficient and utilize multiple CPU cores effectively. ### Observed Behavior - The embedding process for a document of approximately 45K characters took over one minute. - Resource utilization monitoring showed that only one out of 70 CPU cores was being utilized during the embedding process.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15310/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15310/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15309
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15309/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15309/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15309/events
https://github.com/langchain-ai/langchain/pull/15309
2,059,246,860
PR_kwDOIPDwls5i7Wdf
15,309
community: corrected typo in .readthedocs.yaml
{ "login": "piyuple", "id": 11230167, "node_id": "MDQ6VXNlcjExMjMwMTY3", "avatar_url": "https://avatars.githubusercontent.com/u/11230167?v=4", "gravatar_id": "", "url": "https://api.github.com/users/piyuple", "html_url": "https://github.com/piyuple", "followers_url": "https://api.github.com/users/piyuple/followers", "following_url": "https://api.github.com/users/piyuple/following{/other_user}", "gists_url": "https://api.github.com/users/piyuple/gists{/gist_id}", "starred_url": "https://api.github.com/users/piyuple/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/piyuple/subscriptions", "organizations_url": "https://api.github.com/users/piyuple/orgs", "repos_url": "https://api.github.com/users/piyuple/repos", "events_url": "https://api.github.com/users/piyuple/events{/privacy}", "received_events_url": "https://api.github.com/users/piyuple/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T09:39:08
2023-12-29T21:40:34
2023-12-29T21:40:34
CONTRIBUTOR
null
corrected a possible typing mistake in .readthedocs.yaml
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15309/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15309/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15309", "html_url": "https://github.com/langchain-ai/langchain/pull/15309", "diff_url": "https://github.com/langchain-ai/langchain/pull/15309.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15309.patch", "merged_at": "2023-12-29T21:40:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/15308
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15308/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15308/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15308/events
https://github.com/langchain-ai/langchain/pull/15308
2,059,233,060
PR_kwDOIPDwls5i7Ti8
15,308
Docs: add param comment for `tracing_v2_enabled`
{ "login": "chyroc", "id": 15604894, "node_id": "MDQ6VXNlcjE1NjA0ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chyroc", "html_url": "https://github.com/chyroc", "followers_url": "https://api.github.com/users/chyroc/followers", "following_url": "https://api.github.com/users/chyroc/following{/other_user}", "gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}", "starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chyroc/subscriptions", "organizations_url": "https://api.github.com/users/chyroc/orgs", "repos_url": "https://api.github.com/users/chyroc/repos", "events_url": "https://api.github.com/users/chyroc/events{/privacy}", "received_events_url": "https://api.github.com/users/chyroc/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T09:21:46
2024-01-01T21:38:45
2024-01-01T21:38:45
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15308/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15308/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15308", "html_url": "https://github.com/langchain-ai/langchain/pull/15308", "diff_url": "https://github.com/langchain-ai/langchain/pull/15308.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15308.patch", "merged_at": "2024-01-01T21:38:44" }
https://api.github.com/repos/langchain-ai/langchain/issues/15307
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15307/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15307/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15307/events
https://github.com/langchain-ai/langchain/issues/15307
2,059,195,701
I_kwDOIPDwls56vNU1
15,307
b
{ "login": "4entertainment", "id": 58992739, "node_id": "MDQ6VXNlcjU4OTkyNzM5", "avatar_url": "https://avatars.githubusercontent.com/u/58992739?v=4", "gravatar_id": "", "url": "https://api.github.com/users/4entertainment", "html_url": "https://github.com/4entertainment", "followers_url": "https://api.github.com/users/4entertainment/followers", "following_url": "https://api.github.com/users/4entertainment/following{/other_user}", "gists_url": "https://api.github.com/users/4entertainment/gists{/gist_id}", "starred_url": "https://api.github.com/users/4entertainment/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/4entertainment/subscriptions", "organizations_url": "https://api.github.com/users/4entertainment/orgs", "repos_url": "https://api.github.com/users/4entertainment/repos", "events_url": "https://api.github.com/users/4entertainment/events{/privacy}", "received_events_url": "https://api.github.com/users/4entertainment/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
2
2023-12-29T08:30:47
2023-12-29T08:37:37
2023-12-29T08:37:37
NONE
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15307/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/15307/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15306
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15306/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15306/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15306/events
https://github.com/langchain-ai/langchain/issues/15306
2,059,175,187
I_kwDOIPDwls56vIUT
15,306
The retrieval cannot be given the document correctly
{ "login": "pengkang1991", "id": 49478192, "node_id": "MDQ6VXNlcjQ5NDc4MTky", "avatar_url": "https://avatars.githubusercontent.com/u/49478192?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pengkang1991", "html_url": "https://github.com/pengkang1991", "followers_url": "https://api.github.com/users/pengkang1991/followers", "following_url": "https://api.github.com/users/pengkang1991/following{/other_user}", "gists_url": "https://api.github.com/users/pengkang1991/gists{/gist_id}", "starred_url": "https://api.github.com/users/pengkang1991/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pengkang1991/subscriptions", "organizations_url": "https://api.github.com/users/pengkang1991/orgs", "repos_url": "https://api.github.com/users/pengkang1991/repos", "events_url": "https://api.github.com/users/pengkang1991/events{/privacy}", "received_events_url": "https://api.github.com/users/pengkang1991/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
4
2023-12-29T08:00:29
2024-01-01T01:34:14
null
NONE
null
### System Info langchain 0.0.340 ### Who can help? @eyurtsev ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction My vector library preserves tens of thousands of documents, but as the document increases, the accuracy rate of the retriever is becoming low, and the correct document cannot be retrieved. The retrieval cannot be given the document correctly ### Expected behavior db = FAISS.load_local(VS['comixfaiss'], embeddings) retriever = db.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": 0.5,"k":5}) logger.info(retriever.get_relevant_documents('3736085')) LOG: 2023-12-29 15:44:51,650 - loader.py[line:56] - INFO: Successfully loaded faiss with AVX2 support. 2023-12-29 15:44:52,843 - local_doc_qa.py[line:204] - INFO: [Document(page_content='\ufeffSelection: 非校验\n商品编号: 3730559\n商品名称: 飞捷 FJ21325 39-45码(QXGZ)中筒 防水鞋户外雨靴套鞋胶鞋 黑色(单位:双)\n物料编码: 3730559\n大类: 生活用品\n中类: 办公日杂\n小类: 雨伞雨具\n品牌: 梦奇\n颜色: 黑色\n型号: FJ21325\n建议零售价: 77.45\n卖点: 品牌:飞捷 颜色:黑色 型号:FJ21325 包装清单:雨靴*1\n上架状态: 上架\n状态: \n状态信息:', metadata={'source': '/mnt/data/pdf/comixgpt/pd/齐心商城商品数据2万条2023-12-27.csv', 'row': 8975}), Document(page_content='\ufeffSelection: 非校验\n商品编号: 3051396\n商品名称: 得力 9387 三联送(销)货单据 129*188mm 20份/本 黄色 单位:本\n物料编码: 3051396\n大类: 办公文具\n中类: 财务行政用品\n小类: 财务单据\n品牌: 得力\n颜色: 黄色\n型号: 9387\n建议零售价: 4.35\n卖点: 0\n上架状态: 上架\n状态: \n状态信息:', metadata={'source': '/mnt/data/pdf/comixgpt/pd/齐心商城商品数据2万条2023-12-27.csv', 'row': 20709}), Document(page_content='\ufeffSelection: 非校验\n商品编号: 3278812\n商品名称: 惠普\xa0W9055MC\xa0成像鼓 彩色 (单位:个)\n物料编码: 3278812\n大类: 办公耗材\n中类: 打印机耗材\n小类: 硒鼓\n品牌: 惠普\n颜色: 彩色\n型号: W9055MC\n建议零售价: 3645.88\n卖点: 打印机耗材\n上架状态: 上架\n状态: \n状态信息:', metadata={'source': '/mnt/data/pdf/comixgpt/pd/齐心商城商品数据2万条2023-12-27.csv', 'row': 12167}), Document(page_content='\ufeffSelection: 非校验\n商品编号: 3197277\n商品名称: 得力 9307 报刊架 480*360*1450 银色 单位:个\n物料编码: 3197277\n大类: 办公文具\n中类: 会议展示用品\n小类: 报刊/杂志架\n品牌: 得力\n颜色: \n型号: 9307\n建议零售价: 330.33\n卖点: 0\n上架状态: 上架\n状态: \n状态信息:', metadata={'source': '/mnt/data/pdf/comixgpt/pd/齐心商城商品数据2万条2023-12-27.csv', 'row': 16685}), Document(page_content='\ufeffSelection: 非校验\n商品编号: 3278811\n商品名称: 惠普 W9054MC 成像鼓 黑色 (单位:个)\n物料编码: 3278811\n大类: 办公耗材\n中类: 打印机耗材\n小类: 硒鼓\n品牌: 惠普\n颜色: 黑色\n型号: W9054MC\n建议零售价: 2471.19\n卖点: 打印机耗材\n上架状态: 上架\n状态: \n状态信息:', metadata={'source': '/mnt/data/pdf/comixgpt/pd/齐心商城商品数据2万条2023-12-27.csv', 'row': 12168})]
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15306/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15306/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15305
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15305/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15305/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15305/events
https://github.com/langchain-ai/langchain/pull/15305
2,059,164,783
PR_kwDOIPDwls5i7FCz
15,305
new feature: add github file loader to load any github file content b…
{ "login": "shufanhao", "id": 11540660, "node_id": "MDQ6VXNlcjExNTQwNjYw", "avatar_url": "https://avatars.githubusercontent.com/u/11540660?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shufanhao", "html_url": "https://github.com/shufanhao", "followers_url": "https://api.github.com/users/shufanhao/followers", "following_url": "https://api.github.com/users/shufanhao/following{/other_user}", "gists_url": "https://api.github.com/users/shufanhao/gists{/gist_id}", "starred_url": "https://api.github.com/users/shufanhao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shufanhao/subscriptions", "organizations_url": "https://api.github.com/users/shufanhao/orgs", "repos_url": "https://api.github.com/users/shufanhao/repos", "events_url": "https://api.github.com/users/shufanhao/events{/privacy}", "received_events_url": "https://api.github.com/users/shufanhao/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
3
2023-12-29T07:44:02
2024-01-13T13:47:02
null
CONTRIBUTOR
null
### Description support load any github file content based on file extension. Why not use [git loader](https://python.langchain.com/docs/integrations/document_loaders/git#load-existing-repository-from-disk) ? git loader clones the whole repo even only interested part of files, that's too heavy. This GithubFileLoader only downloads that you are interested files. ### Twitter handle my twitter: @shufanhaotop
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15305/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15305/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15305", "html_url": "https://github.com/langchain-ai/langchain/pull/15305", "diff_url": "https://github.com/langchain-ai/langchain/pull/15305.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15305.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15304
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15304/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15304/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15304/events
https://github.com/langchain-ai/langchain/issues/15304
2,059,159,495
I_kwDOIPDwls56vEfH
15,304
How do i use similarity caching in my code?
{ "login": "Kittyxox", "id": 130595576, "node_id": "U_kgDOB8i6-A", "avatar_url": "https://avatars.githubusercontent.com/u/130595576?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Kittyxox", "html_url": "https://github.com/Kittyxox", "followers_url": "https://api.github.com/users/Kittyxox/followers", "following_url": "https://api.github.com/users/Kittyxox/following{/other_user}", "gists_url": "https://api.github.com/users/Kittyxox/gists{/gist_id}", "starred_url": "https://api.github.com/users/Kittyxox/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Kittyxox/subscriptions", "organizations_url": "https://api.github.com/users/Kittyxox/orgs", "repos_url": "https://api.github.com/users/Kittyxox/repos", "events_url": "https://api.github.com/users/Kittyxox/events{/privacy}", "received_events_url": "https://api.github.com/users/Kittyxox/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
1
2023-12-29T07:36:10
2023-12-29T07:44:03
null
NONE
null
Hi @dosu-bot, This is my code ``` import langchain from langchain.cache import SQLAlchemyCache, Emb from sqlalchemy import create_engine from sqlalchemy.orm import declarative_base from sqlalchemy import Column, Integer, Text from urllib.parse import quote_plus from langchain.llms import OpenAI Base = declarative_base() class FulltextLLMCache(Base): __tablename__ = "llm_cache_full_text" id = Column(Integer, primary_key=True) prompt = Column(Text, nullable=False) llm = Column(Text, nullable=False) idx = Column(Integer) response = Column(Text) db_uri = f"mssql+pyodbc://JUPYTER\SQLEXPRESS/my_database?driver=ODBC+Driver+17+for+SQL Server" cache_engine = create_engine(db_uri, pool_recycle=240, pool_size=20, max_overflow=30) # Assigning to llm_cache langchain.llm_cache = SQLAlchemyCache(cache_engine, FulltextLLMCache) ``` The above code is for exact cache which is very low hit rate, how can i do similarity caching?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15304/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15304/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15303
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15303/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15303/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15303/events
https://github.com/langchain-ai/langchain/issues/15303
2,059,118,347
I_kwDOIPDwls56u6cL
15,303
Cache not getting saved in ConversationalRetrievalChain
{ "login": "Kittyxox", "id": 130595576, "node_id": "U_kgDOB8i6-A", "avatar_url": "https://avatars.githubusercontent.com/u/130595576?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Kittyxox", "html_url": "https://github.com/Kittyxox", "followers_url": "https://api.github.com/users/Kittyxox/followers", "following_url": "https://api.github.com/users/Kittyxox/following{/other_user}", "gists_url": "https://api.github.com/users/Kittyxox/gists{/gist_id}", "starred_url": "https://api.github.com/users/Kittyxox/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Kittyxox/subscriptions", "organizations_url": "https://api.github.com/users/Kittyxox/orgs", "repos_url": "https://api.github.com/users/Kittyxox/repos", "events_url": "https://api.github.com/users/Kittyxox/events{/privacy}", "received_events_url": "https://api.github.com/users/Kittyxox/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
1
2023-12-29T06:30:14
2023-12-29T06:40:07
null
NONE
null
Hi @dosu-bot. Below is my code, ``` from langchain.cache import SQLAlchemyCache from sqlalchemy import create_engine engine = create_engine("mssql+pyodbc://JUPYTER\SQLEXPRESS/my_database?driver=ODBC+Driver+17+for+SQL Server") set_llm_cache(SQLAlchemyCache(engine)) memory = ConversationBufferWindowMemory(k=2, memory_key="chat_history", chat_memory=chat_message_history ,return_messages=True, output_key="answer", input_key="question") retriever = load_emdeddings(cfg.faiss_persist_directory, cfg.embeddings).as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": .65, "k": 2}) custom_prompt_template = """ You are a friendly chatbot named "XYZ", designed to provide assistance and answer queries. {context} Chat History: {chat_history} Question: {question} """ # Create a PromptTemplate instance with your custom template custom_prompt = PromptTemplate( template=custom_prompt_template, input_variables=["context", "question", "chat_history", "User_Name", "User_Location"], ) # Use your custom prompt when creating the ConversationalRetrievalChain qa = ConversationalRetrievalChain.from_llm( llm, verbose=False, retriever=retriever, memory=memory, combine_docs_chain_kwargs={"prompt": custom_prompt}, return_source_documents = True ) ``` if i use llm.predict("Tell me a joke"). I can see the cache is getting stored in db. but for qa if i ask question its not saving , why?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15303/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15303/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15302
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15302/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15302/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15302/events
https://github.com/langchain-ai/langchain/pull/15302
2,059,027,976
PR_kwDOIPDwls5i6oK8
15,302
Feat: support OpenAIAssistantRunnable async
{ "login": "chyroc", "id": 15604894, "node_id": "MDQ6VXNlcjE1NjA0ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chyroc", "html_url": "https://github.com/chyroc", "followers_url": "https://api.github.com/users/chyroc/followers", "following_url": "https://api.github.com/users/chyroc/following{/other_user}", "gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}", "starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chyroc/subscriptions", "organizations_url": "https://api.github.com/users/chyroc/orgs", "repos_url": "https://api.github.com/users/chyroc/repos", "events_url": "https://api.github.com/users/chyroc/events{/privacy}", "received_events_url": "https://api.github.com/users/chyroc/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
3
2023-12-29T03:25:02
2023-12-29T05:03:48
null
CONTRIBUTOR
null
fix https://github.com/langchain-ai/langchain/issues/15299
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15302/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15302/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15302", "html_url": "https://github.com/langchain-ai/langchain/pull/15302", "diff_url": "https://github.com/langchain-ai/langchain/pull/15302.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15302.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15301
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15301/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15301/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15301/events
https://github.com/langchain-ai/langchain/pull/15301
2,059,011,980
PR_kwDOIPDwls5i6k8M
15,301
Patch: improve check openai version
{ "login": "chyroc", "id": 15604894, "node_id": "MDQ6VXNlcjE1NjA0ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chyroc", "html_url": "https://github.com/chyroc", "followers_url": "https://api.github.com/users/chyroc/followers", "following_url": "https://api.github.com/users/chyroc/following{/other_user}", "gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}", "starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chyroc/subscriptions", "organizations_url": "https://api.github.com/users/chyroc/orgs", "repos_url": "https://api.github.com/users/chyroc/repos", "events_url": "https://api.github.com/users/chyroc/events{/privacy}", "received_events_url": "https://api.github.com/users/chyroc/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T02:44:34
2023-12-29T21:44:19
2023-12-29T21:44:19
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15301/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15301/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15301", "html_url": "https://github.com/langchain-ai/langchain/pull/15301", "diff_url": "https://github.com/langchain-ai/langchain/pull/15301.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15301.patch", "merged_at": "2023-12-29T21:44:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/15300
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15300/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15300/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15300/events
https://github.com/langchain-ai/langchain/issues/15300
2,059,008,076
I_kwDOIPDwls56ufhM
15,300
Using chipper model with hi_res strategy gives an error
{ "login": "samer1977", "id": 41384829, "node_id": "MDQ6VXNlcjQxMzg0ODI5", "avatar_url": "https://avatars.githubusercontent.com/u/41384829?v=4", "gravatar_id": "", "url": "https://api.github.com/users/samer1977", "html_url": "https://github.com/samer1977", "followers_url": "https://api.github.com/users/samer1977/followers", "following_url": "https://api.github.com/users/samer1977/following{/other_user}", "gists_url": "https://api.github.com/users/samer1977/gists{/gist_id}", "starred_url": "https://api.github.com/users/samer1977/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/samer1977/subscriptions", "organizations_url": "https://api.github.com/users/samer1977/orgs", "repos_url": "https://api.github.com/users/samer1977/repos", "events_url": "https://api.github.com/users/samer1977/events{/privacy}", "received_events_url": "https://api.github.com/users/samer1977/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
2
2023-12-29T02:33:48
2023-12-29T08:59:31
null
NONE
null
### System Info Hi, I'm new to this, so I apologize if my lack of in-depth understanding to how this library works caused to me raise a false alarm. Im trying to an ocr on pdf image using the UnstructuredPDFLoader, Im passing the following args: ` loader = UnstructuredPDFLoader(file_path="myfile.pdf", mode="elements",include_page_break=True,infer_table_structure=False,languages=["Eng"],strategy="hi_res",include_metadata=True,model_name="chipper")` However I keep getting the following error: ``` OSError: unstructuredio/chipper-v3 is not a local folder and is not a valid model identifier listed on 'https://huggingface.co./models' If this is a private repository, make sure to pass a token having permission to this repo either by logging in with `huggingface-cli login` or by passing `token=<your_token>` ``` Not sure what Im missing here ? Thanks ### 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 - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` from langchain.document_loaders import UnstructuredPDFLoader loader = UnstructuredPDFLoader(file_path="myfile.pdf", mode="elements",include_page_break=True,infer_table_structure=False,languages=["Eng"],strategy="hi_res",include_metadata=True,model_name="chipper") documents = loader.load() print(documents) ``` ### Expected behavior I should be getting the metadata similar to when I use other models like "yolox" which works fine. I heard chipper model is much better so I wanted to try it.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15300/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15300/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15299
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15299/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15299/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15299/events
https://github.com/langchain-ai/langchain/issues/15299
2,059,006,360
I_kwDOIPDwls56ufGY
15,299
Cannot specify asyn clienct for OpenAIAssistantRunnable
{ "login": "OlajideOgun", "id": 37077640, "node_id": "MDQ6VXNlcjM3MDc3NjQw", "avatar_url": "https://avatars.githubusercontent.com/u/37077640?v=4", "gravatar_id": "", "url": "https://api.github.com/users/OlajideOgun", "html_url": "https://github.com/OlajideOgun", "followers_url": "https://api.github.com/users/OlajideOgun/followers", "following_url": "https://api.github.com/users/OlajideOgun/following{/other_user}", "gists_url": "https://api.github.com/users/OlajideOgun/gists{/gist_id}", "starred_url": "https://api.github.com/users/OlajideOgun/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/OlajideOgun/subscriptions", "organizations_url": "https://api.github.com/users/OlajideOgun/orgs", "repos_url": "https://api.github.com/users/OlajideOgun/repos", "events_url": "https://api.github.com/users/OlajideOgun/events{/privacy}", "received_events_url": "https://api.github.com/users/OlajideOgun/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
1
2023-12-29T02:29:20
2023-12-29T02:35:32
null
CONTRIBUTOR
null
### System Info langchain = "^0.0.352" @agola11 ### Who can help? @agola11 ### 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 Specify async open ai client upon intialization client = openai.AsyncOpenAI() assistant = OpenAIAssistantRunnable(assistant_id=self.assistant_id,as_agent=as_agent,client=client) Produces error pydantic.v1.errors.ConfigError: field "client" not yet prepared so type is still a ForwardRef, you might need to call OpenAIAssistantRunnable.update_forward_refs(). ### Expected behavior expect intialization to be successful
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15299/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/15299/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15298
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15298/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15298/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15298/events
https://github.com/langchain-ai/langchain/pull/15298
2,059,004,189
PR_kwDOIPDwls5i6ja1
15,298
community: integrate China Mobile Ecloud vector search
{ "login": "liuyonghengheng", "id": 56812134, "node_id": "MDQ6VXNlcjU2ODEyMTM0", "avatar_url": "https://avatars.githubusercontent.com/u/56812134?v=4", "gravatar_id": "", "url": "https://api.github.com/users/liuyonghengheng", "html_url": "https://github.com/liuyonghengheng", "followers_url": "https://api.github.com/users/liuyonghengheng/followers", "following_url": "https://api.github.com/users/liuyonghengheng/following{/other_user}", "gists_url": "https://api.github.com/users/liuyonghengheng/gists{/gist_id}", "starred_url": "https://api.github.com/users/liuyonghengheng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/liuyonghengheng/subscriptions", "organizations_url": "https://api.github.com/users/liuyonghengheng/orgs", "repos_url": "https://api.github.com/users/liuyonghengheng/repos", "events_url": "https://api.github.com/users/liuyonghengheng/events{/privacy}", "received_events_url": "https://api.github.com/users/liuyonghengheng/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 6077048506, "node_id": "LA_kwDOIPDwls8AAAABajhmug", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20elasticsearch", "name": "integration: elasticsearch", "color": "DAB5EC", "default": false, "description": "Related to elastic/elasticsearch integrations" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
open
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
5
2023-12-29T02:23:46
2024-01-10T01:24:31
null
NONE
null
- **Description:** integrate China Mobile Ecloud vector search, - **Dependencies:** elasticsearch==7.10.1
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15298/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15298/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15298", "html_url": "https://github.com/langchain-ai/langchain/pull/15298", "diff_url": "https://github.com/langchain-ai/langchain/pull/15298.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15298.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15297
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15297/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15297/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15297/events
https://github.com/langchain-ai/langchain/pull/15297
2,058,982,424
PR_kwDOIPDwls5i6fFj
15,297
[core] add test for json parser
{ "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": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T01:31:54
2023-12-29T17:59:40
2023-12-29T17:59:39
COLLABORATOR
null
this should fail, but isnt
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15297/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15297/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15297", "html_url": "https://github.com/langchain-ai/langchain/pull/15297", "diff_url": "https://github.com/langchain-ai/langchain/pull/15297.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15297.patch", "merged_at": "2023-12-29T17:59:39" }
https://api.github.com/repos/langchain-ai/langchain/issues/15296
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15296/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15296/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15296/events
https://github.com/langchain-ai/langchain/pull/15296
2,058,978,835
PR_kwDOIPDwls5i6eYz
15,296
[documentation]
{ "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": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T01:22:16
2024-01-06T00:32:39
2024-01-06T00:32:39
COLLABORATOR
null
Add doc for tool use
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15296/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15296/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15296", "html_url": "https://github.com/langchain-ai/langchain/pull/15296", "diff_url": "https://github.com/langchain-ai/langchain/pull/15296.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15296.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15295
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15295/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15295/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15295/events
https://github.com/langchain-ai/langchain/pull/15295
2,058,962,698
PR_kwDOIPDwls5i6bMN
15,295
Improve markdown list parser
{ "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 }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T00:37:23
2023-12-29T17:59:22
2023-12-29T17:59:21
COLLABORATOR
null
- do not match text after - in the middle of a sentence <!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15295/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15295/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15295", "html_url": "https://github.com/langchain-ai/langchain/pull/15295", "diff_url": "https://github.com/langchain-ai/langchain/pull/15295.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15295.patch", "merged_at": "2023-12-29T17:59:21" }
https://api.github.com/repos/langchain-ai/langchain/issues/15294
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15294/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15294/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15294/events
https://github.com/langchain-ai/langchain/pull/15294
2,058,961,380
PR_kwDOIPDwls5i6a62
15,294
[docs] update toolkit docs
{ "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": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-29T00:33:27
2024-01-01T22:21:56
2024-01-01T22:21:55
COLLABORATOR
null
its probably too much work to do all toolkits before 0.1 Also, some agent toolkits (like pandas and python) will require more work
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15294/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15294/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15294", "html_url": "https://github.com/langchain-ai/langchain/pull/15294", "diff_url": "https://github.com/langchain-ai/langchain/pull/15294.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15294.patch", "merged_at": "2024-01-01T22:21:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/15293
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15293/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15293/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15293/events
https://github.com/langchain-ai/langchain/pull/15293
2,058,946,805
PR_kwDOIPDwls5i6X91
15,293
Strip code block fences and extra test from xml when doing streaming …
{ "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 }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T23:54:24
2023-12-29T00:37:17
2023-12-29T00:37:16
COLLABORATOR
null
…parse <!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15293/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15293/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15293", "html_url": "https://github.com/langchain-ai/langchain/pull/15293", "diff_url": "https://github.com/langchain-ai/langchain/pull/15293.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15293.patch", "merged_at": "2023-12-29T00:37:16" }
https://api.github.com/repos/langchain-ai/langchain/issues/15292
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15292/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15292/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15292/events
https://github.com/langchain-ai/langchain/pull/15292
2,058,934,796
PR_kwDOIPDwls5i6ViY
15,292
[docs] custom instructions
{ "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": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T23:19:24
2023-12-29T18:43:52
2023-12-29T18:43:51
COLLABORATOR
null
We now have custom instructions for: LLM ChatModels Retrievers Agents Tools I held off adding for vectorstore since its a bit more involved and we dont have a good base and i think its more likely people write custom retrievers than vectorstores?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15292/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15292/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15292", "html_url": "https://github.com/langchain-ai/langchain/pull/15292", "diff_url": "https://github.com/langchain-ai/langchain/pull/15292.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15292.patch", "merged_at": "2023-12-29T18:43:51" }
https://api.github.com/repos/langchain-ai/langchain/issues/15289
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15289/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15289/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15289/events
https://github.com/langchain-ai/langchain/issues/15289
2,058,918,716
I_kwDOIPDwls56uJs8
15,289
Azure function not working - openai error with latest builds
{ "login": "RobertHH-IS", "id": 53995861, "node_id": "MDQ6VXNlcjUzOTk1ODYx", "avatar_url": "https://avatars.githubusercontent.com/u/53995861?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RobertHH-IS", "html_url": "https://github.com/RobertHH-IS", "followers_url": "https://api.github.com/users/RobertHH-IS/followers", "following_url": "https://api.github.com/users/RobertHH-IS/following{/other_user}", "gists_url": "https://api.github.com/users/RobertHH-IS/gists{/gist_id}", "starred_url": "https://api.github.com/users/RobertHH-IS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RobertHH-IS/subscriptions", "organizations_url": "https://api.github.com/users/RobertHH-IS/orgs", "repos_url": "https://api.github.com/users/RobertHH-IS/repos", "events_url": "https://api.github.com/users/RobertHH-IS/events{/privacy}", "received_events_url": "https://api.github.com/users/RobertHH-IS/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
3
2023-12-28T22:42:25
2023-12-30T12:46:52
2023-12-30T12:46:52
NONE
null
### System Info Name: langchain Version: 0.0.352 Name: openai Version: 1.6.1 ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [X] Embedding Models - [ ] 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 AzureChatOpenAI from langchain.schema import HumanMessage BASE_URL = "https://resource.openai.azure.com/" API_KEY = "abc123" DEPLOYMENT_NAME = "GPT35" model = AzureChatOpenAI( openai_api_base=BASE_URL, openai_api_version="2023-05-15", deployment_name=DEPLOYMENT_NAME, openai_api_key=API_KEY, openai_api_type="azure", ) print(model( [ HumanMessage( content="Translate this sentence from English to French. I love programming." ) ] )) ### Expected behavior I get an error about openai module. I get same error when i try and use embeddings. I can use the openai azure pythons fine with my resource and api key - but langchain is broken. AttributeError Traceback (most recent call last) AttributeError: module 'openai' has no attribute 'error'
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15289/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15289/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15288
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15288/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15288/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15288/events
https://github.com/langchain-ai/langchain/pull/15288
2,058,914,150
PR_kwDOIPDwls5i6RHp
15,288
(do not merge)
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T22:39:05
2023-12-28T23:17:25
2023-12-28T23:17:25
COLLABORATOR
null
vercel not previewing the other branch for some reason
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15288/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15288/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15288", "html_url": "https://github.com/langchain-ai/langchain/pull/15288", "diff_url": "https://github.com/langchain-ai/langchain/pull/15288.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15288.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15287
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15287/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15287/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15287/events
https://github.com/langchain-ai/langchain/pull/15287
2,058,906,800
PR_kwDOIPDwls5i6PbQ
15,287
Make all json parsing less strict by default
{ "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 }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T22:33:21
2023-12-28T22:48:54
2023-12-28T22:48:53
COLLABORATOR
null
- Enables strict=False by default - Uses partial json recovery logic by default <!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15287/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15287/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15287", "html_url": "https://github.com/langchain-ai/langchain/pull/15287", "diff_url": "https://github.com/langchain-ai/langchain/pull/15287.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15287.patch", "merged_at": "2023-12-28T22:48:53" }
https://api.github.com/repos/langchain-ai/langchain/issues/15286
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15286/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15286/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15286/events
https://github.com/langchain-ai/langchain/pull/15286
2,058,864,014
PR_kwDOIPDwls5i6Fbs
15,286
remove chat-history
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T22:05:43
2023-12-28T22:33:42
2023-12-28T22:22:16
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15286/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15286/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15286", "html_url": "https://github.com/langchain-ai/langchain/pull/15286", "diff_url": "https://github.com/langchain-ai/langchain/pull/15286.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15286.patch", "merged_at": "2023-12-28T22:22:16" }
https://api.github.com/repos/langchain-ai/langchain/issues/15285
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15285/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15285/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15285/events
https://github.com/langchain-ai/langchain/issues/15285
2,058,832,286
I_kwDOIPDwls56t0me
15,285
Incorrect Snowflake SQL dialect in SQLDatabaseChain
{ "login": "sbisen", "id": 48185934, "node_id": "MDQ6VXNlcjQ4MTg1OTM0", "avatar_url": "https://avatars.githubusercontent.com/u/48185934?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sbisen", "html_url": "https://github.com/sbisen", "followers_url": "https://api.github.com/users/sbisen/followers", "following_url": "https://api.github.com/users/sbisen/following{/other_user}", "gists_url": "https://api.github.com/users/sbisen/gists{/gist_id}", "starred_url": "https://api.github.com/users/sbisen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sbisen/subscriptions", "organizations_url": "https://api.github.com/users/sbisen/orgs", "repos_url": "https://api.github.com/users/sbisen/repos", "events_url": "https://api.github.com/users/sbisen/events{/privacy}", "received_events_url": "https://api.github.com/users/sbisen/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
12
2023-12-28T21:26:16
2024-01-15T01:05:51
null
NONE
null
### System Info langchain version: 0.0.348 Python 3.9.18 Mac OS M2 (Ventura 13.6.2) AWS Bedrock Titan text express, Claude v2 ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction SQLDatabaseChain produces SQL query where the logic is correct but uses double quotes "identifier" hence incorrect for the snowflake SQL which require single quotes 'identifier' output = SQL: SELECT "company" = "ABC" desired output = SQL: SELECT 'company' = 'ABC'requires ### Expected behavior desired out should be snowflake SQL single quotes for the identifier 'ABC'
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15285/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15285/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15284
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15284/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15284/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15284/events
https://github.com/langchain-ai/langchain/pull/15284
2,058,815,668
PR_kwDOIPDwls5i564R
15,284
docs: cleanup rag use case
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T20:57:52
2023-12-31T00:41:09
2023-12-31T00:39:22
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15284/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15284/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15284", "html_url": "https://github.com/langchain-ai/langchain/pull/15284", "diff_url": "https://github.com/langchain-ai/langchain/pull/15284.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15284.patch", "merged_at": "2023-12-31T00:39:22" }
https://api.github.com/repos/langchain-ai/langchain/issues/15283
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15283/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15283/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15283/events
https://github.com/langchain-ai/langchain/issues/15283
2,058,773,284
I_kwDOIPDwls56tmMk
15,283
AWS bedrock Claude v2 SQLDatabaseChain produces comments before the SQL Query
{ "login": "sbisen", "id": 48185934, "node_id": "MDQ6VXNlcjQ4MTg1OTM0", "avatar_url": "https://avatars.githubusercontent.com/u/48185934?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sbisen", "html_url": "https://github.com/sbisen", "followers_url": "https://api.github.com/users/sbisen/followers", "following_url": "https://api.github.com/users/sbisen/following{/other_user}", "gists_url": "https://api.github.com/users/sbisen/gists{/gist_id}", "starred_url": "https://api.github.com/users/sbisen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sbisen/subscriptions", "organizations_url": "https://api.github.com/users/sbisen/orgs", "repos_url": "https://api.github.com/users/sbisen/repos", "events_url": "https://api.github.com/users/sbisen/events{/privacy}", "received_events_url": "https://api.github.com/users/sbisen/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 5959659008, "node_id": "LA_kwDOIPDwls8AAAABYzkuAA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws", "name": "integration: aws", "color": "C5DEF5", "default": false, "description": "Related to Amazon Web Services (AWS) integrations" } ]
open
false
null
[]
null
19
2023-12-28T19:51:15
2024-01-15T02:49:42
null
NONE
null
### System Info langchain Version: 0.0.348 python Version: Python 3.9.18 OS: Mac OS M2 (Ventura 13.6.2) ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction llm = Bedrock( credentials_profile_name= os.environ.get('profile_name'), model_id="anthropic.claude-v2", model_kwargs={"temperature": 0.1}, endpoint_url="https://bedrock-runtime.us-east-1.amazonaws.com", region_name="us-east-1", verbose=True ) db = SQLDatabase.from_uri(snowflake_url, sample_rows_in_table_info=3, include_tables=["table_name"]) output= SQLDatabaseChain.from_llm( llm, db, prompt=few_shot_prompt, return_intermediate_steps=True, ) Gives the following error: Error: syntax error line 1 at position 0 unexpected '**The**'. [SQL: **The** query looks good to me, I don't see any of the common mistakes listed. Here is the original query again: SELECT * FROM table] ### Expected behavior the output should only produce SQL query outputted plainly, should not surround it in quotes or any comments prior to the SQL Query Desired output: [SQL: SELECT * FROM table]
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15283/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15283/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15282
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15282/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15282/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15282/events
https://github.com/langchain-ai/langchain/pull/15282
2,058,765,922
PR_kwDOIPDwls5i5wVp
15,282
mistralai[minor]: Add embeddings
{ "login": "DavidLMS", "id": 17435126, "node_id": "MDQ6VXNlcjE3NDM1MTI2", "avatar_url": "https://avatars.githubusercontent.com/u/17435126?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DavidLMS", "html_url": "https://github.com/DavidLMS", "followers_url": "https://api.github.com/users/DavidLMS/followers", "following_url": "https://api.github.com/users/DavidLMS/following{/other_user}", "gists_url": "https://api.github.com/users/DavidLMS/gists{/gist_id}", "starred_url": "https://api.github.com/users/DavidLMS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DavidLMS/subscriptions", "organizations_url": "https://api.github.com/users/DavidLMS/orgs", "repos_url": "https://api.github.com/users/DavidLMS/repos", "events_url": "https://api.github.com/users/DavidLMS/events{/privacy}", "received_events_url": "https://api.github.com/users/DavidLMS/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." }, { "id": 6348691034, "node_id": "LA_kwDOIPDwls8AAAABemlWWg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner", "name": "partner", "color": "ededed", "default": false, "description": null } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
3
2023-12-28T19:40:03
2024-01-17T01:48:38
2024-01-17T01:48:37
CONTRIBUTOR
null
- **Description:** Adds MistralAIEmbeddings class for embeddings, using the new official API. - **Dependencies:** mistralai - **Tag maintainer**: @efriis, @hwchase17 - **Twitter handle:** @LMS_David_RS Create `integrations/text_embedding/mistralai.ipynb`: an example notebook for MistralAIEmbeddings class Modify `embeddings/__init__.py`: Import the class Create `embeddings/mistralai.py`: The embedding class Create `integration_tests/embeddings/test_mistralai.py`: The test file.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15282/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/15282/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15282", "html_url": "https://github.com/langchain-ai/langchain/pull/15282", "diff_url": "https://github.com/langchain-ai/langchain/pull/15282.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15282.patch", "merged_at": "2024-01-17T01:48:37" }
https://api.github.com/repos/langchain-ai/langchain/issues/15281
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15281/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15281/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15281/events
https://github.com/langchain-ai/langchain/pull/15281
2,058,757,986
PR_kwDOIPDwls5i5uor
15,281
[documentation] documentation revamp
{ "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": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T19:27:59
2023-12-29T22:51:07
2023-12-29T22:51:07
COLLABORATOR
null
needs new versions of langchain-core and langchain
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15281/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15281/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15281", "html_url": "https://github.com/langchain-ai/langchain/pull/15281", "diff_url": "https://github.com/langchain-ai/langchain/pull/15281.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15281.patch", "merged_at": "2023-12-29T22:51:06" }
https://api.github.com/repos/langchain-ai/langchain/issues/15280
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15280/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15280/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15280/events
https://github.com/langchain-ai/langchain/pull/15280
2,058,741,428
PR_kwDOIPDwls5i5rFU
15,280
community: Added integrations for ThirdAI's NeuralDB with Retriever and VectorStore frameworks
{ "login": "benitoThree", "id": 89472452, "node_id": "MDQ6VXNlcjg5NDcyNDUy", "avatar_url": "https://avatars.githubusercontent.com/u/89472452?v=4", "gravatar_id": "", "url": "https://api.github.com/users/benitoThree", "html_url": "https://github.com/benitoThree", "followers_url": "https://api.github.com/users/benitoThree/followers", "following_url": "https://api.github.com/users/benitoThree/following{/other_user}", "gists_url": "https://api.github.com/users/benitoThree/gists{/gist_id}", "starred_url": "https://api.github.com/users/benitoThree/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/benitoThree/subscriptions", "organizations_url": "https://api.github.com/users/benitoThree/orgs", "repos_url": "https://api.github.com/users/benitoThree/repos", "events_url": "https://api.github.com/users/benitoThree/events{/privacy}", "received_events_url": "https://api.github.com/users/benitoThree/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
open
false
null
[]
null
2
2023-12-28T19:04:11
2024-01-11T15:43:45
null
NONE
null
**Description:** Adds ThirdAI NeuralDB retriever and vectorstore integration. NeuralDB is a CPU-friendly and fine-tunable text retrieval engine.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15280/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15280/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15280", "html_url": "https://github.com/langchain-ai/langchain/pull/15280", "diff_url": "https://github.com/langchain-ai/langchain/pull/15280.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15280.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15279
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15279/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15279/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15279/events
https://github.com/langchain-ai/langchain/pull/15279
2,058,729,815
PR_kwDOIPDwls5i5onL
15,279
docs: add use cases index
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T18:51:23
2023-12-29T17:02:32
2023-12-29T17:02:31
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15279/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15279/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15279", "html_url": "https://github.com/langchain-ai/langchain/pull/15279", "diff_url": "https://github.com/langchain-ai/langchain/pull/15279.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15279.patch", "merged_at": "2023-12-29T17:02:31" }
https://api.github.com/repos/langchain-ai/langchain/issues/15278
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15278/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15278/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15278/events
https://github.com/langchain-ai/langchain/pull/15278
2,058,716,221
PR_kwDOIPDwls5i5lze
15,278
[langchain] agents code changes
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714130, "node_id": "LA_kwDOIPDwls8AAAABc3-rkg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL", "name": "size:XL", "color": "D4C5F9", "default": false, "description": "This PR changes 500-999 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T18:31:49
2023-12-28T21:39:10
2023-12-28T21:39:09
COLLABORATOR
null
<!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15278/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15278/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15278", "html_url": "https://github.com/langchain-ai/langchain/pull/15278", "diff_url": "https://github.com/langchain-ai/langchain/pull/15278.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15278.patch", "merged_at": "2023-12-28T21:39:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/15277
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15277/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15277/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15277/events
https://github.com/langchain-ai/langchain/pull/15277
2,058,693,569
PR_kwDOIPDwls5i5hBi
15,277
[core, langchain] modelio code improvements
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T18:00:42
2023-12-28T20:56:22
2023-12-28T20:56:21
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15277/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15277/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15277", "html_url": "https://github.com/langchain-ai/langchain/pull/15277", "diff_url": "https://github.com/langchain-ai/langchain/pull/15277.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15277.patch", "merged_at": "2023-12-28T20:56:21" }
https://api.github.com/repos/langchain-ai/langchain/issues/15276
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15276/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15276/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15276/events
https://github.com/langchain-ai/langchain/pull/15276
2,058,661,491
PR_kwDOIPDwls5i5aNj
15,276
community: fix typo in async ollama chat
{ "login": "shroominic", "id": 34897716, "node_id": "MDQ6VXNlcjM0ODk3NzE2", "avatar_url": "https://avatars.githubusercontent.com/u/34897716?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shroominic", "html_url": "https://github.com/shroominic", "followers_url": "https://api.github.com/users/shroominic/followers", "following_url": "https://api.github.com/users/shroominic/following{/other_user}", "gists_url": "https://api.github.com/users/shroominic/gists{/gist_id}", "starred_url": "https://api.github.com/users/shroominic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shroominic/subscriptions", "organizations_url": "https://api.github.com/users/shroominic/orgs", "repos_url": "https://api.github.com/users/shroominic/repos", "events_url": "https://api.github.com/users/shroominic/events{/privacy}", "received_events_url": "https://api.github.com/users/shroominic/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T17:18:27
2023-12-29T19:57:20
2023-12-28T17:56:55
CONTRIBUTOR
null
Made a stupid typo in the last PR which got already merged😅
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15276/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15276/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15276", "html_url": "https://github.com/langchain-ai/langchain/pull/15276", "diff_url": "https://github.com/langchain-ai/langchain/pull/15276.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15276.patch", "merged_at": "2023-12-28T17:56:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/15275
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15275/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15275/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15275/events
https://github.com/langchain-ai/langchain/pull/15275
2,058,657,492
PR_kwDOIPDwls5i5ZZf
15,275
Update vectorstore_retriever_memory.mdx
{ "login": "kellyelton", "id": 1356163, "node_id": "MDQ6VXNlcjEzNTYxNjM=", "avatar_url": "https://avatars.githubusercontent.com/u/1356163?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kellyelton", "html_url": "https://github.com/kellyelton", "followers_url": "https://api.github.com/users/kellyelton/followers", "following_url": "https://api.github.com/users/kellyelton/following{/other_user}", "gists_url": "https://api.github.com/users/kellyelton/gists{/gist_id}", "starred_url": "https://api.github.com/users/kellyelton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kellyelton/subscriptions", "organizations_url": "https://api.github.com/users/kellyelton/orgs", "repos_url": "https://api.github.com/users/kellyelton/repos", "events_url": "https://api.github.com/users/kellyelton/events{/privacy}", "received_events_url": "https://api.github.com/users/kellyelton/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": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T17:13:35
2023-12-29T20:06:31
2023-12-29T20:06:31
CONTRIBUTOR
null
removed bad comments <!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15275/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15275/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15275", "html_url": "https://github.com/langchain-ai/langchain/pull/15275", "diff_url": "https://github.com/langchain-ai/langchain/pull/15275.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15275.patch", "merged_at": "2023-12-29T20:06:31" }
https://api.github.com/repos/langchain-ai/langchain/issues/15274
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15274/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15274/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15274/events
https://github.com/langchain-ai/langchain/pull/15274
2,058,651,209
PR_kwDOIPDwls5i5YDg
15,274
revamp memory
{ "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": 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": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T17:05:50
2023-12-28T17:56:36
2023-12-28T17:56:36
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15274/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15274/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15274", "html_url": "https://github.com/langchain-ai/langchain/pull/15274", "diff_url": "https://github.com/langchain-ai/langchain/pull/15274.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15274.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15271
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15271/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15271/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15271/events
https://github.com/langchain-ai/langchain/pull/15271
2,058,472,953
PR_kwDOIPDwls5i4xni
15,271
community: llms.vertexai - Adds support for logprobs
{ "login": "darktheorys", "id": 44052817, "node_id": "MDQ6VXNlcjQ0MDUyODE3", "avatar_url": "https://avatars.githubusercontent.com/u/44052817?v=4", "gravatar_id": "", "url": "https://api.github.com/users/darktheorys", "html_url": "https://github.com/darktheorys", "followers_url": "https://api.github.com/users/darktheorys/followers", "following_url": "https://api.github.com/users/darktheorys/following{/other_user}", "gists_url": "https://api.github.com/users/darktheorys/gists{/gist_id}", "starred_url": "https://api.github.com/users/darktheorys/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/darktheorys/subscriptions", "organizations_url": "https://api.github.com/users/darktheorys/orgs", "repos_url": "https://api.github.com/users/darktheorys/repos", "events_url": "https://api.github.com/users/darktheorys/events{/privacy}", "received_events_url": "https://api.github.com/users/darktheorys/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
open
false
null
[]
null
2
2023-12-28T13:58:18
2024-01-03T11:13:11
null
CONTRIBUTOR
null
- **Description:** Adds support for logprobs within vertex ai, recently google started to support logprobs, this commit includes fast adaptation, Google recently started supporting logprobs, please check out this [page](https://cloud.google.com/vertex-ai/docs/generative-ai/model-reference/text#generative-ai-text-prompt-python_vertex_ai_sdk) for more details on their side. - **Issue:** -, - **Dependencies:** -, - **Twitter handle:** [Burak Ömür](https://twitter.com/burkomr)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15271/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15271/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15271", "html_url": "https://github.com/langchain-ai/langchain/pull/15271", "diff_url": "https://github.com/langchain-ai/langchain/pull/15271.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15271.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15270
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15270/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15270/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15270/events
https://github.com/langchain-ai/langchain/issues/15270
2,058,448,990
I_kwDOIPDwls56sXBe
15,270
OpenAIAssistantRunnable stuck on execution with langchain tools
{ "login": "OlajideOgun", "id": 37077640, "node_id": "MDQ6VXNlcjM3MDc3NjQw", "avatar_url": "https://avatars.githubusercontent.com/u/37077640?v=4", "gravatar_id": "", "url": "https://api.github.com/users/OlajideOgun", "html_url": "https://github.com/OlajideOgun", "followers_url": "https://api.github.com/users/OlajideOgun/followers", "following_url": "https://api.github.com/users/OlajideOgun/following{/other_user}", "gists_url": "https://api.github.com/users/OlajideOgun/gists{/gist_id}", "starred_url": "https://api.github.com/users/OlajideOgun/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/OlajideOgun/subscriptions", "organizations_url": "https://api.github.com/users/OlajideOgun/orgs", "repos_url": "https://api.github.com/users/OlajideOgun/repos", "events_url": "https://api.github.com/users/OlajideOgun/events{/privacy}", "received_events_url": "https://api.github.com/users/OlajideOgun/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-12-28T13:33:35
2023-12-28T17:46:23
2023-12-28T17:46:23
CONTRIBUTOR
null
### System Info ``` from langchain.tools import DuckDuckGoSearchRun from langchain.agents.openai_assistant import OpenAIAssistantRunnable from langchain.agents import AgentExecutor tools = [DuckDuckGoSearchRun()] assistant = OpenAIAssistantRunnable.create_assistant( name="langchain assistant", instructions="You are a personal math tutor.", tools=tools, model="gpt-4-1106-preview", as_agent=True, ) logger.debug(assistant) logger.debug(assistant.assistant_id) agent_executor = AgentExecutor(agent=assistant, tools=tools,verbose=True) response = agent_executor.invoke({"content": "whats the whether in london"}) print(response) logger.debug(response) ``` I am trying to run the following from the example. It prints out the assitant information and id but after that it get completely stuck. I tried to step through the debugger but after while it continues and never comes back after calling ``` callback_manager = CallbackManager.configure( callbacks, self.callbacks, self.verbose, tags, self.tags, metadata, self.metadata, ) ``` in the `__call__` method ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [X] Callbacks/Tracing - [ ] Async ### Reproduction from langchain.tools import DuckDuckGoSearchRun from langchain.agents.openai_assistant import OpenAIAssistantRunnable from langchain.agents import AgentExecutor tools = [DuckDuckGoSearchRun()] assistant = OpenAIAssistantRunnable.create_assistant( name="langchain assistant", instructions="You are a personal math tutor.", tools=tools, model="gpt-4-1106-preview", as_agent=True, ) logger.debug(tai_assistant) logger.debug(tai_assistant.assistant_id) agent_executor = AgentExecutor(agent=assistant, tools=tools,verbose=True) response = agent_executor.invoke({"content": "whats the whether in london"}) print(response) logger.debug(response) ### Expected behavior to have an output from the agent and not be stuck
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15270/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15270/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15269
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15269/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15269/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15269/events
https://github.com/langchain-ai/langchain/issues/15269
2,058,428,380
I_kwDOIPDwls56sR_c
15,269
[mistralai]: Don´t support stop sequence
{ "login": "DavidLMS", "id": 17435126, "node_id": "MDQ6VXNlcjE3NDM1MTI2", "avatar_url": "https://avatars.githubusercontent.com/u/17435126?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DavidLMS", "html_url": "https://github.com/DavidLMS", "followers_url": "https://api.github.com/users/DavidLMS/followers", "following_url": "https://api.github.com/users/DavidLMS/following{/other_user}", "gists_url": "https://api.github.com/users/DavidLMS/gists{/gist_id}", "starred_url": "https://api.github.com/users/DavidLMS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DavidLMS/subscriptions", "organizations_url": "https://api.github.com/users/DavidLMS/orgs", "repos_url": "https://api.github.com/users/DavidLMS/repos", "events_url": "https://api.github.com/users/DavidLMS/events{/privacy}", "received_events_url": "https://api.github.com/users/DavidLMS/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2023-12-28T13:14:32
2024-01-10T00:27:22
2024-01-10T00:27:22
CONTRIBUTOR
null
### System Info Python: 3.11 Langchain: 0.0.352 mistralai: 0.0.8 ### Who can help? @efriis ### 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 - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction If the ChatMistralAI model is used for an agent or similar, an error appears because the official Mistral API does not currently support the stop parameter (as other APIs such as OpenAI do). ### Expected behavior Although this is something that should be fixed by Mistral in its official API, one of the following options should be done: - Warn the user that this model cannot be used with a stop sequence before breaking execution due to the error. - Implement an own solution for the stop sequence in the same package and do not send that parameter to the official client call.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15269/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15269/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15268
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15268/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15268/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15268/events
https://github.com/langchain-ai/langchain/pull/15268
2,058,421,290
PR_kwDOIPDwls5i4mOP
15,268
langchain: Fix class name in RetryOutputParser docstring
{ "login": "brendancsmith", "id": 5986636, "node_id": "MDQ6VXNlcjU5ODY2MzY=", "avatar_url": "https://avatars.githubusercontent.com/u/5986636?v=4", "gravatar_id": "", "url": "https://api.github.com/users/brendancsmith", "html_url": "https://github.com/brendancsmith", "followers_url": "https://api.github.com/users/brendancsmith/followers", "following_url": "https://api.github.com/users/brendancsmith/following{/other_user}", "gists_url": "https://api.github.com/users/brendancsmith/gists{/gist_id}", "starred_url": "https://api.github.com/users/brendancsmith/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/brendancsmith/subscriptions", "organizations_url": "https://api.github.com/users/brendancsmith/orgs", "repos_url": "https://api.github.com/users/brendancsmith/repos", "events_url": "https://api.github.com/users/brendancsmith/events{/privacy}", "received_events_url": "https://api.github.com/users/brendancsmith/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T13:07:17
2023-12-28T16:03:46
2023-12-28T16:03:46
CONTRIBUTOR
null
`OutputFixingParser` -> `RetryOutputParser` ![i'm-helping](https://github.com/langchain-ai/langchain/assets/5986636/68f1b8ce-8a6e-4e75-9cf8-e3c93ac562c2)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15268/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15268/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15268", "html_url": "https://github.com/langchain-ai/langchain/pull/15268", "diff_url": "https://github.com/langchain-ai/langchain/pull/15268.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15268.patch", "merged_at": "2023-12-28T16:03:46" }
https://api.github.com/repos/langchain-ai/langchain/issues/15267
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15267/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15267/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15267/events
https://github.com/langchain-ai/langchain/pull/15267
2,058,390,197
PR_kwDOIPDwls5i4fQy
15,267
community: Support openai_proxy compatible with openai>1.0.0
{ "login": "169", "id": 10000925, "node_id": "MDQ6VXNlcjEwMDAwOTI1", "avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4", "gravatar_id": "", "url": "https://api.github.com/users/169", "html_url": "https://github.com/169", "followers_url": "https://api.github.com/users/169/followers", "following_url": "https://api.github.com/users/169/following{/other_user}", "gists_url": "https://api.github.com/users/169/gists{/gist_id}", "starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/169/subscriptions", "organizations_url": "https://api.github.com/users/169/orgs", "repos_url": "https://api.github.com/users/169/repos", "events_url": "https://api.github.com/users/169/events{/privacy}", "received_events_url": "https://api.github.com/users/169/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
2
2023-12-28T12:39:16
2024-01-05T12:28:00
null
CONTRIBUTOR
null
### **Description:** `openai` v1 no longer supports the method of setting `openai.proxy`. If using `OPENAI_PRPXY`, the users need to initialize an `http_client`. ### **Issue:** https://github.com/langchain-ai/langchain/issues/13939
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15267/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15267/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15267", "html_url": "https://github.com/langchain-ai/langchain/pull/15267", "diff_url": "https://github.com/langchain-ai/langchain/pull/15267.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15267.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15266
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15266/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15266/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15266/events
https://github.com/langchain-ai/langchain/issues/15266
2,058,376,378
I_kwDOIPDwls56sFS6
15,266
Manipulating database using chatgpt
{ "login": "jyoti194", "id": 109470153, "node_id": "U_kgDOBoZhyQ", "avatar_url": "https://avatars.githubusercontent.com/u/109470153?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jyoti194", "html_url": "https://github.com/jyoti194", "followers_url": "https://api.github.com/users/jyoti194/followers", "following_url": "https://api.github.com/users/jyoti194/following{/other_user}", "gists_url": "https://api.github.com/users/jyoti194/gists{/gist_id}", "starred_url": "https://api.github.com/users/jyoti194/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jyoti194/subscriptions", "organizations_url": "https://api.github.com/users/jyoti194/orgs", "repos_url": "https://api.github.com/users/jyoti194/repos", "events_url": "https://api.github.com/users/jyoti194/events{/privacy}", "received_events_url": "https://api.github.com/users/jyoti194/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
8
2023-12-28T12:24:15
2024-01-09T17:47:12
null
NONE
null
### System Info Is there any way to manipulate the data in database like update, insert, delete through chatgpt chatbot with openai and langchain? ### 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 Is there any way to manipulate the data in database like update, insert, delete through chatgpt chatbot with openai and langchain? ### Expected behavior possibility of manipulate the data in database like update, insert, delete through chatgpt chatbot with openai and langchain?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15266/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15266/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15265
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15265/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15265/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15265/events
https://github.com/langchain-ai/langchain/pull/15265
2,058,340,862
PR_kwDOIPDwls5i4UmL
15,265
community: Add ChatGLM3
{ "login": "169", "id": 10000925, "node_id": "MDQ6VXNlcjEwMDAwOTI1", "avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4", "gravatar_id": "", "url": "https://api.github.com/users/169", "html_url": "https://github.com/169", "followers_url": "https://api.github.com/users/169/followers", "following_url": "https://api.github.com/users/169/following{/other_user}", "gists_url": "https://api.github.com/users/169/gists{/gist_id}", "starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/169/subscriptions", "organizations_url": "https://api.github.com/users/169/orgs", "repos_url": "https://api.github.com/users/169/repos", "events_url": "https://api.github.com/users/169/events{/privacy}", "received_events_url": "https://api.github.com/users/169/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
4
2023-12-28T11:46:37
2024-01-02T05:41:15
null
CONTRIBUTOR
null
Add [ChatGLM3](https://github.com/THUDM/ChatGLM3) and updated [chatglm.ipynb](https://python.langchain.com/docs/integrations/llms/chatglm)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15265/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15265/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15265", "html_url": "https://github.com/langchain-ai/langchain/pull/15265", "diff_url": "https://github.com/langchain-ai/langchain/pull/15265.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15265.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15264
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15264/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15264/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15264/events
https://github.com/langchain-ai/langchain/pull/15264
2,058,336,408
PR_kwDOIPDwls5i4Tn6
15,264
community: Make doctran synchronous
{ "login": "169", "id": 10000925, "node_id": "MDQ6VXNlcjEwMDAwOTI1", "avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4", "gravatar_id": "", "url": "https://api.github.com/users/169", "html_url": "https://github.com/169", "followers_url": "https://api.github.com/users/169/followers", "following_url": "https://api.github.com/users/169/following{/other_user}", "gists_url": "https://api.github.com/users/169/gists{/gist_id}", "starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/169/subscriptions", "organizations_url": "https://api.github.com/users/169/orgs", "repos_url": "https://api.github.com/users/169/repos", "events_url": "https://api.github.com/users/169/events{/privacy}", "received_events_url": "https://api.github.com/users/169/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T11:41:31
2023-12-28T16:05:25
2023-12-28T16:05:25
CONTRIBUTOR
null
### Description I found that the methods in [the doctran library](https://github.com/psychic-api/doctran) have been restructured into [synchronized versions](https://github.com/psychic-api/doctran/commit/14944a59f7513b51e629a850e0de5ae276eabed9), And [the example ipynb](https://github.com/psychic-api/doctran/blob/main/examples.ipynb) also shows that the code is synchronized, but the README has not been updated yet. so we need to modify the code and update the documentation. ### Issue https://github.com/langchain-ai/langchain/issues/14645
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15264/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15264/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15264", "html_url": "https://github.com/langchain-ai/langchain/pull/15264", "diff_url": "https://github.com/langchain-ai/langchain/pull/15264.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15264.patch", "merged_at": "2023-12-28T16:05:24" }
https://api.github.com/repos/langchain-ai/langchain/issues/15262
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15262/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15262/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15262/events
https://github.com/langchain-ai/langchain/issues/15262
2,058,277,920
I_kwDOIPDwls56rtQg
15,262
DOC: Issue with the page titled "Add Memory to OpenAI Functions Agent | 🦜️🔗 Langchain"
{ "login": "abhishek9909", "id": 43916901, "node_id": "MDQ6VXNlcjQzOTE2OTAx", "avatar_url": "https://avatars.githubusercontent.com/u/43916901?v=4", "gravatar_id": "", "url": "https://api.github.com/users/abhishek9909", "html_url": "https://github.com/abhishek9909", "followers_url": "https://api.github.com/users/abhishek9909/followers", "following_url": "https://api.github.com/users/abhishek9909/following{/other_user}", "gists_url": "https://api.github.com/users/abhishek9909/gists{/gist_id}", "starred_url": "https://api.github.com/users/abhishek9909/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abhishek9909/subscriptions", "organizations_url": "https://api.github.com/users/abhishek9909/orgs", "repos_url": "https://api.github.com/users/abhishek9909/repos", "events_url": "https://api.github.com/users/abhishek9909/events{/privacy}", "received_events_url": "https://api.github.com/users/abhishek9909/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-12-28T10:39:12
2023-12-28T11:05:16
2023-12-28T11:04:44
CONTRIBUTOR
null
### Issue with current documentation: According to the documentation listed under the page: https://python.langchain.com/docs/modules/agents/how_to/add_memory_openai_functions, adding a `BaseChatMemory` as `memory` property to an `OpenAIFunctionAgent` should add "memory" to the agent. **Example listed under the page:** >>Human: 'Hi' >>Agent: 'How can I assist you today' >>Human: 'My name is Bob' >>Agent: 'Nice to meet you, Bob! How can I help you today?' >>Human: 'What is my name' >>Agent: 'Your name is Bob.' **Actual result:** >>Human: 'Hi' >>Agent: 'How can I assist you today' >>Human: 'My name is Bob' >>Agent: 'Nice to meet you, Bob! How can I help you today?' >>Human: 'What is my name' >>Agent: 'I am not programmed to say your name' RCA: - The example implies the memory object that is passed to the functions agent instantiation actually takes care of converting the previous messages into required `ChatMessages` model, but implementation of such abstraction seems missing, atleast in langchain >= 0.0.350 - Upon checking with [visualizer](https://github.com/amosjyng/langchain-visualizer), it is seen that: ![image](https://github.com/langchain-ai/langchain/assets/43916901/2c8d48c9-a016-49bd-b96c-e03fedac1568) the latest invocation of agent does not include any "history" of any previous `run` with the `agent`. Curiously however, the agent executor does contain a variable `memory` which does enlist the previous conversations: ![image](https://github.com/langchain-ai/langchain/assets/43916901/d0e44e98-46da-4c3d-8fbc-c2fc4dc0775d) ### Idea or request for content: **Expected resolution:** 1. Update documentation to point to the correct way of incorporating memory with openai functions agent (ad-hoc implementation possibly) 2. Adding and updating implementation to make this API work as expected.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15262/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15262/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15261
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15261/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15261/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15261/events
https://github.com/langchain-ai/langchain/issues/15261
2,058,224,878
I_kwDOIPDwls56rgTu
15,261
Get Chroma vectorstore Document by `doc_id` for document / metadata updates.
{ "login": "ghoumrassi", "id": 38295075, "node_id": "MDQ6VXNlcjM4Mjk1MDc1", "avatar_url": "https://avatars.githubusercontent.com/u/38295075?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ghoumrassi", "html_url": "https://github.com/ghoumrassi", "followers_url": "https://api.github.com/users/ghoumrassi/followers", "following_url": "https://api.github.com/users/ghoumrassi/following{/other_user}", "gists_url": "https://api.github.com/users/ghoumrassi/gists{/gist_id}", "starred_url": "https://api.github.com/users/ghoumrassi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghoumrassi/subscriptions", "organizations_url": "https://api.github.com/users/ghoumrassi/orgs", "repos_url": "https://api.github.com/users/ghoumrassi/repos", "events_url": "https://api.github.com/users/ghoumrassi/events{/privacy}", "received_events_url": "https://api.github.com/users/ghoumrassi/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5924999838, "node_id": "LA_kwDOIPDwls8AAAABYShSng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma", "name": "integration: chroma", "color": "B78AF8", "default": false, "description": "Related to ChromaDB" } ]
open
false
null
[]
null
1
2023-12-28T09:48:44
2023-12-28T09:57:29
null
NONE
null
### Feature request It should be possible to search a Chroma vectorstore for a particular Document by it's ID. Given that the Document object is required for the `update_document` method, this lack of functionality makes it difficult to update document metadata, which should be a fairly common use-case. Currently, there are two methods for searching a vectorstore, `get` and `search` but neither allow me to collect a Document by it's id `vectorstore.get`: This allows for search via `id`, however, this does not return the actual `Document` object. Instead, the return is a dictionary of lists containing the `id`, `document`, and optionally, the `embeddings` for all matched documents. This provides an easy interface for utilising documents downstream, however, this creates a challenge for document updates as the `update_document` method needs the `Document` object to be passed, which would require needless recreation for updates. `vectorstore.search`: This returns the `Document` object as required, however, it is not possible to explicitly search via `id`, only similarity search is possible. As such, it appears that there is currently no easy way to do this at present, without manually recreating the Document from the `get` output. ### Motivation For my use-case, I am performing offline clustering of my embeddings in order to find the core groups of documents and would like to add the predicted label to each document as metadata "cluster_label". Below is a simple representation of my current pipeline: ``` all_docs = vectorstore.get(include=["embeddings", "documents"]) doc_ids = all_docs["ids"] embeddings = np.array(all_docs["embeddings"]) cluster_model, labels = fit_predict_clustering(embeddings, max_components=10) for doc_id, label in zip(ids, labels): # Fetch the document from the vectorstore doc = vectorstore.get(doc_id) # returns Dict[str, List], but I need Document # Given current implementation, I would need to now convert the above dictionary to Document ... # Update metadata with the cluster label doc.metadata["cluster_label"] = label vectorstore.update(doc_id, doc) ``` ### Your contribution I'm happy to contribute to this feature if deemed beneficial. To my mind, it should be achievable by either: 1. Updating the get method to allow `Document` returning, 2. Including a new method with the required functionality, or 3. Providing a utility for easy bulk conversion from `get` output to `List[Document]`. However, I'm open to suggestions as to the most fitting solution.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15261/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15261/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15260
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15260/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15260/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15260/events
https://github.com/langchain-ai/langchain/pull/15260
2,058,209,122
PR_kwDOIPDwls5i33y5
15,260
Documentation: Update playwright documentation for langchain version >= 0.0.351
{ "login": "abhishek9909", "id": 43916901, "node_id": "MDQ6VXNlcjQzOTE2OTAx", "avatar_url": "https://avatars.githubusercontent.com/u/43916901?v=4", "gravatar_id": "", "url": "https://api.github.com/users/abhishek9909", "html_url": "https://github.com/abhishek9909", "followers_url": "https://api.github.com/users/abhishek9909/followers", "following_url": "https://api.github.com/users/abhishek9909/following{/other_user}", "gists_url": "https://api.github.com/users/abhishek9909/gists{/gist_id}", "starred_url": "https://api.github.com/users/abhishek9909/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abhishek9909/subscriptions", "organizations_url": "https://api.github.com/users/abhishek9909/orgs", "repos_url": "https://api.github.com/users/abhishek9909/repos", "events_url": "https://api.github.com/users/abhishek9909/events{/privacy}", "received_events_url": "https://api.github.com/users/abhishek9909/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T09:34:14
2024-01-01T21:38:57
2024-01-01T21:38:57
CONTRIBUTOR
null
- A documentation change in the example listed under: https://python.langchain.com/docs/integrations/toolkits/playwright - `create_async_playwright_browser` does not exist under the module: `langchain.tools.playwright.utils` post >= 0.0.351 version - No dependencies to be changed
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15260/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15260/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15260", "html_url": "https://github.com/langchain-ai/langchain/pull/15260", "diff_url": "https://github.com/langchain-ai/langchain/pull/15260.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15260.patch", "merged_at": "2024-01-01T21:38:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/15258
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15258/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15258/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15258/events
https://github.com/langchain-ai/langchain/pull/15258
2,058,173,553
PR_kwDOIPDwls5i3wC2
15,258
Feat: add embedding callback
{ "login": "chyroc", "id": 15604894, "node_id": "MDQ6VXNlcjE1NjA0ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chyroc", "html_url": "https://github.com/chyroc", "followers_url": "https://api.github.com/users/chyroc/followers", "following_url": "https://api.github.com/users/chyroc/following{/other_user}", "gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}", "starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chyroc/subscriptions", "organizations_url": "https://api.github.com/users/chyroc/orgs", "repos_url": "https://api.github.com/users/chyroc/repos", "events_url": "https://api.github.com/users/chyroc/events{/privacy}", "received_events_url": "https://api.github.com/users/chyroc/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 6232714130, "node_id": "LA_kwDOIPDwls8AAAABc3-rkg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL", "name": "size:XL", "color": "D4C5F9", "default": false, "description": "This PR changes 500-999 lines, ignoring generated files." }, { "id": 6348691034, "node_id": "LA_kwDOIPDwls8AAAABemlWWg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner", "name": "partner", "color": "ededed", "default": false, "description": null } ]
open
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
5
2023-12-28T08:59:39
2024-01-17T10:40:37
null
CONTRIBUTOR
null
copy from #7920 which closed and no updated. and fix https://github.com/langchain-ai/langchain/issues/15253 . If this has any issues, I'll fix the code and update. If this offends anyone I will close it immediately.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15258/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15258/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15258", "html_url": "https://github.com/langchain-ai/langchain/pull/15258", "diff_url": "https://github.com/langchain-ai/langchain/pull/15258.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15258.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15256
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15256/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15256/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15256/events
https://github.com/langchain-ai/langchain/issues/15256
2,058,104,532
I_kwDOIPDwls56rC7U
15,256
qdrant.amax_marginal_relevance_search have not results but qdrant.max_marginal_relevance_search hava results
{ "login": "Allin2000", "id": 37932946, "node_id": "MDQ6VXNlcjM3OTMyOTQ2", "avatar_url": "https://avatars.githubusercontent.com/u/37932946?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Allin2000", "html_url": "https://github.com/Allin2000", "followers_url": "https://api.github.com/users/Allin2000/followers", "following_url": "https://api.github.com/users/Allin2000/following{/other_user}", "gists_url": "https://api.github.com/users/Allin2000/gists{/gist_id}", "starred_url": "https://api.github.com/users/Allin2000/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Allin2000/subscriptions", "organizations_url": "https://api.github.com/users/Allin2000/orgs", "repos_url": "https://api.github.com/users/Allin2000/repos", "events_url": "https://api.github.com/users/Allin2000/events{/privacy}", "received_events_url": "https://api.github.com/users/Allin2000/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-12-28T07:41:26
2023-12-29T03:31:51
2023-12-29T03:31:51
NONE
null
### System Info 0.0.350 ### 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 help(qdrant.amax_marginal_relevance_search) print("&&&&&&&&&&&&&&&&&") help(qdrant.max_marginal_relevance_search) hits = await qdrant.amax_marginal_relevance_search(text, k=20, fetch_k=100,filter=filter_empty) print(hits) hits1 = qdrant.max_marginal_relevance_search(text, k=20, fetch_k=100,filter=filter_empty) print(hits1) ### Expected behavior qdrant.amax_marginal_relevance_search have not results but qdrant.max_marginal_relevance_search hava results
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15256/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15256/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15255
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15255/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15255/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15255/events
https://github.com/langchain-ai/langchain/issues/15255
2,058,083,922
I_kwDOIPDwls56q95S
15,255
langchain 0.5.7 not match latest openai
{ "login": "qq137619950", "id": 22728004, "node_id": "MDQ6VXNlcjIyNzI4MDA0", "avatar_url": "https://avatars.githubusercontent.com/u/22728004?v=4", "gravatar_id": "", "url": "https://api.github.com/users/qq137619950", "html_url": "https://github.com/qq137619950", "followers_url": "https://api.github.com/users/qq137619950/followers", "following_url": "https://api.github.com/users/qq137619950/following{/other_user}", "gists_url": "https://api.github.com/users/qq137619950/gists{/gist_id}", "starred_url": "https://api.github.com/users/qq137619950/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/qq137619950/subscriptions", "organizations_url": "https://api.github.com/users/qq137619950/orgs", "repos_url": "https://api.github.com/users/qq137619950/repos", "events_url": "https://api.github.com/users/qq137619950/events{/privacy}", "received_events_url": "https://api.github.com/users/qq137619950/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-12-28T07:17:09
2023-12-28T07:28:50
null
NONE
null
### System Info Python: 3.10 from langchain.chat_models import ChatOpenAI openai = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0.8, max_tokens=60) error occurs at openai.py, error message is: AttributeError: module 'openai' has no attribute 'OpenAI' the reason, I guess, is version not match. ### 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 import os from langchain.chat_models import ChatOpenAI from langchain.schema import ( HumanMessage, SystemMessage ) openai = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0.8, max_tokens=60) messages = [ SystemMessage(content="bla"), HumanMessage(content="bla") ] response = openai(messages) print(response) ### Expected behavior no exception
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15255/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15255/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15253
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15253/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15253/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15253/events
https://github.com/langchain-ai/langchain/issues/15253
2,058,046,954
I_kwDOIPDwls56q03q
15,253
Callbacks for embeddings
{ "login": "lkNGAT", "id": 108403993, "node_id": "U_kgDOBnYdGQ", "avatar_url": "https://avatars.githubusercontent.com/u/108403993?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lkNGAT", "html_url": "https://github.com/lkNGAT", "followers_url": "https://api.github.com/users/lkNGAT/followers", "following_url": "https://api.github.com/users/lkNGAT/following{/other_user}", "gists_url": "https://api.github.com/users/lkNGAT/gists{/gist_id}", "starred_url": "https://api.github.com/users/lkNGAT/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lkNGAT/subscriptions", "organizations_url": "https://api.github.com/users/lkNGAT/orgs", "repos_url": "https://api.github.com/users/lkNGAT/repos", "events_url": "https://api.github.com/users/lkNGAT/events{/privacy}", "received_events_url": "https://api.github.com/users/lkNGAT/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
1
2023-12-28T06:29:24
2023-12-28T06:31:37
null
NONE
null
### Feature request Similar to the way callbacks are implemented in BaseLLM the embedding class should also support callbacks. ### Motivation When using embedding models in a RAG application it would be useful to track e.g. the number of tokens. Callbacks can be used to log usage details to monitoring services (eg Langsmith). ### Your contribution There is a closed PR adressing the same topic https://github.com/langchain-ai/langchain/pull/7920
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15253/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15253/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15252
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15252/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15252/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15252/events
https://github.com/langchain-ai/langchain/pull/15252
2,058,032,508
PR_kwDOIPDwls5i3Rum
15,252
Update passthrough.py
{ "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 }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T06:08:46
2023-12-28T06:12:33
2023-12-28T06:12:33
COLLABORATOR
null
<!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15252/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15252/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15252", "html_url": "https://github.com/langchain-ai/langchain/pull/15252", "diff_url": "https://github.com/langchain-ai/langchain/pull/15252.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15252.patch", "merged_at": "2023-12-28T06:12:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/15251
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15251/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15251/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15251/events
https://github.com/langchain-ai/langchain/pull/15251
2,058,020,712
PR_kwDOIPDwls5i3PNY
15,251
langchain: Fix for issue #14631 - .devcontainer doesnt build
{ "login": "gitchrisqueen", "id": 10469301, "node_id": "MDQ6VXNlcjEwNDY5MzAx", "avatar_url": "https://avatars.githubusercontent.com/u/10469301?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gitchrisqueen", "html_url": "https://github.com/gitchrisqueen", "followers_url": "https://api.github.com/users/gitchrisqueen/followers", "following_url": "https://api.github.com/users/gitchrisqueen/following{/other_user}", "gists_url": "https://api.github.com/users/gitchrisqueen/gists{/gist_id}", "starred_url": "https://api.github.com/users/gitchrisqueen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gitchrisqueen/subscriptions", "organizations_url": "https://api.github.com/users/gitchrisqueen/orgs", "repos_url": "https://api.github.com/users/gitchrisqueen/repos", "events_url": "https://api.github.com/users/gitchrisqueen/events{/privacy}", "received_events_url": "https://api.github.com/users/gitchrisqueen/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T05:50:49
2023-12-28T16:25:04
2023-12-28T16:25:04
CONTRIBUTOR
null
- **Description:** Fix for issue #14631 - **Issue:** This fixes [Issue #14631](https://github.com/langchain-ai/langchain/issues/14631) - **Twitter handle:** [@consultchrisq ](https://twitter.com/consultchrisq?lang=en)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15251/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15251/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15251", "html_url": "https://github.com/langchain-ai/langchain/pull/15251", "diff_url": "https://github.com/langchain-ai/langchain/pull/15251.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15251.patch", "merged_at": "2023-12-28T16:25:04" }
https://api.github.com/repos/langchain-ai/langchain/issues/15250
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15250/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15250/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15250/events
https://github.com/langchain-ai/langchain/pull/15250
2,058,011,442
PR_kwDOIPDwls5i3NO1
15,250
langchain: Fix for issue #14631 - .devcontainer doesnt build
{ "login": "gitchrisqueen", "id": 10469301, "node_id": "MDQ6VXNlcjEwNDY5MzAx", "avatar_url": "https://avatars.githubusercontent.com/u/10469301?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gitchrisqueen", "html_url": "https://github.com/gitchrisqueen", "followers_url": "https://api.github.com/users/gitchrisqueen/followers", "following_url": "https://api.github.com/users/gitchrisqueen/following{/other_user}", "gists_url": "https://api.github.com/users/gitchrisqueen/gists{/gist_id}", "starred_url": "https://api.github.com/users/gitchrisqueen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gitchrisqueen/subscriptions", "organizations_url": "https://api.github.com/users/gitchrisqueen/orgs", "repos_url": "https://api.github.com/users/gitchrisqueen/repos", "events_url": "https://api.github.com/users/gitchrisqueen/events{/privacy}", "received_events_url": "https://api.github.com/users/gitchrisqueen/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T05:34:54
2023-12-28T05:38:44
2023-12-28T05:38:44
CONTRIBUTOR
null
- **Description:** Fix for issue #14631 - **Issue:** This fixes [Issue #14631](https://github.com/langchain-ai/langchain/issues/14631) - **Twitter handle:** [@consultchrisq ](https://twitter.com/consultchrisq?lang=en)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15250/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15250/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15250", "html_url": "https://github.com/langchain-ai/langchain/pull/15250", "diff_url": "https://github.com/langchain-ai/langchain/pull/15250.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15250.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15249
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15249/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15249/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15249/events
https://github.com/langchain-ai/langchain/issues/15249
2,057,986,272
I_kwDOIPDwls56qmDg
15,249
Issue: lcel chain token usage tracking
{ "login": "rere950303", "id": 78265252, "node_id": "MDQ6VXNlcjc4MjY1MjUy", "avatar_url": "https://avatars.githubusercontent.com/u/78265252?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rere950303", "html_url": "https://github.com/rere950303", "followers_url": "https://api.github.com/users/rere950303/followers", "following_url": "https://api.github.com/users/rere950303/following{/other_user}", "gists_url": "https://api.github.com/users/rere950303/gists{/gist_id}", "starred_url": "https://api.github.com/users/rere950303/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rere950303/subscriptions", "organizations_url": "https://api.github.com/users/rere950303/orgs", "repos_url": "https://api.github.com/users/rere950303/repos", "events_url": "https://api.github.com/users/rere950303/events{/privacy}", "received_events_url": "https://api.github.com/users/rere950303/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 6134259614, "node_id": "LA_kwDOIPDwls8AAAABbaFfng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20lcel", "name": "area: lcel", "color": "38B1E8", "default": false, "description": "" } ]
open
false
null
[]
null
2
2023-12-28T04:51:21
2024-01-08T16:23:27
null
CONTRIBUTOR
null
### Issue you'd like to raise. What should I do if I want to log the number of tokens shot with llm in chain via lcel? ### Suggestion: lcel chain token usage tracking
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15249/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/15249/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15248
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15248/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15248/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15248/events
https://github.com/langchain-ai/langchain/pull/15248
2,057,966,501
PR_kwDOIPDwls5i3DtH
15,248
community: Enhance Github error prompt
{ "login": "triThirty", "id": 10457955, "node_id": "MDQ6VXNlcjEwNDU3OTU1", "avatar_url": "https://avatars.githubusercontent.com/u/10457955?v=4", "gravatar_id": "", "url": "https://api.github.com/users/triThirty", "html_url": "https://github.com/triThirty", "followers_url": "https://api.github.com/users/triThirty/followers", "following_url": "https://api.github.com/users/triThirty/following{/other_user}", "gists_url": "https://api.github.com/users/triThirty/gists{/gist_id}", "starred_url": "https://api.github.com/users/triThirty/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/triThirty/subscriptions", "organizations_url": "https://api.github.com/users/triThirty/orgs", "repos_url": "https://api.github.com/users/triThirty/repos", "events_url": "https://api.github.com/users/triThirty/events{/privacy}", "received_events_url": "https://api.github.com/users/triThirty/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T04:11:55
2023-12-28T16:25:19
2023-12-28T16:25:19
CONTRIBUTOR
null
- **Description:** The Github error prompt is confused because of JWT enctrypt to somebody not familiar with Github connection method. This PR is to add some useful error prompt to help users troubleshooting. - **Issue:** https://github.com/langchain-ai/langchain/issues/14550#issuecomment-1867445049 - **Dependencies:** None, - **Twitter handle:** None
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15248/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15248/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15248", "html_url": "https://github.com/langchain-ai/langchain/pull/15248", "diff_url": "https://github.com/langchain-ai/langchain/pull/15248.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15248.patch", "merged_at": "2023-12-28T16:25:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/15247
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15247/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15247/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15247/events
https://github.com/langchain-ai/langchain/issues/15247
2,057,963,845
I_kwDOIPDwls56qglF
15,247
DOC: langchain LCEL - transfer of information between generations
{ "login": "hherpa", "id": 146547175, "node_id": "U_kgDOCLwh5w", "avatar_url": "https://avatars.githubusercontent.com/u/146547175?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hherpa", "html_url": "https://github.com/hherpa", "followers_url": "https://api.github.com/users/hherpa/followers", "following_url": "https://api.github.com/users/hherpa/following{/other_user}", "gists_url": "https://api.github.com/users/hherpa/gists{/gist_id}", "starred_url": "https://api.github.com/users/hherpa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hherpa/subscriptions", "organizations_url": "https://api.github.com/users/hherpa/orgs", "repos_url": "https://api.github.com/users/hherpa/repos", "events_url": "https://api.github.com/users/hherpa/events{/privacy}", "received_events_url": "https://api.github.com/users/hherpa/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 6134259614, "node_id": "LA_kwDOIPDwls8AAAABbaFfng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20lcel", "name": "area: lcel", "color": "38B1E8", "default": false, "description": "" } ]
open
false
null
[]
null
10
2023-12-28T04:06:17
2023-12-29T21:28:49
null
NONE
null
### Issue with current documentation: I do not understand how chains are built with the transfer of information between generations. here is an example of the code in the langchain [documentation](https://python.langchain.com/docs/expression_language/why): ``` from langchain_core.runnables import RunnablePassthrough prompt = ChatPromptTemplate.from_template( "Tell me a short joke about {topic}" ) output_parser = StrOutputParser() model = llm chain = ( {"topic": RunnablePassthrough()} | prompt | model | output_parser ) chain.invoke("ice cream") ``` here in the promo, please write a joke about ice cream, based on this example, my question will be: "how to make the chain continue further and, for example, analyze this joke (that is, work further with what was generated)." There was an idea to just create a second promt and add it to the chain: ``` prompt = ChatPromptTemplate.from_template( "Tell me a short joke about {topic}" ) prompt1 = ChatPromptTemplate.from_template( "What was the joke about?" ) output_parser = StrOutputParser() model = llm chain = ( {"topic": RunnablePassthrough()} | prompt | model | output_parser | prompt1 | model | output_parser ) ``` But it won't work that way, because for some reason the model doesn't know the context... ![image](https://github.com/langchain-ai/langchain/assets/146547175/75083537-c75b-46a3-a3fd-5c0884bca9bf) ### Idea or request for content: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15247/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15247/timeline
null
reopened
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15246
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15246/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15246/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15246/events
https://github.com/langchain-ai/langchain/pull/15246
2,057,951,356
PR_kwDOIPDwls5i3AhD
15,246
Fixed small gramm mistakes
{ "login": "ShorthillsAI", "id": 141953346, "node_id": "U_kgDOCHYJQg", "avatar_url": "https://avatars.githubusercontent.com/u/141953346?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ShorthillsAI", "html_url": "https://github.com/ShorthillsAI", "followers_url": "https://api.github.com/users/ShorthillsAI/followers", "following_url": "https://api.github.com/users/ShorthillsAI/following{/other_user}", "gists_url": "https://api.github.com/users/ShorthillsAI/gists{/gist_id}", "starred_url": "https://api.github.com/users/ShorthillsAI/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShorthillsAI/subscriptions", "organizations_url": "https://api.github.com/users/ShorthillsAI/orgs", "repos_url": "https://api.github.com/users/ShorthillsAI/repos", "events_url": "https://api.github.com/users/ShorthillsAI/events{/privacy}", "received_events_url": "https://api.github.com/users/ShorthillsAI/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T03:39:55
2023-12-28T16:11:22
2023-12-28T16:11:22
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15246/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15246/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15246", "html_url": "https://github.com/langchain-ai/langchain/pull/15246", "diff_url": "https://github.com/langchain-ai/langchain/pull/15246.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15246.patch", "merged_at": "2023-12-28T16:11:22" }
https://api.github.com/repos/langchain-ai/langchain/issues/15245
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15245/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15245/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15245/events
https://github.com/langchain-ai/langchain/pull/15245
2,057,936,557
PR_kwDOIPDwls5i29bl
15,245
Fix: Use `Union` instead of `|` to improve compatibility, fix #15244
{ "login": "chyroc", "id": 15604894, "node_id": "MDQ6VXNlcjE1NjA0ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chyroc", "html_url": "https://github.com/chyroc", "followers_url": "https://api.github.com/users/chyroc/followers", "following_url": "https://api.github.com/users/chyroc/following{/other_user}", "gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}", "starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chyroc/subscriptions", "organizations_url": "https://api.github.com/users/chyroc/orgs", "repos_url": "https://api.github.com/users/chyroc/repos", "events_url": "https://api.github.com/users/chyroc/events{/privacy}", "received_events_url": "https://api.github.com/users/chyroc/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T03:07:57
2023-12-28T07:02:06
2023-12-28T06:06:42
CONTRIBUTOR
null
fix https://github.com/langchain-ai/langchain/issues/15244
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15245/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15245/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15245", "html_url": "https://github.com/langchain-ai/langchain/pull/15245", "diff_url": "https://github.com/langchain-ai/langchain/pull/15245.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15245.patch", "merged_at": "2023-12-28T06:06:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/15244
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15244/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15244/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15244/events
https://github.com/langchain-ai/langchain/issues/15244
2,057,929,816
I_kwDOIPDwls56qYRY
15,244
python 3.10 `|` union syntax compatibility
{ "login": "chyroc", "id": 15604894, "node_id": "MDQ6VXNlcjE1NjA0ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chyroc", "html_url": "https://github.com/chyroc", "followers_url": "https://api.github.com/users/chyroc/followers", "following_url": "https://api.github.com/users/chyroc/following{/other_user}", "gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}", "starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chyroc/subscriptions", "organizations_url": "https://api.github.com/users/chyroc/orgs", "repos_url": "https://api.github.com/users/chyroc/repos", "events_url": "https://api.github.com/users/chyroc/events{/privacy}", "received_events_url": "https://api.github.com/users/chyroc/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
1
2023-12-28T02:53:57
2023-12-28T06:06:43
2023-12-28T06:06:43
CONTRIBUTOR
null
### Issue you'd like to raise. Based on the documentation and RFC standards referenced in the links: - https://peps.python.org/pep-0604/ - https://www.blog.pythonlibrary.org/2021/09/11/python-3-10-simplifies-unions-in-type-annotations/ it's evident that the introduction of using | instead of 'union' for type annotations is a feature that was introduced in Python 3.10. However, I've observed that in our project's pyproject.toml and ci.yaml files, the Python version is specified as python = ">=3.8.1,<4.0". This leads me to question whether LangChain will face issues with type checking or even running in the specified Python 3.8 environment, given that it doesn't support the | syntax for unions. If there are any considerations or plans, such as updating the pyproject.toml and ci.yaml to make LangChain compatible with a minimum of Python 3.10, or if it's appropriate for me to submit a PR to address the use of the | operator in type annotations within LangChain, I'd appreciate your input and guidance. ### Suggestion: Upgrade the python version, or fix and remove | syntax, I would be happy to do this, please let me know your decision @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15244/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15244/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15243
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15243/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15243/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15243/events
https://github.com/langchain-ai/langchain/issues/15243
2,057,912,633
I_kwDOIPDwls56qUE5
15,243
如何对langchain加载的chatglm-6b模型进行量化处理
{ "login": "woshixishao", "id": 55758355, "node_id": "MDQ6VXNlcjU1NzU4MzU1", "avatar_url": "https://avatars.githubusercontent.com/u/55758355?v=4", "gravatar_id": "", "url": "https://api.github.com/users/woshixishao", "html_url": "https://github.com/woshixishao", "followers_url": "https://api.github.com/users/woshixishao/followers", "following_url": "https://api.github.com/users/woshixishao/following{/other_user}", "gists_url": "https://api.github.com/users/woshixishao/gists{/gist_id}", "starred_url": "https://api.github.com/users/woshixishao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/woshixishao/subscriptions", "organizations_url": "https://api.github.com/users/woshixishao/orgs", "repos_url": "https://api.github.com/users/woshixishao/repos", "events_url": "https://api.github.com/users/woshixishao/events{/privacy}", "received_events_url": "https://api.github.com/users/woshixishao/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
3
2023-12-28T02:17:17
2023-12-28T02:38:55
null
NONE
null
### System Info 如何对langchain加载的chatglm-6b模型进行量化处理 ### Who can help? @hwchase17 @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction # 本地模型 else: from configs.model_config import VLLM_MODEL_DICT if kwargs["model_names"][0] in VLLM_MODEL_DICT and args.infer_turbo == "vllm": import fastchat.serve.vllm_worker from fastchat.serve.vllm_worker import VLLMWorker, app, worker_id from vllm import AsyncLLMEngine from vllm.engine.arg_utils import AsyncEngineArgs,EngineArgs args.tokenizer = args.model_path # 如果tokenizer与model_path不一致在此处添加 args.tokenizer_mode = 'auto' args.trust_remote_code= True args.download_dir= None args.load_format = 'auto' args.dtype = 'auto' args.seed = 0 args.worker_use_ray = False args.pipeline_parallel_size = 1 args.tensor_parallel_size = 1 args.block_size = 16 args.swap_space = 4 # GiB args.gpu_memory_utilization = 0.90 args.max_num_batched_tokens = None # 一个批次中的最大令牌(tokens)数量,这个取决于你的显卡和大模型设置,设置太大显存会不够 args.max_num_seqs = 256 args.disable_log_stats = False args.conv_template = None args.limit_worker_concurrency = 5 args.no_register = False args.num_gpus = 4 # vllm worker的切分是tensor并行,这里填写显卡的数量 args.engine_use_ray = False args.disable_log_requests = False # 0.2.1 vllm后要加的参数, 但是这里不需要 args.max_model_len = None args.revision = None args.quantization = None args.max_log_len = None args.tokenizer_revision = None # 0.2.2 vllm需要新加的参数 args.max_paddings = 256 if args.model_path: args.model = args.model_path if args.num_gpus > 1: args.tensor_parallel_size = args.num_gpus for k, v in kwargs.items(): setattr(args, k, v) engine_args = AsyncEngineArgs.from_cli_args(args) engine = AsyncLLMEngine.from_engine_args(engine_args) worker = VLLMWorker( controller_addr = args.controller_address, worker_addr = args.worker_address, worker_id = worker_id, model_path = args.model_path, model_names = args.model_names, limit_worker_concurrency = args.limit_worker_concurrency, no_register = args.no_register, llm_engine = engine, conv_template = args.conv_template, ) sys.modules["fastchat.serve.vllm_worker"].engine = engine sys.modules["fastchat.serve.vllm_worker"].worker = worker sys.modules["fastchat.serve.vllm_worker"].logger.setLevel(log_level) ### Expected behavior 这里加载本地模型的时候如何对模型进行量化
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15243/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15243/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15242
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15242/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15242/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15242/events
https://github.com/langchain-ai/langchain/pull/15242
2,057,897,920
PR_kwDOIPDwls5i21hT
15,242
community: allow additional kwargs in MlflowEmbeddings for compatibility with Cohere API
{ "login": "elucherini", "id": 8416724, "node_id": "MDQ6VXNlcjg0MTY3MjQ=", "avatar_url": "https://avatars.githubusercontent.com/u/8416724?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elucherini", "html_url": "https://github.com/elucherini", "followers_url": "https://api.github.com/users/elucherini/followers", "following_url": "https://api.github.com/users/elucherini/following{/other_user}", "gists_url": "https://api.github.com/users/elucherini/gists{/gist_id}", "starred_url": "https://api.github.com/users/elucherini/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elucherini/subscriptions", "organizations_url": "https://api.github.com/users/elucherini/orgs", "repos_url": "https://api.github.com/users/elucherini/repos", "events_url": "https://api.github.com/users/elucherini/events{/privacy}", "received_events_url": "https://api.github.com/users/elucherini/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
open
false
null
[]
null
3
2023-12-28T01:46:15
2024-01-11T03:47:56
null
NONE
null
<!-- Thank you for contributing to LangChain! If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> - **Description:** add support for kwargs in`MlflowEmbeddings` `embed_document()` and `embed_query()` so that all the arguments required by Cohere API (and others?) can be passed down to the server. - **Issue:** #15234 - **Dependencies:** MLflow with MLflow Deployments (`pip install mlflow[genai]`) **Tests** Now this code [adapted from the docs](https://python.langchain.com/docs/integrations/providers/mlflow#embeddings-example) for the Cohere API works locally. ```python """ Setup ----- export COHERE_API_KEY=... mlflow deployments start-server --config-path examples/deployments/cohere/config.yaml Run --- python /path/to/this/file.py """ embeddings = MlflowCohereEmbeddings(target_uri="http://127.0.0.1:5000", endpoint="embeddings") print(embeddings.embed_query("hello")[:3]) print(embeddings.embed_documents(["hello", "world"])[0][:3]) ``` Output ``` [0.060455322, 0.028793335, -0.025848389] [0.031707764, 0.021057129, -0.009361267] ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15242/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15242/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15242", "html_url": "https://github.com/langchain-ai/langchain/pull/15242", "diff_url": "https://github.com/langchain-ai/langchain/pull/15242.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15242.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15241
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15241/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15241/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15241/events
https://github.com/langchain-ai/langchain/pull/15241
2,057,885,410
PR_kwDOIPDwls5i2y-U
15,241
WIP: Use HB Inference Client in llms package
{ "login": "dosuken123", "id": 4432788, "node_id": "MDQ6VXNlcjQ0MzI3ODg=", "avatar_url": "https://avatars.githubusercontent.com/u/4432788?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dosuken123", "html_url": "https://github.com/dosuken123", "followers_url": "https://api.github.com/users/dosuken123/followers", "following_url": "https://api.github.com/users/dosuken123/following{/other_user}", "gists_url": "https://api.github.com/users/dosuken123/gists{/gist_id}", "starred_url": "https://api.github.com/users/dosuken123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dosuken123/subscriptions", "organizations_url": "https://api.github.com/users/dosuken123/orgs", "repos_url": "https://api.github.com/users/dosuken123/repos", "events_url": "https://api.github.com/users/dosuken123/events{/privacy}", "received_events_url": "https://api.github.com/users/dosuken123/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
2
2023-12-28T01:16:39
2024-01-08T01:17:30
null
CONTRIBUTOR
null
Fixes https://github.com/langchain-ai/langchain/issues/10483 <!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15241/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15241/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15241", "html_url": "https://github.com/langchain-ai/langchain/pull/15241", "diff_url": "https://github.com/langchain-ai/langchain/pull/15241.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15241.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15240
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15240/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15240/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15240/events
https://github.com/langchain-ai/langchain/pull/15240
2,057,883,285
PR_kwDOIPDwls5i2yje
15,240
(do not merge) all docs
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T01:11:42
2023-12-29T18:44:21
2023-12-29T18:44:21
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15240/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15240/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15240", "html_url": "https://github.com/langchain-ai/langchain/pull/15240", "diff_url": "https://github.com/langchain-ai/langchain/pull/15240.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15240.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15239
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15239/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15239/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15239/events
https://github.com/langchain-ai/langchain/issues/15239
2,057,882,953
I_kwDOIPDwls56qM1J
15,239
error when running the sample code from the langchain documentation about fireworks
{ "login": "hherpa", "id": 146547175, "node_id": "U_kgDOCLwh5w", "avatar_url": "https://avatars.githubusercontent.com/u/146547175?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hherpa", "html_url": "https://github.com/hherpa", "followers_url": "https://api.github.com/users/hherpa/followers", "following_url": "https://api.github.com/users/hherpa/following{/other_user}", "gists_url": "https://api.github.com/users/hherpa/gists{/gist_id}", "starred_url": "https://api.github.com/users/hherpa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hherpa/subscriptions", "organizations_url": "https://api.github.com/users/hherpa/orgs", "repos_url": "https://api.github.com/users/hherpa/repos", "events_url": "https://api.github.com/users/hherpa/events{/privacy}", "received_events_url": "https://api.github.com/users/hherpa/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2023-12-28T01:10:59
2023-12-28T01:24:35
2023-12-28T01:24:35
NONE
null
### System Info I used the standard code example from the langchain documentation about Fireworks where I inserted my API key. That's the mistake I made: ``` [llm/start] [1:llm:Fireworks] Entering LLM run with input: { "prompts": [ "Name 3 sports." ] } [llm/error] [1:llm:Fireworks] [761ms] LLM run errored with error: "AuthenticationError({'fault': {'faultstring': 'Invalid ApiKey', 'detail': {'errorcode': 'oauth.v2.InvalidApiKey'}}})Traceback (most recent call last):\n\n\n File \"C:\\Users\\akidra\\AppData\\Roaming\\Python\\Python311\\site-packages\\langchain_core\\language_models\\llms.py\", line 540, in _generate_helper\n self._generate(\n\n\n File \"C:\\Users\\akidra\\AppData\\Roaming\\Python\\Python311\\site-packages\\langchain_community\\llms\\fireworks.py\", line 100, in _generate\n response = completion_with_retry_batching(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n\n File \"C:\\Users\\akidra\\AppData\\Roaming\\Python\\Python311\\site-packages\\langchain_community\\llms\\fireworks.py\", line 296, in completion_with_retry_batching\n return batch_sync_run()\n ^^^^^^^^^^^^^^^^\n\n\n File \"C:\\Users\\akidra\\AppData\\Roaming\\Python\\Python311\\site-packages\\langchain_community\\llms\\fireworks.py\", line 293, in batch_sync_run\n results = list(executor.map(_completion_with_retry, prompt))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n\n File \"C:\\Program Files\\Python311\\Lib\\concurrent\\futures\\_base.py\", line 619, in result_iterator\n yield _result_or_cancel(fs.pop())\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n\n File \"C:\\Program Files\\Python311\\Lib\\concurrent\\futures\\_base.py\", line 317, in _result_or_cancel\n return fut.result(timeout)\n ^^^^^^^^^^^^^^^^^^^\n\n\n File \"C:\\Program Files\\Python311\\Lib\\concurrent\\futures\\_base.py\", line 456, in result\n return self.__get_result()\n ^^^^^^^^^^^^^^^^^^^\n\n\n File \"C:\\Program Files\\Python311\\Lib\\concurrent\\futures\\_base.py\", line 401, in __get_result\n raise self._exception\n\n\n File \"C:\\Program Files\\Python311\\Lib\\concurrent\\futures\\thread.py\", line 58, in run\n result = self.fn(*self.args, **self.kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n\n File \"C:\\Users\\akidra\\AppData\\Roaming\\Python\\Python311\\site-packages\\tenacity\\__init__.py\", line 289, in wrapped_f\n return self(f, *args, **kw)\n ^^^^^^^^^^^^^^^^^^^^\n\n\n File \"C:\\Users\\akidra\\AppData\\Roaming\\Python\\Python311\\site-packages\\tenacity\\__init__.py\", line 379, in __call__\n do = self.iter(retry_state=retry_state)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n\n File \"C:\\Users\\akidra\\AppData\\Roaming\\Python\\Python311\\site-packages\\tenacity\\__init__.py\", line 314, in iter\n return fut.result()\n ^^^^^^^^^^^^\n\n\n File \"C:\\Program Files\\Python311\\Lib\\concurrent\\futures\\_base.py\", line 449, in result\n return self.__get_result()\n ^^^^^^^^^^^^^^^^^^^\n\n\n File \"C:\\Program Files\\Python311\\Lib\\concurrent\\futures\\_base.py\", line 401, in __get_result\n raise self._exception\n\n\n File \"C:\\Users\\akidra\\AppData\\Roaming\\Python\\Python311\\site-packages\\tenacity\\__init__.py\", line 382, in __call__\n result = fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^\n\n\n File \"C:\\Users\\akidra\\AppData\\Roaming\\Python\\Python311\\site-packages\\langchain_community\\llms\\fireworks.py\", line 289, in _completion_with_retry\n return fireworks.client.Completion.create(**kwargs, prompt=prompt)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n\n File \"C:\\Users\\akidra\\AppData\\Roaming\\Python\\Python311\\site-packages\\fireworks\\client\\base_completion.py\", line 80, in create\n return cls._create_non_streaming(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n\n File \"C:\\Users\\akidra\\AppData\\Roaming\\Python\\Python311\\site-packages\\fireworks\\client\\base_completion.py\", line 158, in _create_non_streaming\n response = client.post_request_non_streaming(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n\n File \"C:\\Users\\akidra\\AppData\\Roaming\\Python\\Python311\\site-packages\\fireworks\\client\\api_client.py\", line 125, in post_request_non_streaming\n self._error_handling(response)\n\n\n File \"C:\\Users\\akidra\\AppData\\Roaming\\Python\\Python311\\site-packages\\fireworks\\client\\api_client.py\", line 91, in _error_handling\n self._raise_for_status(resp)\n\n\n File \"C:\\Users\\akidra\\AppData\\Roaming\\Python\\Python311\\site-packages\\fireworks\\client\\api_client.py\", line 67, in _raise_for_status\n raise AuthenticationError(resp.json())\n\n\nfireworks.client.error.AuthenticationError: {'fault': {'faultstring': 'Invalid ApiKey', 'detail': {'errorcode': 'oauth.v2.InvalidApiKey'}}}" --------------------------------------------------------------------------- AuthenticationError Traceback (most recent call last) Cell In[25], line 7 1 from langchain.llms.fireworks import Fireworks 3 llm = Fireworks( 4 fireworks_api_key="<BPR7ILI5ar0xAVWKwwAPvE8cyL2yBFpJRGqDGU3QirD6N8W0>", 5 model="accounts/fireworks/models/mixtral-8x7b-instruct", 6 max_tokens=256) ----> 7 llm("Name 3 sports.") File ~\AppData\Roaming\Python\Python311\site-packages\langchain_core\language_models\llms.py:892, in BaseLLM.__call__(self, prompt, stop, callbacks, tags, metadata, **kwargs) 885 if not isinstance(prompt, str): 886 raise ValueError( 887 "Argument `prompt` is expected to be a string. Instead found " 888 f"{type(prompt)}. If you want to run the LLM on multiple prompts, use " 889 "`generate` instead." 890 ) 891 return ( --> 892 self.generate( 893 [prompt], 894 stop=stop, 895 callbacks=callbacks, 896 tags=tags, 897 metadata=metadata, 898 **kwargs, 899 ) 900 .generations[0][0] 901 .text 902 ) File ~\AppData\Roaming\Python\Python311\site-packages\langchain_core\language_models\llms.py:666, in BaseLLM.generate(self, prompts, stop, callbacks, tags, metadata, run_name, **kwargs) 650 raise ValueError( 651 "Asked to cache, but no cache found at `langchain.cache`." 652 ) 653 run_managers = [ 654 callback_manager.on_llm_start( 655 dumpd(self), (...) 664 ) 665 ] --> 666 output = self._generate_helper( 667 prompts, stop, run_managers, bool(new_arg_supported), **kwargs 668 ) 669 return output 670 if len(missing_prompts) > 0: File ~\AppData\Roaming\Python\Python311\site-packages\langchain_core\language_models\llms.py:553, in BaseLLM._generate_helper(self, prompts, stop, run_managers, new_arg_supported, **kwargs) 551 for run_manager in run_managers: 552 run_manager.on_llm_error(e, response=LLMResult(generations=[])) --> 553 raise e 554 flattened_outputs = output.flatten() 555 for manager, flattened_output in zip(run_managers, flattened_outputs): File ~\AppData\Roaming\Python\Python311\site-packages\langchain_core\language_models\llms.py:540, in BaseLLM._generate_helper(self, prompts, stop, run_managers, new_arg_supported, **kwargs) 530 def _generate_helper( 531 self, 532 prompts: List[str], (...) 536 **kwargs: Any, 537 ) -> LLMResult: 538 try: 539 output = ( --> 540 self._generate( 541 prompts, 542 stop=stop, 543 # TODO: support multiple run managers 544 run_manager=run_managers[0] if run_managers else None, 545 **kwargs, 546 ) 547 if new_arg_supported 548 else self._generate(prompts, stop=stop) 549 ) 550 except BaseException as e: 551 for run_manager in run_managers: File ~\AppData\Roaming\Python\Python311\site-packages\langchain_community\llms\fireworks.py:100, in Fireworks._generate(self, prompts, stop, run_manager, **kwargs) 98 choices = [] 99 for _prompts in sub_prompts: --> 100 response = completion_with_retry_batching( 101 self, 102 self.use_retry, 103 prompt=_prompts, 104 run_manager=run_manager, 105 stop=stop, 106 **params, 107 ) 108 choices.extend(response) 110 return self.create_llm_result(choices, prompts) File ~\AppData\Roaming\Python\Python311\site-packages\langchain_community\llms\fireworks.py:296, in completion_with_retry_batching(llm, use_retry, run_manager, **kwargs) 293 results = list(executor.map(_completion_with_retry, prompt)) 294 return results --> 296 return batch_sync_run() File ~\AppData\Roaming\Python\Python311\site-packages\langchain_community\llms\fireworks.py:293, in completion_with_retry_batching.<locals>.batch_sync_run() 291 def batch_sync_run() -> List: 292 with ThreadPoolExecutor() as executor: --> 293 results = list(executor.map(_completion_with_retry, prompt)) 294 return results File C:\Program Files\Python311\Lib\concurrent\futures\_base.py:619, in Executor.map.<locals>.result_iterator() 616 while fs: 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield _result_or_cancel(fs.pop()) 620 else: 621 yield _result_or_cancel(fs.pop(), end_time - time.monotonic()) File C:\Program Files\Python311\Lib\concurrent\futures\_base.py:317, in _result_or_cancel(***failed resolving arguments***) 315 try: 316 try: --> 317 return fut.result(timeout) 318 finally: 319 fut.cancel() File C:\Program Files\Python311\Lib\concurrent\futures\_base.py:456, in Future.result(self, timeout) 454 raise CancelledError() 455 elif self._state == FINISHED: --> 456 return self.__get_result() 457 else: 458 raise TimeoutError() File C:\Program Files\Python311\Lib\concurrent\futures\_base.py:401, in Future.__get_result(self) 399 if self._exception: 400 try: --> 401 raise self._exception 402 finally: 403 # Break a reference cycle with the exception in self._exception 404 self = None File C:\Program Files\Python311\Lib\concurrent\futures\thread.py:58, in _WorkItem.run(self) 55 return 57 try: ---> 58 result = self.fn(*self.args, **self.kwargs) 59 except BaseException as exc: 60 self.future.set_exception(exc) File ~\AppData\Roaming\Python\Python311\site-packages\tenacity\__init__.py:289, in BaseRetrying.wraps.<locals>.wrapped_f(*args, **kw) 287 @functools.wraps(f) 288 def wrapped_f(*args: t.Any, **kw: t.Any) -> t.Any: --> 289 return self(f, *args, **kw) File ~\AppData\Roaming\Python\Python311\site-packages\tenacity\__init__.py:379, in Retrying.__call__(self, fn, *args, **kwargs) 377 retry_state = RetryCallState(retry_object=self, fn=fn, args=args, kwargs=kwargs) 378 while True: --> 379 do = self.iter(retry_state=retry_state) 380 if isinstance(do, DoAttempt): 381 try: File ~\AppData\Roaming\Python\Python311\site-packages\tenacity\__init__.py:314, in BaseRetrying.iter(self, retry_state) 312 is_explicit_retry = fut.failed and isinstance(fut.exception(), TryAgain) 313 if not (is_explicit_retry or self.retry(retry_state)): --> 314 return fut.result() 316 if self.after is not None: 317 self.after(retry_state) File C:\Program Files\Python311\Lib\concurrent\futures\_base.py:449, in Future.result(self, timeout) 447 raise CancelledError() 448 elif self._state == FINISHED: --> 449 return self.__get_result() 451 self._condition.wait(timeout) 453 if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]: File C:\Program Files\Python311\Lib\concurrent\futures\_base.py:401, in Future.__get_result(self) 399 if self._exception: 400 try: --> 401 raise self._exception 402 finally: 403 # Break a reference cycle with the exception in self._exception 404 self = None File ~\AppData\Roaming\Python\Python311\site-packages\tenacity\__init__.py:382, in Retrying.__call__(self, fn, *args, **kwargs) 380 if isinstance(do, DoAttempt): 381 try: --> 382 result = fn(*args, **kwargs) 383 except BaseException: # noqa: B902 384 retry_state.set_exception(sys.exc_info()) # type: ignore[arg-type] File ~\AppData\Roaming\Python\Python311\site-packages\langchain_community\llms\fireworks.py:289, in completion_with_retry_batching.<locals>._completion_with_retry(prompt) 287 @conditional_decorator(use_retry, retry_decorator) 288 def _completion_with_retry(prompt: str) -> Any: --> 289 return fireworks.client.Completion.create(**kwargs, prompt=prompt) File ~\AppData\Roaming\Python\Python311\site-packages\fireworks\client\base_completion.py:80, in BaseCompletion.create(cls, model, prompt_or_messages, request_timeout, stream, client, **kwargs) 76 return cls._create_streaming( 77 model, request_timeout, client=client, **kwargs 78 ) 79 else: ---> 80 return cls._create_non_streaming( 81 model, request_timeout, client=client, **kwargs 82 ) File ~\AppData\Roaming\Python\Python311\site-packages\fireworks\client\base_completion.py:158, in BaseCompletion._create_non_streaming(cls, model, request_timeout, client, **kwargs) 156 client = client or FireworksClient(request_timeout=request_timeout) 157 data = {"model": model, "stream": False, **kwargs} --> 158 response = client.post_request_non_streaming( 159 f"{client.base_url}/{cls.endpoint}", data=data 160 ) 161 return cls.response_class(**response) File ~\AppData\Roaming\Python\Python311\site-packages\fireworks\client\api_client.py:125, in FireworksClient.post_request_non_streaming(self, url, data) 119 with httpx.Client( 120 headers={"Authorization": f"Bearer {self.api_key}"}, 121 timeout=self.request_timeout, 122 **self.client_kwargs, 123 ) as client: 124 response = client.post(url, json=data) --> 125 self._error_handling(response) 126 return response.json() File ~\AppData\Roaming\Python\Python311\site-packages\fireworks\client\api_client.py:91, in FireworksClient._error_handling(self, resp) 89 if resp.is_error: 90 resp.read() ---> 91 self._raise_for_status(resp) File ~\AppData\Roaming\Python\Python311\site-packages\fireworks\client\api_client.py:67, in FireworksClient._raise_for_status(self, resp) 65 raise InvalidRequestError(resp.json()) 66 elif resp.status_code == 401: ---> 67 raise AuthenticationError(resp.json()) 68 elif resp.status_code == 403: 69 raise PermissionError(resp.json()) AuthenticationError: {'fault': {'faultstring': 'Invalid ApiKey', 'detail': {'errorcode': 'oauth.v2.InvalidApiKey'}}} ``` ### Who can help? @eyurtsev ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. i use https://python.langchain.com/docs/integrations/providers/fireworks 2. got the API key in https://app.fireworks.ai/api-keys 3. I inserted my key into this code: ``` from langchain.llms.fireworks import Fireworks import os os.environ["FIREWORKS_API_KEY"] = "<My key was here.>" llm = Fireworks(fireworks_api_key="<My key was here.>") llm = Fireworks( fireworks_api_key="<My key was here.>", model="accounts/fireworks/models/mixtral-8x7b-instruct", max_tokens=256) llm("Name 3 sports.") ``` ### Expected behavior this example is from the documentation - I just want it to work to move on.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15239/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15239/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15238
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15238/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15238/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15238/events
https://github.com/langchain-ai/langchain/pull/15238
2,057,879,588
PR_kwDOIPDwls5i2xyW
15,238
Retrieval Docs Revamp
{ "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": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-28T01:03:10
2023-12-28T21:52:57
2023-12-28T21:52:56
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15238/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15238/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15238", "html_url": "https://github.com/langchain-ai/langchain/pull/15238", "diff_url": "https://github.com/langchain-ai/langchain/pull/15238.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15238.patch", "merged_at": "2023-12-28T21:52:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/15237
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15237/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15237/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15237/events
https://github.com/langchain-ai/langchain/issues/15237
2,057,877,277
I_kwDOIPDwls56qLcd
15,237
DOC: langchain plus OpenAI-compatible URL API equally error
{ "login": "hherpa", "id": 146547175, "node_id": "U_kgDOCLwh5w", "avatar_url": "https://avatars.githubusercontent.com/u/146547175?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hherpa", "html_url": "https://github.com/hherpa", "followers_url": "https://api.github.com/users/hherpa/followers", "following_url": "https://api.github.com/users/hherpa/following{/other_user}", "gists_url": "https://api.github.com/users/hherpa/gists{/gist_id}", "starred_url": "https://api.github.com/users/hherpa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hherpa/subscriptions", "organizations_url": "https://api.github.com/users/hherpa/orgs", "repos_url": "https://api.github.com/users/hherpa/repos", "events_url": "https://api.github.com/users/hherpa/events{/privacy}", "received_events_url": "https://api.github.com/users/hherpa/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
6
2023-12-28T00:56:43
2024-01-04T16:19:09
2024-01-04T16:19:09
NONE
null
### Issue with current documentation: hello everyone! Is it possible to use the OpenAI-compatible URL API from text-generation-webui with langchain? the langchain [documentation](https://python.langchain.com/docs/integrations/llms/textgen) says about localhost, but I don't have access to it, I tried to insert the link into model_url, the error appeared both in google colab and in the terminal. ![photo_2023-12-28_04-55-13](https://github.com/langchain-ai/langchain/assets/146547175/82d3aa41-0e8b-4caa-a723-64735e3d2e0f) ![photo_2023-12-28_05-04-24](https://github.com/langchain-ai/langchain/assets/146547175/d85037d4-81f2-45d2-86d4-335b7f86cd3c) ### Idea or request for content: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15237/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15237/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15236
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15236/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15236/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15236/events
https://github.com/langchain-ai/langchain/issues/15236
2,057,867,182
I_kwDOIPDwls56qI-u
15,236
Issue: validation errors for ConversationalRetrievalChain
{ "login": "girithodu", "id": 119573064, "node_id": "U_kgDOByCKSA", "avatar_url": "https://avatars.githubusercontent.com/u/119573064?v=4", "gravatar_id": "", "url": "https://api.github.com/users/girithodu", "html_url": "https://github.com/girithodu", "followers_url": "https://api.github.com/users/girithodu/followers", "following_url": "https://api.github.com/users/girithodu/following{/other_user}", "gists_url": "https://api.github.com/users/girithodu/gists{/gist_id}", "starred_url": "https://api.github.com/users/girithodu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/girithodu/subscriptions", "organizations_url": "https://api.github.com/users/girithodu/orgs", "repos_url": "https://api.github.com/users/girithodu/repos", "events_url": "https://api.github.com/users/girithodu/events{/privacy}", "received_events_url": "https://api.github.com/users/girithodu/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
3
2023-12-28T00:30:51
2023-12-28T00:50:03
null
NONE
null
### Issue you'd like to raise. I am receiving this error 2 validation errors for ConversationalRetrievalChain qa_template extra fields not permitted (type=value_error.extra) question_generator_chain_options extra fields not permitted (type=value_error.extra) , for the following code : ``` retriever = vector_store.as_retriever() sales_persona_prompt = PromptTemplate.from_template(SALES_PERSONA_PROMPT) condense_prompt = PromptTemplate.from_template(CONDENSE_PROMPT) question_generator_chain_options = { "llm": non_streaming_model, "template": condense_prompt, } chain = ConversationalRetrievalChain.from_llm( streaming_model, retriever, qa_template=sales_persona_prompt, question_generator_chain_options=question_generator_chain_options, return_source_documents=False, ) ``` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15236/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15236/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15235
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15235/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15235/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15235/events
https://github.com/langchain-ai/langchain/issues/15235
2,057,862,832
I_kwDOIPDwls56qH6w
15,235
Executing Chain with HuggingFace Models using wrapper
{ "login": "netranga", "id": 22332131, "node_id": "MDQ6VXNlcjIyMzMyMTMx", "avatar_url": "https://avatars.githubusercontent.com/u/22332131?v=4", "gravatar_id": "", "url": "https://api.github.com/users/netranga", "html_url": "https://github.com/netranga", "followers_url": "https://api.github.com/users/netranga/followers", "following_url": "https://api.github.com/users/netranga/following{/other_user}", "gists_url": "https://api.github.com/users/netranga/gists{/gist_id}", "starred_url": "https://api.github.com/users/netranga/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/netranga/subscriptions", "organizations_url": "https://api.github.com/users/netranga/orgs", "repos_url": "https://api.github.com/users/netranga/repos", "events_url": "https://api.github.com/users/netranga/events{/privacy}", "received_events_url": "https://api.github.com/users/netranga/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-12-28T00:20:19
2023-12-28T00:27:48
null
NONE
null
### System Info Langchain version: 0.0.340 Python version: 3.11.0 ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I am trying to use the HuggingFace Hub Wrapper to create a chat model instance and use the model in a chain. However these seems to be some library discrepancies between various base files. Below is the code that works: from langchain_community.llms import HuggingFaceHub from langchain_core.messages import HumanMessage, SystemMessage from langchain_community.chat_models.huggingface import ChatHuggingFace from langchain.prompts import PromptTemplate, ChatPromptTemplate llm = HuggingFaceHub( repo_id="HuggingFaceH4/zephyr-7b-beta", task="text-generation", model_kwargs={ "max_new_tokens": 512, "top_k": 30, "temperature": 0.1, "repetition_penalty": 1.03, }, ) chat_model = ChatHuggingFace(llm=llm) messages = [ SystemMessage(content="You're a zoologist who is able to answer questions about various animals. You are tasked with answering the following question provided"), HumanMessage(content="What is the average lifespan of an Elephant?"), ] res = chat_model.invoke(messages) print(res.content) I want to modify this to allow the prompt to be more dynamic and potentially include a chain of prompts. Here is my modification: prompt = ChatPromptTemplate.from_messages( [ SystemMessage(content="You're a zoologist who is able to answer questions about various animals. You are tasked with answering the following question provided"), HumanMessage(content="What is the average lifespan of an {animal}?"), ] ) chain1 = prompt| chat_model chain1.invoke({"animal": "giraffe"}) I get the following error: NotImplementedError: Unsupported message type: <class 'langchain_core.messages.system.SystemMessage'> - this is because in the chat.py file the import statement for the messages is the following: from langchain.schema.messages import ( AIMessage, AnyMessage, BaseMessage, ChatMessage, HumanMessage, SystemMessage, get_buffer_string, ). However the updated version I found in documentation states to use langchain_core.messages. Even if I update the import statement to be the old version, I run into the following error: TypeError: 'ChatPromptValue' object is not subscriptable. ### Expected behavior I should be able to execute the chain and receive the same output from the non-dynamic verison of the code - res.content output.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15235/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15235/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15234
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15234/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15234/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15234/events
https://github.com/langchain-ai/langchain/issues/15234
2,057,854,254
I_kwDOIPDwls56qF0u
15,234
MlflowEmbeddings: input_type argument is missing, required by Cohere embeddings models
{ "login": "elucherini", "id": 8416724, "node_id": "MDQ6VXNlcjg0MTY3MjQ=", "avatar_url": "https://avatars.githubusercontent.com/u/8416724?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elucherini", "html_url": "https://github.com/elucherini", "followers_url": "https://api.github.com/users/elucherini/followers", "following_url": "https://api.github.com/users/elucherini/following{/other_user}", "gists_url": "https://api.github.com/users/elucherini/gists{/gist_id}", "starred_url": "https://api.github.com/users/elucherini/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elucherini/subscriptions", "organizations_url": "https://api.github.com/users/elucherini/orgs", "repos_url": "https://api.github.com/users/elucherini/repos", "events_url": "https://api.github.com/users/elucherini/events{/privacy}", "received_events_url": "https://api.github.com/users/elucherini/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
2
2023-12-27T23:59:40
2023-12-28T23:42:11
null
NONE
null
### System Info python = "3.11" langchain = "0.0.352" cohere = "4.39" mlflow = {extras = ["genai"], version = "2.9.2"} ### Who can help? @harupy @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I followed the official example for embeddings here, except that I am using Cohere instead of OpenAI: https://python.langchain.com/docs/integrations/providers/mlflow <details> <summary>Click for specific steps</summary> More specifically, I installed mlflow genai and set my `COHERE_API_KEY` environment variable: ```bash pip install 'mlflow[genai]' export COHERE_API_KEY=... ``` I created `config.yaml` like so: ```yaml endpoints: - name: completions endpoint_type: llm/v1/completions model: provider: cohere name: command config: cohere_api_key: $COHERE_API_KEY - name: embeddings endpoint_type: llm/v1/embeddings model: provider: cohere name: embed-english-light-v3.0 config: cohere_api_key: $COHERE_API_KEY ``` I started the mlflow deployments server: ```bash mlflow deployments start-server --config-path config.yaml ``` <details> <summary>The server started as expected</summary> ``` xxx/python3.11/site-packages/pydantic/_internal/_config.py:321: UserWarning: Valid config keys have changed in V2: * 'schema_extra' has been renamed to 'json_schema_extra' warnings.warn(message, UserWarning) [2023-12-27 13:53:18 -0800] [22480] [INFO] Starting gunicorn 21.2.0 [2023-12-27 13:53:18 -0800] [22480] [INFO] Listening at: http://127.0.0.1:5000 (22480) [2023-12-27 13:53:18 -0800] [22480] [INFO] Using worker: uvicorn.workers.UvicornWorker [2023-12-27 13:53:18 -0800] [22481] [INFO] Booting worker with pid: 22481 [2023-12-27 13:53:18 -0800] [22482] [INFO] Booting worker with pid: 22482 xxx/python3.11/site-packages/pydantic/_internal/_config.py:321: UserWarning: Valid config keys have changed in V2: * 'schema_extra' has been renamed to 'json_schema_extra' warnings.warn(message, UserWarning) xxx/python3.11/site-packages/pydantic/_internal/_config.py:321: UserWarning: Valid config keys have changed in V2: * 'schema_extra' has been renamed to 'json_schema_extra' warnings.warn(message, UserWarning) [2023-12-27 13:53:20 -0800] [22481] [INFO] Started server process [22481] [2023-12-27 13:53:20 -0800] [22481] [INFO] Waiting for application startup. [2023-12-27 13:53:20 -0800] [22481] [INFO] Application startup complete. [2023-12-27 13:53:20 -0800] [22482] [INFO] Started server process [22482] [2023-12-27 13:53:20 -0800] [22482] [INFO] Waiting for application startup. [2023-12-27 13:53:20 -0800] [22482] [INFO] Application startup complete. ``` </details> In `test.py`, I added the embeddings example: ```python from langchain.embeddings import MlflowEmbeddings embeddings = MlflowEmbeddings( target_uri="http://127.0.0.1:5000", endpoint="embeddings", ) print(embeddings.embed_query("hello")) print(embeddings.embed_documents(["hello"])) ``` And I ran it with `python test.py`. </details> Here is the error I got: ``` raise HTTPError( requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://127.0.0.1:5000/endpoints/embeddings/invocations. Response text: {"detail":{"message":"invalid request: valid input_type must be provided with the provided model"}} ``` <details> <summary>Full trace</summary> ``` xxx/python3.11/site-packages/pydantic/_internal/_config.py:321: UserWarning: Valid config keys have changed in V2: * 'schema_extra' has been renamed to 'json_schema_extra' warnings.warn(message, UserWarning) Traceback (most recent call last): File "xxx/python3.11/site-packages/mlflow/utils/request_utils.py", line 52, in augmented_raise_for_status response.raise_for_status() File "xxx/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://127.0.0.1:5000/endpoints/embeddings/invocations During handling of the above exception, another exception occurred: Traceback (most recent call last): File "yyy/test.py", line 8, in <module> print(embeddings.embed_query("hello")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "xxx/python3.11/site-packages/langchain_community/embeddings/mlflow.py", line 74, in embed_query return self.embed_documents([text])[0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "xxx/python3.11/site-packages/langchain_community/embeddings/mlflow.py", line 69, in embed_documents resp = self._client.predict(endpoint=self.endpoint, inputs={"input": txt}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "xxx/python3.11/site-packages/mlflow/deployments/mlflow/__init__.py", line 294, in predict return self._call_endpoint( ^^^^^^^^^^^^^^^^^^^^ File "xxx/python3.11/site-packages/mlflow/deployments/mlflow/__init__.py", line 139, in _call_endpoint augmented_raise_for_status(response) File "xxx/python3.11/site-packages/mlflow/utils/request_utils.py", line 55, in augmented_raise_for_status raise HTTPError( requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://127.0.0.1:5000/endpoints/embeddings/invocations. Response text: {"detail":{"message":"invalid request: valid input_type must be provided with the provided model"}} ``` </details> The issue is that `embed_query`/`embed_documents` don't allow passing in the input_type argument, which is needed by the Cohere API -- see https://github.com/langchain-ai/langchain/blob/master/libs/community/langchain_community/embeddings/cohere.py#L81 ### Proposed solution My quick solution was to modify the two methods in `MlflowEmbeddings` to allow for kwargs: ```python class MlflowEmbeddings: .... def embed_documents(self, texts: List[str], **kwargs) -> List[List[float]]: embeddings: List[List[float]] = [] for txt in _chunk(texts, 20): resp = self._client.predict(endpoint=self.endpoint, inputs={"input": txt, **kwargs}) embeddings.extend(r["embedding"] for r in resp["data"]) return embeddings def embed_query(self, text: str, **kwargs) -> List[float]: return self.embed_documents([text], **kwargs)[0] ``` So `test.py` changes to: ```python print(embeddings.embed_query("hello", input_type="search_query")) print(embeddings.embed_documents(["hello"], input_type="search_document")) ``` This might not be the best solution since it kind of defeats the purpose of separating `embed_query` and `embed_documents` for Cohere. Another solution is to subclass MlflowEmbeddings for Cohere (and others?). I intend to open a PR with this change, so any guidance on the best approach is much appreciated! ### Expected behavior The code should generate embeddings for the given words
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15234/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15234/timeline
null
null
null
null