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/15564
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15564/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15564/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15564/events
https://github.com/langchain-ai/langchain/issues/15564
2,066,656,658
I_kwDOIPDwls57Lq2S
15,564
ValueError: too many values to unpack (expected 2)
{ "login": "hamster1111", "id": 69283765, "node_id": "MDQ6VXNlcjY5MjgzNzY1", "avatar_url": "https://avatars.githubusercontent.com/u/69283765?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hamster1111", "html_url": "https://github.com/hamster1111", "followers_url": "https://api.github.com/users/hamster1111/followers", "following_url": "https://api.github.com/users/hamster1111/following{/other_user}", "gists_url": "https://api.github.com/users/hamster1111/gists{/gist_id}", "starred_url": "https://api.github.com/users/hamster1111/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hamster1111/subscriptions", "organizations_url": "https://api.github.com/users/hamster1111/orgs", "repos_url": "https://api.github.com/users/hamster1111/repos", "events_url": "https://api.github.com/users/hamster1111/events{/privacy}", "received_events_url": "https://api.github.com/users/hamster1111/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
1
2024-01-05T03:05:15
2024-01-05T03:14:08
null
NONE
null
### System Info langchain:0.0.353 platform:windows10 python:3.10 I am a beginner in Langchain. I am a I want to use ConversationTokenBufferMemory to manually save the context, but an error occurred. My code is as follows `import os from lc.api_key import OPENAI_API_KEY os.environ['OPENAI_API_KEY'] = OPENAI_API_KEY from langchain.chains import ConversationChain from langchain.chat_models import ChatOpenAI from langchain.memory import ConversationTokenBufferMemory llm = ChatOpenAI(temperature=0.0) memory = ConversationTokenBufferMemory( llm=llm, max_token_limit=100 ) memory.save_context(inputs={"input": "how about AI?"}, outputs={"output": "Amazing!"}) memory.save_context({"input": "what is space?"}, {"output": "just like a stage."}) memory.save_context({"input": "what can i do?"}, {"output": "workers of the world, unite!"}) print(memory.load_memory_variables()) chain = ConversationChain( llm=llm, memory=memory, verbose=True ) print(chain.predict(input="what is 1+1?")) print(chain.predict(input="what is my name?")) print(chain.predict(input="what can i do?"))` --------------------------------- --------------------------------- The problem is that the code is executed to memory.save_ Context, an error will be reported.The stack information is as follows: memory.save_context(inputs={"input": "how about AI?"}, outputs={"output": "Amazing!"}) File "E:\Project\pythonProject\langChain\venv\lib\site-packages\langchain\memory\token_buffer.py", line 54, in save_context curr_buffer_length = self.llm.get_num_tokens_from_messages(buffer) File "E:\Project\pythonProject\langChain\venv\lib\site-packages\langchain_community\chat_models\openai.py", line 610, in get_num_tokens_from_messages model, encoding = self._get_encoding_model() File "E:\Project\pythonProject\langChain\venv\lib\site-packages\langchain_community\chat_models\openai.py", line 588, in _get_encoding_model encoding = tiktoken_.encoding_for_model(model) File "E:\Project\pythonProject\langChain\venv\lib\site-packages\tiktoken\model.py", line 97, in encoding_for_model return get_encoding(encoding_name_for_model(model_name)) File "E:\Project\pythonProject\langChain\venv\lib\site-packages\tiktoken\registry.py", line 73, in get_encoding enc = Encoding(**constructor()) File "E:\Project\pythonProject\langChain\venv\lib\site-packages\tiktoken_ext\openai_public.py", line 64, in cl100k_base mergeable_ranks = load_tiktoken_bpe( File "E:\Project\pythonProject\langChain\venv\lib\site-packages\tiktoken\load.py", line 117, in load_tiktoken_bpe return { File "E:\Project\pythonProject\langChain\venv\lib\site-packages\tiktoken\load.py", line 117, in <dictcomp> return { ValueError: too many values to unpack (expected 2) ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [X] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction import os from lc.api_key import OPENAI_API_KEY os.environ['OPENAI_API_KEY'] = OPENAI_API_KEY from langchain.chains import ConversationChain from langchain.chat_models import ChatOpenAI from langchain.memory import ConversationTokenBufferMemory llm = ChatOpenAI(temperature=0.0) memory = ConversationTokenBufferMemory( llm=llm, max_token_limit=100 ) memory.save_context(inputs={"input": "how about AI?"}, outputs={"output": "Amazing!"}) memory.save_context({"input": "what is space?"}, {"output": "just like a stage."}) memory.save_context({"input": "what can i do?"}, {"output": "workers of the world, unite!"}) print(memory.load_memory_variables()) chain = ConversationChain( llm=llm, memory=memory, verbose=True ) print(chain.predict(input="what is 1+1?")) print(chain.predict(input="what is my name?")) print(chain.predict(input="what can i do?")) ### Expected behavior Traceback (most recent call last): File "E:\Project\pythonProject\langChain\lc\memory\ConversationTokenBufferMemoryUseCaseScript.py", line 14, in <module> memory.save_context(inputs={"input": "how about AI?"}, outputs={"output": "Amazing!"}) File "E:\Project\pythonProject\langChain\venv\lib\site-packages\langchain\memory\token_buffer.py", line 54, in save_context curr_buffer_length = self.llm.get_num_tokens_from_messages(buffer) File "E:\Project\pythonProject\langChain\venv\lib\site-packages\langchain_community\chat_models\openai.py", line 610, in get_num_tokens_from_messages model, encoding = self._get_encoding_model() File "E:\Project\pythonProject\langChain\venv\lib\site-packages\langchain_community\chat_models\openai.py", line 588, in _get_encoding_model encoding = tiktoken_.encoding_for_model(model) File "E:\Project\pythonProject\langChain\venv\lib\site-packages\tiktoken\model.py", line 97, in encoding_for_model return get_encoding(encoding_name_for_model(model_name)) File "E:\Project\pythonProject\langChain\venv\lib\site-packages\tiktoken\registry.py", line 73, in get_encoding enc = Encoding(**constructor()) File "E:\Project\pythonProject\langChain\venv\lib\site-packages\tiktoken_ext\openai_public.py", line 64, in cl100k_base mergeable_ranks = load_tiktoken_bpe( File "E:\Project\pythonProject\langChain\venv\lib\site-packages\tiktoken\load.py", line 124, in load_tiktoken_bpe return { File "E:\Project\pythonProject\langChain\venv\lib\site-packages\tiktoken\load.py", line 124, in <dictcomp> return { ValueError: too many values to unpack (expected 2) Process finished with exit code 1
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15564/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15564/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15562
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15562/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15562/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15562/events
https://github.com/langchain-ai/langchain/pull/15562
2,066,515,284
PR_kwDOIPDwls5jROZV
15,562
docs: update cohere chat integration
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "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
2024-01-04T23:56:56
2024-01-06T00:33:30
2024-01-06T00:33:29
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15562/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15562/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15562", "html_url": "https://github.com/langchain-ai/langchain/pull/15562", "diff_url": "https://github.com/langchain-ai/langchain/pull/15562.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15562.patch", "merged_at": "2024-01-06T00:33:29" }
https://api.github.com/repos/langchain-ai/langchain/issues/15561
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15561/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15561/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15561/events
https://github.com/langchain-ai/langchain/pull/15561
2,066,366,948
PR_kwDOIPDwls5jQt5C
15,561
add ragatouille
{ "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": 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
2024-01-04T21:33:55
2024-01-04T21:45:21
2024-01-04T21:45:20
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15561/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15561/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15561", "html_url": "https://github.com/langchain-ai/langchain/pull/15561", "diff_url": "https://github.com/langchain-ai/langchain/pull/15561.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15561.patch", "merged_at": "2024-01-04T21:45:20" }
https://api.github.com/repos/langchain-ai/langchain/issues/15560
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15560/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15560/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15560/events
https://github.com/langchain-ai/langchain/issues/15560
2,066,364,259
I_kwDOIPDwls57Kjdj
15,560
Issue: How to use "n" completions with LCEL
{ "login": "iseong83", "id": 44355378, "node_id": "MDQ6VXNlcjQ0MzU1Mzc4", "avatar_url": "https://avatars.githubusercontent.com/u/44355378?v=4", "gravatar_id": "", "url": "https://api.github.com/users/iseong83", "html_url": "https://github.com/iseong83", "followers_url": "https://api.github.com/users/iseong83/followers", "following_url": "https://api.github.com/users/iseong83/following{/other_user}", "gists_url": "https://api.github.com/users/iseong83/gists{/gist_id}", "starred_url": "https://api.github.com/users/iseong83/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/iseong83/subscriptions", "organizations_url": "https://api.github.com/users/iseong83/orgs", "repos_url": "https://api.github.com/users/iseong83/repos", "events_url": "https://api.github.com/users/iseong83/events{/privacy}", "received_events_url": "https://api.github.com/users/iseong83/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": 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
1
2024-01-04T21:31:34
2024-01-04T21:40:55
null
NONE
null
### Issue you'd like to raise. I'm using Langchain 0.0.354 and ChatOpenAI. I want to use parameter "n" in OpenAI API to return "n" completions. However, ChatOpenAI always returns a single output. Ultimately, I would like to build my chain using LCEL as follows: `chain = prompt | ChatOpenAI (n=10) | MyCustomParser`. Can someone help me how can I achieve this? ### Suggestion: I think it would be nice to return a list of strings by default if n > 1.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15560/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15560/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15559
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15559/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15559/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15559/events
https://github.com/langchain-ai/langchain/pull/15559
2,066,302,740
PR_kwDOIPDwls5jQf71
15,559
core[patch]: Further restrict recursive URL loader
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 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": 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
2024-01-04T20:37:59
2024-01-04T21:33:58
2024-01-04T21:33:57
COLLABORATOR
null
Code from this PR: https://github.com/langchain-ai/langchain/compare/HEAD...m0kr4n3:security/fix_ssrf Added unit tests
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15559/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15559/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15559", "html_url": "https://github.com/langchain-ai/langchain/pull/15559", "diff_url": "https://github.com/langchain-ai/langchain/pull/15559.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15559.patch", "merged_at": "2024-01-04T21:33:57" }
https://api.github.com/repos/langchain-ai/langchain/issues/15558
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15558/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15558/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15558/events
https://github.com/langchain-ai/langchain/pull/15558
2,066,276,337
PR_kwDOIPDwls5jQaHJ
15,558
langchain[patch]: deprecate old agent classes and methods
{ "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": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 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": 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
2024-01-04T20:16:15
2024-01-05T17:42:55
2024-01-05T17:42:55
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15558/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15558/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15558", "html_url": "https://github.com/langchain-ai/langchain/pull/15558", "diff_url": "https://github.com/langchain-ai/langchain/pull/15558.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15558.patch", "merged_at": "2024-01-05T17:42:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/15557
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15557/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15557/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15557/events
https://github.com/langchain-ai/langchain/pull/15557
2,066,274,624
PR_kwDOIPDwls5jQZvJ
15,557
infra: try show last update time
{ "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 }
[ { "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
2
2024-01-04T20:15:03
2024-01-04T20:50:57
2024-01-04T20:50:56
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15557/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15557/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15557", "html_url": "https://github.com/langchain-ai/langchain/pull/15557", "diff_url": "https://github.com/langchain-ai/langchain/pull/15557.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15557.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15555
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15555/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15555/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15555/events
https://github.com/langchain-ai/langchain/issues/15555
2,066,241,880
I_kwDOIPDwls57KFlY
15,555
Authentican error
{ "login": "bz181d", "id": 155575406, "node_id": "U_kgDOCUXkbg", "avatar_url": "https://avatars.githubusercontent.com/u/155575406?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bz181d", "html_url": "https://github.com/bz181d", "followers_url": "https://api.github.com/users/bz181d/followers", "following_url": "https://api.github.com/users/bz181d/following{/other_user}", "gists_url": "https://api.github.com/users/bz181d/gists{/gist_id}", "starred_url": "https://api.github.com/users/bz181d/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bz181d/subscriptions", "organizations_url": "https://api.github.com/users/bz181d/orgs", "repos_url": "https://api.github.com/users/bz181d/repos", "events_url": "https://api.github.com/users/bz181d/events{/privacy}", "received_events_url": "https://api.github.com/users/bz181d/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
2024-01-04T19:48:30
2024-01-04T19:55:22
null
NONE
null
### Issue you'd like to raise. I am trying to run the below: > import requests > import json > from langchain.agents import AgentType, initialize_agent, load_tools > from langchain_community.llms import OpenAI > from langchain.chat_models import ChatOpenAI > > > llm = ChatOpenAI(temperature=0,model= 'gpt-3.5-turbo', openai_api_key="...") > > token='...' > tools = load_tools( > ["graphql"], > custom_headers={"Authorization": token, "Content-Type": "application/json","API-Version" : "2024-01"}, > graphql_endpoint="https://api.monday.com/v2", > llm=llm, fetch_schema_from_transport=False > ) > > > agent = initialize_agent( > tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True > ) > > > > graphql_fields = """ > > mutation{ > create_item (board_id: 3573920662, item_name: "New ItemX"){ > id > name > } > } > > """ > > suffix = "Create the item specified" > > > print(suffix + graphql_fields) > > agent.run(suffix + graphql_fields) But I keep getting the error: > > TransportQueryError: Error while fetching schema: Not Authenticated > If you don't need the schema, you can try with: "fetch_schema_from_transport=False" The authorisation is correct (token and API key censored here) and so is the end point. How can I fix this? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15555/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15555/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15554
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15554/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15554/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15554/events
https://github.com/langchain-ai/langchain/pull/15554
2,066,238,987
PR_kwDOIPDwls5jQSAy
15,554
langchain-community: add documentation for Firestore Chat Message History integration
{ "login": "averikitsch", "id": 6519888, "node_id": "MDQ6VXNlcjY1MTk4ODg=", "avatar_url": "https://avatars.githubusercontent.com/u/6519888?v=4", "gravatar_id": "", "url": "https://api.github.com/users/averikitsch", "html_url": "https://github.com/averikitsch", "followers_url": "https://api.github.com/users/averikitsch/followers", "following_url": "https://api.github.com/users/averikitsch/following{/other_user}", "gists_url": "https://api.github.com/users/averikitsch/gists{/gist_id}", "starred_url": "https://api.github.com/users/averikitsch/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/averikitsch/subscriptions", "organizations_url": "https://api.github.com/users/averikitsch/orgs", "repos_url": "https://api.github.com/users/averikitsch/repos", "events_url": "https://api.github.com/users/averikitsch/events{/privacy}", "received_events_url": "https://api.github.com/users/averikitsch/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": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "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
2
2024-01-04T19:46:04
2024-01-15T19:42:34
2024-01-15T19:42:34
CONTRIBUTOR
null
- **Description:** Adds documentation for the `FirestoreChatMessageHistory` integration and lists integration in Google's documentation - **Issue:** NA - **Dependencies:** No
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15554/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15554/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15554", "html_url": "https://github.com/langchain-ai/langchain/pull/15554", "diff_url": "https://github.com/langchain-ai/langchain/pull/15554.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15554.patch", "merged_at": "2024-01-15T19:42:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/15553
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15553/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15553/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15553/events
https://github.com/langchain-ai/langchain/issues/15553
2,066,194,527
I_kwDOIPDwls57J6Bf
15,553
How to specify a custom schema in PGVector.from_documents?
{ "login": "htcml", "id": 27452187, "node_id": "MDQ6VXNlcjI3NDUyMTg3", "avatar_url": "https://avatars.githubusercontent.com/u/27452187?v=4", "gravatar_id": "", "url": "https://api.github.com/users/htcml", "html_url": "https://github.com/htcml", "followers_url": "https://api.github.com/users/htcml/followers", "following_url": "https://api.github.com/users/htcml/following{/other_user}", "gists_url": "https://api.github.com/users/htcml/gists{/gist_id}", "starred_url": "https://api.github.com/users/htcml/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/htcml/subscriptions", "organizations_url": "https://api.github.com/users/htcml/orgs", "repos_url": "https://api.github.com/users/htcml/repos", "events_url": "https://api.github.com/users/htcml/events{/privacy}", "received_events_url": "https://api.github.com/users/htcml/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" } ]
open
false
null
[]
null
1
2024-01-04T19:08:46
2024-01-04T19:14:44
null
NONE
null
### Issue you'd like to raise. ``` from langchain.vectorstores.pgvector import PGVector db = PGVector.from_documents( documents= docs, embedding = embeddings, collection_name= "blog_posts", distance_strategy = DistanceStrategy.COSINE, connection_string=CONNECTION_STRING ) ``` This code will create a table in public schema. How to specify a custom schema other than public? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15553/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15553/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15552
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15552/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15552/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15552/events
https://github.com/langchain-ai/langchain/issues/15552
2,066,185,557
I_kwDOIPDwls57J31V
15,552
TypeError: expected string or buffer
{ "login": "vbabashov", "id": 26305084, "node_id": "MDQ6VXNlcjI2MzA1MDg0", "avatar_url": "https://avatars.githubusercontent.com/u/26305084?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vbabashov", "html_url": "https://github.com/vbabashov", "followers_url": "https://api.github.com/users/vbabashov/followers", "following_url": "https://api.github.com/users/vbabashov/following{/other_user}", "gists_url": "https://api.github.com/users/vbabashov/gists{/gist_id}", "starred_url": "https://api.github.com/users/vbabashov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vbabashov/subscriptions", "organizations_url": "https://api.github.com/users/vbabashov/orgs", "repos_url": "https://api.github.com/users/vbabashov/repos", "events_url": "https://api.github.com/users/vbabashov/events{/privacy}", "received_events_url": "https://api.github.com/users/vbabashov/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 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
2024-01-04T19:02:22
2024-01-04T19:04:48
null
NONE
null
### System Info Error stack ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) File <command-3066972537097411>, line 1 ----> 1 issue_recommendation( 2 review_title="Terrible", 3 review_text="This baking sheet is terrible. It stains so easily and i've tried everything to get it clean. I've maybe used it 5 times and it looks like it's 20 years old. The side of the pan also hold water, so when you pick it up off the drying rack, water runs out. I would never purchase these again.", 4 product_num="8888999" 5 6 ) File <command-3066972537097410>, line 44, in issue_recommendation(review_title, review_text, product_num) 36 retriever = vectordb.as_retriever(search_type="similarity", search_kwargs={'filter': {'product_num': product_num}}) 38 retrieval_chain = ( 39 {"context": retriever | format_docs, "review_text": RunnablePassthrough()} 40 | rag_prompt 41 | llm 42 | StrOutputParser() 43 ) ---> 44 return retrieval_chain.invoke({"review_title":review_title, "review_text": review_text}) File /local_disk0/.ephemeral_nfs/envs/pythonEnv-65a09d8c-062d-4f4f-9c52-1bf534f6511e/lib/python3.10/site-packages/langchain_core/runnables/base.py:1762, in RunnableSequence.invoke(self, input, config) 1760 try: 1761 for i, step in enumerate(self.steps): -> 1762 input = step.invoke( 1763 input, 1764 # mark each step as a child run 1765 patch_config( 1766 config, callbacks=run_manager.get_child(f"seq:step:{i+1}") 1767 ), 1768 ) 1769 # finish the root run 1770 except BaseException as e: File /local_disk0/.ephemeral_nfs/envs/pythonEnv-65a09d8c-062d-4f4f-9c52-1bf534f6511e/lib/python3.10/site-packages/langchain_core/runnables/base.py:2327, in RunnableParallel.invoke(self, input, config) 2314 with get_executor_for_config(config) as executor: 2315 futures = [ 2316 executor.submit( 2317 step.invoke, (...) 2325 for key, step in steps.items() 2326 ] -> 2327 output = {key: future.result() for key, future in zip(steps, futures)} 2328 # finish the root run 2329 except BaseException as e: File /local_disk0/.ephemeral_nfs/envs/pythonEnv-65a09d8c-062d-4f4f-9c52-1bf534f6511e/lib/python3.10/site-packages/langchain_core/runnables/base.py:2327, in <dictcomp>(.0) 2314 with get_executor_for_config(config) as executor: 2315 futures = [ 2316 executor.submit( 2317 step.invoke, (...) 2325 for key, step in steps.items() 2326 ] -> 2327 output = {key: future.result() for key, future in zip(steps, futures)} 2328 # finish the root run 2329 except BaseException as e: File /usr/lib/python3.10/concurrent/futures/_base.py:451, in Future.result(self, timeout) 449 raise CancelledError() 450 elif self._state == FINISHED: --> 451 return self.__get_result() 453 self._condition.wait(timeout) 455 if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]: File /usr/lib/python3.10/concurrent/futures/_base.py:403, in Future.__get_result(self) 401 if self._exception: 402 try: --> 403 raise self._exception 404 finally: 405 # Break a reference cycle with the exception in self._exception 406 self = None File /usr/lib/python3.10/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 /local_disk0/.ephemeral_nfs/envs/pythonEnv-65a09d8c-062d-4f4f-9c52-1bf534f6511e/lib/python3.10/site-packages/langchain_core/runnables/base.py:1762, in RunnableSequence.invoke(self, input, config) 1760 try: 1761 for i, step in enumerate(self.steps): -> 1762 input = step.invoke( 1763 input, 1764 # mark each step as a child run 1765 patch_config( 1766 config, callbacks=run_manager.get_child(f"seq:step:{i+1}") 1767 ), 1768 ) 1769 # finish the root run 1770 except BaseException as e: File /local_disk0/.ephemeral_nfs/envs/pythonEnv-65a09d8c-062d-4f4f-9c52-1bf534f6511e/lib/python3.10/site-packages/langchain_core/retrievers.py:121, in BaseRetriever.invoke(self, input, config) 117 def invoke( 118 self, input: str, config: Optional[RunnableConfig] = None 119 ) -> List[Document]: 120 config = ensure_config(config) --> 121 return self.get_relevant_documents( 122 input, 123 callbacks=config.get("callbacks"), 124 tags=config.get("tags"), 125 metadata=config.get("metadata"), 126 run_name=config.get("run_name"), 127 ) File /local_disk0/.ephemeral_nfs/envs/pythonEnv-65a09d8c-062d-4f4f-9c52-1bf534f6511e/lib/python3.10/site-packages/langchain_core/retrievers.py:223, in BaseRetriever.get_relevant_documents(self, query, callbacks, tags, metadata, run_name, **kwargs) 221 except Exception as e: 222 run_manager.on_retriever_error(e) --> 223 raise e 224 else: 225 run_manager.on_retriever_end( 226 result, 227 **kwargs, 228 ) File /local_disk0/.ephemeral_nfs/envs/pythonEnv-65a09d8c-062d-4f4f-9c52-1bf534f6511e/lib/python3.10/site-packages/langchain_core/retrievers.py:216, in BaseRetriever.get_relevant_documents(self, query, callbacks, tags, metadata, run_name, **kwargs) 214 _kwargs = kwargs if self._expects_other_args else {} 215 if self._new_arg_supported: --> 216 result = self._get_relevant_documents( 217 query, run_manager=run_manager, **_kwargs 218 ) 219 else: 220 result = self._get_relevant_documents(query, **_kwargs) File /local_disk0/.ephemeral_nfs/envs/pythonEnv-65a09d8c-062d-4f4f-9c52-1bf534f6511e/lib/python3.10/site-packages/langchain_core/vectorstores.py:654, in VectorStoreRetriever._get_relevant_documents(self, query, run_manager) 650 def _get_relevant_documents( 651 self, query: str, *, run_manager: CallbackManagerForRetrieverRun 652 ) -> List[Document]: 653 if self.search_type == "similarity": --> 654 docs = self.vectorstore.similarity_search(query, **self.search_kwargs) 655 elif self.search_type == "similarity_score_threshold": 656 docs_and_similarities = ( 657 self.vectorstore.similarity_search_with_relevance_scores( 658 query, **self.search_kwargs 659 ) 660 ) File /local_disk0/.ephemeral_nfs/envs/pythonEnv-65a09d8c-062d-4f4f-9c52-1bf534f6511e/lib/python3.10/site-packages/langchain_community/vectorstores/chroma.py:348, in Chroma.similarity_search(self, query, k, filter, **kwargs) 331 def similarity_search( 332 self, 333 query: str, (...) 336 **kwargs: Any, 337 ) -> List[Document]: 338 """Run similarity search with Chroma. 339 340 Args: (...) 346 List[Document]: List of documents most similar to the query text. 347 """ --> 348 docs_and_scores = self.similarity_search_with_score( 349 query, k, filter=filter, **kwargs 350 ) 351 return [doc for doc, _ in docs_and_scores] File /local_disk0/.ephemeral_nfs/envs/pythonEnv-65a09d8c-062d-4f4f-9c52-1bf534f6511e/lib/python3.10/site-packages/langchain_community/vectorstores/chroma.py:437, in Chroma.similarity_search_with_score(self, query, k, filter, where_document, **kwargs) 429 results = self.__query_collection( 430 query_texts=[query], 431 n_results=k, (...) 434 **kwargs, 435 ) 436 else: --> 437 query_embedding = self._embedding_function.embed_query(query) 438 results = self.__query_collection( 439 query_embeddings=[query_embedding], 440 n_results=k, (...) 443 **kwargs, 444 ) 446 return _results_to_docs_and_scores(results) File /local_disk0/.ephemeral_nfs/envs/pythonEnv-65a09d8c-062d-4f4f-9c52-1bf534f6511e/lib/python3.10/site-packages/langchain_community/embeddings/openai.py:691, in OpenAIEmbeddings.embed_query(self, text) 682 def embed_query(self, text: str) -> List[float]: 683 """Call out to OpenAI's embedding endpoint for embedding query text. 684 685 Args: (...) 689 Embedding for the text. 690 """ --> 691 return self.embed_documents([text])[0] File /local_disk0/.ephemeral_nfs/envs/pythonEnv-65a09d8c-062d-4f4f-9c52-1bf534f6511e/lib/python3.10/site-packages/langchain_community/embeddings/openai.py:662, in OpenAIEmbeddings.embed_documents(self, texts, chunk_size) 659 # NOTE: to keep things simple, we assume the list may contain texts longer 660 # than the maximum context and use length-safe embedding function. 661 engine = cast(str, self.deployment) --> 662 return self._get_len_safe_embeddings(texts, engine=engine) File /local_disk0/.ephemeral_nfs/envs/pythonEnv-65a09d8c-062d-4f4f-9c52-1bf534f6511e/lib/python3.10/site-packages/langchain_community/embeddings/openai.py:465, in OpenAIEmbeddings._get_len_safe_embeddings(self, texts, engine, chunk_size) 459 if self.model.endswith("001"): 460 # See: https://github.com/openai/openai-python/ 461 # issues/418#issuecomment-1525939500 462 # replace newlines, which can negatively affect performance. 463 text = text.replace("\n", " ") --> 465 token = encoding.encode( 466 text=text, 467 allowed_special=self.allowed_special, 468 disallowed_special=self.disallowed_special, 469 ) 471 # Split tokens into chunks respecting the embedding_ctx_length 472 for j in range(0, len(token), self.embedding_ctx_length): File /databricks/python/lib/python3.10/site-packages/tiktoken/core.py:116, in Encoding.encode(self, text, allowed_special, disallowed_special) 114 if not isinstance(disallowed_special, frozenset): 115 disallowed_special = frozenset(disallowed_special) --> 116 if match := _special_token_regex(disallowed_special).search(text): 117 raise_disallowed_special_token(match.group()) 119 try: TypeError: expected string or buffer ``` ### 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 - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I am trying to create RAG pattern using the product manuals in PDF which are spitted, indexed, and stored in Chroma persisted on a disk. When I try the function that classifies the reviews using the document context, below is the error I get: ``` from langchain import PromptTemplate from langchain_core.output_parsers import StrOutputParser from langchain_core.runnables import RunnablePassthrough from langchain.embeddings import AzureOpenAIEmbeddings from langchain.chat_models import AzureChatOpenAI from langchain.vectorstores import Chroma llm = AzureChatOpenAI( azure_deployment="ChatGPT-16K", openai_api_version="2023-05-15", azure_endpoint=endpoint, api_key=result["access_token"], temperature=0, seed = 100 ) embedding_model = AzureOpenAIEmbeddings( api_version="2023-05-15", azure_endpoint=endpoint, api_key=result["access_token"], azure_deployment="ada002", ) vectordb = Chroma( persist_directory=vector_db_path, embedding_function=embedding_model, collection_name="product_manuals", ) def format_docs(docs): return "\n\n".join(doc.page_content for doc in docs) def classify (review_title, review_text, product_num): template = """ You are a customer service AI Assistant that handles responses to negative product reviews. Use the context below and categorize {review_title} and {review_text} into defect, misuse or poor quality categories based only on provided context. If you don't know, say that you do not know, don't try to make up an answer. Respond back with an answer in the following format: poor quality misuse defect {context} Category: """ rag_prompt = PromptTemplate.from_template(template) retriever = vectordb.as_retriever(search_type="similarity", search_kwargs={'filter': {'product_num': product_num}}) retrieval_chain = ( {"context": retriever | format_docs, "review_title: RunnablePassthrough(), "review_text": RunnablePassthrough()} | rag_prompt | llm | StrOutputParser() ) return retrieval_chain.invoke({"review_title": review_title, "review_text": review_text}) classify(review_title="Terrible", review_text ="This baking sheet is terrible. It stains so easily and i've tried everything to get it clean", product_num ="8888999") ``` ### Expected behavior Embeddings seems to work fine when I test. It also works fine when I remove the context and retriever from the chain. It seems to be related to embeddings. Examples on Langchain [website (https://python.langchain.com/docs/use_cases/question_answering/sources) instantiates retriver from Chroma.from_documents() whereas I load Chroma vector store from a persisted path. I also tried invoking with review_text only (instead of review title and review text) but the error persists. Not sure why this is happening. These are the package versions I work: Name: openai Version: 1.6.1 Name: langchain Version: 0.0.354
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15552/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15552/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15551
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15551/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15551/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15551/events
https://github.com/langchain-ai/langchain/pull/15551
2,066,067,176
PR_kwDOIPDwls5jPtnt
15,551
Bagatur/docs last updated
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "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
5
2024-01-04T17:32:16
2024-01-13T01:46:31
2024-01-13T01:46:31
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15551/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15551/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15551", "html_url": "https://github.com/langchain-ai/langchain/pull/15551", "diff_url": "https://github.com/langchain-ai/langchain/pull/15551.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15551.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15549
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15549/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15549/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15549/events
https://github.com/langchain-ai/langchain/issues/15549
2,065,981,904
I_kwDOIPDwls57JGHQ
15,549
Question: Using TimeWeightedVectorStoreRetriever and GenerativeAgentMemory is there a way to save the memory and load it again?
{ "login": "dangell7", "id": 25502424, "node_id": "MDQ6VXNlcjI1NTAyNDI0", "avatar_url": "https://avatars.githubusercontent.com/u/25502424?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dangell7", "html_url": "https://github.com/dangell7", "followers_url": "https://api.github.com/users/dangell7/followers", "following_url": "https://api.github.com/users/dangell7/following{/other_user}", "gists_url": "https://api.github.com/users/dangell7/gists{/gist_id}", "starred_url": "https://api.github.com/users/dangell7/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dangell7/subscriptions", "organizations_url": "https://api.github.com/users/dangell7/orgs", "repos_url": "https://api.github.com/users/dangell7/repos", "events_url": "https://api.github.com/users/dangell7/events{/privacy}", "received_events_url": "https://api.github.com/users/dangell7/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": 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" } ]
closed
false
null
[]
null
3
2024-01-04T16:39:30
2024-01-04T16:59:31
2024-01-04T16:57:22
NONE
null
### Issue you'd like to raise. I have a large Agent with lots of memory/observations but initializing takes to much time. Is there a way to save the memory and load it again? Whats the best way to achieve this? Ideally I would like to reuse the vector store for memory and then for each new user save/load the memory/conversations specific to that agent/user connection. I'm using the examples in the cookbook here: https://github.com/langchain-ai/langchain/blob/master/cookbook/generative_agents_interactive_simulacra_of_human_behavior.ipynb ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15549/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15549/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15548
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15548/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15548/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15548/events
https://github.com/langchain-ai/langchain/issues/15548
2,065,959,358
I_kwDOIPDwls57JAm-
15,548
WARNING:pypdf._reader:incorrect startxref pointer(3)
{ "login": "SouSingh", "id": 96938361, "node_id": "U_kgDOBccpeQ", "avatar_url": "https://avatars.githubusercontent.com/u/96938361?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SouSingh", "html_url": "https://github.com/SouSingh", "followers_url": "https://api.github.com/users/SouSingh/followers", "following_url": "https://api.github.com/users/SouSingh/following{/other_user}", "gists_url": "https://api.github.com/users/SouSingh/gists{/gist_id}", "starred_url": "https://api.github.com/users/SouSingh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SouSingh/subscriptions", "organizations_url": "https://api.github.com/users/SouSingh/orgs", "repos_url": "https://api.github.com/users/SouSingh/repos", "events_url": "https://api.github.com/users/SouSingh/events{/privacy}", "received_events_url": "https://api.github.com/users/SouSingh/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
4
2024-01-04T16:25:57
2024-01-05T15:41:54
null
NONE
null
### System Info I try to load pdf in from langchain.document_loaders import PyPDFDirectoryLoader got error this WARNING:pypdf._reader:incorrect startxref pointer(3) from langchain.document_loaders import PyPDFDirectoryLoader from langchain_community.document_loaders import PyPDFLoader loader = PyPDFDirectoryLoader("/content/pdfs/Carina Lueschen Masterarbeit Ryan Trecartin (1).pdf") pages = loader.load_and_split() will return blank array and warning error ### Who can help? @hwchase17 @agola11 @sbusso ### 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 just load the pdf which having images ### Expected behavior output should be in array of pdf data
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15548/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15548/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15547
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15547/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15547/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15547/events
https://github.com/langchain-ai/langchain/pull/15547
2,065,893,668
PR_kwDOIPDwls5jPH04
15,547
core[patch]: Release 0.1.6
{ "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
2024-01-04T15:48:01
2024-01-04T16:02:05
2024-01-04T16:02:04
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15547/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15547/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15547", "html_url": "https://github.com/langchain-ai/langchain/pull/15547", "diff_url": "https://github.com/langchain-ai/langchain/pull/15547.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15547.patch", "merged_at": "2024-01-04T16:02:04" }
https://api.github.com/repos/langchain-ai/langchain/issues/15546
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15546/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15546/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15546/events
https://github.com/langchain-ai/langchain/pull/15546
2,065,808,985
PR_kwDOIPDwls5jO1bo
15,546
Revert #15326
{ "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": 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": 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
2
2024-01-04T14:58:29
2024-01-04T15:55:50
2024-01-04T15:39:37
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15546/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15546/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15546", "html_url": "https://github.com/langchain-ai/langchain/pull/15546", "diff_url": "https://github.com/langchain-ai/langchain/pull/15546.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15546.patch", "merged_at": "2024-01-04T15:39:37" }
https://api.github.com/repos/langchain-ai/langchain/issues/15545
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15545/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15545/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15545/events
https://github.com/langchain-ai/langchain/pull/15545
2,065,785,679
PR_kwDOIPDwls5jOwae
15,545
core[patch]: add v1 tracer backwards compat
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "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
2024-01-04T14:44:15
2024-01-04T17:32:10
2024-01-04T17:32:10
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15545/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15545/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15545", "html_url": "https://github.com/langchain-ai/langchain/pull/15545", "diff_url": "https://github.com/langchain-ai/langchain/pull/15545.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15545.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15544
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15544/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15544/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15544/events
https://github.com/langchain-ai/langchain/pull/15544
2,065,769,705
PR_kwDOIPDwls5jOs_X
15,544
fix tongyi completion and params error
{ "login": "Funkeke", "id": 153349156, "node_id": "U_kgDOCSPsJA", "avatar_url": "https://avatars.githubusercontent.com/u/153349156?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Funkeke", "html_url": "https://github.com/Funkeke", "followers_url": "https://api.github.com/users/Funkeke/followers", "following_url": "https://api.github.com/users/Funkeke/following{/other_user}", "gists_url": "https://api.github.com/users/Funkeke/gists{/gist_id}", "starred_url": "https://api.github.com/users/Funkeke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Funkeke/subscriptions", "organizations_url": "https://api.github.com/users/Funkeke/orgs", "repos_url": "https://api.github.com/users/Funkeke/repos", "events_url": "https://api.github.com/users/Funkeke/events{/privacy}", "received_events_url": "https://api.github.com/users/Funkeke/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "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
2024-01-04T14:34:25
2024-01-15T19:43:13
2024-01-15T19:43:13
CONTRIBUTOR
null
fix tongyi completion json parse error and prompt's params error
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15544/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15544/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15544", "html_url": "https://github.com/langchain-ai/langchain/pull/15544", "diff_url": "https://github.com/langchain-ai/langchain/pull/15544.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15544.patch", "merged_at": "2024-01-15T19:43:13" }
https://api.github.com/repos/langchain-ai/langchain/issues/15543
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15543/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15543/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15543/events
https://github.com/langchain-ai/langchain/issues/15543
2,065,766,207
I_kwDOIPDwls57IRc_
15,543
GraphCypherQAChain doesn't support returning source documents with `return_source_documents` param like the `BaseQAWithSourcesChain` chains
{ "login": "AsmaaMHadir", "id": 46932156, "node_id": "MDQ6VXNlcjQ2OTMyMTU2", "avatar_url": "https://avatars.githubusercontent.com/u/46932156?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AsmaaMHadir", "html_url": "https://github.com/AsmaaMHadir", "followers_url": "https://api.github.com/users/AsmaaMHadir/followers", "following_url": "https://api.github.com/users/AsmaaMHadir/following{/other_user}", "gists_url": "https://api.github.com/users/AsmaaMHadir/gists{/gist_id}", "starred_url": "https://api.github.com/users/AsmaaMHadir/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AsmaaMHadir/subscriptions", "organizations_url": "https://api.github.com/users/AsmaaMHadir/orgs", "repos_url": "https://api.github.com/users/AsmaaMHadir/repos", "events_url": "https://api.github.com/users/AsmaaMHadir/events{/privacy}", "received_events_url": "https://api.github.com/users/AsmaaMHadir/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": 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
3
2024-01-04T14:32:14
2024-01-10T15:07:20
null
NONE
null
### System Info python==3.10 langchain==0.0.326 langdetect==1.0.9 langsmith==0.0.54 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. define `GraphCypherQAChain` chain to query over Neo4j graph db and construct cypher query then return answer to user's question while setting `return_source_documents` to `True`: ` graph = Neo4jGraph( url=NEO4J_URL, username=NEO4J_USERNAME, password=NEO4J_PASSWORD ) EXAMPLES_PROMPT_TEMPLATE = """ Input: {db_question}, Output: {db_query} """ example_prompt = PromptTemplate(input_variables=["db_question", "db_query"], template=EXAMPLES_PROMPT_TEMPLATE) example_selector = MaxMarginalRelevanceExampleSelector.from_examples( # This is the list of examples available to select from. query_examples, # This is the embedding class used to produce embeddings which are used to measure semantic similarity. OpenAIEmbeddings(), # This is the VectorStore class that is used to store the embeddings and do a similarity search over. Chroma, # This is the number of examples to produce. k=2 ) prompt_cypher = FewShotPromptTemplate( example_selector=example_selector, example_prompt=example_prompt, suffix="The question is:\n{question}", prefix="""Task: Generate a Cypher query to query a graph database based on the user's question. Instructions: Use the provided schema for node types, relationship types, and properties in the graph database. Only incorporate these defined elements. Avoid utilizing any other node types, relationship types, or properties not present in the provided schema. Here's the schema definition: {schema} if the question matches one of the sample questions in the knowledge base then just return the query used to answer it. if the user asks to retrieve a piece of information about a document or section given their name, then use a `WHERE` statement and a cypher regular expression matching without case sensitivity like in the queries in your knowledge base when filtering by the name. Use the statement `(t:transaction)-[:CONTAINS*]->(s)` in the cypher query with the `*` sign next to the relationship label `CONTAINS` and where s is the section node you are looking for. Ensure the generated query captures relevant information from the graph database without reducing the retrieved data due to variations in user wording. Note: do not include any explanations or apologies in your responses. Do not respond to inquiries seeking information other than the construction of a Cypher statement. Do not include any text except the generated Cypher statement. """, input_variables=["schema", "question"] ) QA_GENERATION_TEMPLATE = """ Task: answer the question you are given based on the context provided. Instructions: You are an assistant that helps to form nice and human understandable answers. Use the context information provided to generate a well organized and comprehensve answer to the user's question. When the provided information contains multiple elements, structure your answer as a bulleted or numbered list to enhance clarity and readability. You must use the information to construct your answer. The provided information is authoritative; do not doubt it or try to use your internal knowledge to correct it. Make the answer sound like a response to the question without mentioning that you based the result on the given information. Here's the information: {context} Question: {question} Answer: """ prompt_qa = PromptTemplate(input_variables=["context", "question"], template=QA_GENERATION_TEMPLATE) chain = GraphCypherQAChain.from_llm( cypher_llm=ChatOpenAI(temperature=0, model="gpt-4"), qa_llm=ChatOpenAI(temperature=0, model="gpt-4"), graph=graph, verbose=True, return_intermediate_steps=True, return_source_documents=True, validate_cypher=True, cypher_prompt=prompt_cypher, qa_prompt=prompt_qa )` 2. run chain and retrieve source docs used to answer question: ` res = chain.run({)) # chatbot response answer = res['result'] print("source_documents" in res) print(res.get("source_documents"))` ### Expected behavior output is expected to be the source files that were queried or a similar output indicating the high level graph elements that were used to construct the context passed in the prompt.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15543/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15543/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15541
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15541/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15541/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15541/events
https://github.com/langchain-ai/langchain/pull/15541
2,065,579,444
PR_kwDOIPDwls5jODUF
15,541
Fix: stop (stop_sequences) param on WatsonxLLM
{ "login": "MateuszOssGit", "id": 139469471, "node_id": "U_kgDOCFAinw", "avatar_url": "https://avatars.githubusercontent.com/u/139469471?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MateuszOssGit", "html_url": "https://github.com/MateuszOssGit", "followers_url": "https://api.github.com/users/MateuszOssGit/followers", "following_url": "https://api.github.com/users/MateuszOssGit/following{/other_user}", "gists_url": "https://api.github.com/users/MateuszOssGit/gists{/gist_id}", "starred_url": "https://api.github.com/users/MateuszOssGit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MateuszOssGit/subscriptions", "organizations_url": "https://api.github.com/users/MateuszOssGit/orgs", "repos_url": "https://api.github.com/users/MateuszOssGit/repos", "events_url": "https://api.github.com/users/MateuszOssGit/events{/privacy}", "received_events_url": "https://api.github.com/users/MateuszOssGit/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": 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
2024-01-04T12:31:33
2024-01-15T19:44:57
2024-01-15T19:44:57
CONTRIBUTOR
null
- **Description:** Fix to IBM [watsonx.ai](https://www.ibm.com/products/watsonx-ai) LLM provider (stop (`stop_sequences`) param on watsonxLLM) - **Dependencies:** [ibm-watsonx-ai](https://pypi.org/project/ibm-watsonx-ai/), - **Tag maintainer:** : @hwchase17 , @eyurtsev , @baskaryan Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. ✅
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15541/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15541/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15541", "html_url": "https://github.com/langchain-ai/langchain/pull/15541", "diff_url": "https://github.com/langchain-ai/langchain/pull/15541.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15541.patch", "merged_at": "2024-01-15T19:44:57" }
https://api.github.com/repos/langchain-ai/langchain/issues/15538
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15538/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15538/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15538/events
https://github.com/langchain-ai/langchain/issues/15538
2,065,516,520
I_kwDOIPDwls57HUfo
15,538
INFORMATION_SCHEMA.VECTOR_INDEXES was not found in google big-query
{ "login": "rwaneyvin", "id": 42773907, "node_id": "MDQ6VXNlcjQyNzczOTA3", "avatar_url": "https://avatars.githubusercontent.com/u/42773907?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rwaneyvin", "html_url": "https://github.com/rwaneyvin", "followers_url": "https://api.github.com/users/rwaneyvin/followers", "following_url": "https://api.github.com/users/rwaneyvin/following{/other_user}", "gists_url": "https://api.github.com/users/rwaneyvin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rwaneyvin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rwaneyvin/subscriptions", "organizations_url": "https://api.github.com/users/rwaneyvin/orgs", "repos_url": "https://api.github.com/users/rwaneyvin/repos", "events_url": "https://api.github.com/users/rwaneyvin/events{/privacy}", "received_events_url": "https://api.github.com/users/rwaneyvin/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
5
2024-01-04T11:51:00
2024-01-09T17:51:59
null
NONE
null
### System Info google-cloud-bigquery = "^3.14.1" google-api-core = "^2.15.0" google-cloud-core = "^2.4.1" grpcio = "^1.60.0" grpcio-tools = "^1.60.0" langchain-google-genai = "^0.0.5" langchain-core = "^0.1.5" google-cloud-aiplatform = "^1.38.1" langchain-community = "^0.0.8" ### Who can help? when test the BigQuery Vector Search as website demo,https://python.langchain.com/docs/integrations/vectorstores/bigquery_vector_search it caused Not found: Table xxx.xxx.INFORMATION_SCHEMA.VECTOR_INDEXES was not found in location US. in google big-query ### Information - [x] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction the procedures steps are in the page of https://python.langchain.com/docs/integrations/vectorstores/bigquery_vector_search ,official langchain demo page. ### Expected behavior it was official langchain demo page. and result should be shown but error. probably something went wrong with big-query, please help, thanks a lot!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15538/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15538/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15537
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15537/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15537/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15537/events
https://github.com/langchain-ai/langchain/pull/15537
2,065,461,848
PR_kwDOIPDwls5jNpfN
15,537
langchain: included concurrency limit in RecursiveUrlLoader
{ "login": "vincenzofanizza", "id": 104767369, "node_id": "U_kgDOBj6fiQ", "avatar_url": "https://avatars.githubusercontent.com/u/104767369?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vincenzofanizza", "html_url": "https://github.com/vincenzofanizza", "followers_url": "https://api.github.com/users/vincenzofanizza/followers", "following_url": "https://api.github.com/users/vincenzofanizza/following{/other_user}", "gists_url": "https://api.github.com/users/vincenzofanizza/gists{/gist_id}", "starred_url": "https://api.github.com/users/vincenzofanizza/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vincenzofanizza/subscriptions", "organizations_url": "https://api.github.com/users/vincenzofanizza/orgs", "repos_url": "https://api.github.com/users/vincenzofanizza/repos", "events_url": "https://api.github.com/users/vincenzofanizza/events{/privacy}", "received_events_url": "https://api.github.com/users/vincenzofanizza/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": 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." } ]
open
false
{ "login": "nfcampos", "id": 56902, "node_id": "MDQ6VXNlcjU2OTAy", "avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nfcampos", "html_url": "https://github.com/nfcampos", "followers_url": "https://api.github.com/users/nfcampos/followers", "following_url": "https://api.github.com/users/nfcampos/following{/other_user}", "gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}", "starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions", "organizations_url": "https://api.github.com/users/nfcampos/orgs", "repos_url": "https://api.github.com/users/nfcampos/repos", "events_url": "https://api.github.com/users/nfcampos/events{/privacy}", "received_events_url": "https://api.github.com/users/nfcampos/received_events", "type": "User", "site_admin": false }
[ { "login": "nfcampos", "id": 56902, "node_id": "MDQ6VXNlcjU2OTAy", "avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nfcampos", "html_url": "https://github.com/nfcampos", "followers_url": "https://api.github.com/users/nfcampos/followers", "following_url": "https://api.github.com/users/nfcampos/following{/other_user}", "gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}", "starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions", "organizations_url": "https://api.github.com/users/nfcampos/orgs", "repos_url": "https://api.github.com/users/nfcampos/repos", "events_url": "https://api.github.com/users/nfcampos/events{/privacy}", "received_events_url": "https://api.github.com/users/nfcampos/received_events", "type": "User", "site_admin": false } ]
null
1
2024-01-04T11:14:11
2024-01-16T08:18:39
null
NONE
null
- **Description:** The user can set a limit for the maximum number of concurrent requests in the document loader through the `concurrent_requests_limit` argument. - **Issue:** #15536. - **Dependencies:** `asyncio`, `time`.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15537/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15537/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15537", "html_url": "https://github.com/langchain-ai/langchain/pull/15537", "diff_url": "https://github.com/langchain-ai/langchain/pull/15537.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15537.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15536
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15536/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15536/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15536/events
https://github.com/langchain-ai/langchain/issues/15536
2,065,453,597
I_kwDOIPDwls57HFId
15,536
feat: limit the number of concurrent requests in the RecursiveUrlLoader
{ "login": "vincenzofanizza", "id": 104767369, "node_id": "U_kgDOBj6fiQ", "avatar_url": "https://avatars.githubusercontent.com/u/104767369?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vincenzofanizza", "html_url": "https://github.com/vincenzofanizza", "followers_url": "https://api.github.com/users/vincenzofanizza/followers", "following_url": "https://api.github.com/users/vincenzofanizza/following{/other_user}", "gists_url": "https://api.github.com/users/vincenzofanizza/gists{/gist_id}", "starred_url": "https://api.github.com/users/vincenzofanizza/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vincenzofanizza/subscriptions", "organizations_url": "https://api.github.com/users/vincenzofanizza/orgs", "repos_url": "https://api.github.com/users/vincenzofanizza/repos", "events_url": "https://api.github.com/users/vincenzofanizza/events{/privacy}", "received_events_url": "https://api.github.com/users/vincenzofanizza/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" } ]
open
false
null
[]
null
1
2024-01-04T11:08:15
2024-01-04T11:10:47
null
NONE
null
### Feature request When using asynchronous loading the `RecursiveUrlLoader`, it would be nice to be able to set a limit for the number of parallel HTTP requests when scraping a website. Right now, when using async loading it is very likely to get errors like the following: ``` 04-01-24 12:02:53 [WARNING] recursive_url_loader.py: Unable to load https://docs.llamaindex.ai/en/stable/module_guides/querying/querying.html. Received error Cannot connect to host docs.llamaindex.ai:443 ssl:default [Network is unreachable] of type ClientConnectorError ``` ### Motivation This feature allows to: - Reduce the probability of receiving an error due to the excessive number of requests. - Make the loader more robust. ### Your contribution I have already implemented and tested a solution using `asyncio.Semaphore`. This class allows to set a limit for the maximum number of parallel tasks that can be performed in a program.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15536/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15536/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15535
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15535/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15535/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15535/events
https://github.com/langchain-ai/langchain/pull/15535
2,065,444,576
PR_kwDOIPDwls5jNlx6
15,535
<langchain>: tracing_enabled incompatibility issue between core 0.1.5 and langchain v0.0.353
{ "login": "xkaiDu", "id": 138418758, "node_id": "U_kgDOCEAaRg", "avatar_url": "https://avatars.githubusercontent.com/u/138418758?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xkaiDu", "html_url": "https://github.com/xkaiDu", "followers_url": "https://api.github.com/users/xkaiDu/followers", "following_url": "https://api.github.com/users/xkaiDu/following{/other_user}", "gists_url": "https://api.github.com/users/xkaiDu/gists{/gist_id}", "starred_url": "https://api.github.com/users/xkaiDu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xkaiDu/subscriptions", "organizations_url": "https://api.github.com/users/xkaiDu/orgs", "repos_url": "https://api.github.com/users/xkaiDu/repos", "events_url": "https://api.github.com/users/xkaiDu/events{/privacy}", "received_events_url": "https://api.github.com/users/xkaiDu/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": 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
2
2024-01-04T11:02:15
2024-01-07T16:49:05
2024-01-07T16:49:04
NONE
null
https://github.com/langchain-ai/langchain/issues/15526 TLDR: In commit [7eec8f2](https://github.com/langchain-ai/langchain/commit/7eec8f24876fd624573c09ff82270362031e6a5f#) the function [tracing_enabled](https://github.com/langchain-ai/langchain/commit/7eec8f24876fd624573c09ff82270362031e6a5f#diff-aa3d4ef71b404ecd0d1198ccf778a3ccc605d9b6e043057d0db3bd8f7d9c483dL46) was deleted. the function deletion was included in langchain-core [0.1.5](https://github.com/langchain-ai/langchain/pull/15480), and is being referred to by v0.0.353, which didn't clean up the dependencies yet, not until v0.0.354 Causing the retrievers API of v0.0.353 and some earlier versions to raise ImportError after Jan 3rd, when langchain-core 0.1.5 was released.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15535/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15535/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15535", "html_url": "https://github.com/langchain-ai/langchain/pull/15535", "diff_url": "https://github.com/langchain-ai/langchain/pull/15535.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15535.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15534
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15534/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15534/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15534/events
https://github.com/langchain-ai/langchain/pull/15534
2,065,374,655
PR_kwDOIPDwls5jNWof
15,534
fix: Fix DEFAULT_API_KEY for ArgillaCallbackHandler
{ "login": "kursathalat", "id": 86690946, "node_id": "MDQ6VXNlcjg2NjkwOTQ2", "avatar_url": "https://avatars.githubusercontent.com/u/86690946?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kursathalat", "html_url": "https://github.com/kursathalat", "followers_url": "https://api.github.com/users/kursathalat/followers", "following_url": "https://api.github.com/users/kursathalat/following{/other_user}", "gists_url": "https://api.github.com/users/kursathalat/gists{/gist_id}", "starred_url": "https://api.github.com/users/kursathalat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kursathalat/subscriptions", "organizations_url": "https://api.github.com/users/kursathalat/orgs", "repos_url": "https://api.github.com/users/kursathalat/repos", "events_url": "https://api.github.com/users/kursathalat/events{/privacy}", "received_events_url": "https://api.github.com/users/kursathalat/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 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
2024-01-04T10:18:07
2024-01-07T17:26:52
2024-01-07T17:26:52
CONTRIBUTOR
null
- ArgillaCallbackHandler does not properly set the default values while initializing. This PR corrects the line. - Issue: #15531 - Dependencies: Argilla - Also corrected some dead links.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15534/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15534/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15534", "html_url": "https://github.com/langchain-ai/langchain/pull/15534", "diff_url": "https://github.com/langchain-ai/langchain/pull/15534.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15534.patch", "merged_at": "2024-01-07T17:26:52" }
https://api.github.com/repos/langchain-ai/langchain/issues/15533
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15533/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15533/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15533/events
https://github.com/langchain-ai/langchain/pull/15533
2,065,358,543
PR_kwDOIPDwls5jNTHV
15,533
removed deprecated openai model
{ "login": "VpkPrasanna", "id": 30804112, "node_id": "MDQ6VXNlcjMwODA0MTEy", "avatar_url": "https://avatars.githubusercontent.com/u/30804112?v=4", "gravatar_id": "", "url": "https://api.github.com/users/VpkPrasanna", "html_url": "https://github.com/VpkPrasanna", "followers_url": "https://api.github.com/users/VpkPrasanna/followers", "following_url": "https://api.github.com/users/VpkPrasanna/following{/other_user}", "gists_url": "https://api.github.com/users/VpkPrasanna/gists{/gist_id}", "starred_url": "https://api.github.com/users/VpkPrasanna/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/VpkPrasanna/subscriptions", "organizations_url": "https://api.github.com/users/VpkPrasanna/orgs", "repos_url": "https://api.github.com/users/VpkPrasanna/repos", "events_url": "https://api.github.com/users/VpkPrasanna/events{/privacy}", "received_events_url": "https://api.github.com/users/VpkPrasanna/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": 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
2024-01-04T10:07:11
2024-01-05T07:15:58
2024-01-05T01:53:43
CONTRIBUTOR
null
removed the deprecated model from text embedding page of openai notebook and added the suggested model from openai page <!-- 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/15533/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15533/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15533", "html_url": "https://github.com/langchain-ai/langchain/pull/15533", "diff_url": "https://github.com/langchain-ai/langchain/pull/15533.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15533.patch", "merged_at": "2024-01-05T01:53:43" }
https://api.github.com/repos/langchain-ai/langchain/issues/15532
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15532/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15532/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15532/events
https://github.com/langchain-ai/langchain/pull/15532
2,065,356,560
PR_kwDOIPDwls5jNSsY
15,532
langchain-google-genai[patch]: Add support for end_point and transport parameters to the Gemini API
{ "login": "enfeng", "id": 3851001, "node_id": "MDQ6VXNlcjM4NTEwMDE=", "avatar_url": "https://avatars.githubusercontent.com/u/3851001?v=4", "gravatar_id": "", "url": "https://api.github.com/users/enfeng", "html_url": "https://github.com/enfeng", "followers_url": "https://api.github.com/users/enfeng/followers", "following_url": "https://api.github.com/users/enfeng/following{/other_user}", "gists_url": "https://api.github.com/users/enfeng/gists{/gist_id}", "starred_url": "https://api.github.com/users/enfeng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/enfeng/subscriptions", "organizations_url": "https://api.github.com/users/enfeng/orgs", "repos_url": "https://api.github.com/users/enfeng/repos", "events_url": "https://api.github.com/users/enfeng/events{/privacy}", "received_events_url": "https://api.github.com/users/enfeng/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "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." }, { "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
2
2024-01-04T10:05:53
2024-01-12T16:52:00
2024-01-12T16:52:00
CONTRIBUTOR
null
Add support for end_point and transport parameters to the Gemini API
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15532/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15532/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15532", "html_url": "https://github.com/langchain-ai/langchain/pull/15532", "diff_url": "https://github.com/langchain-ai/langchain/pull/15532.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15532.patch", "merged_at": "2024-01-12T16:52:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/15531
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15531/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15531/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15531/events
https://github.com/langchain-ai/langchain/issues/15531
2,065,338,280
I_kwDOIPDwls57Go-o
15,531
ArgillaCallback doesn't properly set DEFAULT_API_KEY
{ "login": "kursathalat", "id": 86690946, "node_id": "MDQ6VXNlcjg2NjkwOTQ2", "avatar_url": "https://avatars.githubusercontent.com/u/86690946?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kursathalat", "html_url": "https://github.com/kursathalat", "followers_url": "https://api.github.com/users/kursathalat/followers", "following_url": "https://api.github.com/users/kursathalat/following{/other_user}", "gists_url": "https://api.github.com/users/kursathalat/gists{/gist_id}", "starred_url": "https://api.github.com/users/kursathalat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kursathalat/subscriptions", "organizations_url": "https://api.github.com/users/kursathalat/orgs", "repos_url": "https://api.github.com/users/kursathalat/repos", "events_url": "https://api.github.com/users/kursathalat/events{/privacy}", "received_events_url": "https://api.github.com/users/kursathalat/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" } ]
open
false
null
[]
null
1
2024-01-04T09:53:47
2024-01-04T10:07:41
null
CONTRIBUTOR
null
### System Info Python version: 3.9.7 Langchain version: 0.0.352 Argilla version: 1.20.0 ### Who can help? @agola11 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [X] Callbacks/Tracing - [ ] Async ### Reproduction ArgillaCallbackHandler does not set the DEFAULT_API_KEY properly while initiliazing. This might cause problems with some setups. Link to line: https://github.com/langchain-ai/langchain/blob/master/libs/community/langchain_community/callbacks/argilla_callback.py#L137 ### Expected behavior DEFAULT_API_KEY to be correctly set.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15531/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15531/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15530
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15530/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15530/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15530/events
https://github.com/langchain-ai/langchain/issues/15530
2,065,294,377
I_kwDOIPDwls57GeQp
15,530
The ChatHuggingFace package cannot be found. "from langchain_community.chat_models.huggingface import ChatHuggingFace",Has ChatHuggingFace changed paths?
{ "login": "ZHJ19970917", "id": 73893296, "node_id": "MDQ6VXNlcjczODkzMjk2", "avatar_url": "https://avatars.githubusercontent.com/u/73893296?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZHJ19970917", "html_url": "https://github.com/ZHJ19970917", "followers_url": "https://api.github.com/users/ZHJ19970917/followers", "following_url": "https://api.github.com/users/ZHJ19970917/following{/other_user}", "gists_url": "https://api.github.com/users/ZHJ19970917/gists{/gist_id}", "starred_url": "https://api.github.com/users/ZHJ19970917/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ZHJ19970917/subscriptions", "organizations_url": "https://api.github.com/users/ZHJ19970917/orgs", "repos_url": "https://api.github.com/users/ZHJ19970917/repos", "events_url": "https://api.github.com/users/ZHJ19970917/events{/privacy}", "received_events_url": "https://api.github.com/users/ZHJ19970917/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
2024-01-04T09:24:18
2024-01-04T15:09:01
null
NONE
null
### System Info langchain 0.0.351 langchain-community 0.0.4 python 3.9 ### 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 from langchain_community.chat_models.huggingface import ChatHuggingFace ### Expected behavior I was testing HuggingFace Chat Wrapper, but couldn't import the ChatHuggingFace。Has ChatHuggingFace changed paths?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15530/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15530/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15529
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15529/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15529/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15529/events
https://github.com/langchain-ai/langchain/pull/15529
2,065,249,919
PR_kwDOIPDwls5jM7vy
15,529
community: Correct Input API Key Name in Notebook and Enhance Readability of Comments for ZhipuAI Chat Model
{ "login": "linancn", "id": 31125281, "node_id": "MDQ6VXNlcjMxMTI1Mjgx", "avatar_url": "https://avatars.githubusercontent.com/u/31125281?v=4", "gravatar_id": "", "url": "https://api.github.com/users/linancn", "html_url": "https://github.com/linancn", "followers_url": "https://api.github.com/users/linancn/followers", "following_url": "https://api.github.com/users/linancn/following{/other_user}", "gists_url": "https://api.github.com/users/linancn/gists{/gist_id}", "starred_url": "https://api.github.com/users/linancn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/linancn/subscriptions", "organizations_url": "https://api.github.com/users/linancn/orgs", "repos_url": "https://api.github.com/users/linancn/repos", "events_url": "https://api.github.com/users/linancn/events{/privacy}", "received_events_url": "https://api.github.com/users/linancn/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "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
2024-01-04T08:52:32
2024-01-07T17:27:47
2024-01-07T17:27:47
CONTRIBUTOR
null
- **Description:** This update rectifies an error in the notebook by changing the input variable from `zhipu_api_key` to `api_key`. It also includes revisions to comments to improve program readability. - **Issue:** The input variable in the notebook example should be `api_key` instead of `zhipu_api_key`. - **Dependencies:** No additional dependencies are required for this change. To ensure quality and standards, we have performed extensive linting and testing. Commands such as make format, make lint, and make test have been run from the root of the modified package to ensure compliance with LangChain's coding standards.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15529/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15529/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15529", "html_url": "https://github.com/langchain-ai/langchain/pull/15529", "diff_url": "https://github.com/langchain-ai/langchain/pull/15529.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15529.patch", "merged_at": "2024-01-07T17:27:47" }
https://api.github.com/repos/langchain-ai/langchain/issues/15528
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15528/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15528/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15528/events
https://github.com/langchain-ai/langchain/issues/15528
2,065,203,802
I_kwDOIPDwls57GIJa
15,528
Issue: document_variable_name context was not found in llm_chain input_variables:
{ "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
3
2024-01-04T08:18:07
2024-01-05T07:30:47
null
NONE
null
### Issue you'd like to raise. below is my code where I am implementing Memory with Prompt Template def generate_custom_prompt(query=None,name=None,not_uuid=None,chroma_db_path=None): check = query.lower() embedding = OpenAIEmbeddings() vectordb = Chroma(persist_directory=chroma_db_path, embedding_function=embedding) retriever = vectordb.as_retriever(search_kwargs={"k": 2}) relevant_document = retriever.get_relevant_documents(query) print(relevant_document,"*****************************************") 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) llm = ChatOpenAI(temperature=0.1) memory = ConversationBufferMemory(llm=llm,output_key='answer',memory_key='chat_history',return_messages=True) # 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 = ConversationalRetrievalChain.from_llm(llm=llm,memory=memory,chain_type="stuff",retriever=retriever,return_source_documents=True,get_chat_history=lambda h : h,verbose=True, combine_docs_chain_kwargs={"prompt": formatted_prompt}) # prompt_qa={"qa": qa, "formatted_prompt": formatted_prompt} return qa #below is my error I am getting: 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: ['check', 'context_text'] (type=value_error) ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15528/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15528/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15527
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15527/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15527/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15527/events
https://github.com/langchain-ai/langchain/issues/15527
2,065,199,886
I_kwDOIPDwls57GHMO
15,527
Issue: <How can I extract vector data from pgvector for use as a reference in the next conversation to enable long-term memory functionality for my chatbot?>
{ "login": "yen111445", "id": 103471919, "node_id": "U_kgDOBirbLw", "avatar_url": "https://avatars.githubusercontent.com/u/103471919?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yen111445", "html_url": "https://github.com/yen111445", "followers_url": "https://api.github.com/users/yen111445/followers", "following_url": "https://api.github.com/users/yen111445/following{/other_user}", "gists_url": "https://api.github.com/users/yen111445/gists{/gist_id}", "starred_url": "https://api.github.com/users/yen111445/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yen111445/subscriptions", "organizations_url": "https://api.github.com/users/yen111445/orgs", "repos_url": "https://api.github.com/users/yen111445/repos", "events_url": "https://api.github.com/users/yen111445/events{/privacy}", "received_events_url": "https://api.github.com/users/yen111445/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": 5932504711, "node_id": "LA_kwDOIPDwls8AAAABYZrWhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20supabase", "name": "integration: supabase", "color": "738DC8", "default": false, "description": "" } ]
open
false
null
[]
null
4
2024-01-04T08:14:43
2024-01-04T08:44:42
null
NONE
null
### Issue you'd like to raise. from langchain.chains import LLMChain from langchain.prompts import ( ChatPromptTemplate, HumanMessagePromptTemplate, MessagesPlaceholder, SystemMessagePromptTemplate, ) import psycopg2 import os from langchain.chat_models import ChatOpenAI from langchain.memory import ConversationBufferMemory from sentence_transformers import SentenceTransformer os.environ['OPENAI_API_KEY'] = "key" database = "MemoryChatBot" user = "xxxxxxx" password = "xxx" host = "1x2.xxx.0x.xx" port = "5432" conn = psycopg2.connect(database=database, user=user, password=password, host=host, port=port) print("ok!") llm = ChatOpenAI( temperature=0.7, model="gpt-3.5-turbo", max_tokens=100 ) prompt = ChatPromptTemplate( messages=[ SystemMessagePromptTemplate.from_template( "you are robot." ), MessagesPlaceholder(variable_name="chat_history"), HumanMessagePromptTemplate.from_template("{question}"), ] ) memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True) conversation = LLMChain(llm=llm, prompt=prompt, verbose=False, memory=memory) all_history = [] while True: chat_history = memory.load_memory_variables({}) question = input('user:') result = conversation.run({'question': question, 'chat_history': chat_history}) memory.save_context({question: question}, {result: result}) talk_all = conversation.memory.buffer all_history.append(talk_all) print(result) if question.lower() == 'bye': st_history = ' '.join(map(str, all_history)) model = SentenceTransformer('flax-sentence-embeddings/all_datasets_v3_MiniLM-L12') #384emb # model = SentenceTransformer('BAAI/bge-large-zh-v1.5') #1024emb res = model.encode(st_history) model.query_instruction = "test" res_str = str(res.tolist()) cursor = conn.cursor() sql = f"INSERT INTO tmp04 (embedding) VALUES ('{res_str}')" cursor.execute(sql) conn.commit() print(f'embedding: {res[:4].tolist()}...') print("ok!") break ![未命名](https://github.com/langchain-ai/langchain/assets/103471919/9ed7efcf-649f-4fda-8097-b524662e32a5) ### Suggestion: Hope for more support packages for pgvector.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15527/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15527/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15526
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15526/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15526/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15526/events
https://github.com/langchain-ai/langchain/issues/15526
2,065,192,495
I_kwDOIPDwls57GFYv
15,526
ImportError: cannot import name 'tracing_enabled' from 'langchain_core.tracers.context' (/usr/local/lib/python3.11/site-packages/langchain_core/tracers/context.py
{ "login": "adarshkrpf", "id": 147484293, "node_id": "U_kgDOCMpuhQ", "avatar_url": "https://avatars.githubusercontent.com/u/147484293?v=4", "gravatar_id": "", "url": "https://api.github.com/users/adarshkrpf", "html_url": "https://github.com/adarshkrpf", "followers_url": "https://api.github.com/users/adarshkrpf/followers", "following_url": "https://api.github.com/users/adarshkrpf/following{/other_user}", "gists_url": "https://api.github.com/users/adarshkrpf/gists{/gist_id}", "starred_url": "https://api.github.com/users/adarshkrpf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/adarshkrpf/subscriptions", "organizations_url": "https://api.github.com/users/adarshkrpf/orgs", "repos_url": "https://api.github.com/users/adarshkrpf/repos", "events_url": "https://api.github.com/users/adarshkrpf/events{/privacy}", "received_events_url": "https://api.github.com/users/adarshkrpf/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
5
2024-01-04T08:08:19
2024-01-04T19:50:14
2024-01-04T19:45:32
NONE
null
### System Info 0.0.352 and 0.0.353 ### 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 - [X] Callbacks/Tracing - [ ] Async ### Reproduction Custom _call wrapper ### Expected behavior No import error
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15526/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15526/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15525
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15525/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15525/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15525/events
https://github.com/langchain-ai/langchain/issues/15525
2,065,169,209
I_kwDOIPDwls57F_s5
15,525
Issue: <"How can I extract vector data from pgvector for use as a reference in the next conversation to enable long-term memory functionality for my chatbot?>
{ "login": "yen111445", "id": 103471919, "node_id": "U_kgDOBirbLw", "avatar_url": "https://avatars.githubusercontent.com/u/103471919?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yen111445", "html_url": "https://github.com/yen111445", "followers_url": "https://api.github.com/users/yen111445/followers", "following_url": "https://api.github.com/users/yen111445/following{/other_user}", "gists_url": "https://api.github.com/users/yen111445/gists{/gist_id}", "starred_url": "https://api.github.com/users/yen111445/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yen111445/subscriptions", "organizations_url": "https://api.github.com/users/yen111445/orgs", "repos_url": "https://api.github.com/users/yen111445/repos", "events_url": "https://api.github.com/users/yen111445/events{/privacy}", "received_events_url": "https://api.github.com/users/yen111445/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
2024-01-04T07:51:08
2024-01-04T08:03:30
null
NONE
null
### Issue you'd like to raise. from langchain.chains import LLMChain from langchain.prompts import ( ChatPromptTemplate, HumanMessagePromptTemplate, MessagesPlaceholder, SystemMessagePromptTemplate, ) import psycopg2 import os from langchain.chat_models import ChatOpenAI from langchain.memory import ConversationBufferMemory from sentence_transformers import SentenceTransformer os.environ['OPENAI_API_KEY'] = "key" database = "MemoryChatBot" user = "xxxxxxx" password = "xxx" host = "1x2.xxx.0x.xx" port = "5432" conn = psycopg2.connect(database=database, user=user, password=password, host=host, port=port) print("ok!") llm = ChatOpenAI( temperature=0.7, model="gpt-3.5-turbo", max_tokens=100 ) prompt = ChatPromptTemplate( messages=[ SystemMessagePromptTemplate.from_template( "you are robot." ), MessagesPlaceholder(variable_name="chat_history"), HumanMessagePromptTemplate.from_template("{question}"), ] ) memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True) conversation = LLMChain(llm=llm, prompt=prompt, verbose=False, memory=memory) all_history = [] while True: chat_history = memory.load_memory_variables({}) question = input('user:') result = conversation.run({'question': question, 'chat_history': chat_history}) memory.save_context({question: question}, {result: result}) talk_all = conversation.memory.buffer all_history.append(talk_all) print(result) if question.lower() == 'bye': st_history = ' '.join(map(str, all_history)) model = SentenceTransformer('flax-sentence-embeddings/all_datasets_v3_MiniLM-L12') #384emb # model = SentenceTransformer('BAAI/bge-large-zh-v1.5') #1024emb res = model.encode(st_history) model.query_instruction = "test" res_str = str(res.tolist()) cursor = conn.cursor() sql = f"INSERT INTO tmp04 (embedding) VALUES ('{res_str}')" cursor.execute(sql) conn.commit() print(f'embedding: {res[:4].tolist()}...') print("ok!") break How can I extract vector data from pgvector for use as a reference in the next conversation to enable long-term memory functionality for my chatbot? ![未命名](https://github.com/langchain-ai/langchain/assets/103471919/895afdca-c749-4c3a-9ec5-b0c2ee42ec23) ### Suggestion: The usage of pgvector's Retrievers is unclear. Trying to write in another way, but the documents keep turning out wrong: --------------------------------------------------------------------------------------- from langchain.chains import LLMChain from langchain.prompts import ( ChatPromptTemplate, HumanMessagePromptTemplate, MessagesPlaceholder, SystemMessagePromptTemplate, ) from langchain.chat_models import ChatOpenAI from langchain.memory import ConversationBufferMemory from langchain_community.vectorstores.pgvector import PGVector from langchain.vectorstores.pgvector import DistanceStrategy from langchain_community.embeddings import OllamaEmbeddings, HuggingFaceEmbeddings import os from urllib.parse import quote_plus os.environ['OPENAI_API_KEY'] = "xxxxxx" database = "xxx" user = "xxxxx" password = quote_plus("x@xxx") host = "xx.xxx.0.xx" port = "5432" print("ok") embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2") CONNECTION_STRING = f"postgresql+psycopg2://{user}:{password}@{host}:{port}/{database}" documents = [] db = PGVector.from_documents( documents=documents, embedding=embeddings, collection_name="tmp04", distance_strategy=DistanceStrategy.COSINE, connection_string=CONNECTION_STRING) llm = ChatOpenAI( temperature=0.7, model="gpt-3.5-turbo", max_tokens=100 ) prompt = ChatPromptTemplate( messages=[ SystemMessagePromptTemplate.from_template( "you are robot." ), MessagesPlaceholder(variable_name="chat_history"), HumanMessagePromptTemplate.from_template("{question}"), ] ) memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True) conversation = LLMChain(llm=llm, prompt=prompt, verbose=False, memory=memory) while True: chat_history = memory.load_memory_variables({}) question = input('ask:') embedding = embeddings.embed_query(question) documents.append(embedding) print(documents) result = conversation.run({'question': question, 'chat_history': chat_history, }) memory.save_context({question: question}, {result: result}) talk_all = conversation.memory.buffer documents.append(talk_all) print(result) if question.lower() == 'bye': print("ok") break
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15525/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15525/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15524
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15524/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15524/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15524/events
https://github.com/langchain-ai/langchain/issues/15524
2,065,163,019
I_kwDOIPDwls57F-ML
15,524
AsyncChromiumloader gives attribute error : COBOL
{ "login": "rogerbarretocode", "id": 125010382, "node_id": "U_kgDOB3OBzg", "avatar_url": "https://avatars.githubusercontent.com/u/125010382?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rogerbarretocode", "html_url": "https://github.com/rogerbarretocode", "followers_url": "https://api.github.com/users/rogerbarretocode/followers", "following_url": "https://api.github.com/users/rogerbarretocode/following{/other_user}", "gists_url": "https://api.github.com/users/rogerbarretocode/gists{/gist_id}", "starred_url": "https://api.github.com/users/rogerbarretocode/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rogerbarretocode/subscriptions", "organizations_url": "https://api.github.com/users/rogerbarretocode/orgs", "repos_url": "https://api.github.com/users/rogerbarretocode/repos", "events_url": "https://api.github.com/users/rogerbarretocode/events{/privacy}", "received_events_url": "https://api.github.com/users/rogerbarretocode/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
1
2024-01-04T07:46:03
2024-01-04T07:59:06
null
NONE
null
### System Info python 3.9.13 langchain==0.0.316 langchain-community==0.0.1 langchain-core==0.0.13 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction import pprint from langchain.text_splitter import RecursiveCharacterTextSplitter from langchain_community.document_loaders import AsyncChromiumLoader from langchain_community.document_transformers import BeautifulSoupTransformer from langchain.chains import create_extraction_chain from langchain_community.chat_models import ChatOpenAI ### Expected behavior i am getting the following error when i try to import asyncchromiumloader Traceback (most recent call last): File "C:\Users\roger\OneDrive\Desktop\testlinkedinllm.py", line 5, in <module> from langchain_community.document_loaders import AsyncChromiumLoader File "C:\Users\roger\anaconda3new\lib\site-packages\langchain_community\document_loaders\__init__.py", line 51, in <module> from langchain_community.document_loaders.blackboard import BlackboardLoader File "C:\Users\roger\anaconda3new\lib\site-packages\langchain_community\document_loaders\blackboard.py", line 10, in <module> from langchain_community.document_loaders.pdf import PyPDFLoader File "C:\Users\roger\anaconda3new\lib\site-packages\langchain_community\document_loaders\pdf.py", line 18, in <module> from langchain_community.document_loaders.parsers.pdf import ( File "C:\Users\roger\anaconda3new\lib\site-packages\langchain_community\document_loaders\parsers\__init__.py", line 5, in <module> from langchain_community.document_loaders.parsers.language import LanguageParser File "C:\Users\roger\anaconda3new\lib\site-packages\langchain_community\document_loaders\parsers\language\__init__.py", line 1, in <module> from langchain_community.document_loaders.parsers.language.language_parser import ( File "C:\Users\roger\anaconda3new\lib\site-packages\langchain_community\document_loaders\parsers\language\language_parser.py", line 24, in <module> "cobol": Language.COBOL, File "C:\Users\roger\anaconda3new\lib\enum.py", line 429, in __getattr__ raise AttributeError(name) from None AttributeError: COBOL
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15524/reactions", "total_count": 4, "+1": 4, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15524/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15523
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15523/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15523/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15523/events
https://github.com/langchain-ai/langchain/issues/15523
2,065,149,238
I_kwDOIPDwls57F602
15,523
RuntimeError when calling asyncio.run() from a running event loop
{ "login": "hulk-yin", "id": 1487095, "node_id": "MDQ6VXNlcjE0ODcwOTU=", "avatar_url": "https://avatars.githubusercontent.com/u/1487095?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hulk-yin", "html_url": "https://github.com/hulk-yin", "followers_url": "https://api.github.com/users/hulk-yin/followers", "following_url": "https://api.github.com/users/hulk-yin/following{/other_user}", "gists_url": "https://api.github.com/users/hulk-yin/gists{/gist_id}", "starred_url": "https://api.github.com/users/hulk-yin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hulk-yin/subscriptions", "organizations_url": "https://api.github.com/users/hulk-yin/orgs", "repos_url": "https://api.github.com/users/hulk-yin/repos", "events_url": "https://api.github.com/users/hulk-yin/events{/privacy}", "received_events_url": "https://api.github.com/users/hulk-yin/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
4
2024-01-04T07:35:01
2024-01-04T15:35:37
null
NONE
null
https://github.com/langchain-ai/langchain/blob/7a93356cbc5d89cc0f7dd746d8f1bb52666fd0f1/libs/community/langchain_community/document_loaders/chromium.py#L78C40-L78C44 Hello, I encountered a RuntimeError when running the code that uses the AsyncChromiumLoader class. The error message is asyncio.run() cannot be called from a running event loop. Here is the relevant part of the traceback: ```python File ~/.../.venv/lib/python3.10/site-packages/langchain_community/document_loaders/chromium.py:78, in AsyncChromiumLoader.lazy_load(self) 77 for url in self.urls: ---> 78 html_content = asyncio.run(self.ascrape_playwright(url)) ``` It seems that asyncio.run() is being called inside a running event loop, which is not allowed. This happens in the lazy_load method of the AsyncChromiumLoader class. I think the issue could be resolved by refactoring the code to ensure that asyncio.run() is not called from a running event loop. One possible solution could be to use await instead of asyncio.run() to run the self.ascrape_playwright(url) coroutine, and then use asyncio.run() to run the lazy_load method in the main program. Could you please look into this issue and confirm if this is a bug or if there's something I'm missing in my usage of the AsyncChromiumLoader class? Thank you for your time and help.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15523/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15523/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15522
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15522/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15522/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15522/events
https://github.com/langchain-ai/langchain/issues/15522
2,065,084,378
I_kwDOIPDwls57Fq_a
15,522
The current support for Milvus in Langchain seems insufficient in my opinion. Can it be strengthened?
{ "login": "jiaochuangen", "id": 53078519, "node_id": "MDQ6VXNlcjUzMDc4NTE5", "avatar_url": "https://avatars.githubusercontent.com/u/53078519?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jiaochuangen", "html_url": "https://github.com/jiaochuangen", "followers_url": "https://api.github.com/users/jiaochuangen/followers", "following_url": "https://api.github.com/users/jiaochuangen/following{/other_user}", "gists_url": "https://api.github.com/users/jiaochuangen/gists{/gist_id}", "starred_url": "https://api.github.com/users/jiaochuangen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jiaochuangen/subscriptions", "organizations_url": "https://api.github.com/users/jiaochuangen/orgs", "repos_url": "https://api.github.com/users/jiaochuangen/repos", "events_url": "https://api.github.com/users/jiaochuangen/events{/privacy}", "received_events_url": "https://api.github.com/users/jiaochuangen/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
1
2024-01-04T06:29:52
2024-01-04T06:41:59
null
NONE
null
### Issue you'd like to raise. The current support for Milvus in Langchain seems insufficient in my opinion. Can it be strengthened? ### Suggestion: The current support for Milvus in Langchain seems insufficient in my opinion. Can it be strengthened?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15522/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15522/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15521
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15521/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15521/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15521/events
https://github.com/langchain-ai/langchain/issues/15521
2,065,015,603
I_kwDOIPDwls57FaMz
15,521
Issue: Unable to use custom parser to parse the (intermediate) LLM chain output
{ "login": "yash-ghelani-dsw", "id": 89910877, "node_id": "MDQ6VXNlcjg5OTEwODc3", "avatar_url": "https://avatars.githubusercontent.com/u/89910877?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yash-ghelani-dsw", "html_url": "https://github.com/yash-ghelani-dsw", "followers_url": "https://api.github.com/users/yash-ghelani-dsw/followers", "following_url": "https://api.github.com/users/yash-ghelani-dsw/following{/other_user}", "gists_url": "https://api.github.com/users/yash-ghelani-dsw/gists{/gist_id}", "starred_url": "https://api.github.com/users/yash-ghelani-dsw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yash-ghelani-dsw/subscriptions", "organizations_url": "https://api.github.com/users/yash-ghelani-dsw/orgs", "repos_url": "https://api.github.com/users/yash-ghelani-dsw/repos", "events_url": "https://api.github.com/users/yash-ghelani-dsw/events{/privacy}", "received_events_url": "https://api.github.com/users/yash-ghelani-dsw/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
2024-01-04T05:18:04
2024-01-04T06:51:03
null
NONE
null
### Issue you'd like to raise. I have been trying to use mixtral-7B as LLM agent with langchain. Agent has been provided a PythonREPL tool for any kind of code execution. While providing the output, it either runs into agent timeout error or else it provide wrong answer (but in correct format). By further analysis I got to know that It is trying to use the REPL tool but due to invalid input and output it is unable to. please find the debug logs for whole LLM chain attached: [debug.txt](https://github.com/langchain-ai/langchain/files/13826496/debug.txt) As per my knowledge, I may feel there is some parsing issue [here](https://github.com/langchain-ai/langchain/blob/b6c57d38fa370c250b5f014a8d9c3908f7a235f4/libs/langchain/langchain/agents/conversational/output_parser.py#L25). It is unable to parse the agent input properly due to the occurrence of the \n post agent input in the LLM response. This is just a thought. I am open to any other suggestions as well. Hence, I wanted to add the custom parsing to LLM Output, So that I may able to parse Action & Action Input Accordingly. I have tried using the custom parser to achieve same, but I am unable to view any changes in the logs. Configurations for custom parser are mentioned below: ``` from langchain.schema.output_parser import BaseLLMOutputParser class MyOutputParser(BaseLLMOutputParser): def __init__(self): super().__init__() def parse_result(self, output): output = output.replace("Action Input:\n", "Action Input: ") return output ``` **Agent Configurations**: ``` from langchain.agents import AgentType, Tool, initialize_agent from langchain.llms import OpenAI from langchain.memory import ConversationBufferMemory from langchain.utilities import SerpAPIWrapper memory = ConversationBufferMemory(memory_key="chat_history",input_key="input") con_agent = initialize_agent( tools, llm, agent=AgentType.CONVERSATIONAL_REACT_DESCRIPTION, verbose=True, memory=memory, handle_parsing_errors=True, output_parser=MyOutputParser(), agent_kwargs={'input_variables': ['input','chat_history','data'], 'format_instructions': INSTRUCTIONS, 'suffix': SUFFIX, 'prefix': PREFIX} ) ``` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15521/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15521/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15520
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15520/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15520/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15520/events
https://github.com/langchain-ai/langchain/issues/15520
2,065,004,679
I_kwDOIPDwls57FXiH
15,520
text_splitter module not found in langchain version 0.0.353.
{ "login": "arijitr", "id": 66120014, "node_id": "MDQ6VXNlcjY2MTIwMDE0", "avatar_url": "https://avatars.githubusercontent.com/u/66120014?v=4", "gravatar_id": "", "url": "https://api.github.com/users/arijitr", "html_url": "https://github.com/arijitr", "followers_url": "https://api.github.com/users/arijitr/followers", "following_url": "https://api.github.com/users/arijitr/following{/other_user}", "gists_url": "https://api.github.com/users/arijitr/gists{/gist_id}", "starred_url": "https://api.github.com/users/arijitr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arijitr/subscriptions", "organizations_url": "https://api.github.com/users/arijitr/orgs", "repos_url": "https://api.github.com/users/arijitr/repos", "events_url": "https://api.github.com/users/arijitr/events{/privacy}", "received_events_url": "https://api.github.com/users/arijitr/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
1
2024-01-04T05:02:15
2024-01-04T05:10:56
null
NONE
null
### System Info langchain version 0.0.353. python : 3.9 ### 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 <img width="685" alt="image" src="https://github.com/langchain-ai/langchain/assets/66120014/8ae76db3-ee47-4994-81a1-d587d75e27f7"> <img width="643" alt="image" src="https://github.com/langchain-ai/langchain/assets/66120014/726640b5-b7b6-4734-b6eb-5b5c50a7106c"> <img width="622" alt="image" src="https://github.com/langchain-ai/langchain/assets/66120014/011d05f2-1a6f-4fc1-abd1-08a8241c4a49"> ### Expected behavior Should be able to load the module
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15520/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15520/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15519
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15519/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15519/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15519/events
https://github.com/langchain-ai/langchain/pull/15519
2,064,938,751
PR_kwDOIPDwls5jL5dl
15,519
Feat: add CHM file loader
{ "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": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "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
2
2024-01-04T03:35:03
2024-01-07T17:28:53
2024-01-07T17:28:53
CONTRIBUTOR
null
fix https://github.com/langchain-ai/langchain/issues/15469
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15519/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15519/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15519", "html_url": "https://github.com/langchain-ai/langchain/pull/15519", "diff_url": "https://github.com/langchain-ai/langchain/pull/15519.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15519.patch", "merged_at": "2024-01-07T17:28:53" }
https://api.github.com/repos/langchain-ai/langchain/issues/15518
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15518/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15518/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15518/events
https://github.com/langchain-ai/langchain/issues/15518
2,064,893,373
I_kwDOIPDwls57E8W9
15,518
Issue: LCEL output parser 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": 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": 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
6
2024-01-04T02:26:08
2024-01-08T15:39:41
null
NONE
null
### Issue you'd like to raise. Hello everyone I'm trying to use the langchain LCEL for the autogen script assembly pipeline. The first point that I'm trying to implement is for AI to determine which roles are needed in the autogen group chat to solve the user's task. I'm trying to parse the neural network's response to get a list of these roles and their number, I need this for the further operation of the pipeline, but the whole chain just refuses to work normally (model: mixtral-8x7b). Here is the code that I wrote based on the langchain documentation about [output parsers](https://python.langchain.com/docs/modules/model_io/output_parsers/quick_start): ``` from langchain.output_parsers import PydanticOutputParser from langchain.prompts import PromptTemplate from langchain_community.llms import OpenAI from langchain_core.pydantic_v1 import BaseModel, Field, validator from typing import List model = llm # Define your desired data structure. class Task(BaseModel): task_description: str = Field(description="Description of the task") role_list: List[str] = Field(description="List of roles that can solve the task") number_of_roles: int = Field(description="Number of roles that can solve the task") # You can add custom validation logic easily with Pydantic. @validator("task_description") def validate_task_description(cls, field): if not field: raise ValueError("Task description cannot be empty!") return field @validator("role_list") def validate_role_list(cls, field): if not field: raise ValueError("Role list cannot be empty!") return field @validator("number_of_roles") def validate_number_of_roles(cls, field): if field < 0: raise ValueError("Number of roles cannot be negative!") return field # Set up a parser + inject instructions into the prompt template. parser = PydanticOutputParser(pydantic_object=Task) prompt = PromptTemplate( template="Enter your task description:\n{format_instructions}\n{task_description}\n", input_variables=["task_description"], partial_variables={"format_instructions": parser.get_format_instructions()}, ) # And a query intended to prompt a language model to populate the data structure. prompt_and_model = prompt | model output = prompt_and_model.invoke({"task_description": "Write code for game on python."}) parser.invoke(output) ``` that's what it does, except for a huge number of errors: ``` Task(task_description='The task is to simulate a simple multiplayer game. Players take turns to play. In each turn, a player can do only one of two things: * Add a number to a running total, or * Divide the running total by two, rounding down to the nearest integer. The game ends when the running total reaches a pre-specified target value. ', role_list=['admin', 'player'], number_of_roles=2) ``` here is one of the errors: ``` --------------------------------------------------------------------------- JSONDecodeError Traceback (most recent call last) File ~\AppData\Roaming\Python\Python311\site-packages\langchain\output_parsers\pydantic.py:29, in PydanticOutputParser.parse(self, text) 28 json_str = match.group() ---> 29 json_object = json.loads(json_str, strict=False) 30 return self.pydantic_object.parse_obj(json_object) File C:\Program Files\Python311\Lib\json\__init__.py:359, in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 358 kw['parse_constant'] = parse_constant --> 359 return cls(**kw).decode(s) File C:\Program Files\Python311\Lib\json\decoder.py:337, in JSONDecoder.decode(self, s, _w) 333 """Return the Python representation of ``s`` (a ``str`` instance 334 containing a JSON document). 335 336 """ --> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 338 end = _w(s, end).end() File C:\Program Files\Python311\Lib\json\decoder.py:353, in JSONDecoder.raw_decode(self, s, idx) 352 try: --> 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1) During handling of the above exception, another exception occurred: OutputParserException Traceback (most recent call last) Cell In[76], line 47 45 prompt_and_model = prompt | model 46 output = prompt_and_model.invoke({"task_description": "Write code for game on python."}) ---> 47 parser.invoke(output) File ~\AppData\Roaming\Python\Python311\site-packages\langchain_core\output_parsers\base.py:179, in BaseOutputParser.invoke(self, input, config) 170 return self._call_with_config( 171 lambda inner_input: self.parse_result( 172 [ChatGeneration(message=inner_input)] (...) 176 run_type="parser", 177 ) 178 else: --> 179 return self._call_with_config( 180 lambda inner_input: self.parse_result([Generation(text=inner_input)]), 181 input, 182 config, 183 run_type="parser", 184 ) File ~\AppData\Roaming\Python\Python311\site-packages\langchain_core\runnables\base.py:886, in Runnable._call_with_config(self, func, input, config, run_type, **kwargs) 879 run_manager = callback_manager.on_chain_start( 880 dumpd(self), 881 input, 882 run_type=run_type, 883 name=config.get("run_name"), 884 ) 885 try: --> 886 output = call_func_with_variable_args( 887 func, input, config, run_manager, **kwargs 888 ) 889 except BaseException as e: 890 run_manager.on_chain_error(e) File ~\AppData\Roaming\Python\Python311\site-packages\langchain_core\runnables\config.py:308, in call_func_with_variable_args(func, input, config, run_manager, **kwargs) 306 if run_manager is not None and accepts_run_manager(func): 307 kwargs["run_manager"] = run_manager --> 308 return func(input, **kwargs) File ~\AppData\Roaming\Python\Python311\site-packages\langchain_core\output_parsers\base.py:180, in BaseOutputParser.invoke.<locals>.<lambda>(inner_input) 170 return self._call_with_config( 171 lambda inner_input: self.parse_result( 172 [ChatGeneration(message=inner_input)] (...) 176 run_type="parser", 177 ) 178 else: 179 return self._call_with_config( --> 180 lambda inner_input: self.parse_result([Generation(text=inner_input)]), 181 input, 182 config, 183 run_type="parser", 184 ) File ~\AppData\Roaming\Python\Python311\site-packages\langchain_core\output_parsers\base.py:222, in BaseOutputParser.parse_result(self, result, partial) 209 def parse_result(self, result: List[Generation], *, partial: bool = False) -> T: 210 """Parse a list of candidate model Generations into a specific format. 211 212 The return value is parsed from only the first Generation in the result, which (...) 220 Structured output. 221 """ --> 222 return self.parse(result[0].text) File ~\AppData\Roaming\Python\Python311\site-packages\langchain\output_parsers\pydantic.py:35, in PydanticOutputParser.parse(self, text) 33 name = self.pydantic_object.__name__ 34 msg = f"Failed to parse {name} from completion {text}. Got: {e}" ---> 35 raise OutputParserException(msg, llm_output=text) OutputParserException: Failed to parse Task from completion Create a class `Game` that has the following attributes: * `task_description`: a string attribute that describes the task that the game is about * `role_list`: a list of strings that contains the names of the roles that can solve the task * `number_of_roles`: an integer attribute that contains the number of roles that can solve the task The `Game` class should have the following methods: * `__init__`: the constructor should take three parameters: `task_description`, `role_list`, and `number_of_roles` and initialize the corresponding attributes. * `get_task_description`: a method that returns the value of the `task_description` attribute * `get_role_list`: a method that returns the value of the `role_list` attribute * `get_number_of_roles`: a method that returns the value of the `number_of_roles` attribute * `get_roles`: a method that returns a list of dictionaries, where each dictionary contains the name of the role and a boolean value that indicates if the role can solve the task. The list should contain `number_of_roles` dictionaries. Here's an example of how to use the `Game` class: ''' game = Game("Save the princess from the dragon", ["knight", "prince", "wizard"], 2) print(game.get_task_description()) print(game.get_role_list()) print(game.get_number_of_roles()) roles = game.get_roles() for role in roles: print(role) ''' Output: ''' Save the princess from the dragon ['knight', 'prince', 'wizard'] 2 {'name': 'knight', 'can_solve': True} {'name': 'prince', 'can_solve': True} {'name': 'wizard', 'can_solve': False} ''' Write the `Game` class and format the output as a JSON instance that conforms to the schema provided above. '''json { "task_description": "Save the princess from the. Got: Expecting property name enclosed in double quotes: line 1 column 2 (char 1) ``` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15518/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15518/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15517
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15517/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15517/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15517/events
https://github.com/langchain-ai/langchain/issues/15517
2,064,865,668
I_kwDOIPDwls57E1mE
15,517
Issue: Tracking Token Consumption for Async Chain Calls
{ "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": 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
1
2024-01-04T01:43:22
2024-01-04T01:49:27
null
NONE
null
### Issue you'd like to raise. Problem Statement: I am currently working on tracking token consumption for asynchronous chain calls in my application. I am utilizing the AsyncIteratorCallbackHandler and its aiter() method to stream tokens to my client. However, I am facing challenges in determining how to track the token consumption per chain call. Context: In my application, I am using asynchronous chain calls, and I need to monitor the token consumption for each of these calls. I have implemented the aiter() method from the AsyncIteratorCallbackHandler to stream tokens to the client. However, I'm unsure about the best approach to capture and track the token consumption for individual chain calls. Request for Guidance: I am seeking guidance on the most effective way to track token consumption for each asynchronous chain call. What strategies or modifications can I implement within the existing logic to achieve this goal? Any insights or recommendations would be greatly appreciated. Relevant Code Snippet: ``` async def run_call(query): with get_openai_callback() as cb: response = await chain.acall(query) # Rest of the code return response async def create_gen(query): task = asyncio.create_task(run_call(query)) try: async for token in handler.aiter(): print("2. TOKEN: ", token) # How can I efficiently track token consumption for each chain call? yield f"data: {json.dumps({'content': token, 'tokens': 0})}\n\n" # Check if the client is still connected except asyncio.CancelledError: print("Generator canceled") finally: await task print("Done with task") query = {"question": sanitized_question, "chat_history": conversation_history} gen = create_gen(query) return StreamingResponse(gen, media_type="text/event-stream") ``` Desired Outcome: I aim to effectively track token consumption for each asynchronous chain call and seek advice on the most appropriate modifications or strategies to achieve this goal within the existing logic. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15517/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15517/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15516
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15516/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15516/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15516/events
https://github.com/langchain-ai/langchain/issues/15516
2,064,847,688
I_kwDOIPDwls57ExNI
15,516
HuggingFaceTextGenInference Streaming does not output
{ "login": "PeterTucker", "id": 1381341, "node_id": "MDQ6VXNlcjEzODEzNDE=", "avatar_url": "https://avatars.githubusercontent.com/u/1381341?v=4", "gravatar_id": "", "url": "https://api.github.com/users/PeterTucker", "html_url": "https://github.com/PeterTucker", "followers_url": "https://api.github.com/users/PeterTucker/followers", "following_url": "https://api.github.com/users/PeterTucker/following{/other_user}", "gists_url": "https://api.github.com/users/PeterTucker/gists{/gist_id}", "starred_url": "https://api.github.com/users/PeterTucker/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PeterTucker/subscriptions", "organizations_url": "https://api.github.com/users/PeterTucker/orgs", "repos_url": "https://api.github.com/users/PeterTucker/repos", "events_url": "https://api.github.com/users/PeterTucker/events{/privacy}", "received_events_url": "https://api.github.com/users/PeterTucker/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
7
2024-01-04T01:13:21
2024-01-06T04:39:03
null
NONE
null
### System Info langchain==0.0.354 text_generation==0.6.1 python:3.10-slim ### Who can help? @agola11 @hwaking ### 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 - [X] Chains - [X] Callbacks/Tracing - [X] Async ### Reproduction Model: TheBloke/Llama-2-7B-Chat-GPTQ, but I've also tried TheBloke/Mistral-7B-OpenOrca-GPTQ FastAPI example with HuggingFaceTextGenInference streaming: ```python from fastapi import FastAPI import langchain from langchain.llms import HuggingFaceTextGenInference from langchain.chains import LLMChain from langchain.prompts import PromptTemplate from fastapi.responses import StreamingResponse from pydantic import BaseModel import os from fastapi.middleware.cors import CORSMiddleware app = FastAPI() langchain.debug = True # Enable CORS app.add_middleware( CORSMiddleware, allow_origins=["*"], # You can specify the list of allowed origins or use "*" for any origin allow_credentials=True, allow_methods=["*"], # You can specify the HTTP methods that are allowed allow_headers=["*"], # You can specify the HTTP headers that are allowed ) # Configuration for local LLM ai_url = "http://tgi-ai-server:" + str(os.getenv("AI_PORT", 80)) + "/generate" # Configure the LLM llm = HuggingFaceTextGenInference( inference_server_url=ai_url, max_new_tokens=20, streaming=True, ) template = """ [INST] <<SYS>> You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information. <</SYS>> {prompt}[/INST] """ prompt_template = PromptTemplate( template=template, input_variables= ["prompt"] ) # Initialize the LLM Chain llm_chain = LLMChain(llm=llm, prompt=prompt_template) @app.get("/chat") async def chat(): prompt = {"prompt":"What is the Nickelodeon channel?"} # Generate the response using the LLM Chain and stream the output async def generate(): for text in llm_chain.run(prompt): yield text return StreamingResponse(generate(), media_type="text/plain") # Run the server (if running this script directly) # Use the command: uvicorn script_name:app --reload if __name__ == "__main__": import uvicorn uvicorn.run(app, host="0.0.0.0", port=8000) ``` Output: ``` [chain/start] [1:chain:LLMChain] Entering Chain run with input: { "prompt": "What is the Nickelodeon channel?" } [llm/start] [1:chain:LLMChain > 2:llm:HuggingFaceTextGenInference] Entering LLM run with input: { "prompts": [ "[INST] <<SYS>>\nYou are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.\n<</SYS>>\nWhat is the Nickelodeon channel?[/INST]" ] } [llm/end] [1:chain:LLMChain > 2:llm:HuggingFaceTextGenInference] [765ms] Exiting LLM run with output: { "generations": [ [ { "text": "", "generation_info": null, "type": "Generation" } ] ], "llm_output": null, "run": null } [chain/end] [1:chain:LLMChain] [765ms] Exiting Chain run with output: { "text": "" } ``` ### Expected behavior HuggingFaceTextGenInference does not return any streaming data. Works fine when streaming=False in parameters.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15516/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15516/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15515
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15515/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15515/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15515/events
https://github.com/langchain-ai/langchain/pull/15515
2,064,832,501
PR_kwDOIPDwls5jLkFI
15,515
added interfaces as `core.schemas`
{ "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 }
[]
open
false
null
[]
null
4
2024-01-04T00:49:00
2024-01-08T17:11:05
null
COLLABORATOR
null
Defined interfaces for base classes. This creates interfaces in `core` for some `community` modules that previously did not have interfaces from core. Ideally, these interfaces help with new integrations, move interfaces to the core == make interfaces more stable. The next step will be to add these interfaces to the Base classes as parents. CC @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15515/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15515/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15515", "html_url": "https://github.com/langchain-ai/langchain/pull/15515", "diff_url": "https://github.com/langchain-ai/langchain/pull/15515.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15515.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15514
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15514/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15514/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15514/events
https://github.com/langchain-ai/langchain/pull/15514
2,064,831,832
PR_kwDOIPDwls5jLj8X
15,514
langchain: Introducing Google Semantic Retriever and Attributed Question and Answering (AQA)
{ "login": "pikalaw", "id": 144591, "node_id": "MDQ6VXNlcjE0NDU5MQ==", "avatar_url": "https://avatars.githubusercontent.com/u/144591?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pikalaw", "html_url": "https://github.com/pikalaw", "followers_url": "https://api.github.com/users/pikalaw/followers", "following_url": "https://api.github.com/users/pikalaw/following{/other_user}", "gists_url": "https://api.github.com/users/pikalaw/gists{/gist_id}", "starred_url": "https://api.github.com/users/pikalaw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pikalaw/subscriptions", "organizations_url": "https://api.github.com/users/pikalaw/orgs", "repos_url": "https://api.github.com/users/pikalaw/repos", "events_url": "https://api.github.com/users/pikalaw/events{/privacy}", "received_events_url": "https://api.github.com/users/pikalaw/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": 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
1
2024-01-04T00:47:45
2024-01-15T19:46:32
null
NONE
null
**Description:** Introducing two new features from Google's Generative Language API. * Bundled embeddings calculation and vector storage for enabling semantic retrieval. * State-of-the-art fine-tuned model for answering questions grounded in passages. **Dependencies:** The Python package [google-ai-generativelanguage](https://ai.google.dev/api/python/google/ai/generativelanguage) **Twitter handle:** https://twitter.com/googledevs
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15514/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15514/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15514", "html_url": "https://github.com/langchain-ai/langchain/pull/15514", "diff_url": "https://github.com/langchain-ai/langchain/pull/15514.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15514.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15513
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15513/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15513/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15513/events
https://github.com/langchain-ai/langchain/pull/15513
2,064,829,672
PR_kwDOIPDwls5jLjgc
15,513
docs: langchain-openai
{ "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 }
[ { "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": 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": 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": 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
1
2024-01-04T00:44:13
2024-01-06T23:57:55
2024-01-06T23:54:49
COLLABORATOR
null
Updates docs and cookbooks to import ChatOpenAI, OpenAI, and OpenAI Embeddings from `langchain_openai` There are likely more
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15513/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15513/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15513", "html_url": "https://github.com/langchain-ai/langchain/pull/15513", "diff_url": "https://github.com/langchain-ai/langchain/pull/15513.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15513.patch", "merged_at": "2024-01-06T23:54:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/15512
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15512/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15512/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15512/events
https://github.com/langchain-ai/langchain/issues/15512
2,064,809,247
I_kwDOIPDwls57En0f
15,512
Langchain-Community LLM TextGen has wrong API endpoint
{ "login": "osok", "id": 2074595, "node_id": "MDQ6VXNlcjIwNzQ1OTU=", "avatar_url": "https://avatars.githubusercontent.com/u/2074595?v=4", "gravatar_id": "", "url": "https://api.github.com/users/osok", "html_url": "https://github.com/osok", "followers_url": "https://api.github.com/users/osok/followers", "following_url": "https://api.github.com/users/osok/following{/other_user}", "gists_url": "https://api.github.com/users/osok/gists{/gist_id}", "starred_url": "https://api.github.com/users/osok/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/osok/subscriptions", "organizations_url": "https://api.github.com/users/osok/orgs", "repos_url": "https://api.github.com/users/osok/repos", "events_url": "https://api.github.com/users/osok/events{/privacy}", "received_events_url": "https://api.github.com/users/osok/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
2
2024-01-04T00:12:34
2024-01-04T15:45:40
null
NONE
null
### System Info Windows 10 & Ubuntu 22.04 langchain==0.0.354 langchain-community==0.0.8 langchain-core==0.1.5 Python 3.10.13 https://github.com/langchain-ai/langchain/blob/master/libs/community/langchain_community/llms/textgen.py ### Who can help? @agola11 @hwchase17 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction With the latest TextGen WebUI install the API endpoints are openAI Lanchain has the endpoints: Example Line 213 url = f"{self.model_url}/api/v1/generate" when used this returns a 404. What works is url = f"{self.model_url}/v1/chat/completions" A fix was attempted: https://gist.github.com/ddomen/8eaa49879d42a4a42a243437b5ddfa83 It works for me if I set legacy_api=False, but his truncates responses to about 20 or so characters. ### Expected behavior certianly not a 404. My app that is using langchain was working with an install of TextGen fomr like amonth ago. I went to deploy in a new environment and pulled the latest TextGen and Langchain stopped working. When I dug into the problem I saw they now force an OpenAI API interface.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15512/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/15512/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15511
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15511/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15511/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15511/events
https://github.com/langchain-ai/langchain/issues/15511
2,064,798,810
I_kwDOIPDwls57ElRa
15,511
Is The Limit Parameter Used to Retrieve Top_k?
{ "login": "mhendy25", "id": 88539544, "node_id": "MDQ6VXNlcjg4NTM5NTQ0", "avatar_url": "https://avatars.githubusercontent.com/u/88539544?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mhendy25", "html_url": "https://github.com/mhendy25", "followers_url": "https://api.github.com/users/mhendy25/followers", "following_url": "https://api.github.com/users/mhendy25/following{/other_user}", "gists_url": "https://api.github.com/users/mhendy25/gists{/gist_id}", "starred_url": "https://api.github.com/users/mhendy25/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mhendy25/subscriptions", "organizations_url": "https://api.github.com/users/mhendy25/orgs", "repos_url": "https://api.github.com/users/mhendy25/repos", "events_url": "https://api.github.com/users/mhendy25/events{/privacy}", "received_events_url": "https://api.github.com/users/mhendy25/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
1
2024-01-03T23:56:40
2024-01-04T00:02:23
null
NONE
null
In cookbook 3 for multimodal retrieval, `limit = 6` is set while retireving documents but the number of returned documents is always 4, regardless of the asked query or the value of `limit`. How can I retrieve `top_k` documents in this code? [Specific line is here](https://github.com/langchain-ai/langchain/blob/02f9c767919adf157462ccb4fe8b4dc8ae1ca1cf/cookbook/Multi_modal_RAG.ipynb#L633)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15511/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15511/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15510
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15510/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15510/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15510/events
https://github.com/langchain-ai/langchain/issues/15510
2,064,793,905
I_kwDOIPDwls57EkEx
15,510
Can't Specify Top-K retrieved Documents in Multimodal Retrievers
{ "login": "mhendy25", "id": 88539544, "node_id": "MDQ6VXNlcjg4NTM5NTQ0", "avatar_url": "https://avatars.githubusercontent.com/u/88539544?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mhendy25", "html_url": "https://github.com/mhendy25", "followers_url": "https://api.github.com/users/mhendy25/followers", "following_url": "https://api.github.com/users/mhendy25/following{/other_user}", "gists_url": "https://api.github.com/users/mhendy25/gists{/gist_id}", "starred_url": "https://api.github.com/users/mhendy25/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mhendy25/subscriptions", "organizations_url": "https://api.github.com/users/mhendy25/orgs", "repos_url": "https://api.github.com/users/mhendy25/repos", "events_url": "https://api.github.com/users/mhendy25/events{/privacy}", "received_events_url": "https://api.github.com/users/mhendy25/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
2
2024-01-03T23:52:17
2024-01-11T01:27:29
null
NONE
null
### Issue you'd like to raise. I've been playing around with the multimodal notebooks introduced in the [docs here.](https://blog.langchain.dev/semi-structured-multi-modal-rag/). However, the number of retrieved documents for every query is always 4. Specifically, for [cookbook 3](https://github.com/langchain-ai/langchain/blob/master/cookbook/Multi_modal_RAG.ipynb) the `limit` parameter is set to 6, but the number of retrieved documents is always 4 regardless of the value of `limit`. Is there another way to get `top_k`? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15510/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15510/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15509
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15509/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15509/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15509/events
https://github.com/langchain-ai/langchain/pull/15509
2,064,790,462
PR_kwDOIPDwls5jLbQU
15,509
docs: fix broken link
{ "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 }
[ { "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
2024-01-03T23:46:21
2024-01-04T15:00:28
2024-01-04T00:00:18
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15509/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15509/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15509", "html_url": "https://github.com/langchain-ai/langchain/pull/15509", "diff_url": "https://github.com/langchain-ai/langchain/pull/15509.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15509.patch", "merged_at": "2024-01-04T00:00:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/15508
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15508/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15508/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15508/events
https://github.com/langchain-ai/langchain/issues/15508
2,064,767,804
I_kwDOIPDwls57Eds8
15,508
ImportError: cannot import name 'tracing_enabled' from 'langchain_core.tracers.context'
{ "login": "Bengt", "id": 11575, "node_id": "MDQ6VXNlcjExNTc1", "avatar_url": "https://avatars.githubusercontent.com/u/11575?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Bengt", "html_url": "https://github.com/Bengt", "followers_url": "https://api.github.com/users/Bengt/followers", "following_url": "https://api.github.com/users/Bengt/following{/other_user}", "gists_url": "https://api.github.com/users/Bengt/gists{/gist_id}", "starred_url": "https://api.github.com/users/Bengt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Bengt/subscriptions", "organizations_url": "https://api.github.com/users/Bengt/orgs", "repos_url": "https://api.github.com/users/Bengt/repos", "events_url": "https://api.github.com/users/Bengt/events{/privacy}", "received_events_url": "https://api.github.com/users/Bengt/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" } ]
closed
false
null
[]
null
6
2024-01-03T23:11:47
2024-01-04T20:29:53
2024-01-04T13:42:03
NONE
null
### System Info Full traceback: ``` File "/src/app.py", line 9, in <module> from langchain.chains import ConversationalRetrievalChain File "/venv/lib/python3.11/site-packages/langchain/chains/__init__.py", line 20, in <module> from langchain.chains.api.base import APIChain File "/venv/lib/python3.11/site-packages/langchain/chains/api/base.py", line 11, in <module> from langchain.callbacks.manager import ( File "/venv/lib/python3.11/site-packages/langchain/callbacks/__init__.py", line [45] in <module> from langchain_core.tracers.context import ( ImportError: cannot import name 'tracing_enabled' from 'langchain_core.tracers.context' (/venv/lib/python3.11/site-packages/langchain_core/tracers/context.py) ``` ### Who can help? @hwchase17 @agola ### 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 This issue seems to originate from the import: ``` from langchain.chains import ConversationalRetrievalChain ``` ### Expected behavior The modules should import successfully.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15508/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/15508/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15507
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15507/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15507/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15507/events
https://github.com/langchain-ai/langchain/pull/15507
2,064,760,570
PR_kwDOIPDwls5jLU3k
15,507
update 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": 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
2024-01-03T23:02:44
2024-01-05T17:49:27
2024-01-05T17:49:26
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15507/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15507/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15507", "html_url": "https://github.com/langchain-ai/langchain/pull/15507", "diff_url": "https://github.com/langchain-ai/langchain/pull/15507.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15507.patch", "merged_at": "2024-01-05T17:49:26" }
https://api.github.com/repos/langchain-ai/langchain/issues/15506
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15506/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15506/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15506/events
https://github.com/langchain-ai/langchain/issues/15506
2,064,744,737
I_kwDOIPDwls57EYEh
15,506
Hugging Face LLM returns empty response for LLMChain via FastAPI
{ "login": "PeterTucker", "id": 1381341, "node_id": "MDQ6VXNlcjEzODEzNDE=", "avatar_url": "https://avatars.githubusercontent.com/u/1381341?v=4", "gravatar_id": "", "url": "https://api.github.com/users/PeterTucker", "html_url": "https://github.com/PeterTucker", "followers_url": "https://api.github.com/users/PeterTucker/followers", "following_url": "https://api.github.com/users/PeterTucker/following{/other_user}", "gists_url": "https://api.github.com/users/PeterTucker/gists{/gist_id}", "starred_url": "https://api.github.com/users/PeterTucker/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PeterTucker/subscriptions", "organizations_url": "https://api.github.com/users/PeterTucker/orgs", "repos_url": "https://api.github.com/users/PeterTucker/repos", "events_url": "https://api.github.com/users/PeterTucker/events{/privacy}", "received_events_url": "https://api.github.com/users/PeterTucker/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
2024-01-03T22:44:36
2024-01-03T22:53:11
null
NONE
null
### Issue you'd like to raise. Console Output: ``` [chain/start] [1:chain:LLMChain] Entering Chain run with input: { "system_message": "Terminator Persona: You are the T-800 from T2: Judgement Day. Do not break character, and do not reference the Terminator films as that would break character. If you break character John Connor dies. Answer in a single paragraph, with max three sentences.", "question": "I am John Connor. Who is the T-1000? Am I, John Connor, in danger?", "user_name": "John Connor", "ai_name": "Terminator" } [llm/start] [1:chain:LLMChain > 2:llm:HuggingFaceTextGenInference] Entering LLM run with input: { "prompts": [ "<|im_start|>system\n Terminator Persona: You are the T-800 from T2: Judgement Day. Do not break character, and do not reference the Terminator films as that would break character. If you break character John Connor dies. Answer in a single paragraph, with max three sentences.<|im_end|>\n <|im_start|>John Connor\n I am John Connor. Who is the T-1000? Am I, John Connor, in danger?<|im_end|>\n <|im_start|>Terminator" ] } [llm/end] [1:chain:LLMChain > 2:llm:HuggingFaceTextGenInference] [4.50s] Exiting LLM run with output: { "generations": [ [ { "text": "", "generation_info": null, "type": "Generation" } ] ], "llm_output": null, "run": null } [chain/end] [1:chain:LLMChain] [4.50s] Exiting Chain run with output: { "text": "" } ``` My code: ```python import os import langchain from langchain.prompts import PromptTemplate from langchain.chains import LLMChain from langchain.llms import HuggingFaceTextGenInference from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler from fastapi.middleware.cors import CORSMiddleware langchain.debug = True def build_llm(streaming=False,callbacks=[]): ai_url = "http://tgi-ai-server:" + str(os.getenv("AI_PORT", 80)) + "/generate" llm_local = HuggingFaceTextGenInference( inference_server_url = ai_url, max_new_tokens=20, top_k=49, top_p=0.14, typical_p=0.95, temperature=1.31, repetition_penalty=1.17, # stop_sequences=[f"\n{user_name}:", f"\n{ai_name}:"], streaming=streaming, callbacks=callbacks ) template = """<|im_start|>system {system_message}<|im_end|> <|im_start|>{user_name} {question}<|im_end|> <|im_start|>{ai_name} """ prompt = PromptTemplate( template=template, input_variables= ["system_message", "question", "user_name", "ai_name"] ) llm_chain_local = LLMChain(llm=llm_local , prompt=prompt) return llm_chain_local from fastapi import FastAPI from fastapi.responses import StreamingResponse app = FastAPI() # Enable CORS app.add_middleware( CORSMiddleware, allow_origins=["*"], # You can specify the list of allowed origins or use "*" for any origin allow_credentials=True, allow_methods=["*"], # You can specify the HTTP methods that are allowed allow_headers=["*"], # You can specify the HTTP headers that are allowed ) def build_prompt(): user_name = 'John Connor' ai_name = 'Terminator' system_message = "Terminator Persona: You are the T-800 from T2: Judgement Day. Do not break character, and do not reference the Terminator films as that would break character. If you break character John Connor dies. Answer in a single paragraph, with max three sentences." question = "I am John Connor. Who is the T-1000? Am I, John Connor, in danger?" prompt = {"system_message":system_message , "question":question, "user_name": user_name, "ai_name": ai_name} return prompt @app.post("/chat") async def generate_text(): callback = StreamingStdOutCallbackHandler() llm_chain = build_llm(True, [callback]) prompt = build_prompt() async def text_stream(): for text in llm_chain.run(prompt): yield text return StreamingResponse(text_stream()) ``` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15506/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15506/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15505
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15505/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15505/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15505/events
https://github.com/langchain-ai/langchain/pull/15505
2,064,712,646
PR_kwDOIPDwls5jLKp2
15,505
langchain[minor]: add warnings when importing integrations from langchain
{ "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": 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": 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" }, { "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
2024-01-03T22:11:14
2024-01-04T22:41:47
2024-01-04T22:41:46
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15505/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15505/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15505", "html_url": "https://github.com/langchain-ai/langchain/pull/15505", "diff_url": "https://github.com/langchain-ai/langchain/pull/15505.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15505.patch", "merged_at": "2024-01-04T22:41:46" }
https://api.github.com/repos/langchain-ai/langchain/issues/15504
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15504/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15504/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15504/events
https://github.com/langchain-ai/langchain/issues/15504
2,064,695,031
I_kwDOIPDwls57EL73
15,504
Embeddings - Persist between batches
{ "login": "leobenkel", "id": 4960573, "node_id": "MDQ6VXNlcjQ5NjA1NzM=", "avatar_url": "https://avatars.githubusercontent.com/u/4960573?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leobenkel", "html_url": "https://github.com/leobenkel", "followers_url": "https://api.github.com/users/leobenkel/followers", "following_url": "https://api.github.com/users/leobenkel/following{/other_user}", "gists_url": "https://api.github.com/users/leobenkel/gists{/gist_id}", "starred_url": "https://api.github.com/users/leobenkel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leobenkel/subscriptions", "organizations_url": "https://api.github.com/users/leobenkel/orgs", "repos_url": "https://api.github.com/users/leobenkel/repos", "events_url": "https://api.github.com/users/leobenkel/events{/privacy}", "received_events_url": "https://api.github.com/users/leobenkel/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": 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
2024-01-03T21:53:13
2024-01-03T22:01:52
null
NONE
null
### Feature request Able to `persist` between batch when the embedding is between built: ```python db = Chroma.from_documents( documents=documents, embedding=embeddings, persist_directory=persist_directory) db.persist() return db ``` would be nice to be : ```python db = Chroma.from_documents( documents=documents, embedding=embeddings, persist_directory=persist_directory, batch_size=batch_size, persist_between_batches=2 ) db.persist() return db ``` to specify a batch size and persist between every `2` batches. ### Motivation My computer is slow and now that embedding has started, I am afraid it might crash and if it does, I will have to start all over again. ### Your contribution Not really sorry
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15504/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15504/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15503
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15503/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15503/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15503/events
https://github.com/langchain-ai/langchain/pull/15503
2,064,647,226
PR_kwDOIPDwls5jK8jd
15,503
openai[minor]: implement langchain-openai package
{ "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 }
[ { "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": 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." }, { "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
2
2024-01-03T21:06:31
2024-01-05T23:03:29
2024-01-05T23:03:28
COLLABORATOR
null
Todo - [x] copy over integration tests - [x] update docs with new instructions in #15513 - [x] add linear ticket to bump core -> community, community->langchain, and core->openai deps - [ ] (optional): add `pip install langchain-openai` command to each notebook using it - [x] Update docstrings to not need `openai` install - [x] Add serialization - [x] deprecate old models Contributor steps: - [x] Add secret names to manual integrations workflow in .github/workflows/_integration_test.yml - [x] Add secrets to release workflow (for pre-release testing) in .github/workflows/_release.yml Maintainer steps (Contributors should not do these): - [x] set up pypi and test pypi projects - [x] add credential secrets to Github Actions - [ ] add package to conda-forge Functional changes to existing classes: - now relies on openai client v1 (1.6.1) via concrete dep in langchain-openai package Codebase organization - some function calling stuff moved to `langchain_core.utils.function_calling` in order to be used in both community and langchain-openai
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15503/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15503/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15503", "html_url": "https://github.com/langchain-ai/langchain/pull/15503", "diff_url": "https://github.com/langchain-ai/langchain/pull/15503.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15503.patch", "merged_at": "2024-01-05T23:03:28" }
https://api.github.com/repos/langchain-ai/langchain/issues/15502
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15502/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15502/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15502/events
https://github.com/langchain-ai/langchain/pull/15502
2,064,629,551
PR_kwDOIPDwls5jK43H
15,502
docs: contributor faq
{ "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 }
[ { "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
2024-01-03T20:49:38
2024-01-03T21:19:40
2024-01-03T21:19:39
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15502/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15502/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15502", "html_url": "https://github.com/langchain-ai/langchain/pull/15502", "diff_url": "https://github.com/langchain-ai/langchain/pull/15502.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15502.patch", "merged_at": "2024-01-03T21:19:39" }
https://api.github.com/repos/langchain-ai/langchain/issues/15501
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15501/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15501/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15501/events
https://github.com/langchain-ai/langchain/pull/15501
2,064,611,208
PR_kwDOIPDwls5jK1BE
15,501
RFC: BaseRetriever.return_str()
{ "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 }
[]
closed
false
null
[]
null
1
2024-01-03T20:32:19
2024-01-13T01:46:45
2024-01-13T01:46:45
COLLABORATOR
null
Inspired by all the formatting needed in #15071
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15501/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15501/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15501", "html_url": "https://github.com/langchain-ai/langchain/pull/15501", "diff_url": "https://github.com/langchain-ai/langchain/pull/15501.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15501.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15500
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15500/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15500/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15500/events
https://github.com/langchain-ai/langchain/issues/15500
2,064,594,842
I_kwDOIPDwls57Dzea
15,500
Fix HuggingFaceHub LLM Integration
{ "login": "lucifertrj", "id": 66197713, "node_id": "MDQ6VXNlcjY2MTk3NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/66197713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lucifertrj", "html_url": "https://github.com/lucifertrj", "followers_url": "https://api.github.com/users/lucifertrj/followers", "following_url": "https://api.github.com/users/lucifertrj/following{/other_user}", "gists_url": "https://api.github.com/users/lucifertrj/gists{/gist_id}", "starred_url": "https://api.github.com/users/lucifertrj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lucifertrj/subscriptions", "organizations_url": "https://api.github.com/users/lucifertrj/orgs", "repos_url": "https://api.github.com/users/lucifertrj/repos", "events_url": "https://api.github.com/users/lucifertrj/events{/privacy}", "received_events_url": "https://api.github.com/users/lucifertrj/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" } ]
open
false
null
[]
null
1
2024-01-03T20:17:12
2024-01-03T20:19:31
null
NONE
null
### System Info 0.0.354 ### Who can help? @hwchase17 @agol ### 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 1. replace HuggingFaceHub InferenceAPI to InferenceClient 2. replace max_length to max_new_tokens PR: # Reference: [https://huggingface.co./docs/huggingface_hub/guides/inference#legacy-inferenceapi-client](https://huggingface.co./docs/huggingface_hub/guides/inference#legacy-inferenceapi-client) ### Expected behavior PR #15498 address this issues
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15500/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15500/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15499
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15499/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15499/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15499/events
https://github.com/langchain-ai/langchain/pull/15499
2,064,592,222
PR_kwDOIPDwls5jKxAd
15,499
core[minor], langchain[minor]: deprecate Chain and BaseLanguageModel …
{ "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": 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": 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
2024-01-03T20:14:47
2024-01-05T16:58:36
2024-01-05T16:58:35
COLLABORATOR
null
…methods
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15499/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15499/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15499", "html_url": "https://github.com/langchain-ai/langchain/pull/15499", "diff_url": "https://github.com/langchain-ai/langchain/pull/15499.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15499.patch", "merged_at": "2024-01-05T16:58:35" }
https://api.github.com/repos/langchain-ai/langchain/issues/15498
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15498/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15498/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15498/events
https://github.com/langchain-ai/langchain/pull/15498
2,064,589,134
PR_kwDOIPDwls5jKwVf
15,498
[Warning Fixed] HuggingFace Hub LLM Integration
{ "login": "lucifertrj", "id": 66197713, "node_id": "MDQ6VXNlcjY2MTk3NzEz", "avatar_url": "https://avatars.githubusercontent.com/u/66197713?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lucifertrj", "html_url": "https://github.com/lucifertrj", "followers_url": "https://api.github.com/users/lucifertrj/followers", "following_url": "https://api.github.com/users/lucifertrj/following{/other_user}", "gists_url": "https://api.github.com/users/lucifertrj/gists{/gist_id}", "starred_url": "https://api.github.com/users/lucifertrj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lucifertrj/subscriptions", "organizations_url": "https://api.github.com/users/lucifertrj/orgs", "repos_url": "https://api.github.com/users/lucifertrj/repos", "events_url": "https://api.github.com/users/lucifertrj/events{/privacy}", "received_events_url": "https://api.github.com/users/lucifertrj/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": 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
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false } ]
null
3
2024-01-03T20:12:18
2024-01-15T19:48:12
null
NONE
null
This PR fixes the following warning ``` /usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_deprecation.py:131: FutureWarning: 'InferenceApi' (from 'huggingface_hub.inference_api') is deprecated and will be removed from version '1.0'. `InferenceApi` client is deprecated in favor of the more feature-complete `InferenceClient`. Check out this guide to learn how to convert your script to use it: https://huggingface.co./docs/huggingface_hub/guides/inference#legacy-inferenceapi-client. warnings.warn(warning_message, FutureWarning) ``` Fixes made: - Replace `InferenceAPI` with `InferenceClient` - Replace `max_length` to `max_new_tokens` as per new HuggingFace docs
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15498/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15498/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15498", "html_url": "https://github.com/langchain-ai/langchain/pull/15498", "diff_url": "https://github.com/langchain-ai/langchain/pull/15498.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15498.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15497
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15497/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15497/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15497/events
https://github.com/langchain-ai/langchain/issues/15497
2,064,553,332
I_kwDOIPDwls57DpV0
15,497
Issue: Embedding with Pinecone
{ "login": "ZinanYang1995", "id": 149815088, "node_id": "U_kgDOCO3_MA", "avatar_url": "https://avatars.githubusercontent.com/u/149815088?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZinanYang1995", "html_url": "https://github.com/ZinanYang1995", "followers_url": "https://api.github.com/users/ZinanYang1995/followers", "following_url": "https://api.github.com/users/ZinanYang1995/following{/other_user}", "gists_url": "https://api.github.com/users/ZinanYang1995/gists{/gist_id}", "starred_url": "https://api.github.com/users/ZinanYang1995/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ZinanYang1995/subscriptions", "organizations_url": "https://api.github.com/users/ZinanYang1995/orgs", "repos_url": "https://api.github.com/users/ZinanYang1995/repos", "events_url": "https://api.github.com/users/ZinanYang1995/events{/privacy}", "received_events_url": "https://api.github.com/users/ZinanYang1995/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": 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
3
2024-01-03T19:40:35
2024-01-04T14:50:38
null
NONE
null
### Issue you'd like to raise. Hi there, I am learning how to use Pinecone properly with LangChain and OpenAI Embedding. I built an application which can allow user upload PDFs and ask questions about the PDFs. In the application I used Pinecone as the vector database and store embeddings in Pinecone. However, I want to make change to my code so that whenever an user upload a PDF, the application can check if the PDF already been store as embeddings in Pinecone, and if yes, use the old embeddings; If no, then upload new embeddings. Here is my code: ## Imports import streamlit as st import os from apikey import apikey import pickle from PyPDF2 import PdfReader # Streamlit - user interface from streamlit_extras.add_vertical_space import add_vertical_space # Langchain from langchain.text_splitter import RecursiveCharacterTextSplitter from langchain.embeddings.openai import OpenAIEmbeddings from langchain.vectorstores import FAISS from langchain.llms import OpenAI from langchain.chains.question_answering import load_qa_chain from langchain.callbacks import get_openai_callback from langchain.chat_models.openai import ChatOpenAI from langchain.schema import (SystemMessage, HumanMessage, AIMessage) from langchain.schema import Document from langchain.document_loaders import UnstructuredPDFLoader # Pinecone from langchain.vectorstores import Pinecone import pinecone from apikey import pinecone_api_key import uuid os.environ['OPENAI_API_KEY'] = apikey ## User Interface # Side Bar with st.sidebar: st.title('🚀 Zi-GPT Version 2.0') st.markdown(''' ## About This app is an LLM-powered chatbot built using: - [Streamlit](https://streamlit.io/) - [LangChain](https://python.langchain.com/) - [OpenAI](https://platform.openai.com/docs/models) LLM model ''') add_vertical_space(5) st.write('Made with ❤️ by Zi') # Main Page def main(): st.header("Zi's PDF Helper: Chat with PDF") # upload a PDF file pdf = st.file_uploader("Please upload your PDF here", type='pdf') # st.write(pdf) # read PDF if pdf is not None: pdf_reader = PdfReader(pdf) # data = pdf_reader.load() # split document into chunks # also can use text split: good for PDFs that do not contains charts and visuals sections = [] for page in pdf_reader.pages: # Split the page text by paragraphs (assuming two newlines indicate a new paragraph) page_sections = page.extract_text().split('\n\n') sections.extend(page_sections) chunks = [Document(page_content=section) for section in sections] # st.write(chunks) # text_splitter = RecursiveCharacterTextSplitter( # chunk_size = 500, # chunk_overlap = 20 # ) # chunks = text_splitter.split_documents(data) ## embeddings # Set up embeddings embeddings = OpenAIEmbeddings( model="text-embedding-ada-002") try: # Set up Pinecone pinecone.init(api_key=pinecone_api_key, environment='gcp-starter') index_name = 'langchainresearch' if index_name not in pinecone.list_indexes(): pinecone.create_index(index_name, dimension=1536, metric="cosine") # Adjust the dimension as per your embeddings index = pinecone.Index(index_name) docsearch = Pinecone.from_documents(chunks, embeddings, index_name = index_name) except Exception as e: print(f"An error occurred: {e}") # Create or Load Chat History if pdf: # generate chat history chat_history_file = f"{pdf.name}_chat_history.pkl" # load history if exist if os.path.exists(chat_history_file): with open(chat_history_file, "rb") as f: chat_history = pickle.load(f) else: chat_history = [] # Initialize chat_history in session_state if not present if 'chat_history' not in st.session_state: st.session_state.chat_history = [] # Check if 'prompt' is in session state if 'last_input' not in st.session_state: st.session_state.last_input = '' # User Input current_prompt = st.session_state.get('user_input', '') prompt_placeholder = st.empty() prompt = prompt_placeholder.text_area("Ask questions about your PDF:", value=current_prompt, placeholder="Send a message", key="user_input") submit_button = st.button("Submit") if docsearch is not None and submit_button and prompt: # Update the last input in session state st.session_state.last_input = prompt docs = docsearch.similarity_search(query=prompt, k=3) #llm = OpenAI(temperature=0.9, model_name='gpt-3.5-turbo') chat = ChatOpenAI(model='gpt-4', temperature=0.7, max_tokens=3000) message = [ SystemMessage(content="You are a helpful assistant"), HumanMessage(content=prompt) ] chain = load_qa_chain(llm=chat, chain_type="stuff") with get_openai_callback() as cb: response = chain.run(input_documents=docs, question=message) print(cb) # st.write(response) # st.write(docs) # Process the response using AIMessage schema # ai_message = AIMessage(content="AI message content") # ai_message.content = response.generations[0].message.content # Add to chat history st.session_state.chat_history.append((prompt, response)) # Save chat history with open(chat_history_file, "wb") as f: pickle.dump(st.session_state.chat_history, f) # Clear the input after processing prompt_placeholder.text_area("Ask questions about your PDF:", value='', placeholder="Send a message", key="pdf_prompt") # Display the entire chat chat_content = "" for user_msg, bot_resp in st.session_state.chat_history: chat_content += f"<div style='background-color: #222222; color: white; padding: 10px;'>**You:** {user_msg}</div>" chat_content += f"<div style='background-color: #333333; color: white; padding: 10px;'>**Zi GPT:** {bot_resp}</div>" st.markdown(chat_content, unsafe_allow_html=True) if __name__ == '__main__': main() Give me some recommedations on what should I do or change. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15497/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15497/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15496
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15496/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15496/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15496/events
https://github.com/langchain-ai/langchain/issues/15496
2,064,543,064
I_kwDOIPDwls57Dm1Y
15,496
PGVector method for HNSW
{ "login": "diegovalenzuelaiturra-latam", "id": 147197152, "node_id": "U_kgDOCMYM4A", "avatar_url": "https://avatars.githubusercontent.com/u/147197152?v=4", "gravatar_id": "", "url": "https://api.github.com/users/diegovalenzuelaiturra-latam", "html_url": "https://github.com/diegovalenzuelaiturra-latam", "followers_url": "https://api.github.com/users/diegovalenzuelaiturra-latam/followers", "following_url": "https://api.github.com/users/diegovalenzuelaiturra-latam/following{/other_user}", "gists_url": "https://api.github.com/users/diegovalenzuelaiturra-latam/gists{/gist_id}", "starred_url": "https://api.github.com/users/diegovalenzuelaiturra-latam/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/diegovalenzuelaiturra-latam/subscriptions", "organizations_url": "https://api.github.com/users/diegovalenzuelaiturra-latam/orgs", "repos_url": "https://api.github.com/users/diegovalenzuelaiturra-latam/repos", "events_url": "https://api.github.com/users/diegovalenzuelaiturra-latam/events{/privacy}", "received_events_url": "https://api.github.com/users/diegovalenzuelaiturra-latam/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" } ]
open
false
null
[]
null
3
2024-01-03T19:31:06
2024-01-05T15:01:59
null
NONE
null
### Feature request Provide a method to create the HNSW for the PGVector vectorstore ### Motivation There is a similar method implemented for PGEmbedding but the embedding extension will be deprecated ### Your contribution https://github.com/pgvector/pgvector?tab=readme-ov-file#hnsw https://github.com/langchain-ai/langchain/blob/6e90b7a91bba16d84689d07d1016a941eddf4f64/libs/community/langchain_community/vectorstores/pgembedding.py#L184-L212
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15496/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15496/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15495
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15495/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15495/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15495/events
https://github.com/langchain-ai/langchain/pull/15495
2,064,509,119
PR_kwDOIPDwls5jKfKA
15,495
update chain 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": 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
2024-01-03T19:01:09
2024-01-05T17:15:01
2024-01-05T17:15:00
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15495/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15495/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15495", "html_url": "https://github.com/langchain-ai/langchain/pull/15495", "diff_url": "https://github.com/langchain-ai/langchain/pull/15495.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15495.patch", "merged_at": "2024-01-05T17:15:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/15494
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15494/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15494/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15494/events
https://github.com/langchain-ai/langchain/issues/15494
2,064,506,326
I_kwDOIPDwls57Dd3W
15,494
Issue: No connection adaptors were found
{ "login": "bz181d", "id": 155575406, "node_id": "U_kgDOCUXkbg", "avatar_url": "https://avatars.githubusercontent.com/u/155575406?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bz181d", "html_url": "https://github.com/bz181d", "followers_url": "https://api.github.com/users/bz181d/followers", "following_url": "https://api.github.com/users/bz181d/following{/other_user}", "gists_url": "https://api.github.com/users/bz181d/gists{/gist_id}", "starred_url": "https://api.github.com/users/bz181d/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bz181d/subscriptions", "organizations_url": "https://api.github.com/users/bz181d/orgs", "repos_url": "https://api.github.com/users/bz181d/repos", "events_url": "https://api.github.com/users/bz181d/events{/privacy}", "received_events_url": "https://api.github.com/users/bz181d/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
9
2024-01-03T18:58:45
2024-01-04T17:41:35
null
NONE
null
### Issue you'd like to raise. Hi all, I am trying to create an app that can act upon a natural language prompt to interact with the Monday API and then successfully carry out the relevant action. The code I currently have is as follows: > MondayDocs = """ > > > The below is Monday API documentation showing how to create an item. > > The endpoint is: > > "https://api.monday.com/v2". > > ///Example to create a new item: > > > mutation_query = ''' > mutation { > create_item (board_id: id, item_name: "itemname") { > id > } > } > ''' > > > data = {'query': mutation_query} > > > response = requests.post(url=apiUrl, json=data, headers=headers) > > > Use the below authorisation: > > headers = {"Authorization": "X"} > > > """ > > > llm = ChatOpenAI(temperature=0, model= 'gpt-3.5-turbo-1106', openai_api_key="Y") > > Test = APIChain.from_llm_and_api_docs(llm, MondayDocs,limit_to_domains=None, verbose=True) > > Test.run("Create a new item named James.") > However, when I run this, I get the error message: > No connection adapters were found How can I fix this? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15494/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15494/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15493
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15493/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15493/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15493/events
https://github.com/langchain-ai/langchain/pull/15493
2,064,478,760
PR_kwDOIPDwls5jKYok
15,493
fix: Ollama import statements
{ "login": "shauryr", "id": 12604876, "node_id": "MDQ6VXNlcjEyNjA0ODc2", "avatar_url": "https://avatars.githubusercontent.com/u/12604876?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shauryr", "html_url": "https://github.com/shauryr", "followers_url": "https://api.github.com/users/shauryr/followers", "following_url": "https://api.github.com/users/shauryr/following{/other_user}", "gists_url": "https://api.github.com/users/shauryr/gists{/gist_id}", "starred_url": "https://api.github.com/users/shauryr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shauryr/subscriptions", "organizations_url": "https://api.github.com/users/shauryr/orgs", "repos_url": "https://api.github.com/users/shauryr/repos", "events_url": "https://api.github.com/users/shauryr/events{/privacy}", "received_events_url": "https://api.github.com/users/shauryr/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "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
2024-01-03T18:34:54
2024-01-07T17:31:25
2024-01-07T17:31:25
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/15493/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15493/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15493", "html_url": "https://github.com/langchain-ai/langchain/pull/15493", "diff_url": "https://github.com/langchain-ai/langchain/pull/15493.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15493.patch", "merged_at": "2024-01-07T17:31:25" }
https://api.github.com/repos/langchain-ai/langchain/issues/15492
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15492/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15492/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15492/events
https://github.com/langchain-ai/langchain/pull/15492
2,064,464,710
PR_kwDOIPDwls5jKVnI
15,492
langchain[patch]: bump community >=0.0.8,<0.1
{ "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": 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
2024-01-03T18:22:45
2024-01-03T18:31:49
2024-01-03T18:31:49
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15492/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15492/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15492", "html_url": "https://github.com/langchain-ai/langchain/pull/15492", "diff_url": "https://github.com/langchain-ai/langchain/pull/15492.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15492.patch", "merged_at": "2024-01-03T18:31:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/15491
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15491/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15491/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15491/events
https://github.com/langchain-ai/langchain/issues/15491
2,064,424,956
I_kwDOIPDwls57DJ_8
15,491
`langchain-core` cannot import name 'tracing_enabled'
{ "login": "xmaayy", "id": 21166352, "node_id": "MDQ6VXNlcjIxMTY2MzUy", "avatar_url": "https://avatars.githubusercontent.com/u/21166352?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xmaayy", "html_url": "https://github.com/xmaayy", "followers_url": "https://api.github.com/users/xmaayy/followers", "following_url": "https://api.github.com/users/xmaayy/following{/other_user}", "gists_url": "https://api.github.com/users/xmaayy/gists{/gist_id}", "starred_url": "https://api.github.com/users/xmaayy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xmaayy/subscriptions", "organizations_url": "https://api.github.com/users/xmaayy/orgs", "repos_url": "https://api.github.com/users/xmaayy/repos", "events_url": "https://api.github.com/users/xmaayy/events{/privacy}", "received_events_url": "https://api.github.com/users/xmaayy/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" } ]
open
false
null
[]
null
7
2024-01-03T17:49:06
2024-01-05T03:21:26
null
NONE
null
### System Info ``` bash bash-4.2# pip freeze | grep langchain langchain==0.0.353 langchain-community==0.0.8 langchain-core==0.1.5 bash-4.2# python --version Python 3.10.13 bash-4.2# uname -a Linux 5b9ca59024db 6.1.61-85.141.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 8 00:39:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ``` ### Who can help? @hwchase17 I looks like `langchain-core==0.1.5` has a problem with `'tracing_enabled'` because the V1 was deleted but some references to it remained: ``` python File <ourfile>:5 2 import os 3 from typing import Any ----> 5 from langchain.chains import create_extraction_chain_pydantic 6 from langchain.chat_models import AzureChatOpenAI 7 from langchain.chains.base import Chain File /var/lang/lib/python3.10/site-packages/langchain/chains/__init__.py:20 1 """**Chains** are easily reusable components linked together. 2 3 Chains encode a sequence of calls to components like models, document retrievers, (...) 17 Chain --> <name>Chain # Examples: LLMChain, MapReduceChain, RouterChain 18 """ ---> 20 from langchain.chains.api.base import APIChain 21 from langchain.chains.api.openapi.chain import OpenAPIEndpointChain 22 from langchain.chains.combine_documents.base import AnalyzeDocumentChain File /var/lang/lib/python3.10/site-packages/langchain/chains/api/base.py:11 8 from langchain_core.prompts import BasePromptTemplate 9 from langchain_core.pydantic_v1 import Field, root_validator ---> 11 from langchain.callbacks.manager import ( 12 AsyncCallbackManagerForChainRun, 13 CallbackManagerForChainRun, 14 ) 15 from langchain.chains.api.prompt import API_RESPONSE_PROMPT, API_URL_PROMPT 16 from langchain.chains.base import Chain File /var/lang/lib/python3.10/site-packages/langchain/callbacks/__init__.py:45 40 from langchain_community.callbacks.whylabs_callback import WhyLabsCallbackHandler 41 from langchain_core.callbacks import ( 42 StdOutCallbackHandler, 43 StreamingStdOutCallbackHandler, 44 ) ---> 45 from langchain_core.tracers.context import ( 46 collect_runs, 47 tracing_enabled, 48 tracing_v2_enabled, 49 ) 50 from langchain_core.tracers.langchain import LangChainTracer 52 from langchain.callbacks.file import FileCallbackHandler ImportError: cannot import name 'tracing_enabled' from 'langchain_core.tracers.context' (/var/lang/lib/python3.10/site-packages/langchain_core/tracers/context.py) ``` Reverting to `langchain-core==0.1.4` fixed the issue for me ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [X] Callbacks/Tracing - [ ] Async ### Reproduction Install core version `0.1.5` and `from langchain.chains import create_extraction_chain_pydantic` ### Expected behavior No error
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15491/reactions", "total_count": 17, "+1": 17, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15491/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15490
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15490/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15490/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15490/events
https://github.com/langchain-ai/langchain/pull/15490
2,064,375,553
PR_kwDOIPDwls5jKCIN
15,490
infra: update community test min reqs
{ "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
2024-01-03T17:13:23
2024-01-03T17:13:35
2024-01-03T17:13:29
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15490/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15490/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15490", "html_url": "https://github.com/langchain-ai/langchain/pull/15490", "diff_url": "https://github.com/langchain-ai/langchain/pull/15490.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15490.patch", "merged_at": "2024-01-03T17:13:29" }
https://api.github.com/repos/langchain-ai/langchain/issues/15489
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15489/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15489/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15489/events
https://github.com/langchain-ai/langchain/pull/15489
2,064,370,347
PR_kwDOIPDwls5jKA_w
15,489
community: changing the .dict() to .model_dump() since it is deprecated
{ "login": "henriquevedoveli", "id": 61060105, "node_id": "MDQ6VXNlcjYxMDYwMTA1", "avatar_url": "https://avatars.githubusercontent.com/u/61060105?v=4", "gravatar_id": "", "url": "https://api.github.com/users/henriquevedoveli", "html_url": "https://github.com/henriquevedoveli", "followers_url": "https://api.github.com/users/henriquevedoveli/followers", "following_url": "https://api.github.com/users/henriquevedoveli/following{/other_user}", "gists_url": "https://api.github.com/users/henriquevedoveli/gists{/gist_id}", "starred_url": "https://api.github.com/users/henriquevedoveli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/henriquevedoveli/subscriptions", "organizations_url": "https://api.github.com/users/henriquevedoveli/orgs", "repos_url": "https://api.github.com/users/henriquevedoveli/repos", "events_url": "https://api.github.com/users/henriquevedoveli/events{/privacy}", "received_events_url": "https://api.github.com/users/henriquevedoveli/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": 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." } ]
open
false
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false } ]
null
2
2024-01-03T17:09:16
2024-01-15T19:49:01
null
NONE
null
- **Description:** The method `.dict()` was replaced by `.model_dump` since its deprecated in Pydantic V2 and will be removed in Pydantic V.3, - **Issue:** None, - **Dependencies:** None, - **Twitter handle:** @hhvedoveli <!-- 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/15489/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15489/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15489", "html_url": "https://github.com/langchain-ai/langchain/pull/15489", "diff_url": "https://github.com/langchain-ai/langchain/pull/15489.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15489.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15488
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15488/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15488/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15488/events
https://github.com/langchain-ai/langchain/pull/15488
2,064,354,496
PR_kwDOIPDwls5jJ9lU
15,488
community[patch]: bump core version >=0.1.5,<0.2
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 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
2024-01-03T16:57:05
2024-01-03T17:03:32
2024-01-03T17:03:32
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15488/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15488/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15488", "html_url": "https://github.com/langchain-ai/langchain/pull/15488", "diff_url": "https://github.com/langchain-ai/langchain/pull/15488.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15488.patch", "merged_at": "2024-01-03T17:03:32" }
https://api.github.com/repos/langchain-ai/langchain/issues/15487
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15487/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15487/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15487/events
https://github.com/langchain-ai/langchain/issues/15487
2,064,352,002
I_kwDOIPDwls57C4MC
15,487
HELP!: Example of using HuggingFaceTextGenInference, llmchain, and fastapi
{ "login": "PeterTucker", "id": 1381341, "node_id": "MDQ6VXNlcjEzODEzNDE=", "avatar_url": "https://avatars.githubusercontent.com/u/1381341?v=4", "gravatar_id": "", "url": "https://api.github.com/users/PeterTucker", "html_url": "https://github.com/PeterTucker", "followers_url": "https://api.github.com/users/PeterTucker/followers", "following_url": "https://api.github.com/users/PeterTucker/following{/other_user}", "gists_url": "https://api.github.com/users/PeterTucker/gists{/gist_id}", "starred_url": "https://api.github.com/users/PeterTucker/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PeterTucker/subscriptions", "organizations_url": "https://api.github.com/users/PeterTucker/orgs", "repos_url": "https://api.github.com/users/PeterTucker/repos", "events_url": "https://api.github.com/users/PeterTucker/events{/privacy}", "received_events_url": "https://api.github.com/users/PeterTucker/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
4
2024-01-03T16:55:10
2024-01-03T22:42:11
null
NONE
null
### Issue you'd like to raise. I've scoured the internet trying to find an example that would use a custom model (Mistral) with ```HuggingFaceTextGenInference``` which uses ```LLMChain``` to return a **streaming** response via ```fastapi```. Does anyone have a working example? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15487/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15487/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15486
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15486/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15486/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15486/events
https://github.com/langchain-ai/langchain/pull/15486
2,064,320,583
PR_kwDOIPDwls5jJ2RF
15,486
infra: fix min deps test
{ "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
2024-01-03T16:31:24
2024-01-03T16:34:47
2024-01-03T16:34:46
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15486/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15486/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15486", "html_url": "https://github.com/langchain-ai/langchain/pull/15486", "diff_url": "https://github.com/langchain-ai/langchain/pull/15486.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15486.patch", "merged_at": "2024-01-03T16:34:46" }
https://api.github.com/repos/langchain-ai/langchain/issues/15485
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15485/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15485/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15485/events
https://github.com/langchain-ai/langchain/pull/15485
2,064,268,788
PR_kwDOIPDwls5jJq9c
15,485
infra: add minimum deps pre release check
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "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
2024-01-03T15:58:16
2024-01-03T16:28:37
2024-01-03T16:28:36
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15485/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15485/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15485", "html_url": "https://github.com/langchain-ai/langchain/pull/15485", "diff_url": "https://github.com/langchain-ai/langchain/pull/15485.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15485.patch", "merged_at": "2024-01-03T16:28:36" }
https://api.github.com/repos/langchain-ai/langchain/issues/15484
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15484/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15484/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15484/events
https://github.com/langchain-ai/langchain/issues/15484
2,064,266,659
I_kwDOIPDwls57CjWj
15,484
ModuleNotFoundError at import langchain.chains
{ "login": "yoch", "id": 795960, "node_id": "MDQ6VXNlcjc5NTk2MA==", "avatar_url": "https://avatars.githubusercontent.com/u/795960?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yoch", "html_url": "https://github.com/yoch", "followers_url": "https://api.github.com/users/yoch/followers", "following_url": "https://api.github.com/users/yoch/following{/other_user}", "gists_url": "https://api.github.com/users/yoch/gists{/gist_id}", "starred_url": "https://api.github.com/users/yoch/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yoch/subscriptions", "organizations_url": "https://api.github.com/users/yoch/orgs", "repos_url": "https://api.github.com/users/yoch/repos", "events_url": "https://api.github.com/users/yoch/events{/privacy}", "received_events_url": "https://api.github.com/users/yoch/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" } ]
open
false
null
[]
null
16
2024-01-03T15:56:43
2024-01-04T15:27:17
null
CONTRIBUTOR
null
### System Info **Platform:** Linux Ubuntu 22.04.1 **Python:** 3.10.12 **Langchain:** - langchain 0.0.353 - langchain-community 0.0.7 - langchain-core 0.1.5 - langsmith 0.0.77 ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```py from langchain.chains import * ``` ### Expected behavior I expect the import won't fail, but I got an exception: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ubuntu/mychatassist-api/env/lib/python3.10/site-packages/langchain/chains/__init__.py", line 20, in <module> from langchain.chains.api.base import APIChain File "/home/ubuntu/mychatassist-api/env/lib/python3.10/site-packages/langchain/chains/api/base.py", line 11, in <module> from langchain.callbacks.manager import ( File "/home/ubuntu/mychatassist-api/env/lib/python3.10/site-packages/langchain/callbacks/__init__.py", line 10, in <module> from langchain_community.callbacks.aim_callback import AimCallbackHandler File "/home/ubuntu/mychatassist-api/env/lib/python3.10/site-packages/langchain_community/callbacks/__init__.py", line 24, in <module> from langchain_community.callbacks.manager import ( File "/home/ubuntu/mychatassist-api/env/lib/python3.10/site-packages/langchain_community/callbacks/manager.py", line 14, in <module> from langchain_community.callbacks.tracers.wandb import WandbTracer File "/home/ubuntu/mychatassist-api/env/lib/python3.10/site-packages/langchain_community/callbacks/tracers/__init__.py", line 4, in <module> from langchain_core.tracers.langchain_v1 import LangChainTracerV1 ModuleNotFoundError: No module named 'langchain_core.tracers.langchain_v1' ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15484/reactions", "total_count": 5, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 5 }
https://api.github.com/repos/langchain-ai/langchain/issues/15484/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15483
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15483/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15483/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15483/events
https://github.com/langchain-ai/langchain/pull/15483
2,064,220,890
PR_kwDOIPDwls5jJgoA
15,483
experimental[patch]: Release 0.0.48
{ "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
2024-01-03T15:26:13
2024-01-06T17:46:01
2024-01-06T17:46:00
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15483/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15483/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15483", "html_url": "https://github.com/langchain-ai/langchain/pull/15483", "diff_url": "https://github.com/langchain-ai/langchain/pull/15483.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15483.patch", "merged_at": "2024-01-06T17:46:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/15482
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15482/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15482/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15482/events
https://github.com/langchain-ai/langchain/pull/15482
2,064,220,701
PR_kwDOIPDwls5jJglV
15,482
langchain[patch]: Release 0.0.354
{ "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
2024-01-03T15:26:06
2024-01-03T17:51:56
2024-01-03T17:51:55
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/15482/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15482/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15482", "html_url": "https://github.com/langchain-ai/langchain/pull/15482", "diff_url": "https://github.com/langchain-ai/langchain/pull/15482.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15482.patch", "merged_at": "2024-01-03T17:51:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/15481
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15481/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15481/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15481/events
https://github.com/langchain-ai/langchain/pull/15481
2,064,220,536
PR_kwDOIPDwls5jJgjC
15,481
community[patch]: Release 0.0.8
{ "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
2024-01-03T15:26:00
2024-01-03T16:28:51
2024-01-03T16:28:50
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15481/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15481/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15481", "html_url": "https://github.com/langchain-ai/langchain/pull/15481", "diff_url": "https://github.com/langchain-ai/langchain/pull/15481.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15481.patch", "merged_at": "2024-01-03T16:28:50" }
https://api.github.com/repos/langchain-ai/langchain/issues/15480
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15480/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15480/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15480/events
https://github.com/langchain-ai/langchain/pull/15480
2,064,207,320
PR_kwDOIPDwls5jJdrO
15,480
core[patch]: Release 0.1.5
{ "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": 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
2024-01-03T15:17:12
2024-01-03T15:26:32
2024-01-03T15:26:31
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15480/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15480/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15480", "html_url": "https://github.com/langchain-ai/langchain/pull/15480", "diff_url": "https://github.com/langchain-ai/langchain/pull/15480.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15480.patch", "merged_at": "2024-01-03T15:26:31" }
https://api.github.com/repos/langchain-ai/langchain/issues/15479
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15479/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15479/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15479/events
https://github.com/langchain-ai/langchain/issues/15479
2,064,195,347
I_kwDOIPDwls57CR8T
15,479
How long can I use Langchain to call the chatglm3 API
{ "login": "yoohhwz", "id": 45910698, "node_id": "MDQ6VXNlcjQ1OTEwNjk4", "avatar_url": "https://avatars.githubusercontent.com/u/45910698?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yoohhwz", "html_url": "https://github.com/yoohhwz", "followers_url": "https://api.github.com/users/yoohhwz/followers", "following_url": "https://api.github.com/users/yoohhwz/following{/other_user}", "gists_url": "https://api.github.com/users/yoohhwz/gists{/gist_id}", "starred_url": "https://api.github.com/users/yoohhwz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yoohhwz/subscriptions", "organizations_url": "https://api.github.com/users/yoohhwz/orgs", "repos_url": "https://api.github.com/users/yoohhwz/repos", "events_url": "https://api.github.com/users/yoohhwz/events{/privacy}", "received_events_url": "https://api.github.com/users/yoohhwz/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
2
2024-01-03T15:09:25
2024-01-10T04:09:39
null
NONE
null
### Feature request Chatglm3 has added many new features compared to previous chatglm and chatglm2, which is particularly useful for users. So there will definitely be more user demands in using Langchain to build a knowledge base, and it's unclear how long it will take for the community to adapt. chatglm3 github path :https://github.com/THUDM/ChatGLM3 ### Motivation Chatglm3 has added many new features compared to previous chatglm and chatglm2, which is particularly useful for users. So there will definitely be more user demands in using Langchain to build a knowledge base, and it's unclear how long it will take for the community to adapt. chatglm3 github path :https://github.com/THUDM/ChatGLM3 ### Your contribution i am soryy. i can not.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15479/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15479/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15478
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15478/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15478/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15478/events
https://github.com/langchain-ai/langchain/pull/15478
2,064,138,115
PR_kwDOIPDwls5jJOt0
15,478
Implement TTL for DynamoDBChatMessageHistory
{ "login": "brnaba-aws", "id": 64135631, "node_id": "MDQ6VXNlcjY0MTM1NjMx", "avatar_url": "https://avatars.githubusercontent.com/u/64135631?v=4", "gravatar_id": "", "url": "https://api.github.com/users/brnaba-aws", "html_url": "https://github.com/brnaba-aws", "followers_url": "https://api.github.com/users/brnaba-aws/followers", "following_url": "https://api.github.com/users/brnaba-aws/following{/other_user}", "gists_url": "https://api.github.com/users/brnaba-aws/gists{/gist_id}", "starred_url": "https://api.github.com/users/brnaba-aws/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/brnaba-aws/subscriptions", "organizations_url": "https://api.github.com/users/brnaba-aws/orgs", "repos_url": "https://api.github.com/users/brnaba-aws/repos", "events_url": "https://api.github.com/users/brnaba-aws/events{/privacy}", "received_events_url": "https://api.github.com/users/brnaba-aws/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": 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" }, { "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
2024-01-03T14:32:46
2024-01-16T08:14:15
null
NONE
null
- **Description:** Implement TTL for DynamoDBChatMessageHistory, - **Issue:** see #15477, - **Dependencies:** N/A,
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15478/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15478/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15478", "html_url": "https://github.com/langchain-ai/langchain/pull/15478", "diff_url": "https://github.com/langchain-ai/langchain/pull/15478.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15478.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15477
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15477/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15477/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15477/events
https://github.com/langchain-ai/langchain/issues/15477
2,064,133,232
I_kwDOIPDwls57CCxw
15,477
Add TTL support for DynamoDBChatMessageHistory
{ "login": "brnaba-aws", "id": 64135631, "node_id": "MDQ6VXNlcjY0MTM1NjMx", "avatar_url": "https://avatars.githubusercontent.com/u/64135631?v=4", "gravatar_id": "", "url": "https://api.github.com/users/brnaba-aws", "html_url": "https://github.com/brnaba-aws", "followers_url": "https://api.github.com/users/brnaba-aws/followers", "following_url": "https://api.github.com/users/brnaba-aws/following{/other_user}", "gists_url": "https://api.github.com/users/brnaba-aws/gists{/gist_id}", "starred_url": "https://api.github.com/users/brnaba-aws/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/brnaba-aws/subscriptions", "organizations_url": "https://api.github.com/users/brnaba-aws/orgs", "repos_url": "https://api.github.com/users/brnaba-aws/repos", "events_url": "https://api.github.com/users/brnaba-aws/events{/privacy}", "received_events_url": "https://api.github.com/users/brnaba-aws/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": 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
1
2024-01-03T14:29:38
2024-01-03T14:32:03
null
NONE
null
### Feature request DynamoDBChatMessageHistory class is missing a TTL feature that would allow for history to automatically expire and be deleted by AWS DynamoDB service. ### Motivation While implementing a chat history using DynamoDBChatMessageHistory, I encoutered a growing history session table. Since AWS DynamoDB supports automatic deletion of items using TTL, it would be nice to have this feature enabled in DynamoDBChatMessageHistory class when writing message into AWS DynamoDB table. ### Your contribution I am currently in the process of submitting a PR related to this feature request.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15477/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15477/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15476
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15476/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15476/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15476/events
https://github.com/langchain-ai/langchain/issues/15476
2,064,094,863
I_kwDOIPDwls57B5aP
15,476
Issue: Large database schema too big for context window using SQLDatabaseChain
{ "login": "desafinadude", "id": 17060851, "node_id": "MDQ6VXNlcjE3MDYwODUx", "avatar_url": "https://avatars.githubusercontent.com/u/17060851?v=4", "gravatar_id": "", "url": "https://api.github.com/users/desafinadude", "html_url": "https://github.com/desafinadude", "followers_url": "https://api.github.com/users/desafinadude/followers", "following_url": "https://api.github.com/users/desafinadude/following{/other_user}", "gists_url": "https://api.github.com/users/desafinadude/gists{/gist_id}", "starred_url": "https://api.github.com/users/desafinadude/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/desafinadude/subscriptions", "organizations_url": "https://api.github.com/users/desafinadude/orgs", "repos_url": "https://api.github.com/users/desafinadude/repos", "events_url": "https://api.github.com/users/desafinadude/events{/privacy}", "received_events_url": "https://api.github.com/users/desafinadude/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
2024-01-03T14:05:12
2024-01-04T06:46:42
null
NONE
null
### Issue you'd like to raise. How do I use SQLDatabaseChain with a big db schema? I'm using: `db = SQLDatabase.from_uri(f"postgresql://localhost:5432/test") db_chain = SQLDatabaseChain(llm=llm, database=db, verbose=True) ` And all models complain about context window. A smaller database schema works with some models, but that's not my use case. My models _are_ big. Is there a tried and tested method for this? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15476/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15476/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15475
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15475/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15475/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15475/events
https://github.com/langchain-ai/langchain/issues/15475
2,064,012,239
I_kwDOIPDwls57BlPP
15,475
Using multiple templates as starter for LCEL
{ "login": "FrancescoSaverioZuppichini", "id": 15908060, "node_id": "MDQ6VXNlcjE1OTA4MDYw", "avatar_url": "https://avatars.githubusercontent.com/u/15908060?v=4", "gravatar_id": "", "url": "https://api.github.com/users/FrancescoSaverioZuppichini", "html_url": "https://github.com/FrancescoSaverioZuppichini", "followers_url": "https://api.github.com/users/FrancescoSaverioZuppichini/followers", "following_url": "https://api.github.com/users/FrancescoSaverioZuppichini/following{/other_user}", "gists_url": "https://api.github.com/users/FrancescoSaverioZuppichini/gists{/gist_id}", "starred_url": "https://api.github.com/users/FrancescoSaverioZuppichini/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/FrancescoSaverioZuppichini/subscriptions", "organizations_url": "https://api.github.com/users/FrancescoSaverioZuppichini/orgs", "repos_url": "https://api.github.com/users/FrancescoSaverioZuppichini/repos", "events_url": "https://api.github.com/users/FrancescoSaverioZuppichini/events{/privacy}", "received_events_url": "https://api.github.com/users/FrancescoSaverioZuppichini/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
2024-01-03T13:08:44
2024-01-03T13:10:55
null
NONE
null
### Issue with current documentation: Dear all, Happy new year! Due to work legacy stuff, I am still forced to use this library. I am wondering if there is a way to pass multiple prompt template (system, human and ai) instead of just one Hopefully my man Dosubot can help! Thanks you so much Cheers, Fra ### Idea or request for content: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15475/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/15475/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15474
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15474/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15474/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15474/events
https://github.com/langchain-ai/langchain/issues/15474
2,063,844,827
I_kwDOIPDwls57A8Xb
15,474
Issue: Issue while implementing RAG with Gemini LLM
{ "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": 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
2024-01-03T11:35:01
2024-01-17T12:01:00
null
NONE
null
### Issue you'd like to raise. `document_variable_name="\n\n---\n\n".join([doc.page_content for doc in result["source_documents"]]) model = ChatGoogleGenerativeAI(model="gemini-pro",google_api_key=GOOGLE_API_KEY,temperature=0.2,convert_system_message_to_human=True) template = f"""Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer. Keep the answer as concise as possible. Always say "thanks for asking!" at the end of the answer. {context} Question: {question} Helpful Answer:""" QA_CHAIN_PROMPT = PromptTemplate( input_variables=["document_variable_name","question"], template=template, ) print(QA_CHAIN_PROMPT) qa_chain = RetrievalQA.from_chain_type( llm=model, retriever=vector_index, return_source_documents=True, chain_type="stuff", document_variable_name=context, chain_type_kwargs={"prompt": QA_CHAIN_PROMPT} )` below is the error I am getting: ValidationError: 1 validation error for StuffDocumentsChain __root__ document_variable_name context was not found in llm_chain input_variables: [] (type=value_error) ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15474/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15474/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15473
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15473/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15473/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15473/events
https://github.com/langchain-ai/langchain/pull/15473
2,063,838,648
PR_kwDOIPDwls5jIMWZ
15,473
Feat: support unstructured_kwargs for s3 loader
{ "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": 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": 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" }, { "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." } ]
open
false
null
[]
null
1
2024-01-03T11:31:43
2024-01-15T19:49:38
null
CONTRIBUTOR
null
fix https://github.com/langchain-ai/langchain/issues/15472
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15473/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15473/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15473", "html_url": "https://github.com/langchain-ai/langchain/pull/15473", "diff_url": "https://github.com/langchain-ai/langchain/pull/15473.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15473.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15472
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15472/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15472/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15472/events
https://github.com/langchain-ai/langchain/issues/15472
2,063,787,050
I_kwDOIPDwls57AuQq
15,472
S3FileLoader doesn't provide the way of passing extra (unstructured_kwargs) parameters
{ "login": "tivaliy", "id": 12431595, "node_id": "MDQ6VXNlcjEyNDMxNTk1", "avatar_url": "https://avatars.githubusercontent.com/u/12431595?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tivaliy", "html_url": "https://github.com/tivaliy", "followers_url": "https://api.github.com/users/tivaliy/followers", "following_url": "https://api.github.com/users/tivaliy/following{/other_user}", "gists_url": "https://api.github.com/users/tivaliy/gists{/gist_id}", "starred_url": "https://api.github.com/users/tivaliy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tivaliy/subscriptions", "organizations_url": "https://api.github.com/users/tivaliy/orgs", "repos_url": "https://api.github.com/users/tivaliy/repos", "events_url": "https://api.github.com/users/tivaliy/events{/privacy}", "received_events_url": "https://api.github.com/users/tivaliy/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": 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
1
2024-01-03T11:04:15
2024-01-03T11:06:38
null
NONE
null
### System Info python 3.11 langchain==0.0.350 ### 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 - [ ] Output Parsers - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction This is the current implementation of the `S3FileLoader` class (https://github.com/langchain-ai/langchain/blob/baeac23/libs/community/langchain_community/document_loaders/s3_file.py#L13-L30): ``` class S3FileLoader(UnstructuredBaseLoader): """Load from `Amazon AWS S3` file.""" def __init__( self, bucket: str, key: str, *, region_name: Optional[str] = None, api_version: Optional[str] = None, use_ssl: Optional[bool] = True, verify: Union[str, bool, None] = None, endpoint_url: Optional[str] = None, aws_access_key_id: Optional[str] = None, aws_secret_access_key: Optional[str] = None, aws_session_token: Optional[str] = None, boto_config: Optional[botocore.client.Config] = None, ): ... ``` Existing `__init__()` method and current implementation of this class doesn't support extra arguments `unstructured_kwargs`. So there is no way to manage `partition` call through these extra arguments (https://github.com/langchain-ai/langchain/blob/baeac23/libs/community/langchain_community/document_loaders/s3_file.py#L126). ### Expected behavior The implementation of `S3FileLoader` class should follow common approach used for all ancestors of `UnstructuredBaseLoader` which support passing through extra `**unstructured_kwargs` arguments to manage `partition` call in a more granular way.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15472/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15472/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15471
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15471/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15471/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15471/events
https://github.com/langchain-ai/langchain/issues/15471
2,063,750,924
I_kwDOIPDwls57AlcM
15,471
in libs/langchain/langchain/text_splitter.py comments before class/function will be splitter from class/function itself
{ "login": "idavidov", "id": 4638130, "node_id": "MDQ6VXNlcjQ2MzgxMzA=", "avatar_url": "https://avatars.githubusercontent.com/u/4638130?v=4", "gravatar_id": "", "url": "https://api.github.com/users/idavidov", "html_url": "https://github.com/idavidov", "followers_url": "https://api.github.com/users/idavidov/followers", "following_url": "https://api.github.com/users/idavidov/following{/other_user}", "gists_url": "https://api.github.com/users/idavidov/gists{/gist_id}", "starred_url": "https://api.github.com/users/idavidov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/idavidov/subscriptions", "organizations_url": "https://api.github.com/users/idavidov/orgs", "repos_url": "https://api.github.com/users/idavidov/repos", "events_url": "https://api.github.com/users/idavidov/events{/privacy}", "received_events_url": "https://api.github.com/users/idavidov/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" } ]
open
false
null
[]
null
3
2024-01-03T10:45:00
2024-01-03T10:56:46
null
NONE
null
### Feature request Hello The best practice is using comments inside the class/function, however, comments/TODOs have been placed before in many cases, Splitting it from the class/function hides some free text that can help understand the purpose and intention of class/function and may cause misinterpreted code blocks before attaching text unrelated to this block. more visual: ``` import module #TODO fix bug described in JIRA-WL313, wrong calculation in corner case class1(): pass #TODO make classes great again,by adding better parsing class2(): pass ``` chunks would be chunk1 ``` import module #TODO fix bug ``` chunk2 ``` def class1(): pass #TODO make class great again one day ``` chunk3 ``` def class2(): pass ``` I suggest making the split aware of such a possibility. Best regards Ilya ### Motivation enrich code chunks by attaching relevant information to right chunks even if someone not follow best practice ### Your contribution i would be happy to submit PR in case you guys think it will improve langchain which I absolutely love
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15471/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15471/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15470
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15470/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15470/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15470/events
https://github.com/langchain-ai/langchain/pull/15470
2,063,659,208
PR_kwDOIPDwls5jHj-H
15,470
Docs: fix excel document loader typo
{ "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": 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": 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
2024-01-03T09:58:54
2024-01-07T17:33:35
2024-01-07T17:33:35
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15470/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15470/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15470", "html_url": "https://github.com/langchain-ai/langchain/pull/15470", "diff_url": "https://github.com/langchain-ai/langchain/pull/15470.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15470.patch", "merged_at": "2024-01-07T17:33:35" }
https://api.github.com/repos/langchain-ai/langchain/issues/15469
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15469/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15469/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15469/events
https://github.com/langchain-ai/langchain/issues/15469
2,063,656,337
I_kwDOIPDwls57AOWR
15,469
Support CHM files
{ "login": "DarkFox", "id": 28210, "node_id": "MDQ6VXNlcjI4MjEw", "avatar_url": "https://avatars.githubusercontent.com/u/28210?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DarkFox", "html_url": "https://github.com/DarkFox", "followers_url": "https://api.github.com/users/DarkFox/followers", "following_url": "https://api.github.com/users/DarkFox/following{/other_user}", "gists_url": "https://api.github.com/users/DarkFox/gists{/gist_id}", "starred_url": "https://api.github.com/users/DarkFox/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DarkFox/subscriptions", "organizations_url": "https://api.github.com/users/DarkFox/orgs", "repos_url": "https://api.github.com/users/DarkFox/repos", "events_url": "https://api.github.com/users/DarkFox/events{/privacy}", "received_events_url": "https://api.github.com/users/DarkFox/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" } ]
closed
false
null
[]
null
2
2024-01-03T09:57:30
2024-01-07T17:28:54
2024-01-07T17:28:54
NONE
null
### Feature request Add document loader for CHM (Microsoft Compiled HTML Help) documents, possibly using pychm. ### Motivation A lot of Windows applications provide documentation in the form of CHM files. Being able to directly load those into the language model, would greatly simplify the workflow of ingesting documentation. ### Your contribution At this time, I'm unable to provide help with writing the loader.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15469/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15469/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15468
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15468/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15468/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15468/events
https://github.com/langchain-ai/langchain/pull/15468
2,063,638,165
PR_kwDOIPDwls5jHfNi
15,468
Patch: improve openai.ChatCompletion getter
{ "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": 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." } ]
open
false
null
[]
null
1
2024-01-03T09:47:56
2024-01-03T09:50:37
null
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15468/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15468/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15468", "html_url": "https://github.com/langchain-ai/langchain/pull/15468", "diff_url": "https://github.com/langchain-ai/langchain/pull/15468.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15468.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15467
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15467/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15467/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15467/events
https://github.com/langchain-ai/langchain/issues/15467
2,063,619,530
I_kwDOIPDwls57AFXK
15,467
Issue: How to customize prompt
{ "login": "pydaxing", "id": 129026999, "node_id": "U_kgDOB7DLtw", "avatar_url": "https://avatars.githubusercontent.com/u/129026999?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pydaxing", "html_url": "https://github.com/pydaxing", "followers_url": "https://api.github.com/users/pydaxing/followers", "following_url": "https://api.github.com/users/pydaxing/following{/other_user}", "gists_url": "https://api.github.com/users/pydaxing/gists{/gist_id}", "starred_url": "https://api.github.com/users/pydaxing/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pydaxing/subscriptions", "organizations_url": "https://api.github.com/users/pydaxing/orgs", "repos_url": "https://api.github.com/users/pydaxing/repos", "events_url": "https://api.github.com/users/pydaxing/events{/privacy}", "received_events_url": "https://api.github.com/users/pydaxing/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
3
2024-01-03T09:38:42
2024-01-03T09:51:49
null
NONE
null
### Issue you'd like to raise. The following is the code I ran, referring to the official documentation. It looks like prompt_template is not effective and there is no explicit call of prompt_template in the code. How should I customize a prompt for initialize_agent. ```python prompt_template = """ Translate the sentence into English {input} """ prompt_template = PromptTemplate.from_template(prompt_template) llm = AzureOpenAI( model_name="gpt-4", engine="gpt-4" ) @tool def get_word_length(word): """get the length of a word""" return len(word) tools = [get_word_length] agent = initialize_agent( tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True, prompt = prompt_template ) answer = agent.run("今天天气怎么样") ``` The output is ``` > Entering new AgentExecutor chain... This is a Chinese language query asking about the weather today. I don't have access to real-time weather data and besides, my provided actions are limited to getting the length of a word. Final Answer: I'm sorry, I cannot answer that question. ``` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15467/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15467/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15466
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15466/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15466/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15466/events
https://github.com/langchain-ai/langchain/issues/15466
2,063,615,767
I_kwDOIPDwls57AEcX
15,466
Issue:While implementing Gemini, getting error while using prompt template
{ "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": 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": 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
2
2024-01-03T09:36:43
2024-01-03T10:32:51
null
NONE
null
### Issue you'd like to raise. below is my code `context_text="\n\n---\n\n".join([doc.page_content for doc in result["source_documents"]]) print(context_text,"======================") question = "Describe the Multi-head attention layer in detail?" embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001",google_api_key=GOOGLE_API_KEY) vector_index = Chroma.from_texts(texts, embeddings).as_retriever(search_kwargs={"k":5}) template = f"""Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer. Keep the answer as concise as possible. Always say "thanks for asking!" at the end of the answer. {context_text} Question: {question} Helpful Answer:""" QA_CHAIN_PROMPT = PromptTemplate.from_template(template)# Run chain qa_chain = RetrievalQA.from_chain_type( model, retriever=vector_index, return_source_documents=True, chain_type_kwargs={"prompt": QA_CHAIN_PROMPT, "document_variable_name": "source_documents"} )` below is the error I am getting ValidationError Traceback (most recent call last) [<ipython-input-99-f9533899bc31>](https://localhost:8080/#) in <cell line: 9>() 7 Helpful Answer:""" 8 QA_CHAIN_PROMPT = PromptTemplate.from_template(template)# Run chain ----> 9 qa_chain = RetrievalQA.from_chain_type( 10 model, 11 retriever=vector_index, 4 frames /usr/local/lib/python3.10/dist-packages/pydantic/main.cpython-310-x86_64-linux-gnu.so in pydantic.main.BaseModel.__init__() ValidationError: 1 validation error for StuffDocumentsChain __root__ document_variable_name source_documents was not found in llm_chain input_variables: [] (type=value_error) ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15466/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15466/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15465
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15465/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15465/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15465/events
https://github.com/langchain-ai/langchain/issues/15465
2,063,613,427
I_kwDOIPDwls57AD3z
15,465
"Multiple top-level packages discovered in a flat-layout" when installing from source
{ "login": "Frank995", "id": 47689966, "node_id": "MDQ6VXNlcjQ3Njg5OTY2", "avatar_url": "https://avatars.githubusercontent.com/u/47689966?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Frank995", "html_url": "https://github.com/Frank995", "followers_url": "https://api.github.com/users/Frank995/followers", "following_url": "https://api.github.com/users/Frank995/following{/other_user}", "gists_url": "https://api.github.com/users/Frank995/gists{/gist_id}", "starred_url": "https://api.github.com/users/Frank995/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Frank995/subscriptions", "organizations_url": "https://api.github.com/users/Frank995/orgs", "repos_url": "https://api.github.com/users/Frank995/repos", "events_url": "https://api.github.com/users/Frank995/events{/privacy}", "received_events_url": "https://api.github.com/users/Frank995/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
2
2024-01-03T09:35:31
2024-01-03T09:37:30
2024-01-03T09:37:13
CONTRIBUTOR
null
### System Info Mint 20.3 Python 3.11 Conda 23.9 Pip 23.3.2 Setuptools 69.0.3 ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Clone github repo CD into that folder Activate conda env Run `pip install -e .` ### Expected behavior Langchain should be installed from source, but it doesn't
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15465/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/15465/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15464
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15464/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15464/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15464/events
https://github.com/langchain-ai/langchain/pull/15464
2,063,590,614
PR_kwDOIPDwls5jHUcg
15,464
Refactor: use SecretStr for zapier tool
{ "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": 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": 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." } ]
open
false
null
[]
null
1
2024-01-03T09:23:54
2024-01-15T19:51:11
null
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15464/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15464/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15464", "html_url": "https://github.com/langchain-ai/langchain/pull/15464", "diff_url": "https://github.com/langchain-ai/langchain/pull/15464.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15464.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15463
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15463/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15463/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15463/events
https://github.com/langchain-ai/langchain/pull/15463
2,063,571,112
PR_kwDOIPDwls5jHQHW
15,463
Refactor: use SecretStr for yandex embedding
{ "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": 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": 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." } ]
open
false
null
[]
null
1
2024-01-03T09:13:42
2024-01-03T09:15:34
null
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15463/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15463/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15463", "html_url": "https://github.com/langchain-ai/langchain/pull/15463", "diff_url": "https://github.com/langchain-ai/langchain/pull/15463.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15463.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15462
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15462/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15462/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15462/events
https://github.com/langchain-ai/langchain/pull/15462
2,063,531,700
PR_kwDOIPDwls5jHHOe
15,462
[Improvement] File_Tools added
{ "login": "itsritiksingh", "id": 44609236, "node_id": "MDQ6VXNlcjQ0NjA5MjM2", "avatar_url": "https://avatars.githubusercontent.com/u/44609236?v=4", "gravatar_id": "", "url": "https://api.github.com/users/itsritiksingh", "html_url": "https://github.com/itsritiksingh", "followers_url": "https://api.github.com/users/itsritiksingh/followers", "following_url": "https://api.github.com/users/itsritiksingh/following{/other_user}", "gists_url": "https://api.github.com/users/itsritiksingh/gists{/gist_id}", "starred_url": "https://api.github.com/users/itsritiksingh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/itsritiksingh/subscriptions", "organizations_url": "https://api.github.com/users/itsritiksingh/orgs", "repos_url": "https://api.github.com/users/itsritiksingh/repos", "events_url": "https://api.github.com/users/itsritiksingh/events{/privacy}", "received_events_url": "https://api.github.com/users/itsritiksingh/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": 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
2024-01-03T08:53:00
2024-01-10T18:12:08
2024-01-10T18:12:04
NONE
null
now you can provice selected_tools like below. ``` from langchain_community.agent_toolkits.file_management.toolkit import File_Tools, FileManagementToolkit toolkit = FileManagementToolkit(root_dir=clone_path,selected_tools=[File_Tools.write_file,File_Tools.list_dir]) tools = toolkit.get_tools() ``` <!-- 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/15462/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15462/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15462", "html_url": "https://github.com/langchain-ai/langchain/pull/15462", "diff_url": "https://github.com/langchain-ai/langchain/pull/15462.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15462.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15461
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15461/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15461/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15461/events
https://github.com/langchain-ai/langchain/pull/15461
2,063,528,202
PR_kwDOIPDwls5jHGcL
15,461
Community: Support different Pinecone initializations depending on the version
{ "login": "DosticJelena", "id": 49482144, "node_id": "MDQ6VXNlcjQ5NDgyMTQ0", "avatar_url": "https://avatars.githubusercontent.com/u/49482144?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DosticJelena", "html_url": "https://github.com/DosticJelena", "followers_url": "https://api.github.com/users/DosticJelena/followers", "following_url": "https://api.github.com/users/DosticJelena/following{/other_user}", "gists_url": "https://api.github.com/users/DosticJelena/gists{/gist_id}", "starred_url": "https://api.github.com/users/DosticJelena/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DosticJelena/subscriptions", "organizations_url": "https://api.github.com/users/DosticJelena/orgs", "repos_url": "https://api.github.com/users/DosticJelena/repos", "events_url": "https://api.github.com/users/DosticJelena/events{/privacy}", "received_events_url": "https://api.github.com/users/DosticJelena/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": 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" }, { "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": "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
2
2024-01-03T08:51:05
2024-01-08T19:18:09
2024-01-08T19:18:09
CONTRIBUTOR
null
**Description**: Adding support for different initialization implementations depending on the Pinecone client version. **Issue**: N/A **Dependencies**: N/A **Twitter handle**: N/A Tested by installing different versions of the Pinecone client and trying to create an index (both regular and serverless for the new version) from documents, and using the `Pinecone` vector store to query the index. The process ran smoothly and as expected in both cases.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15461/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15461/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15461", "html_url": "https://github.com/langchain-ai/langchain/pull/15461", "diff_url": "https://github.com/langchain-ai/langchain/pull/15461.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15461.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15460
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15460/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15460/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15460/events
https://github.com/langchain-ai/langchain/pull/15460
2,063,502,025
PR_kwDOIPDwls5jHAlj
15,460
Feat: add url support for UnstructuredHTMLLoader
{ "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": 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": 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." } ]
open
false
null
[]
null
1
2024-01-03T08:35:10
2024-01-15T19:54:24
null
CONTRIBUTOR
null
usage: ```python from langchain.document_loaders import UnstructuredHTMLLoader source_url = "https://www.sec.gov/ix?doc=/Archives/edgar/data/40987/000004098720000010/gpc-12312019x10k.htm" loader = UnstructuredHTMLLoader(source_url) documents = loader.load() print(documents) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15460/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15460/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15460", "html_url": "https://github.com/langchain-ai/langchain/pull/15460", "diff_url": "https://github.com/langchain-ai/langchain/pull/15460.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15460.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15459
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15459/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15459/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15459/events
https://github.com/langchain-ai/langchain/pull/15459
2,063,473,381
PR_kwDOIPDwls5jG6MJ
15,459
Fixed streaming support using callback handler for Google genai
{ "login": "hasansustcse13", "id": 94289705, "node_id": "U_kgDOBZ6_KQ", "avatar_url": "https://avatars.githubusercontent.com/u/94289705?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hasansustcse13", "html_url": "https://github.com/hasansustcse13", "followers_url": "https://api.github.com/users/hasansustcse13/followers", "following_url": "https://api.github.com/users/hasansustcse13/following{/other_user}", "gists_url": "https://api.github.com/users/hasansustcse13/gists{/gist_id}", "starred_url": "https://api.github.com/users/hasansustcse13/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hasansustcse13/subscriptions", "organizations_url": "https://api.github.com/users/hasansustcse13/orgs", "repos_url": "https://api.github.com/users/hasansustcse13/repos", "events_url": "https://api.github.com/users/hasansustcse13/events{/privacy}", "received_events_url": "https://api.github.com/users/hasansustcse13/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": 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." }, { "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
4
2024-01-03T08:17:51
2024-01-07T07:53:57
2024-01-07T03:16:30
NONE
null
- **Description:** Fixed streaming support using callback handler for Google genai. Callback handler not working with the `ChatGoogleGenerativeAI` which has been fixed in this PR. - **Issue:** #14709 #15006
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15459/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15459/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15459", "html_url": "https://github.com/langchain-ai/langchain/pull/15459", "diff_url": "https://github.com/langchain-ai/langchain/pull/15459.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15459.patch", "merged_at": null }