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/15674
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15674/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15674/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15674/events
https://github.com/langchain-ai/langchain/issues/15674
2,069,592,782
I_kwDOIPDwls57W3rO
15,674
class `AzureChatOpenAI` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use langchain_openai.AzureChatOpenAI instead.
{ "login": "3051360", "id": 131248521, "node_id": "U_kgDOB9KxiQ", "avatar_url": "https://avatars.githubusercontent.com/u/131248521?v=4", "gravatar_id": "", "url": "https://api.github.com/users/3051360", "html_url": "https://github.com/3051360", "followers_url": "https://api.github.com/users/3051360/followers", "following_url": "https://api.github.com/users/3051360/following{/other_user}", "gists_url": "https://api.github.com/users/3051360/gists{/gist_id}", "starred_url": "https://api.github.com/users/3051360/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/3051360/subscriptions", "organizations_url": "https://api.github.com/users/3051360/orgs", "repos_url": "https://api.github.com/users/3051360/repos", "events_url": "https://api.github.com/users/3051360/events{/privacy}", "received_events_url": "https://api.github.com/users/3051360/received_events", "type": "User", "site_admin": false }
[ { "id": 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" } ]
open
false
null
[]
null
2
2024-01-08T03:59:37
2024-01-09T18:10:24
null
NONE
null
### Issue with current documentation: I created an app using AzureOpenAI, and initially, the import statement worked fine: ``` from langchain.chat_models import AzureChatOpenAI ``` My original version details were: ``` langchain==0.0.352 langchain-community==0.0.6 langchain-core==0.1.3 openai==1.6.1 ``` Later, I upgraded to: ``` langchain==0.0.354 langchain-community==0.0.9 langchain-core==0.1.7 langchain-experimental==0.0.47 langchain-openai==0.0.2 openai==1.6.1 ``` The upgrade led to a deprecation warning for `AzureChatOpenAI`. The suggestion was to use `langchain_openai.AzureChatOpenAI`, but trying to import it gave a `ModuleNotFoundError`. After some trial and error, I found that installing `langchain_openai` separately fixed the issue. Now, I can import `AzureOpenAI`, `AzureOpenAIEmbeddings`, and `AzureChatOpenAI`. ### Idea or request for content: Despite my research, I couldn't find documentation mentioning the need to install `langchain_openai` separately, which wasted a lot of time and created unnecessary confusion. Sharing this issue here, hope it helps others facing a similar problem. Please add this to the documentation
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15674/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/15674/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15673
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15673/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15673/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15673/events
https://github.com/langchain-ai/langchain/issues/15673
2,069,572,435
I_kwDOIPDwls57WytT
15,673
Support for ConversationalRetrievalChain with Azure Cognitive Search as retriever and Azure Open AI as LLM for Streaming Output
{ "login": "suraj143rosy", "id": 26004959, "node_id": "MDQ6VXNlcjI2MDA0OTU5", "avatar_url": "https://avatars.githubusercontent.com/u/26004959?v=4", "gravatar_id": "", "url": "https://api.github.com/users/suraj143rosy", "html_url": "https://github.com/suraj143rosy", "followers_url": "https://api.github.com/users/suraj143rosy/followers", "following_url": "https://api.github.com/users/suraj143rosy/following{/other_user}", "gists_url": "https://api.github.com/users/suraj143rosy/gists{/gist_id}", "starred_url": "https://api.github.com/users/suraj143rosy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/suraj143rosy/subscriptions", "organizations_url": "https://api.github.com/users/suraj143rosy/orgs", "repos_url": "https://api.github.com/users/suraj143rosy/repos", "events_url": "https://api.github.com/users/suraj143rosy/events{/privacy}", "received_events_url": "https://api.github.com/users/suraj143rosy/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-08T03:42:19
2024-01-08T03:56:14
null
NONE
null
### Feature request Hi, I am trying to use ConversationalRetrievalChain with Azure Cognitive Search as retriever with streaming capabilities enabled. The code is not providing the output in a streaming manner. I would like to know if there is any such feature which is supported using Langchain combining Azure Cognitive Search with LLM. The code snippet I used is as below. # Code Snippet def search_docs_chain_with_memory_streaming( search_index_name=os.getenv("AZURE_COGNITIVE_SEARCH_INDEX_NAME"), question_list=[], answer_list=[], ): code = detect(question) language_name = map_language_code_to_name(code) embeddings = OpenAIEmbeddings( deployment=oaienvs.OPENAI_EMBEDDING_DEPLOYMENT_NAME, model=oaienvs.OPENAI_EMBEDDING_MODEL_NAME, openai_api_base=os.environ["OPENAI_API_BASE"], openai_api_type=os.environ["OPENAI_API_TYPE"], ) memory = ConversationBufferMemory(memory_key="chat_history", output_key="answer") acs = AzureSearch( azure_search_endpoint=os.getenv("AZURE_SEARCH_SERVICE_ENDPOINT"), azure_search_key=os.getenv("AZURE_COGNITIVE_SEARCH_API_KEY"), index_name=search_index_name, search_type="similarity", semantic_configuration_name="default", embedding_function=embeddings.embed_query, ) retriever = acs.as_retriever() retriever.search_kwargs = {"score_threshold": 0.8} # {'k':1} print("language_name-----", language_name) hcp_conv_template = ( get_prompt(workflows, "retrievalchain_hcp_conv_template1", "system_prompt", "v0") + language_name + get_prompt(workflows, "retrievalchain_hcp_conv_template2", "system_prompt", "v0") ) CONDENSE_QUESTION_PROMPT = get_prompt(workflows, "retrievalchain_condense_question_prompt", "system_prompt", "v0") prompt = PromptTemplate( input_variables=["question"], template=CONDENSE_QUESTION_PROMPT ) SYSTEM_MSG2 = get_prompt(workflows, "retrievalchain_system_msg_template", "system_prompt", "v0") messages = [ SystemMessagePromptTemplate.from_template(SYSTEM_MSG2), HumanMessagePromptTemplate.from_template(hcp_conv_template), ] qa_prompt = ChatPromptTemplate.from_messages(messages) llm = AzureChatOpenAI( deployment_name=oaienvs.OPENAI_CHAT_MODEL_DEPLOYMENT_NAME, temperature=0.7, max_retries=4, #callbacks=[streaming_cb], streaming=True #callback_manager=CallbackManager([MyCustomHandler()]) ) qa_chain = ConversationalRetrievalChain.from_llm( llm=llm, retriever=retriever, get_chat_history=lambda o: o, memory=memory, condense_question_prompt=prompt, return_source_documents=True, verbose=True, #callback_manager=convo_cb_manager, #condense_question_llm = llm_condense_ques, combine_docs_chain_kwargs={"prompt": qa_prompt}, ) if len(question_list) == 0: question = question + ". Give the answer only in " + language_name + "." for i in range(len(question_list)): qa_chain.memory.save_context( inputs={"question": question_list[i]}, outputs={"answer": answer_list[i]} ) #return qa_chain.stream({"question": question, "chat_history": []}) return qa_chain Also I have tried different callback handlers and invoke methods as mentioned in https://gist.github.com/jvelezmagic/03ddf4c452d011aae36b2a0f73d72f68 Kindly suggest if there is any workaround to it. ### Motivation The motivation is to stream the LLM response using Langchain and Azure Cognitive Search for RAG usecase. ### Your contribution I have attached the code and the support links in the description.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15673/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15673/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15672
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15672/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15672/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15672/events
https://github.com/langchain-ai/langchain/issues/15672
2,069,449,221
I_kwDOIPDwls57WUoF
15,672
How to manager the new Variables:TypeError: unsupported operand type(s) for |: 'dict' and 'str'
{ "login": "xiechengmude", "id": 128944251, "node_id": "U_kgDOB6-Iew", "avatar_url": "https://avatars.githubusercontent.com/u/128944251?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xiechengmude", "html_url": "https://github.com/xiechengmude", "followers_url": "https://api.github.com/users/xiechengmude/followers", "following_url": "https://api.github.com/users/xiechengmude/following{/other_user}", "gists_url": "https://api.github.com/users/xiechengmude/gists{/gist_id}", "starred_url": "https://api.github.com/users/xiechengmude/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xiechengmude/subscriptions", "organizations_url": "https://api.github.com/users/xiechengmude/orgs", "repos_url": "https://api.github.com/users/xiechengmude/repos", "events_url": "https://api.github.com/users/xiechengmude/events{/privacy}", "received_events_url": "https://api.github.com/users/xiechengmude/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": 5955630415, "node_id": "LA_kwDOIPDwls8AAAABYvu1Tw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis", "name": "integration: redis", "color": "F9D0C4", "default": false, "description": "Any integration that uses Redis" } ]
open
false
null
[]
null
5
2024-01-08T01:57:00
2024-01-08T04:11:17
null
NONE
null
### Issue you'd like to raise. ![image](https://github.com/langchain-ai/langchain/assets/128944251/481c0c04-9cd2-4339-81eb-2b10e369c637) ![image](https://github.com/langchain-ai/langchain/assets/128944251/443caac6-ba56-4052-a465-2744841067bb) When I deploy the server then it report the error like the above. How can I fix it ? Thank you ! Heres my code: ` PROMPT_TEST = """Answer the question based only on the following context: Based on the previous {history} Question: {question} Following: {affection} Totally,You could select one of the above strategy of mix one. {format_instructions} """` `chain_with_history_stream = RunnableWithMessageHistory( { "question": itemgetter("question"), "affection": RunnablePassthrough() } | PROMPT_TEST | llm, lambda session_id: MyRedisChatMessageHistory(session_id, url=REDIS_URL), input_messages_key="question", history_messages_key="history", verbose=True, max_message_history=30, )` ##Error feedback: `Traceback (most recent call last): File "<string>", line 1, in <module> File "/root/miniconda3/envs/xdan-chat/lib/python3.10/multiprocessing/spawn.py", line 116, in spawn_main exitcode = _main(fd, parent_sentinel) File "/root/miniconda3/envs/xdan-chat/lib/python3.10/multiprocessing/spawn.py", line 125, in _main prepare(preparation_data) File "/root/miniconda3/envs/xdan-chat/lib/python3.10/multiprocessing/spawn.py", line 236, in prepare _fixup_main_from_path(data['init_main_from_path']) File "/root/miniconda3/envs/xdan-chat/lib/python3.10/multiprocessing/spawn.py", line 287, in _fixup_main_from_path main_content = runpy.run_path(main_path, File "/root/miniconda3/envs/xdan-chat/lib/python3.10/runpy.py", line 289, in run_path return _run_module_code(code, init_globals, run_name, File "/root/miniconda3/envs/xdan-chat/lib/python3.10/runpy.py", line 96, in _run_module_code _run_code(code, mod_globals, init_globals, File "/root/miniconda3/envs/xdan-chat/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/workspace/xDAN-Dreamy-Chat/app/server.py", line 254, in <module> { TypeError: unsupported operand type(s) for |: 'dict' and 'str'` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15672/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15672/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15671
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15671/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15671/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15671/events
https://github.com/langchain-ai/langchain/issues/15671
2,069,437,208
I_kwDOIPDwls57WRsY
15,671
ImportError: cannot import name '_is_openai_v1'
{ "login": "kbatbouta", "id": 6241020, "node_id": "MDQ6VXNlcjYyNDEwMjA=", "avatar_url": "https://avatars.githubusercontent.com/u/6241020?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kbatbouta", "html_url": "https://github.com/kbatbouta", "followers_url": "https://api.github.com/users/kbatbouta/followers", "following_url": "https://api.github.com/users/kbatbouta/following{/other_user}", "gists_url": "https://api.github.com/users/kbatbouta/gists{/gist_id}", "starred_url": "https://api.github.com/users/kbatbouta/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kbatbouta/subscriptions", "organizations_url": "https://api.github.com/users/kbatbouta/orgs", "repos_url": "https://api.github.com/users/kbatbouta/repos", "events_url": "https://api.github.com/users/kbatbouta/events{/privacy}", "received_events_url": "https://api.github.com/users/kbatbouta/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": 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
3
2024-01-08T01:46:22
2024-01-08T15:49:42
2024-01-08T15:49:42
NONE
null
### System Info Hi, I am encountering this error when trying to import anything from the `langchain.embeddings` on Amazon linux AMI with python 3.9 and `langchain==0.0.350` ```python Traceback (most recent call last): File "/home/ec2-user/app/search/./app.py", line 9, in <module> from search import make_chain, postprocess File "/home/ec2-user/app/search/search.py", line 6, in <module> from langchain.embeddings import HuggingFaceInstructEmbeddings File "/home/ec2-user/.local/lib/python3.9/site-packages/langchain/embeddings/__init__.py", line 62, in <module> from langchain.embeddings.openai import OpenAIEmbeddings File "/home/ec2-user/.local/lib/python3.9/site-packages/langchain/embeddings/openai.py", line 1, in <module> from langchain_community.embeddings.openai import ( ImportError: cannot import name '_is_openai_v1' from 'langchain_community.embeddings.openai' (/home/ec2-user/.local/lib/python3.9/site-packages/langchain_community/embeddings/openai.py) ``` The error currently occurs when calling ```python from langchain.embeddings import HuggingFaceInstructEmbeddings ``` My requirements.txt file looks like this: ``` fastapi==0.105.0 lancedb==0.3.4 langchain==0.0.350 langserve==0.0.36 numpy==1.26.2 pandas==2.1.4 Requests==2.31.0 uvicorn==0.24.0.post1 ``` I should note that I've tried reinstalling langchain, openai and transfomers. I've also tried python 3.10 and got the same error. I should also note that none of my modules are called openai. ### Who can help? _No response_ ### 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 Call `from langchain.embeddings import HuggingFaceInstructEmbeddings` or any of the embeddings modules ### Expected behavior Should be able to import without errors.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15671/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15671/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15670
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15670/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15670/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15670/events
https://github.com/langchain-ai/langchain/issues/15670
2,069,393,611
I_kwDOIPDwls57WHDL
15,670
multiple ResponseSchema
{ "login": "mhyeonsoo", "id": 32179857, "node_id": "MDQ6VXNlcjMyMTc5ODU3", "avatar_url": "https://avatars.githubusercontent.com/u/32179857?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mhyeonsoo", "html_url": "https://github.com/mhyeonsoo", "followers_url": "https://api.github.com/users/mhyeonsoo/followers", "following_url": "https://api.github.com/users/mhyeonsoo/following{/other_user}", "gists_url": "https://api.github.com/users/mhyeonsoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/mhyeonsoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mhyeonsoo/subscriptions", "organizations_url": "https://api.github.com/users/mhyeonsoo/orgs", "repos_url": "https://api.github.com/users/mhyeonsoo/repos", "events_url": "https://api.github.com/users/mhyeonsoo/events{/privacy}", "received_events_url": "https://api.github.com/users/mhyeonsoo/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
3
2024-01-08T01:02:36
2024-01-16T00:48:55
2024-01-16T00:48:55
NONE
null
### System Info google-cloud-aiplatform==1.35.0, langchain-0.0.354 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```python from langchain.output_parsers import ResponseSchema, StructuredOutputParser from langchain.prompts import PromptTemplate from langchain.llms import VertexAI import vertexai class bcolors: SERVER = '\033[92m' CLIENT = '\033[93m' ENDC = '\033[0m' source_response_schemas = [ ResponseSchema(name="answer", description="answer to the user's question"), ResponseSchema( name="source", description="source used to answer the user's question, should be a website.", ), ] found_response_schemas = [ ResponseSchema(name="answer", description="answer to the user's question"), ResponseSchema( name="found", description="whether the model could find the proper answers or not.", ), ] source_output_parser = StructuredOutputParser.from_response_schemas(source_response_schemas) found_output_parser = StructuredOutputParser.from_response_schemas(found_response_schemas) format_instructions = source_output_parser.get_format_instructions() found_checker = found_output_parser.get_format_instructions() prompt = PromptTemplate( template="answer the users question as best as possible.\n{found_cheker}\n{format_instructions}\n{question}", input_variables=["question"], partial_variables={"found_checker": found_checker, "format_instructions": format_instructions}, ) vertexai.init(project="my_project_id", location="us-central1") model = VertexAI(model_name='text-bison@001', max_output_tokens=512, temperature=0.2) chain = prompt | model | found_output_parser | source_output_parser while 1: message = input(bcolors.CLIENT + "Ask to the Cooking Assistant --->> " + bcolors.ENDC) for s in chain.stream({"question": message}): print(bcolors.SERVER + "<<<<<<< Cooking Assistant >>>>>>", str(s) + bcolors.ENDC) ``` this code returns the error saying, ``` KeyError: "Input to PromptTemplate is missing variable 'found_cheker'. Expected: ['found_cheker', 'question'] Received: ['question']" ``` ### Expected behavior I expect the model responses would be something like, ``` {'answer': 'proper answer', 'found': True, 'source': 'the source found.'} ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15670/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15670/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15669
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15669/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15669/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15669/events
https://github.com/langchain-ai/langchain/issues/15669
2,069,357,139
I_kwDOIPDwls57V-JT
15,669
Adding response_schemas to ChatPromptTemplate.from_messages prompt design
{ "login": "mhyeonsoo", "id": 32179857, "node_id": "MDQ6VXNlcjMyMTc5ODU3", "avatar_url": "https://avatars.githubusercontent.com/u/32179857?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mhyeonsoo", "html_url": "https://github.com/mhyeonsoo", "followers_url": "https://api.github.com/users/mhyeonsoo/followers", "following_url": "https://api.github.com/users/mhyeonsoo/following{/other_user}", "gists_url": "https://api.github.com/users/mhyeonsoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/mhyeonsoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mhyeonsoo/subscriptions", "organizations_url": "https://api.github.com/users/mhyeonsoo/orgs", "repos_url": "https://api.github.com/users/mhyeonsoo/repos", "events_url": "https://api.github.com/users/mhyeonsoo/events{/privacy}", "received_events_url": "https://api.github.com/users/mhyeonsoo/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2024-01-07T23:58:01
2024-01-08T00:59:54
2024-01-08T00:59:54
NONE
null
### System Info google-cloud-aiplatform==1.35.0, langchain-0.0.354 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```python response_schemas = [ ResponseSchema(name="answer", description="answer to the user's question"), ResponseSchema( name="found check", description="boolean value (True or False) whether the data found from the reference or not.", ), ] output_parser = StructuredOutputParser.from_response_schemas(response_schemas) format_instructions = output_parser.get_format_instructions() qa_prompt = PromptTemplate( input_variables=[ ("system", template), MessagesPlaceholder(variable_name="chat_history"), ("user", "{question}"), ], partial_variables={"format_instructions": format_instructions}, ) rag_chain = ( RunnablePassthrough.assign( context=contextualized_question | temp_retriever | format_docs ) | qa_prompt | llm | remove_prefix ) ``` ### Expected behavior I expect that I could use something like ChatPromptTemplate.from_messages and response_schemas at a same time to return specific value with the conversation history based prompting.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15669/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15669/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15668
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15668/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15668/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15668/events
https://github.com/langchain-ai/langchain/issues/15668
2,069,348,971
I_kwDOIPDwls57V8Jr
15,668
SelfQueryRetriever.from_llm raises following issue: ImportError: Cannot import lark, please install it with 'pip install lark'.
{ "login": "XariZaru", "id": 18338434, "node_id": "MDQ6VXNlcjE4MzM4NDM0", "avatar_url": "https://avatars.githubusercontent.com/u/18338434?v=4", "gravatar_id": "", "url": "https://api.github.com/users/XariZaru", "html_url": "https://github.com/XariZaru", "followers_url": "https://api.github.com/users/XariZaru/followers", "following_url": "https://api.github.com/users/XariZaru/following{/other_user}", "gists_url": "https://api.github.com/users/XariZaru/gists{/gist_id}", "starred_url": "https://api.github.com/users/XariZaru/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/XariZaru/subscriptions", "organizations_url": "https://api.github.com/users/XariZaru/orgs", "repos_url": "https://api.github.com/users/XariZaru/repos", "events_url": "https://api.github.com/users/XariZaru/events{/privacy}", "received_events_url": "https://api.github.com/users/XariZaru/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "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" } ]
closed
false
null
[]
null
6
2024-01-07T23:44:54
2024-01-08T09:44:32
2024-01-08T09:44:31
NONE
null
### System Info Langchain v0.0.354, Python v3.11, Chroma v0.4.22, Lark v1.1.8 ### Who can help? @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```python def load_self_query_retriever(persist_dir: str, docs: list, metadata_field_info: list, document_content_description = "Information about various documents, the date they are up to date with and where they were sourced from."): llm = ChatOpenAI(temperature=0) vectorstore = None try: vectorstore = Chroma(persist_directory=persist_dir, embedding_function=get_embedding_function()) except: vectorstore = Chroma.from_documents(docs, get_embedding_function(), persist_directory=persist_dir) return SelfQueryRetriever.from_llm( llm, vectorstore, document_content_description, metadata_field_info, ) metadata_field_info = [ AttributeInfo(name="source",description="The document this chunk is from.",type="string",), AttributeInfo(name="origin",description="The origin the document came from. Bancworks is the higher priority.",type="string",), AttributeInfo(name="date_day",description="The day the document was uploaded.",type="integer",), AttributeInfo(name="date_uploaded",description="The month year the document is current to.",type="integer",) ] self_query_retriever = load_self_query_retriever("storage/deploy/chroma-db-self-query", bancworks_docs, metadata_field_info) ``` The following error is thrown: ```python --------------------------------------------------------------------------- ImportError Traceback (most recent call last) Cell In[1], line 110 76 return SelfQueryRetriever.from_llm( 77 llm, 78 vectorstore, 79 document_content_description, 80 metadata_field_info, 81 ) 83 metadata_field_info = [ 84 AttributeInfo(name="source",description="The document this chunk is from.",type="string",), 85 AttributeInfo(name="origin",description="The origin the document came from. Comes from either scraped websites like TheKinection.org, Kinecta.org or database files like Bancworks. Bancworks is the higher priority.",type="string",), (...) 107 # ), 108 ] --> 110 self_query_retriever = load_self_query_retriever("storage/deploy/chroma-db-self-query", bancworks_docs, metadata_field_info) 113 # parent_retriever = load_parent_retriever("full_docs", "storage/deploy/chroma-db-parent") 114 115 # current_place = 0 (...) 127 # retriever.add_documents(bancworks_docs) 128 # retriever.add_documents(bancworks_docs) Cell In[1], line 76, in load_self_query_retriever(persist_dir, docs, metadata_field_info, document_content_description) 73 llm = ChatOpenAI(temperature=0) 74 vectorstore = Chroma.from_documents(docs, OpenAIEmbeddings(), persist_directory=persist_dir) ---> 76 return SelfQueryRetriever.from_llm( 77 llm, 78 vectorstore, 79 document_content_description, 80 metadata_field_info, 81 ) File /etc/system/kernel/.venv/lib64/python3.11/site-packages/langchain/retrievers/self_query/base.py:225, in SelfQueryRetriever.from_llm(cls, llm, vectorstore, document_contents, metadata_field_info, structured_query_translator, chain_kwargs, enable_limit, use_original_query, **kwargs) 218 if ( 219 "allowed_operators" not in chain_kwargs 220 and structured_query_translator.allowed_operators is not None 221 ): 222 chain_kwargs[ 223 "allowed_operators" 224 ] = structured_query_translator.allowed_operators --> 225 query_constructor = load_query_constructor_runnable( 226 llm, 227 document_contents, 228 metadata_field_info, 229 enable_limit=enable_limit, 230 **chain_kwargs, 231 ) 232 return cls( 233 query_constructor=query_constructor, 234 vectorstore=vectorstore, (...) 237 **kwargs, 238 ) File /etc/system/kernel/.venv/lib64/python3.11/site-packages/langchain/chains/query_constructor/base.py:357, in load_query_constructor_runnable(llm, document_contents, attribute_info, examples, allowed_comparators, allowed_operators, enable_limit, schema_prompt, fix_invalid, **kwargs) 353 for ainfo in attribute_info: 354 allowed_attributes.append( 355 ainfo.name if isinstance(ainfo, AttributeInfo) else ainfo["name"] 356 ) --> 357 output_parser = StructuredQueryOutputParser.from_components( 358 allowed_comparators=allowed_comparators, 359 allowed_operators=allowed_operators, 360 allowed_attributes=allowed_attributes, 361 fix_invalid=fix_invalid, 362 ) 363 return prompt | llm | output_parser File /etc/system/kernel/.venv/lib64/python3.11/site-packages/langchain/chains/query_constructor/base.py:99, in StructuredQueryOutputParser.from_components(cls, allowed_comparators, allowed_operators, allowed_attributes, fix_invalid) 96 return fixed 98 else: ---> 99 ast_parse = get_parser( 100 allowed_comparators=allowed_comparators, 101 allowed_operators=allowed_operators, 102 allowed_attributes=allowed_attributes, 103 ).parse 104 return cls(ast_parse=ast_parse) File /etc/system/kernel/.venv/lib64/python3.11/site-packages/langchain/chains/query_constructor/parser.py:174, in get_parser(allowed_comparators, allowed_operators, allowed_attributes) 172 # QueryTransformer is None when Lark cannot be imported. 173 if QueryTransformer is None: --> 174 raise ImportError( 175 "Cannot import lark, please install it with 'pip install lark'." 176 ) 177 transformer = QueryTransformer( 178 allowed_comparators=allowed_comparators, 179 allowed_operators=allowed_operators, 180 allowed_attributes=allowed_attributes, 181 ) 182 return Lark(GRAMMAR, parser="lalr", transformer=transformer, start="program") ImportError: Cannot import lark, please install it with 'pip install lark'. ``` ### Expected behavior Be able to instantiate SelfQueryRetriever.from_llm successfully
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15668/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15668/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15667
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15667/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15667/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15667/events
https://github.com/langchain-ai/langchain/issues/15667
2,069,343,504
I_kwDOIPDwls57V60Q
15,667
found checker for RAG chain
{ "login": "mhyeonsoo", "id": 32179857, "node_id": "MDQ6VXNlcjMyMTc5ODU3", "avatar_url": "https://avatars.githubusercontent.com/u/32179857?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mhyeonsoo", "html_url": "https://github.com/mhyeonsoo", "followers_url": "https://api.github.com/users/mhyeonsoo/followers", "following_url": "https://api.github.com/users/mhyeonsoo/following{/other_user}", "gists_url": "https://api.github.com/users/mhyeonsoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/mhyeonsoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mhyeonsoo/subscriptions", "organizations_url": "https://api.github.com/users/mhyeonsoo/orgs", "repos_url": "https://api.github.com/users/mhyeonsoo/repos", "events_url": "https://api.github.com/users/mhyeonsoo/events{/privacy}", "received_events_url": "https://api.github.com/users/mhyeonsoo/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
1
2024-01-07T23:32:22
2024-01-07T23:38:28
null
NONE
null
### Feature request It would be helpful if I can make a RAG chain to output whether it could find the answer from the reference or not as a boolean value. ### Motivation From personal ideation. ### Your contribution N/A
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15667/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15667/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15666
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15666/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15666/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15666/events
https://github.com/langchain-ai/langchain/pull/15666
2,069,323,369
PR_kwDOIPDwls5jai35
15,666
docs: update aws_dynamodb integration doc
{ "login": "sweetkane", "id": 71854758, "node_id": "MDQ6VXNlcjcxODU0NzU4", "avatar_url": "https://avatars.githubusercontent.com/u/71854758?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sweetkane", "html_url": "https://github.com/sweetkane", "followers_url": "https://api.github.com/users/sweetkane/followers", "following_url": "https://api.github.com/users/sweetkane/following{/other_user}", "gists_url": "https://api.github.com/users/sweetkane/gists{/gist_id}", "starred_url": "https://api.github.com/users/sweetkane/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sweetkane/subscriptions", "organizations_url": "https://api.github.com/users/sweetkane/orgs", "repos_url": "https://api.github.com/users/sweetkane/repos", "events_url": "https://api.github.com/users/sweetkane/events{/privacy}", "received_events_url": "https://api.github.com/users/sweetkane/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": 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": 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-07T22:35:09
2024-01-09T02:37:17
2024-01-08T20:27:30
CONTRIBUTOR
null
- **Description:** - Updated the docs for the memory integration module `aws_dynamodb.ipynb` - **Issue:** - #15664 - **Dependencies:** - N/A
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15666/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15666/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15666", "html_url": "https://github.com/langchain-ai/langchain/pull/15666", "diff_url": "https://github.com/langchain-ai/langchain/pull/15666.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15666.patch", "merged_at": "2024-01-08T20:27:30" }
https://api.github.com/repos/langchain-ai/langchain/issues/15665
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15665/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15665/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15665/events
https://github.com/langchain-ai/langchain/issues/15665
2,069,304,783
I_kwDOIPDwls57VxXP
15,665
Issue: __call__ was deprecated use invoke instead warning persists after switching to invoke
{ "login": "robert-mcdermott", "id": 7399563, "node_id": "MDQ6VXNlcjczOTk1NjM=", "avatar_url": "https://avatars.githubusercontent.com/u/7399563?v=4", "gravatar_id": "", "url": "https://api.github.com/users/robert-mcdermott", "html_url": "https://github.com/robert-mcdermott", "followers_url": "https://api.github.com/users/robert-mcdermott/followers", "following_url": "https://api.github.com/users/robert-mcdermott/following{/other_user}", "gists_url": "https://api.github.com/users/robert-mcdermott/gists{/gist_id}", "starred_url": "https://api.github.com/users/robert-mcdermott/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/robert-mcdermott/subscriptions", "organizations_url": "https://api.github.com/users/robert-mcdermott/orgs", "repos_url": "https://api.github.com/users/robert-mcdermott/repos", "events_url": "https://api.github.com/users/robert-mcdermott/events{/privacy}", "received_events_url": "https://api.github.com/users/robert-mcdermott/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": 5932474361, "node_id": "LA_kwDOIPDwls8AAAABYZpf-Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone", "name": "integration: pinecone", "color": "BC53BE", "default": false, "description": "Related to Pinecone vector store integration" } ]
open
false
null
[]
null
1
2024-01-07T21:49:55
2024-01-07T21:54:46
null
NONE
null
### Issue you'd like to raise. After upgrading to langchain 0.1.0, I received depreciation warnings and updated my imports to langchain_community which cleared that error, then received depreciation warnings about __call__ to Invoke: The function `__call__` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use invoke instead. I switched the invoke method on the call still get some of the same depreciation warnings. Not sure how to fix this or if it's a bug. code: ```python qachain = RetrievalQA.from_chain_type(ollama, retriever=vectorstore.as_retriever(search_kwargs={"k": args.top_matches})) res = (qachain.invoke({"query": args.question})) ``` How do I fix this? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15665/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15665/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15664
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15664/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15664/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15664/events
https://github.com/langchain-ai/langchain/issues/15664
2,069,295,306
I_kwDOIPDwls57VvDK
15,664
For New Contributors: Update Integration Documentation
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528826, "node_id": "LA_kwDOIPDwls8AAAABFtyvOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/good%20first%20issue", "name": "good first issue", "color": "7057ff", "default": true, "description": "Good for newcomers" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
open
false
null
[]
null
14
2024-01-07T21:22:46
2024-01-17T02:40:26
null
COLLABORATOR
null
### Issue you'd like to raise. Hello LangChain community, We're always happy to see more folks getting involved in contributing to the LangChain codebase. This is a good first issue if you want to learn more about how to set up for development in the LangChain codebase. ## Goal Your contribution will make it easier for users to use integrations with the newest LangChain syntax ## Context As you may have noticed, we’ve recently gone to LangChain 0.1. As part of this, we want to update integration pages to be consistent with new methods. These largely include: (a) new methods for invoking integrations and chains (`invoke`, `stream`), (b) new methods for creating chains (LCEL, `create_xyz_..`). There are a lot of integrations, so we’d love community help! This is a great way to get started contributing to the library as it will make you familiar with best practices and various integrations. ## Set up for development There are lots of integration notebooks in https://github.com/langchain-ai/langchain/tree/master/docs/docs/integrations. After making changes there, you should run `make format` from the root LangChain directory to run our formatter. ## Shall you accept Shall you accept this challenge, please claim one (and only one) of the modules from the list below as one that you will be working on, and respond to this issue. Once you've made the required code changes, open a PR and link to this issue. ## Acceptance Criteria - Uses new methods for calling chains (`invoke`, `stream`, etc) - Uses LCEL where appropriate - Follows the format outlined below ## Examples We've gotten started with some examples to show how we imagine these integration pages should look like. The exact format may look different for each type of integration, so make sure to look at the type you are working on: - LLMs: - https://python.langchain.com/docs/integrations/llms/cohere - Chat Models: - https://python.langchain.com/docs/integrations/chat/cohere - Vectorstores: - https://python.langchain.com/docs/integrations/vectorstores/faiss - Retrievers: - https://python.langchain.com/docs/integrations/retrievers/tavily - https://python.langchain.com/docs/integrations/retrievers/ragatouille - Tools: - https://python.langchain.com/docs/integrations/tools/tavily_search - Toolkits: - https://python.langchain.com/docs/integrations/toolkits/gmail - Memory: - https://python.langchain.com/docs/integrations/memory/sql_chat_message_history ## Your contribution Please sign up by responding to this issue and including the name of the module. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15664/reactions", "total_count": 3, "+1": 0, "-1": 0, "laugh": 0, "hooray": 3, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15664/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15663
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15663/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15663/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15663/events
https://github.com/langchain-ai/langchain/pull/15663
2,069,293,605
PR_kwDOIPDwls5jac1x
15,663
community: Allow including vectors with text missing for Pinecone
{ "login": "ristomcgehee", "id": 8961650, "node_id": "MDQ6VXNlcjg5NjE2NTA=", "avatar_url": "https://avatars.githubusercontent.com/u/8961650?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ristomcgehee", "html_url": "https://github.com/ristomcgehee", "followers_url": "https://api.github.com/users/ristomcgehee/followers", "following_url": "https://api.github.com/users/ristomcgehee/following{/other_user}", "gists_url": "https://api.github.com/users/ristomcgehee/gists{/gist_id}", "starred_url": "https://api.github.com/users/ristomcgehee/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ristomcgehee/subscriptions", "organizations_url": "https://api.github.com/users/ristomcgehee/orgs", "repos_url": "https://api.github.com/users/ristomcgehee/repos", "events_url": "https://api.github.com/users/ristomcgehee/events{/privacy}", "received_events_url": "https://api.github.com/users/ristomcgehee/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." } ]
open
false
null
[]
null
2
2024-01-07T21:18:23
2024-01-16T02:40:34
null
NONE
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. --> - **Description:** This PR adds the option to include vectors that don't have page content. Currently, any such vectors will be skipped. This change can be useful when you're only concerned about the similarity score and not the page content. I'm a contributor to [Rebuff](https://github.com/protectai/rebuff), and we are working on adding a standalone Python SDK. When we query Pinecone, we only need the vector scores. Currently with Langchain, if a Rebuff user sets up their Pinecone database without a metadata field named `"text"`, they will not receive any vector scores when querying Pinecone. With this PR, it won't matter the name of the metadata field used for page content. For what it's worth, langchain-js does not skip vectors when the page content cannot be found: [pinecone.ts](https://github.com/langchain-ai/langchainjs/blob/8154c7829fc930a5b4060e830d06cbdd3e9484c4/libs/langchain-community/src/vectorstores/pinecone.ts#L230-L234). I didn't update the Pinecone integration tests because I could not get the tests to pass (even before my changes). They were repeatedly failing because Pinecone is eventually consistent and the tests were assuming the changes would be applied immediately. - **Issue:** N/A - **Dependencies:** No changes needed
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15663/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15663/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15663", "html_url": "https://github.com/langchain-ai/langchain/pull/15663", "diff_url": "https://github.com/langchain-ai/langchain/pull/15663.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15663.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15661
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15661/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15661/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15661/events
https://github.com/langchain-ai/langchain/pull/15661
2,069,278,151
PR_kwDOIPDwls5jaZws
15,661
Docs: Add missing import of 'ConfigurableField' in 'Full code comparison' example in LCEL
{ "login": "abzachshan", "id": 16580199, "node_id": "MDQ6VXNlcjE2NTgwMTk5", "avatar_url": "https://avatars.githubusercontent.com/u/16580199?v=4", "gravatar_id": "", "url": "https://api.github.com/users/abzachshan", "html_url": "https://github.com/abzachshan", "followers_url": "https://api.github.com/users/abzachshan/followers", "following_url": "https://api.github.com/users/abzachshan/following{/other_user}", "gists_url": "https://api.github.com/users/abzachshan/gists{/gist_id}", "starred_url": "https://api.github.com/users/abzachshan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abzachshan/subscriptions", "organizations_url": "https://api.github.com/users/abzachshan/orgs", "repos_url": "https://api.github.com/users/abzachshan/repos", "events_url": "https://api.github.com/users/abzachshan/events{/privacy}", "received_events_url": "https://api.github.com/users/abzachshan/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": 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": "" }, { "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-07T20:34:30
2024-01-07T21:45:33
2024-01-07T21:45:32
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:** Add missing import of 'ConfigurableField' in 'Full code comparison' example in LCEL - **Issue:** Example code not running - **Dependencies:** None - **Twitter handle:** @heyyoshan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15661/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/15661/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15661", "html_url": "https://github.com/langchain-ai/langchain/pull/15661", "diff_url": "https://github.com/langchain-ai/langchain/pull/15661.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15661.patch", "merged_at": "2024-01-07T21:45:32" }
https://api.github.com/repos/langchain-ai/langchain/issues/15660
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15660/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15660/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15660/events
https://github.com/langchain-ai/langchain/pull/15660
2,069,271,190
PR_kwDOIPDwls5jaYaH
15,660
community: Added python package install Tool
{ "login": "reachusama", "id": 45976647, "node_id": "MDQ6VXNlcjQ1OTc2NjQ3", "avatar_url": "https://avatars.githubusercontent.com/u/45976647?v=4", "gravatar_id": "", "url": "https://api.github.com/users/reachusama", "html_url": "https://github.com/reachusama", "followers_url": "https://api.github.com/users/reachusama/followers", "following_url": "https://api.github.com/users/reachusama/following{/other_user}", "gists_url": "https://api.github.com/users/reachusama/gists{/gist_id}", "starred_url": "https://api.github.com/users/reachusama/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/reachusama/subscriptions", "organizations_url": "https://api.github.com/users/reachusama/orgs", "repos_url": "https://api.github.com/users/reachusama/repos", "events_url": "https://api.github.com/users/reachusama/events{/privacy}", "received_events_url": "https://api.github.com/users/reachusama/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": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714130, "node_id": "LA_kwDOIPDwls8AAAABc3-rkg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL", "name": "size:XL", "color": "D4C5F9", "default": false, "description": "This PR changes 500-999 lines, ignoring generated files." } ]
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-07T20:11:49
2024-01-15T19:28:39
null
CONTRIBUTOR
null
# community: Added python package install **Tool** ## Description: **PackageInstallTool**: A Dynamic Python Package Installer for Runtime Environments **Overview**: The `PackageInstallTool` is an essential utility for dynamically installing Python packages within a runtime environment. This tool is especially beneficial in scenarios where executing Python code necessitates the use of specific packages that are not already available in the environment. **Functionality**: - **Package Installation**: It allows for the installation of single or multiple Python packages. Users can input either a single package name or a list of package names. - **Flexibility and Error Handling**: It supports both synchronous and asynchronous operations, although the asynchronous functionality is not implemented yet. The tool also includes error handling to provide feedback in case of installation issues. **Use Case**: This tool is ideal for environments where Python code execution is dynamic, and there's a need to ensure that all necessary packages are available. It's particularly useful in interactive or automated systems where code dependencies might vary. **How It Works**: 1. **Input**: The tool accepts a package name or a list of package names as input. 2. **Installation Process**: It uses the `subprocess` module to call `pip install`, ensuring that the packages are installed in the current Python environment. 3. **Feedback**: Post-installation, it provides feedback on the success or failure of the installation process. **Benefits**: - **Enhanced Efficiency**: Automates the package installation process, saving time and reducing manual effort. - **Improved Reliability**: Ensures that the necessary Python packages are available when needed, enhancing the reliability of Python code execution.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15660/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15660/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15660", "html_url": "https://github.com/langchain-ai/langchain/pull/15660", "diff_url": "https://github.com/langchain-ai/langchain/pull/15660.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15660.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15659
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15659/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15659/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15659/events
https://github.com/langchain-ai/langchain/pull/15659
2,069,255,376
PR_kwDOIPDwls5jaVWn
15,659
community: update AzureSearch class to work with azure-search-documents=11.4.0
{ "login": "lz-chen", "id": 38908263, "node_id": "MDQ6VXNlcjM4OTA4MjYz", "avatar_url": "https://avatars.githubusercontent.com/u/38908263?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lz-chen", "html_url": "https://github.com/lz-chen", "followers_url": "https://api.github.com/users/lz-chen/followers", "following_url": "https://api.github.com/users/lz-chen/following{/other_user}", "gists_url": "https://api.github.com/users/lz-chen/gists{/gist_id}", "starred_url": "https://api.github.com/users/lz-chen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lz-chen/subscriptions", "organizations_url": "https://api.github.com/users/lz-chen/orgs", "repos_url": "https://api.github.com/users/lz-chen/repos", "events_url": "https://api.github.com/users/lz-chen/events{/privacy}", "received_events_url": "https://api.github.com/users/lz-chen/received_events", "type": "User", "site_admin": false }
[]
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
4
2024-01-07T19:20:26
2024-01-15T19:30:31
null
NONE
null
- **Description:** Updates `libs/community/langchain_community/vectorstores/azuresearch.py` to support the stable version `azure-search-documents=11.4.0` - **Issue:** https://github.com/langchain-ai/langchain/issues/14534, https://github.com/langchain-ai/langchain/issues/15039, https://github.com/langchain-ai/langchain/issues/15355 - **Dependencies:** azure-search-documents>=11.4.0
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15659/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15659/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15659", "html_url": "https://github.com/langchain-ai/langchain/pull/15659", "diff_url": "https://github.com/langchain-ai/langchain/pull/15659.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15659.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15658
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15658/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15658/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15658/events
https://github.com/langchain-ai/langchain/pull/15658
2,069,243,256
PR_kwDOIPDwls5jaS_w
15,658
update ragatouille integration
{ "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": 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-07T18:41:11
2024-01-07T18:51:35
2024-01-07T18:51:34
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15658/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15658/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15658", "html_url": "https://github.com/langchain-ai/langchain/pull/15658", "diff_url": "https://github.com/langchain-ai/langchain/pull/15658.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15658.patch", "merged_at": "2024-01-07T18:51:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/15656
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15656/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15656/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15656/events
https://github.com/langchain-ai/langchain/issues/15656
2,069,139,043
I_kwDOIPDwls57VI5j
15,656
using YahooFinanceNewsTool() results to KeyError: 'description'
{ "login": "abdinal1", "id": 38468504, "node_id": "MDQ6VXNlcjM4NDY4NTA0", "avatar_url": "https://avatars.githubusercontent.com/u/38468504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/abdinal1", "html_url": "https://github.com/abdinal1", "followers_url": "https://api.github.com/users/abdinal1/followers", "following_url": "https://api.github.com/users/abdinal1/following{/other_user}", "gists_url": "https://api.github.com/users/abdinal1/gists{/gist_id}", "starred_url": "https://api.github.com/users/abdinal1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abdinal1/subscriptions", "organizations_url": "https://api.github.com/users/abdinal1/orgs", "repos_url": "https://api.github.com/users/abdinal1/repos", "events_url": "https://api.github.com/users/abdinal1/events{/privacy}", "received_events_url": "https://api.github.com/users/abdinal1/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-07T13:52:58
2024-01-07T15:49:57
null
NONE
null
### System Info Langchain Version: 0.0.354 (also tried with 0.1.0) Python version: 3.9.18 yfinance version: 0.2.35 OS: Windows 10 ### Who can help? @hwchase17 , @agola11 ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Just exectuing the bottom of this page (the tool soley): https://python.langchain.com/docs/integrations/tools/yahoo_finance_news **Returned this error (see):** from langchain.tools.yahoo_finance_news import YahooFinanceNewsTool tool = YahooFinanceNewsTool() res = tool.run("AAPL") print(res) updating langchain to newest version didnt change anything for me. Im also using a poetry installed file with a clean fresh enviroment, same error. ### Expected behavior To do exactly whats written in the docs and to not drop an error
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15656/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15656/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15654
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15654/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15654/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15654/events
https://github.com/langchain-ai/langchain/issues/15654
2,069,076,913
I_kwDOIPDwls57U5ux
15,654
Issue: <Please write a comprehensive title after the 'Issue: ' prefix>
{ "login": "gt-chuzhifeng", "id": 153265630, "node_id": "U_kgDOCSKl3g", "avatar_url": "https://avatars.githubusercontent.com/u/153265630?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gt-chuzhifeng", "html_url": "https://github.com/gt-chuzhifeng", "followers_url": "https://api.github.com/users/gt-chuzhifeng/followers", "following_url": "https://api.github.com/users/gt-chuzhifeng/following{/other_user}", "gists_url": "https://api.github.com/users/gt-chuzhifeng/gists{/gist_id}", "starred_url": "https://api.github.com/users/gt-chuzhifeng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gt-chuzhifeng/subscriptions", "organizations_url": "https://api.github.com/users/gt-chuzhifeng/orgs", "repos_url": "https://api.github.com/users/gt-chuzhifeng/repos", "events_url": "https://api.github.com/users/gt-chuzhifeng/events{/privacy}", "received_events_url": "https://api.github.com/users/gt-chuzhifeng/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
1
2024-01-07T10:35:43
2024-01-07T10:55:01
2024-01-07T10:55:01
NONE
null
### Issue you'd like to raise. I want to use chatopenai as a tool, I need to add the agent chat_history or context into the tool, but the tool generally only accepts a string input, so how do I pass in other parameters ### Suggestion: none
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15654/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15654/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15653
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15653/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15653/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15653/events
https://github.com/langchain-ai/langchain/pull/15653
2,069,030,682
PR_kwDOIPDwls5jZpLc
15,653
Move optional dependencies to the top, fix formatting
{ "login": "pavelzw", "id": 29506042, "node_id": "MDQ6VXNlcjI5NTA2MDQy", "avatar_url": "https://avatars.githubusercontent.com/u/29506042?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pavelzw", "html_url": "https://github.com/pavelzw", "followers_url": "https://api.github.com/users/pavelzw/followers", "following_url": "https://api.github.com/users/pavelzw/following{/other_user}", "gists_url": "https://api.github.com/users/pavelzw/gists{/gist_id}", "starred_url": "https://api.github.com/users/pavelzw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pavelzw/subscriptions", "organizations_url": "https://api.github.com/users/pavelzw/orgs", "repos_url": "https://api.github.com/users/pavelzw/repos", "events_url": "https://api.github.com/users/pavelzw/events{/privacy}", "received_events_url": "https://api.github.com/users/pavelzw/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": 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-07T07:54:38
2024-01-16T05:55:10
2024-01-16T05:55:10
CONTRIBUTOR
null
This makes the pyproject.toml easier to read for repackaging like conda-forge.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15653/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15653/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15653", "html_url": "https://github.com/langchain-ai/langchain/pull/15653", "diff_url": "https://github.com/langchain-ai/langchain/pull/15653.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15653.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15652
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15652/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15652/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15652/events
https://github.com/langchain-ai/langchain/pull/15652
2,069,025,686
PR_kwDOIPDwls5jZoMC
15,652
Add neo4j semantic layer template
{ "login": "tomasonjo", "id": 19948365, "node_id": "MDQ6VXNlcjE5OTQ4MzY1", "avatar_url": "https://avatars.githubusercontent.com/u/19948365?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tomasonjo", "html_url": "https://github.com/tomasonjo", "followers_url": "https://api.github.com/users/tomasonjo/followers", "following_url": "https://api.github.com/users/tomasonjo/following{/other_user}", "gists_url": "https://api.github.com/users/tomasonjo/gists{/gist_id}", "starred_url": "https://api.github.com/users/tomasonjo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tomasonjo/subscriptions", "organizations_url": "https://api.github.com/users/tomasonjo/orgs", "repos_url": "https://api.github.com/users/tomasonjo/repos", "events_url": "https://api.github.com/users/tomasonjo/events{/privacy}", "received_events_url": "https://api.github.com/users/tomasonjo/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" }, { "id": 6232714130, "node_id": "LA_kwDOIPDwls8AAAABc3-rkg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL", "name": "size:XL", "color": "D4C5F9", "default": false, "description": "This PR changes 500-999 lines, ignoring generated files." } ]
closed
false
{ "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-07T07:37:38
2024-01-09T23:33:44
2024-01-09T23:33:44
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15652/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15652/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15652", "html_url": "https://github.com/langchain-ai/langchain/pull/15652", "diff_url": "https://github.com/langchain-ai/langchain/pull/15652.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15652.patch", "merged_at": "2024-01-09T23:33:44" }
https://api.github.com/repos/langchain-ai/langchain/issues/15651
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15651/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15651/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15651/events
https://github.com/langchain-ai/langchain/issues/15651
2,069,024,318
I_kwDOIPDwls57Us4-
15,651
DOC: Integration re-direct to github page not found
{ "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": 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": 5955630415, "node_id": "LA_kwDOIPDwls8AAAABYvu1Tw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis", "name": "integration: redis", "color": "F9D0C4", "default": false, "description": "Any integration that uses Redis" } ]
open
false
null
[]
null
4
2024-01-07T07:32:23
2024-01-07T13:52:15
null
CONTRIBUTOR
null
### Issue with current documentation: When clicking on redis and then when trying to re-direct to github for seeing the implementation that page is not found from this [integration's page](https://integrations.langchain.com/memory) ![image](https://github.com/langchain-ai/langchain/assets/30804112/63aa066b-6a22-4697-9ebf-ff01df7bd9e5) Error : ![image](https://github.com/langchain-ai/langchain/assets/30804112/d2d59f0d-fae6-487a-a4d3-4ca80564f102) ### Idea or request for content: i would like to know the place where this has been implemented to fix the issue and raise an PR Happy to help the community
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15651/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15651/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15650
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15650/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15650/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15650/events
https://github.com/langchain-ai/langchain/issues/15650
2,069,007,389
I_kwDOIPDwls57Uowd
15,650
Creating a conversation agent with tools and history for Ollama
{ "login": "dmtrrk", "id": 2098521, "node_id": "MDQ6VXNlcjIwOTg1MjE=", "avatar_url": "https://avatars.githubusercontent.com/u/2098521?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dmtrrk", "html_url": "https://github.com/dmtrrk", "followers_url": "https://api.github.com/users/dmtrrk/followers", "following_url": "https://api.github.com/users/dmtrrk/following{/other_user}", "gists_url": "https://api.github.com/users/dmtrrk/gists{/gist_id}", "starred_url": "https://api.github.com/users/dmtrrk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dmtrrk/subscriptions", "organizations_url": "https://api.github.com/users/dmtrrk/orgs", "repos_url": "https://api.github.com/users/dmtrrk/repos", "events_url": "https://api.github.com/users/dmtrrk/events{/privacy}", "received_events_url": "https://api.github.com/users/dmtrrk/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2024-01-07T06:16:24
2024-01-07T15:12:27
2024-01-07T15:12:13
NONE
null
I'm trying to create a simple test that can: - use Ollama as the model - use the agent with my custom tools to enrich the output - history to store the conversation history Based on examples, the code should look like this: ``` const llm = new ChatOllama(...); const tools = [...]; const executor = await initializeAgentExecutorWithOptions(tools, llm, ...); ``` the compiler does not like `llm` parameter because ``` Argument of type 'ChatOllama' is not assignable to parameter of type 'BaseLanguageModelInterface<any, BaseLanguageModelCallOptions>' ``` and this is the same for OpenAI llm as well. I don't see this `BaseLanguageModelCallOptions` interface being used anywhere in the code. Is this the right way to use it?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15650/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15650/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15649
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15649/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15649/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15649/events
https://github.com/langchain-ai/langchain/pull/15649
2,068,942,920
PR_kwDOIPDwls5jZXFN
15,649
Update openai_tools.ipynb
{ "login": "reachusama", "id": 45976647, "node_id": "MDQ6VXNlcjQ1OTc2NjQ3", "avatar_url": "https://avatars.githubusercontent.com/u/45976647?v=4", "gravatar_id": "", "url": "https://api.github.com/users/reachusama", "html_url": "https://github.com/reachusama", "followers_url": "https://api.github.com/users/reachusama/followers", "following_url": "https://api.github.com/users/reachusama/following{/other_user}", "gists_url": "https://api.github.com/users/reachusama/gists{/gist_id}", "starred_url": "https://api.github.com/users/reachusama/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/reachusama/subscriptions", "organizations_url": "https://api.github.com/users/reachusama/orgs", "repos_url": "https://api.github.com/users/reachusama/repos", "events_url": "https://api.github.com/users/reachusama/events{/privacy}", "received_events_url": "https://api.github.com/users/reachusama/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": 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-07T03:00:34
2024-01-07T16:30:30
2024-01-07T16:30:30
CONTRIBUTOR
null
Description: Update openai_tools.ipynb Issue: The distinction between OpenAI function agents and OpenAI tools was not adequately emphasised.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15649/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15649/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15649", "html_url": "https://github.com/langchain-ai/langchain/pull/15649", "diff_url": "https://github.com/langchain-ai/langchain/pull/15649.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15649.patch", "merged_at": "2024-01-07T16:30:30" }
https://api.github.com/repos/langchain-ai/langchain/issues/15648
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15648/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15648/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15648/events
https://github.com/langchain-ai/langchain/pull/15648
2,068,936,101
PR_kwDOIPDwls5jZVvT
15,648
templates: 0.1 bump
{ "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": 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": 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": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
{ "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-07T02:26:55
2024-01-07T02:31:47
2024-01-07T02:31:47
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15648/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15648/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15648", "html_url": "https://github.com/langchain-ai/langchain/pull/15648", "diff_url": "https://github.com/langchain-ai/langchain/pull/15648.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15648.patch", "merged_at": "2024-01-07T02:31:47" }
https://api.github.com/repos/langchain-ai/langchain/issues/15647
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15647/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15647/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15647/events
https://github.com/langchain-ai/langchain/issues/15647
2,068,909,302
I_kwDOIPDwls57UQz2
15,647
Issue: how to resolve this warning "My code has a warning "D:\anaconda3\envs\py311\Lib\site-packages\langchain\__init__.py:34: UserWarning: Importing verbose from langchain root module is no longer supported. Please use langchain.globals.set_verbose() / langchain.globals.get_verbose() instead. warnings.warn(""
{ "login": "JianyaoChen", "id": 112419856, "node_id": "U_kgDOBrNkEA", "avatar_url": "https://avatars.githubusercontent.com/u/112419856?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JianyaoChen", "html_url": "https://github.com/JianyaoChen", "followers_url": "https://api.github.com/users/JianyaoChen/followers", "following_url": "https://api.github.com/users/JianyaoChen/following{/other_user}", "gists_url": "https://api.github.com/users/JianyaoChen/gists{/gist_id}", "starred_url": "https://api.github.com/users/JianyaoChen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JianyaoChen/subscriptions", "organizations_url": "https://api.github.com/users/JianyaoChen/orgs", "repos_url": "https://api.github.com/users/JianyaoChen/repos", "events_url": "https://api.github.com/users/JianyaoChen/events{/privacy}", "received_events_url": "https://api.github.com/users/JianyaoChen/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-07T00:49:44
2024-01-07T00:54:58
null
NONE
null
### Issue you'd like to raise. I have a warning when I run my langchain code "how to resolve this warning "My code has a warning "D:\anaconda3\envs\py311\Lib\site-packages\langchain\__init__.py:34: UserWarning: Importing verbose from langchain root module is no longer supported. Please use langchain.globals.set_verbose() / langchain.globals.get_verbose() instead. warnings.warn(", how to resolve it? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15647/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15647/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15646
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15646/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15646/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15646/events
https://github.com/langchain-ai/langchain/issues/15646
2,068,907,422
I_kwDOIPDwls57UQWe
15,646
Issue: My code has a warning "D:\anaconda3\envs\py311\Lib\site-packages\langchain\__init__.py:34: UserWarning: Importing verbose from langchain root module is no longer supported. Please use langchain.globals.set_verbose() / langchain.globals.get_verbose() instead. warnings.warn("
{ "login": "JianyaoChen", "id": 112419856, "node_id": "U_kgDOBrNkEA", "avatar_url": "https://avatars.githubusercontent.com/u/112419856?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JianyaoChen", "html_url": "https://github.com/JianyaoChen", "followers_url": "https://api.github.com/users/JianyaoChen/followers", "following_url": "https://api.github.com/users/JianyaoChen/following{/other_user}", "gists_url": "https://api.github.com/users/JianyaoChen/gists{/gist_id}", "starred_url": "https://api.github.com/users/JianyaoChen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JianyaoChen/subscriptions", "organizations_url": "https://api.github.com/users/JianyaoChen/orgs", "repos_url": "https://api.github.com/users/JianyaoChen/repos", "events_url": "https://api.github.com/users/JianyaoChen/events{/privacy}", "received_events_url": "https://api.github.com/users/JianyaoChen/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2024-01-07T00:42:11
2024-01-07T00:48:07
2024-01-07T00:48:07
NONE
null
### Issue you'd like to raise. I had no issues running the langchain code before, but when I moved the callback_handler position, this warning appeared: "D:\anaconda3\envs\py311\Lib\site-packages\langchain\__init__.py:34: UserWarning: Importing verbose from langchain root module is no longer supported. Please use langchain.globals.set_verbose() / langchain.globals.get_verbose() instead. warnings.warn(" ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15646/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15646/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15645
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15645/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15645/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15645/events
https://github.com/langchain-ai/langchain/pull/15645
2,068,902,597
PR_kwDOIPDwls5jZPDU
15,645
fix docs build
{ "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": 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-07T00:22:37
2024-01-07T00:26:35
2024-01-07T00:26:34
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15645/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15645/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15645", "html_url": "https://github.com/langchain-ai/langchain/pull/15645", "diff_url": "https://github.com/langchain-ai/langchain/pull/15645.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15645.patch", "merged_at": "2024-01-07T00:26:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/15644
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15644/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15644/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15644/events
https://github.com/langchain-ai/langchain/issues/15644
2,068,873,967
I_kwDOIPDwls57UILv
15,644
ChromaDB ParentDocumentRetriever.get_relevant_documents not returning docs despite similarity_search returning matching docs
{ "login": "XariZaru", "id": 18338434, "node_id": "MDQ6VXNlcjE4MzM4NDM0", "avatar_url": "https://avatars.githubusercontent.com/u/18338434?v=4", "gravatar_id": "", "url": "https://api.github.com/users/XariZaru", "html_url": "https://github.com/XariZaru", "followers_url": "https://api.github.com/users/XariZaru/followers", "following_url": "https://api.github.com/users/XariZaru/following{/other_user}", "gists_url": "https://api.github.com/users/XariZaru/gists{/gist_id}", "starred_url": "https://api.github.com/users/XariZaru/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/XariZaru/subscriptions", "organizations_url": "https://api.github.com/users/XariZaru/orgs", "repos_url": "https://api.github.com/users/XariZaru/repos", "events_url": "https://api.github.com/users/XariZaru/events{/privacy}", "received_events_url": "https://api.github.com/users/XariZaru/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 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" } ]
closed
false
null
[]
null
4
2024-01-06T22:51:01
2024-01-07T00:56:13
2024-01-07T00:46:03
NONE
null
### System Info LangChain 0.0.354, Python 3.11 ### Who can help? @hwchase17 @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Embedded 1000 or so documents and did a vector similarity search. Came back with a lot of good results. Did the get_relevant_documents call but had no returns. LLM also did not. My retriever is: - ParentDocumentRetriever with a parent_splitter and child_splitter - Parent splits at 2000 tokens. Child splits at 400. ```python def load_chroma_db(collection_name: str): parent_splitter = RecursiveCharacterTextSplitter(chunk_size=2000) child_splitter = RecursiveCharacterTextSplitter(chunk_size=400) vectorstore = None try: vectorstore = Chroma(persist_directory="storage/deploy/chroma-db", embedding_function=get_embedding_function()) print("Loaded existing vector store") except: print("Creating new vector store") vectorstore = Chroma( collection_name=collection_name, embedding_function=get_embedding_function(), persist_directory="storage/deploy/chroma-db" ) store = InMemoryStore() retriever = ParentDocumentRetriever( vectorstore=vectorstore, docstore=store, child_splitter=child_splitter, parent_splitter=parent_splitter ) return retriever retriever = load_chroma_db("full_docs") retriever.vectorstore.similarity_search_with_score("How do I make a zelle transaction?") ``` This returns ```python [(Document(page_content='Basic Introduction to Zelle® What is Zelle®? Zelle® is a fast, safe, and easy way for members to send money directly between most bank or credit union accounts in the U.S. These Person- to- Person transactions typically occur within minutes. With just an email address or U.S. mobile phone number, members can send money to friends, family, and people they know and trust, regardless of where they', metadata={'date_day': 27, 'date_month': 4, 'date_year': 2023, 'doc_id': '22bfa535-8bc7-4a97-8270-d84b77ba81b0', 'source': 'storage/Bancworks/Zelle & CST FAQs - Internal Use.pdf.txt'}), 0.24197007715702057), (Document(page_content='Basic Introduction to Zelle® ......................................... 2 Zelle® Transaction Limits / Tiers ............................. 2 Enrollment / Eligible Accounts ................................ 3 Sending / Receiving Transactions ........................... 4 Disputes / Fraud / Scams ......................................... 5 Customer Service Tool (CST)', metadata={'date_day': 27, 'date_month': 4, 'date_year': 2023, 'doc_id': 'eb27b502-c37c-4462-9d8b-488b53c3aa11', 'source': 'storage/Bancworks/Zelle & CST FAQs - Internal Use.pdf.txt'}), 0.24453413486480713), (Document(page_content='Step 1: Find Zelle in the main menu of the Kinecta mobile banking app. Step 2: Enroll with a U.S. mobile number or email address and select a checking account. Step 3: Start using Zelle. Talking Points: • Zelle is a fast, safe and easy way to send money directly between almost any checking or savings accounts in the U.S., typically within minutes. • With just an email address or U.S. mobile phone', metadata={'date_day': 28, 'date_month': 4, 'date_year': 2023, 'doc_id': '161170fc-8871-412d-a0e7-47e4b1b3d889', 'source': 'storage/Bancworks/Zelle - MarketGram - 20230502.pdf.txt'}), 0.2447606921195984), (Document(page_content='• Zelle is a fast, safe and easy way to send money directly between almost any checking or savings accounts in the U.S., typically within minutes. • With just an email address or U.S. mobile phone number, send money to people you trust, regardless of where they bank. • Transactions between enrolled consumers typically occur in minutes and generally do not incur transaction fees. • Send, split or', metadata={'date_day': 28, 'date_month': 4, 'date_year': 2023, 'doc_id': '161170fc-8871-412d-a0e7-47e4b1b3d889', 'source': 'storage/Bancworks/Zelle - MarketGram - 20230502.pdf.txt'}), 0.2502959370613098)] ``` If I do the following call: ```python retriever.get_relevant_documents("How do I make a zelle transaction?", k=4) ``` I get nothing returned. ```python [] ``` ### Expected behavior Parent documents should be returned based on the child embeddings found.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15644/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15644/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15643
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15643/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15643/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15643/events
https://github.com/langchain-ai/langchain/issues/15643
2,068,840,009
I_kwDOIPDwls57T_5J
15,643
Broken imports
{ "login": "adlindenberg", "id": 72746229, "node_id": "MDQ6VXNlcjcyNzQ2MjI5", "avatar_url": "https://avatars.githubusercontent.com/u/72746229?v=4", "gravatar_id": "", "url": "https://api.github.com/users/adlindenberg", "html_url": "https://github.com/adlindenberg", "followers_url": "https://api.github.com/users/adlindenberg/followers", "following_url": "https://api.github.com/users/adlindenberg/following{/other_user}", "gists_url": "https://api.github.com/users/adlindenberg/gists{/gist_id}", "starred_url": "https://api.github.com/users/adlindenberg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/adlindenberg/subscriptions", "organizations_url": "https://api.github.com/users/adlindenberg/orgs", "repos_url": "https://api.github.com/users/adlindenberg/repos", "events_url": "https://api.github.com/users/adlindenberg/events{/privacy}", "received_events_url": "https://api.github.com/users/adlindenberg/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2024-01-06T21:23:27
2024-01-06T21:45:16
2024-01-06T21:45:16
NONE
null
### System Info Using... langchain==0.0.353 langchain-core==0.1.4 Seems to have broken from yesterday's merges? ``` from langchain.chains.combine_documents.stuff import StuffDocumentsChain -- 2319 | File "/root/.local/lib/python3.9/site-packages/langchain/chains/__init__.py", line 56, in <module> 2320 | from langchain.chains.openai_functions import ( 2321 | File "/root/.local/lib/python3.9/site-packages/langchain/chains/openai_functions/__init__.py", line 1, in <module> 2322 | from langchain.chains.openai_functions.base import ( 2323 | File "/root/.local/lib/python3.9/site-packages/langchain/chains/openai_functions/base.py", line 32, in <module> 2324 | from langchain.utils.openai_functions import convert_pydantic_to_openai_function 2325 | File "/root/.local/lib/python3.9/site-packages/langchain/utils/openai_functions.py", line 1, in <module> 2326 | from langchain_community.utils.openai_functions import ( 2327 | File "/root/.local/lib/python3.9/site-packages/langchain_community/utils/openai_functions.py", line 3, in <module> 2328 | from langchain_core.utils.function_calling import ( 2329 | ModuleNotFoundError: No module named 'langchain_core.utils.function_calling' ``` ### 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 - [x] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction It's triggered, in our case, when we import `StuffDocumentsChain` from langchain.chains.combine_documents.stuff import StuffDocumentsChain ### Expected behavior No error!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15643/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15643/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15642
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15642/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15642/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15642/events
https://github.com/langchain-ai/langchain/pull/15642
2,068,833,762
PR_kwDOIPDwls5jZBfm
15,642
community: Replaced hardcoded "metadata" with FIELDS_METADATA variable in semantic_hybrid_search_with_score_and_rerank
{ "login": "raunakshrivastava7", "id": 13537446, "node_id": "MDQ6VXNlcjEzNTM3NDQ2", "avatar_url": "https://avatars.githubusercontent.com/u/13537446?v=4", "gravatar_id": "", "url": "https://api.github.com/users/raunakshrivastava7", "html_url": "https://github.com/raunakshrivastava7", "followers_url": "https://api.github.com/users/raunakshrivastava7/followers", "following_url": "https://api.github.com/users/raunakshrivastava7/following{/other_user}", "gists_url": "https://api.github.com/users/raunakshrivastava7/gists{/gist_id}", "starred_url": "https://api.github.com/users/raunakshrivastava7/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/raunakshrivastava7/subscriptions", "organizations_url": "https://api.github.com/users/raunakshrivastava7/orgs", "repos_url": "https://api.github.com/users/raunakshrivastava7/repos", "events_url": "https://api.github.com/users/raunakshrivastava7/events{/privacy}", "received_events_url": "https://api.github.com/users/raunakshrivastava7/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 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-06T21:01:10
2024-01-07T01:05:00
2024-01-07T01:05:00
CONTRIBUTOR
null
- **Description:** This PR is to fix a bug in semantic_hybrid_search_with_score_and_rerank() function in langchain_community/vectorstores/azuresearch.py. The hardcoded "metadata" name is replaced with FIELDS_METADATA variable with an if block to check if the metadata column exists or not. - **Issue:** Fixed #15581 - **Dependencies:** No - **Twitter handle:** None
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15642/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15642/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15642", "html_url": "https://github.com/langchain-ai/langchain/pull/15642", "diff_url": "https://github.com/langchain-ai/langchain/pull/15642.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15642.patch", "merged_at": "2024-01-07T01:05:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/15641
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15641/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15641/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15641/events
https://github.com/langchain-ai/langchain/pull/15641
2,068,825,391
PR_kwDOIPDwls5jY_6P
15,641
Do not issue beta or deprecation warnings on internal calls
{ "login": "nfcampos", "id": 56902, "node_id": "MDQ6VXNlcjU2OTAy", "avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nfcampos", "html_url": "https://github.com/nfcampos", "followers_url": "https://api.github.com/users/nfcampos/followers", "following_url": "https://api.github.com/users/nfcampos/following{/other_user}", "gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}", "starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions", "organizations_url": "https://api.github.com/users/nfcampos/orgs", "repos_url": "https://api.github.com/users/nfcampos/repos", "events_url": "https://api.github.com/users/nfcampos/events{/privacy}", "received_events_url": "https://api.github.com/users/nfcampos/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 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-06T20:29:53
2024-01-08T04:54:46
2024-01-08T04:54:46
COLLABORATOR
null
ie. calls from other langchain modules <!-- 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/15641/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15641/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15641", "html_url": "https://github.com/langchain-ai/langchain/pull/15641", "diff_url": "https://github.com/langchain-ai/langchain/pull/15641.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15641.patch", "merged_at": "2024-01-08T04:54:46" }
https://api.github.com/repos/langchain-ai/langchain/issues/15640
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15640/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15640/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15640/events
https://github.com/langchain-ai/langchain/pull/15640
2,068,816,306
PR_kwDOIPDwls5jY-Ci
15,640
community: CTransformers: Add `_astream` implementation
{ "login": "abhishek9909", "id": 43916901, "node_id": "MDQ6VXNlcjQzOTE2OTAx", "avatar_url": "https://avatars.githubusercontent.com/u/43916901?v=4", "gravatar_id": "", "url": "https://api.github.com/users/abhishek9909", "html_url": "https://github.com/abhishek9909", "followers_url": "https://api.github.com/users/abhishek9909/followers", "following_url": "https://api.github.com/users/abhishek9909/following{/other_user}", "gists_url": "https://api.github.com/users/abhishek9909/gists{/gist_id}", "starred_url": "https://api.github.com/users/abhishek9909/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abhishek9909/subscriptions", "organizations_url": "https://api.github.com/users/abhishek9909/orgs", "repos_url": "https://api.github.com/users/abhishek9909/repos", "events_url": "https://api.github.com/users/abhishek9909/events{/privacy}", "received_events_url": "https://api.github.com/users/abhishek9909/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-06T20:08:46
2024-01-14T10:24:06
2024-01-14T10:24:06
CONTRIBUTOR
null
Description: - Addition of `_astream` implementation in `ctransformers.py` - Returns asynchronous iterator Issue: - Invoking `astream` without any model specific implementation of `_astream` defaults to 'yielding' `ainvoke` which does not "stream" data, returns string asynchronously. Verification: - `astream` verified with running `Mistral-7B-Instruct-v0.1-GGUF`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15640/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15640/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15640", "html_url": "https://github.com/langchain-ai/langchain/pull/15640", "diff_url": "https://github.com/langchain-ai/langchain/pull/15640.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15640.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15639
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15639/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15639/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15639/events
https://github.com/langchain-ai/langchain/issues/15639
2,068,795,849
I_kwDOIPDwls57T1HJ
15,639
ReadTimeout with Arabic pdf files
{ "login": "eta1232002", "id": 25517674, "node_id": "MDQ6VXNlcjI1NTE3Njc0", "avatar_url": "https://avatars.githubusercontent.com/u/25517674?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eta1232002", "html_url": "https://github.com/eta1232002", "followers_url": "https://api.github.com/users/eta1232002/followers", "following_url": "https://api.github.com/users/eta1232002/following{/other_user}", "gists_url": "https://api.github.com/users/eta1232002/gists{/gist_id}", "starred_url": "https://api.github.com/users/eta1232002/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eta1232002/subscriptions", "organizations_url": "https://api.github.com/users/eta1232002/orgs", "repos_url": "https://api.github.com/users/eta1232002/repos", "events_url": "https://api.github.com/users/eta1232002/events{/privacy}", "received_events_url": "https://api.github.com/users/eta1232002/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
3
2024-01-06T19:35:55
2024-01-06T22:40:22
null
NONE
null
### System Info Langchain ### Who can help? LangChain with Gemini Pro ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction stuff_chain = load_qa_chain(model, chain_type="stuff", prompt=prompt) question = "content pls?" stuff_answer = stuff_chain( {"input_documents": pages[1:], "question": question}, return_only_outputs=True ) ### Expected behavior ReadTimeout: HTTPConnectionPool(host='localhost', port=36027): Read timed out. (read timeout=60.0)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15639/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15639/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15637
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15637/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15637/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15637/events
https://github.com/langchain-ai/langchain/pull/15637
2,068,790,974
PR_kwDOIPDwls5jY5Vp
15,637
move output parser table
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-06T19:22:38
2024-01-06T23:40:14
2024-01-06T23:40:13
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15637/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15637/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15637", "html_url": "https://github.com/langchain-ai/langchain/pull/15637", "diff_url": "https://github.com/langchain-ai/langchain/pull/15637.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15637.patch", "merged_at": "2024-01-06T23:40:13" }
https://api.github.com/repos/langchain-ai/langchain/issues/15635
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15635/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15635/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15635/events
https://github.com/langchain-ai/langchain/pull/15635
2,068,735,392
PR_kwDOIPDwls5jYtqS
15,635
cli[patch]: bump pkg tmpl langchain verion
{ "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": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
2024-01-06T17:26:48
2024-01-09T18:57:16
2024-01-09T18:57:16
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15635/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15635/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15635", "html_url": "https://github.com/langchain-ai/langchain/pull/15635", "diff_url": "https://github.com/langchain-ai/langchain/pull/15635.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15635.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15633
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15633/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15633/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15633/events
https://github.com/langchain-ai/langchain/issues/15633
2,068,532,355
I_kwDOIPDwls57S0yD
15,633
Issue: What docstore to use in ChromaDB that isn't in memory?
{ "login": "XariZaru", "id": 18338434, "node_id": "MDQ6VXNlcjE4MzM4NDM0", "avatar_url": "https://avatars.githubusercontent.com/u/18338434?v=4", "gravatar_id": "", "url": "https://api.github.com/users/XariZaru", "html_url": "https://github.com/XariZaru", "followers_url": "https://api.github.com/users/XariZaru/followers", "following_url": "https://api.github.com/users/XariZaru/following{/other_user}", "gists_url": "https://api.github.com/users/XariZaru/gists{/gist_id}", "starred_url": "https://api.github.com/users/XariZaru/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/XariZaru/subscriptions", "organizations_url": "https://api.github.com/users/XariZaru/orgs", "repos_url": "https://api.github.com/users/XariZaru/repos", "events_url": "https://api.github.com/users/XariZaru/events{/privacy}", "received_events_url": "https://api.github.com/users/XariZaru/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5924999838, "node_id": "LA_kwDOIPDwls8AAAABYShSng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma", "name": "integration: chroma", "color": "B78AF8", "default": false, "description": "Related to ChromaDB" } ]
closed
false
null
[]
null
4
2024-01-06T10:53:10
2024-01-11T20:34:05
2024-01-07T00:46:38
NONE
null
### Issue you'd like to raise. I have the following ChromaDB setup: ```python parent_splitter = RecursiveCharacterTextSplitter(chunk_size=2000) child_splitter = RecursiveCharacterTextSplitter(chunk_size=400) vectorstore = None try: vectorstore = Chroma(persist_directory="storage/deploy/chroma-db", embedding_function=get_embedding_function()) print("Loaded existing vector store") except: print("Creating new vector store") vectorstore = Chroma( collection_name=collection_name, embedding_function=get_embedding_function(), persist_directory="storage/deploy/chroma-db" ) store = InMemoryStore() retriever = ParentDocumentRetriever( vectorstore=vectorstore, docstore=store, child_splitter=child_splitter, parent_splitter=parent_splitter ) return retriever ``` The issue is if I add a bunch of documents to the retriever, the memory eventually can run out and crash the system. Is there a way for this to be done out of RAM instead? Or am I misunderstanding the usage of this. ### Suggestion: Is there a non-inmemory docstore that can be used in the ParentDocumentRetriever or does it not make sense in the use case.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15633/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15633/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15632
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15632/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15632/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15632/events
https://github.com/langchain-ai/langchain/issues/15632
2,068,529,844
I_kwDOIPDwls57S0K0
15,632
DOC: langchain with Fireworks ai
{ "login": "BnBear123", "id": 89587848, "node_id": "MDQ6VXNlcjg5NTg3ODQ4", "avatar_url": "https://avatars.githubusercontent.com/u/89587848?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BnBear123", "html_url": "https://github.com/BnBear123", "followers_url": "https://api.github.com/users/BnBear123/followers", "following_url": "https://api.github.com/users/BnBear123/following{/other_user}", "gists_url": "https://api.github.com/users/BnBear123/gists{/gist_id}", "starred_url": "https://api.github.com/users/BnBear123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BnBear123/subscriptions", "organizations_url": "https://api.github.com/users/BnBear123/orgs", "repos_url": "https://api.github.com/users/BnBear123/repos", "events_url": "https://api.github.com/users/BnBear123/events{/privacy}", "received_events_url": "https://api.github.com/users/BnBear123/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
4
2024-01-06T10:45:41
2024-01-06T16:13:28
null
NONE
null
### Issue with current documentation: https://python.langchain.com/docs/integrations/chat/fireworks Hi, I'm new Langchain with Fireworks. I run this code in document 'ChatFireworks' and got an issue. Environment : python 3.11, Window10 ```Create a simple chain with memory chain = ( RunnablePassthrough.assign( history=memory.load_memory_variables | (lambda x: x["history"]) ) | prompt | llm.bind(stop=["\n\n"]) ) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[17], line 3 1 chain = ( 2 RunnablePassthrough.assign( ----> 3 history=memory.load_memory_variables | (lambda x: x["history"]) 4 ) 5 | prompt 6 | llm.bind(stop=["\n\n"]) 7 ) TypeError: unsupported operand type(s) for |: 'method' and 'function'``` ### Idea or request for content: TypeError: unsupported operand type(s) for |: 'method' and 'function
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15632/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15632/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15631
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15631/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15631/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15631/events
https://github.com/langchain-ai/langchain/pull/15631
2,068,529,290
PR_kwDOIPDwls5jYC5n
15,631
community: Fixed bug of "system message check" in chat_models/tongyi.
{ "login": "Yuffie", "id": 1974961, "node_id": "MDQ6VXNlcjE5NzQ5NjE=", "avatar_url": "https://avatars.githubusercontent.com/u/1974961?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Yuffie", "html_url": "https://github.com/Yuffie", "followers_url": "https://api.github.com/users/Yuffie/followers", "following_url": "https://api.github.com/users/Yuffie/following{/other_user}", "gists_url": "https://api.github.com/users/Yuffie/gists{/gist_id}", "starred_url": "https://api.github.com/users/Yuffie/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Yuffie/subscriptions", "organizations_url": "https://api.github.com/users/Yuffie/orgs", "repos_url": "https://api.github.com/users/Yuffie/repos", "events_url": "https://api.github.com/users/Yuffie/events{/privacy}", "received_events_url": "https://api.github.com/users/Yuffie/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-06T10:43:56
2024-01-07T16:30:22
2024-01-07T16:30:19
CONTRIBUTOR
null
- **Description:** This PR is to fix a bug of "system message check" in langchain_community/ chat_models/tongyi.py - **Issue:** In term of current logic, if there's no system message in the chat messages, an error of "System message can only be the first message." will be wrongly raised. - **Dependencies:** No. - **Twitter handle:** I don't have a Twitter account.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15631/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15631/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15631", "html_url": "https://github.com/langchain-ai/langchain/pull/15631", "diff_url": "https://github.com/langchain-ai/langchain/pull/15631.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15631.patch", "merged_at": "2024-01-07T16:30:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/15630
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15630/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15630/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15630/events
https://github.com/langchain-ai/langchain/pull/15630
2,068,470,011
PR_kwDOIPDwls5jX2Ur
15,630
community: Provide more actionable errors in the MathPix PDF loader
{ "login": "chadnorvell", "id": 29340381, "node_id": "MDQ6VXNlcjI5MzQwMzgx", "avatar_url": "https://avatars.githubusercontent.com/u/29340381?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chadnorvell", "html_url": "https://github.com/chadnorvell", "followers_url": "https://api.github.com/users/chadnorvell/followers", "following_url": "https://api.github.com/users/chadnorvell/following{/other_user}", "gists_url": "https://api.github.com/users/chadnorvell/gists{/gist_id}", "starred_url": "https://api.github.com/users/chadnorvell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chadnorvell/subscriptions", "organizations_url": "https://api.github.com/users/chadnorvell/orgs", "repos_url": "https://api.github.com/users/chadnorvell/repos", "events_url": "https://api.github.com/users/chadnorvell/events{/privacy}", "received_events_url": "https://api.github.com/users/chadnorvell/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": 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-06T08:28:21
2024-01-07T22:43:19
2024-01-07T16:31:09
CONTRIBUTOR
null
- **Description:** The `error_info['id']` can be cross-referenced with the MathPix API documentation to get very specific information about why an error occurred.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15630/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15630/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15630", "html_url": "https://github.com/langchain-ai/langchain/pull/15630", "diff_url": "https://github.com/langchain-ai/langchain/pull/15630.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15630.patch", "merged_at": "2024-01-07T16:31:09" }
https://api.github.com/repos/langchain-ai/langchain/issues/15629
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15629/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15629/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15629/events
https://github.com/langchain-ai/langchain/pull/15629
2,068,467,164
PR_kwDOIPDwls5jX1wP
15,629
community: Include PDF ID in MathPix metadata
{ "login": "chadnorvell", "id": 29340381, "node_id": "MDQ6VXNlcjI5MzQwMzgx", "avatar_url": "https://avatars.githubusercontent.com/u/29340381?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chadnorvell", "html_url": "https://github.com/chadnorvell", "followers_url": "https://api.github.com/users/chadnorvell/followers", "following_url": "https://api.github.com/users/chadnorvell/following{/other_user}", "gists_url": "https://api.github.com/users/chadnorvell/gists{/gist_id}", "starred_url": "https://api.github.com/users/chadnorvell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chadnorvell/subscriptions", "organizations_url": "https://api.github.com/users/chadnorvell/orgs", "repos_url": "https://api.github.com/users/chadnorvell/repos", "events_url": "https://api.github.com/users/chadnorvell/events{/privacy}", "received_events_url": "https://api.github.com/users/chadnorvell/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": 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-06T08:17:22
2024-01-07T22:43:35
2024-01-07T16:31:53
CONTRIBUTOR
null
- **Description:** Includes the PDF ID in the MathPix document metadata. This is useful in case you need to re-request a processed PDF from the MathPix API later.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15629/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15629/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15629", "html_url": "https://github.com/langchain-ai/langchain/pull/15629", "diff_url": "https://github.com/langchain-ai/langchain/pull/15629.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15629.patch", "merged_at": "2024-01-07T16:31:53" }
https://api.github.com/repos/langchain-ai/langchain/issues/15628
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15628/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15628/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15628/events
https://github.com/langchain-ai/langchain/issues/15628
2,068,438,255
I_kwDOIPDwls57Sdzv
15,628
'Unrecognized request argument supplied: functions' error when executing agent | following documentation
{ "login": "d1pankarmedhi", "id": 136924835, "node_id": "U_kgDOCClOow", "avatar_url": "https://avatars.githubusercontent.com/u/136924835?v=4", "gravatar_id": "", "url": "https://api.github.com/users/d1pankarmedhi", "html_url": "https://github.com/d1pankarmedhi", "followers_url": "https://api.github.com/users/d1pankarmedhi/followers", "following_url": "https://api.github.com/users/d1pankarmedhi/following{/other_user}", "gists_url": "https://api.github.com/users/d1pankarmedhi/gists{/gist_id}", "starred_url": "https://api.github.com/users/d1pankarmedhi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/d1pankarmedhi/subscriptions", "organizations_url": "https://api.github.com/users/d1pankarmedhi/orgs", "repos_url": "https://api.github.com/users/d1pankarmedhi/repos", "events_url": "https://api.github.com/users/d1pankarmedhi/events{/privacy}", "received_events_url": "https://api.github.com/users/d1pankarmedhi/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2024-01-06T06:53:43
2024-01-06T07:02:47
2024-01-06T07:02:47
NONE
null
### System Info `langchain==0.1.0` `langchain-community==0.0.9` `langchain-core==0.1.7` `linux 20.04` ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Following the documentation https://python.langchain.com/docs/modules/agents/how_to/custom_agent ### Expected behavior Should output something similar to this ``` {'input': 'How many letters in the word educa', 'output': 'There are 5 letters in the word "educa".'} ``` Instead got an error when ran `agent_executor.invoke({"input": "How many letters in the word educa"})` ``` NotFoundError: Error code: 404 - {'error': {'message': 'Unrecognized request argument supplied: functions', 'type': 'invalid_request_error', 'param': None, 'code': None}} ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15628/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15628/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15627
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15627/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15627/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15627/events
https://github.com/langchain-ai/langchain/pull/15627
2,068,355,535
PR_kwDOIPDwls5jXdue
15,627
community: Allow deleting by ID and collection in `pgvector`
{ "login": "chadnorvell", "id": 29340381, "node_id": "MDQ6VXNlcjI5MzQwMzgx", "avatar_url": "https://avatars.githubusercontent.com/u/29340381?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chadnorvell", "html_url": "https://github.com/chadnorvell", "followers_url": "https://api.github.com/users/chadnorvell/followers", "following_url": "https://api.github.com/users/chadnorvell/following{/other_user}", "gists_url": "https://api.github.com/users/chadnorvell/gists{/gist_id}", "starred_url": "https://api.github.com/users/chadnorvell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chadnorvell/subscriptions", "organizations_url": "https://api.github.com/users/chadnorvell/orgs", "repos_url": "https://api.github.com/users/chadnorvell/repos", "events_url": "https://api.github.com/users/chadnorvell/events{/privacy}", "received_events_url": "https://api.github.com/users/chadnorvell/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "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": "" }, { "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-06T04:15:35
2024-01-07T22:44:08
2024-01-07T16:33:21
CONTRIBUTOR
null
- **Description:** The `delete_collection` method deletes an entire collection regardless of custom ID. The `delete` method deletes everything with the provided custom IDs regardless of collection. It can be useful to restrict deletion to both the collection and a set of custom IDs. This change adds support for that by allowing you to optionally specify that `delete` should be restricted to the collection defined on the `PGVector` instance.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15627/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15627/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15627", "html_url": "https://github.com/langchain-ai/langchain/pull/15627", "diff_url": "https://github.com/langchain-ai/langchain/pull/15627.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15627.patch", "merged_at": "2024-01-07T16:33:21" }
https://api.github.com/repos/langchain-ai/langchain/issues/15626
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15626/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15626/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15626/events
https://github.com/langchain-ai/langchain/pull/15626
2,068,309,522
PR_kwDOIPDwls5jXTvP
15,626
message history test
{ "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 }
[]
open
false
null
[]
null
1
2024-01-06T02:40:53
2024-01-06T02:42:34
null
COLLABORATOR
null
message history test
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15626/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15626/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15626", "html_url": "https://github.com/langchain-ai/langchain/pull/15626", "diff_url": "https://github.com/langchain-ai/langchain/pull/15626.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15626.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15625
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15625/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15625/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15625/events
https://github.com/langchain-ai/langchain/pull/15625
2,068,303,984
PR_kwDOIPDwls5jXSgz
15,625
community: AWS Athena Document Loader
{ "login": "abhijeethp", "id": 21107674, "node_id": "MDQ6VXNlcjIxMTA3Njc0", "avatar_url": "https://avatars.githubusercontent.com/u/21107674?v=4", "gravatar_id": "", "url": "https://api.github.com/users/abhijeethp", "html_url": "https://github.com/abhijeethp", "followers_url": "https://api.github.com/users/abhijeethp/followers", "following_url": "https://api.github.com/users/abhijeethp/following{/other_user}", "gists_url": "https://api.github.com/users/abhijeethp/gists{/gist_id}", "starred_url": "https://api.github.com/users/abhijeethp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abhijeethp/subscriptions", "organizations_url": "https://api.github.com/users/abhijeethp/orgs", "repos_url": "https://api.github.com/users/abhijeethp/repos", "events_url": "https://api.github.com/users/abhijeethp/events{/privacy}", "received_events_url": "https://api.github.com/users/abhijeethp/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": 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": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
3
2024-01-06T02:31:53
2024-01-15T19:52:44
null
NONE
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. --> - **Description:** Adds the document loader for [AWS Athena](https://aws.amazon.com/athena/), a serverless and interactive analytics service. - **Dependencies:** Added boto3 as a dependency
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15625/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15625/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15625", "html_url": "https://github.com/langchain-ai/langchain/pull/15625", "diff_url": "https://github.com/langchain-ai/langchain/pull/15625.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15625.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15624
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15624/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15624/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15624/events
https://github.com/langchain-ai/langchain/pull/15624
2,068,286,666
PR_kwDOIPDwls5jXOzU
15,624
openai[patch]: unit test load
{ "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": 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." }, { "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-06T01:57:51
2024-01-09T19:54:13
2024-01-09T19:54:12
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15624/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15624/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15624", "html_url": "https://github.com/langchain-ai/langchain/pull/15624", "diff_url": "https://github.com/langchain-ai/langchain/pull/15624.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15624.patch", "merged_at": "2024-01-09T19:54:12" }
https://api.github.com/repos/langchain-ai/langchain/issues/15623
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15623/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15623/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15623/events
https://github.com/langchain-ai/langchain/pull/15623
2,068,284,834
PR_kwDOIPDwls5jXOby
15,623
Fix history runnable when called with messages as input
{ "login": "nfcampos", "id": 56902, "node_id": "MDQ6VXNlcjU2OTAy", "avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nfcampos", "html_url": "https://github.com/nfcampos", "followers_url": "https://api.github.com/users/nfcampos/followers", "following_url": "https://api.github.com/users/nfcampos/following{/other_user}", "gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}", "starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions", "organizations_url": "https://api.github.com/users/nfcampos/orgs", "repos_url": "https://api.github.com/users/nfcampos/repos", "events_url": "https://api.github.com/users/nfcampos/events{/privacy}", "received_events_url": "https://api.github.com/users/nfcampos/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 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-06T01:51:40
2024-01-06T01:51:49
null
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/15623/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15623/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15623", "html_url": "https://github.com/langchain-ai/langchain/pull/15623", "diff_url": "https://github.com/langchain-ai/langchain/pull/15623.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15623.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15621
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15621/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15621/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15621/events
https://github.com/langchain-ai/langchain/pull/15621
2,068,278,565
PR_kwDOIPDwls5jXNJJ
15,621
community[patch]: fix deprecation warnings on openai subclasses
{ "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": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-06T01:32:23
2024-01-06T02:02:18
2024-01-06T02:02:17
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15621/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15621/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15621", "html_url": "https://github.com/langchain-ai/langchain/pull/15621", "diff_url": "https://github.com/langchain-ai/langchain/pull/15621.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15621.patch", "merged_at": "2024-01-06T02:02:17" }
https://api.github.com/repos/langchain-ai/langchain/issues/15620
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15620/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15620/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15620/events
https://github.com/langchain-ai/langchain/pull/15620
2,068,261,340
PR_kwDOIPDwls5jXJkn
15,620
infra: fix langchain openai test dep
{ "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-06T00:50:43
2024-01-06T01:14:23
2024-01-06T01:14:22
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15620/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15620/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15620", "html_url": "https://github.com/langchain-ai/langchain/pull/15620", "diff_url": "https://github.com/langchain-ai/langchain/pull/15620.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15620.patch", "merged_at": "2024-01-06T01:14:22" }
https://api.github.com/repos/langchain-ai/langchain/issues/15619
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15619/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15619/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15619/events
https://github.com/langchain-ai/langchain/pull/15619
2,068,242,249
PR_kwDOIPDwls5jXFU7
15,619
langchain[minor]: Release 0.1.0
{ "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": 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-06T00:28:34
2024-01-06T00:33:36
2024-01-06T00:33:36
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15619/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15619/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15619", "html_url": "https://github.com/langchain-ai/langchain/pull/15619", "diff_url": "https://github.com/langchain-ai/langchain/pull/15619.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15619.patch", "merged_at": "2024-01-06T00:33:36" }
https://api.github.com/repos/langchain-ai/langchain/issues/15618
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15618/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15618/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15618/events
https://github.com/langchain-ai/langchain/pull/15618
2,068,234,446
PR_kwDOIPDwls5jXDiy
15,618
openai[patch]: v0.0.2
{ "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": 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." }, { "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-06T00:21:41
2024-01-06T00:33:11
2024-01-06T00:33:10
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15618/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15618/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15618", "html_url": "https://github.com/langchain-ai/langchain/pull/15618", "diff_url": "https://github.com/langchain-ai/langchain/pull/15618.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15618.patch", "merged_at": "2024-01-06T00:33:10" }
https://api.github.com/repos/langchain-ai/langchain/issues/15617
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15617/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15617/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15617/events
https://github.com/langchain-ai/langchain/pull/15617
2,068,232,407
PR_kwDOIPDwls5jXDGr
15,617
infra: community bump min core version
{ "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-06T00:17:41
2024-01-06T00:17:50
2024-01-06T00:17:48
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15617/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15617/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15617", "html_url": "https://github.com/langchain-ai/langchain/pull/15617", "diff_url": "https://github.com/langchain-ai/langchain/pull/15617.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15617.patch", "merged_at": "2024-01-06T00:17:48" }
https://api.github.com/repos/langchain-ai/langchain/issues/15616
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15616/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15616/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15616/events
https://github.com/langchain-ai/langchain/issues/15616
2,068,219,804
I_kwDOIPDwls57Roec
15,616
AttributeError: module 'chromadb' has no attribute 'config'
{ "login": "XariZaru", "id": 18338434, "node_id": "MDQ6VXNlcjE4MzM4NDM0", "avatar_url": "https://avatars.githubusercontent.com/u/18338434?v=4", "gravatar_id": "", "url": "https://api.github.com/users/XariZaru", "html_url": "https://github.com/XariZaru", "followers_url": "https://api.github.com/users/XariZaru/followers", "following_url": "https://api.github.com/users/XariZaru/following{/other_user}", "gists_url": "https://api.github.com/users/XariZaru/gists{/gist_id}", "starred_url": "https://api.github.com/users/XariZaru/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/XariZaru/subscriptions", "organizations_url": "https://api.github.com/users/XariZaru/orgs", "repos_url": "https://api.github.com/users/XariZaru/repos", "events_url": "https://api.github.com/users/XariZaru/events{/privacy}", "received_events_url": "https://api.github.com/users/XariZaru/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "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" } ]
closed
false
null
[]
null
5
2024-01-06T00:06:53
2024-01-06T16:14:00
2024-01-06T16:14:00
NONE
null
### System Info Python 3.11, Langchain 0.0.354, ChromaDB v0.4.22 ### Who can help? @agola11 @hwchase17 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```python from langchain.text_splitter import MarkdownTextSplitter, RecursiveCharacterTextSplitter from langchain.document_loaders import DirectoryLoader from langchain.storage import InMemoryStore from langchain.retrievers import ParentDocumentRetriever from langchain.vectorstores import Chroma import chromadb def load_chroma_db(collection_name: str): parent_splitter = RecursiveCharacterTextSplitter(chunk_size=2000) child_splitter = RecursiveCharacterTextSplitter(chunk_size=400) vectorstore = Chroma( collection_name=collection_name, embedding_function=get_embedding_function(), persist_directory="storage/deploy/chroma-db" ) store = InMemoryStore() retriever = ParentDocumentRetriever( vectorstore=vectorstore, docstore=store, child_splitter=child_splitter, parent_splitter=parent_splitter ) return retriever retriever = load_chroma_db("full_docs") retriever.add_documents(bancworks_docs) ``` ### Expected behavior Should be able to load ChromaDB and persist it.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15616/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15616/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15615
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15615/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15615/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15615/events
https://github.com/langchain-ai/langchain/pull/15615
2,068,216,045
PR_kwDOIPDwls5jW_VU
15,615
community[patch]: Release 0.0.9
{ "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-06T00:04:44
2024-01-06T00:11:19
2024-01-06T00:11:19
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15615/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15615/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15615", "html_url": "https://github.com/langchain-ai/langchain/pull/15615", "diff_url": "https://github.com/langchain-ai/langchain/pull/15615.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15615.patch", "merged_at": "2024-01-06T00:11:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/15614
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15614/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15614/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15614/events
https://github.com/langchain-ai/langchain/pull/15614
2,068,196,581
PR_kwDOIPDwls5jW6wd
15,614
openai: core version, rc1
{ "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": 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." }, { "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-05T23:52:45
2024-01-05T23:57:24
2024-01-05T23:57:23
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15614/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15614/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15614", "html_url": "https://github.com/langchain-ai/langchain/pull/15614", "diff_url": "https://github.com/langchain-ai/langchain/pull/15614.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15614.patch", "merged_at": "2024-01-05T23:57:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/15613
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15613/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15613/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15613/events
https://github.com/langchain-ai/langchain/pull/15613
2,068,177,637
PR_kwDOIPDwls5jW2ls
15,613
google-vertexai: release 0.0.1
{ "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": 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." }, { "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-05T23:23:58
2024-01-05T23:24:24
2024-01-05T23:24:23
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15613/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15613/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15613", "html_url": "https://github.com/langchain-ai/langchain/pull/15613", "diff_url": "https://github.com/langchain-ai/langchain/pull/15613.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15613.patch", "merged_at": "2024-01-05T23:24:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/15612
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15612/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15612/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15612/events
https://github.com/langchain-ai/langchain/pull/15612
2,068,164,357
PR_kwDOIPDwls5jWznJ
15,612
infra: title release action runs
{ "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": 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-05T23:08:53
2024-01-05T23:24:58
2024-01-05T23:24:57
COLLABORATOR
null
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#run-name
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15612/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15612/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15612", "html_url": "https://github.com/langchain-ai/langchain/pull/15612", "diff_url": "https://github.com/langchain-ai/langchain/pull/15612.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15612.patch", "merged_at": "2024-01-05T23:24:57" }
https://api.github.com/repos/langchain-ai/langchain/issues/15611
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15611/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15611/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15611/events
https://github.com/langchain-ai/langchain/pull/15611
2,068,161,283
PR_kwDOIPDwls5jWy8m
15,611
google-vertexai, openai: release candidate version
{ "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": 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." }, { "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-05T23:04:57
2024-01-05T23:05:28
2024-01-05T23:05:28
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15611/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15611/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15611", "html_url": "https://github.com/langchain-ai/langchain/pull/15611", "diff_url": "https://github.com/langchain-ai/langchain/pull/15611.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15611.patch", "merged_at": "2024-01-05T23:05:28" }
https://api.github.com/repos/langchain-ai/langchain/issues/15610
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15610/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15610/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15610/events
https://github.com/langchain-ai/langchain/pull/15610
2,068,155,513
PR_kwDOIPDwls5jWxu7
15,610
core[patch]: Release 0.1.7
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 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-05T22:57:08
2024-01-05T23:24:12
2024-01-05T23:24:12
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15610/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15610/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15610", "html_url": "https://github.com/langchain-ai/langchain/pull/15610", "diff_url": "https://github.com/langchain-ai/langchain/pull/15610.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15610.patch", "merged_at": "2024-01-05T23:24:11" }
https://api.github.com/repos/langchain-ai/langchain/issues/15609
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15609/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15609/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15609/events
https://github.com/langchain-ai/langchain/pull/15609
2,068,155,325
PR_kwDOIPDwls5jWxsM
15,609
infra: vertex integration test creds
{ "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": 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." } ]
closed
false
null
[]
null
1
2024-01-05T22:56:55
2024-01-05T23:03:40
2024-01-05T23:03:40
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15609/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15609/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15609", "html_url": "https://github.com/langchain-ai/langchain/pull/15609", "diff_url": "https://github.com/langchain-ai/langchain/pull/15609.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15609.patch", "merged_at": "2024-01-05T23:03:40" }
https://api.github.com/repos/langchain-ai/langchain/issues/15608
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15608/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15608/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15608/events
https://github.com/langchain-ai/langchain/pull/15608
2,068,150,053
PR_kwDOIPDwls5jWwmS
15,608
core[patch]: deprecate v1 tracer
{ "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": 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": 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-05T22:48:54
2024-01-06T00:25:20
2024-01-06T00:25:19
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15608/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15608/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15608", "html_url": "https://github.com/langchain-ai/langchain/pull/15608", "diff_url": "https://github.com/langchain-ai/langchain/pull/15608.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15608.patch", "merged_at": "2024-01-06T00:25:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/15607
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15607/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15607/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15607/events
https://github.com/langchain-ai/langchain/issues/15607
2,068,110,708
I_kwDOIPDwls57RN10
15,607
`UnstructuredFileLoader` shows `TypeError: expected str, bytes or os.PathLike object, not list` when a list of files is passed in
{ "login": "JoshLoecker", "id": 47901540, "node_id": "MDQ6VXNlcjQ3OTAxNTQw", "avatar_url": "https://avatars.githubusercontent.com/u/47901540?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JoshLoecker", "html_url": "https://github.com/JoshLoecker", "followers_url": "https://api.github.com/users/JoshLoecker/followers", "following_url": "https://api.github.com/users/JoshLoecker/following{/other_user}", "gists_url": "https://api.github.com/users/JoshLoecker/gists{/gist_id}", "starred_url": "https://api.github.com/users/JoshLoecker/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JoshLoecker/subscriptions", "organizations_url": "https://api.github.com/users/JoshLoecker/orgs", "repos_url": "https://api.github.com/users/JoshLoecker/repos", "events_url": "https://api.github.com/users/JoshLoecker/events{/privacy}", "received_events_url": "https://api.github.com/users/JoshLoecker/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-05T22:14:50
2024-01-06T21:45:31
null
NONE
null
### System Info LangChain version: 0.0.354 LangChain Community version: 0.0.8 Platform: Apple M3 Pro chip on MacOS Sonoma (MacOS 14.2.1) Python version: 3.11.7 ### Who can help? @baskaryan has the most recent commits on this section of the code, but it was for moving items to the `langchain_community` package. I'm not sure who is the original author ### 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 - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. Create a list of file paths 2. Attempt to load using `UnstructuredFileLoader` ```python from langchain_community.document_loaders import UnstructuredFileLoader files = [ "file_1.txt", "file_2.txt" ] loader = UnstructuredFileLoader(file_path=files) documents = loader.load() # Error occurs on this line ``` Contents of `file_1.txt` ```txt some stuff ``` Contents of `file_2.txt` ```txt some more stuff ``` Stack trace ``` Traceback (most recent call last): File "/Users/joshl/Library/Application Support/JetBrains/PyCharm2023.3/scratches/scratch.py", line 9, in <module> documents = loader.load() # Error occurs on this line ^^^^^^^^^^^^^ File "/Users/joshl/miniforge3/envs/MechanisticLLM/lib/python3.11/site-packages/langchain_community/document_loaders/unstructured.py", line 87, in load elements = self._get_elements() ^^^^^^^^^^^^^^^^^^^^ File "/Users/joshl/miniforge3/envs/MechanisticLLM/lib/python3.11/site-packages/langchain_community/document_loaders/unstructured.py", line 173, in _get_elements return partition(filename=self.file_path, **self.unstructured_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/joshl/miniforge3/envs/MechanisticLLM/lib/python3.11/site-packages/unstructured/partition/auto.py", line 278, in partition filetype = detect_filetype( ^^^^^^^^^^^^^^^^ File "/Users/joshl/miniforge3/envs/MechanisticLLM/lib/python3.11/site-packages/unstructured/file_utils/filetype.py", line 248, in detect_filetype _, extension = os.path.splitext(_filename) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen posixpath>", line 118, in splitext TypeError: expected str, bytes or os.PathLike object, not list Process finished with exit code 1 ``` ### Expected behavior A list of strings should be able to be passed to the `UnstructuredFileLoader` class based on the `__init__` arguments ```python class UnstructuredFileLoader(UnstructuredBaseLoader): def __init__( self, file_path: Union[str, List[str]], mode: str = "single", **unstructured_kwargs: Any, ): ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15607/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15607/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15606
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15606/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15606/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15606/events
https://github.com/langchain-ai/langchain/pull/15606
2,068,079,365
PR_kwDOIPDwls5jWg1c
15,606
docs: add changelog
{ "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": 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-05T21:50:07
2024-01-07T16:34:35
2024-01-07T16:34:34
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/15606/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15606/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15606", "html_url": "https://github.com/langchain-ai/langchain/pull/15606", "diff_url": "https://github.com/langchain-ai/langchain/pull/15606.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15606.patch", "merged_at": "2024-01-07T16:34:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/15605
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15605/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15605/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15605/events
https://github.com/langchain-ai/langchain/issues/15605
2,068,033,254
I_kwDOIPDwls57Q67m
15,605
Playwright Browser Freezing
{ "login": "CurtMRosenbladWheeler", "id": 67826802, "node_id": "MDQ6VXNlcjY3ODI2ODAy", "avatar_url": "https://avatars.githubusercontent.com/u/67826802?v=4", "gravatar_id": "", "url": "https://api.github.com/users/CurtMRosenbladWheeler", "html_url": "https://github.com/CurtMRosenbladWheeler", "followers_url": "https://api.github.com/users/CurtMRosenbladWheeler/followers", "following_url": "https://api.github.com/users/CurtMRosenbladWheeler/following{/other_user}", "gists_url": "https://api.github.com/users/CurtMRosenbladWheeler/gists{/gist_id}", "starred_url": "https://api.github.com/users/CurtMRosenbladWheeler/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CurtMRosenbladWheeler/subscriptions", "organizations_url": "https://api.github.com/users/CurtMRosenbladWheeler/orgs", "repos_url": "https://api.github.com/users/CurtMRosenbladWheeler/repos", "events_url": "https://api.github.com/users/CurtMRosenbladWheeler/events{/privacy}", "received_events_url": "https://api.github.com/users/CurtMRosenbladWheeler/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-05T20:59:22
2024-01-05T21:06:45
null
NONE
null
### System Info ## System Info **LangChain Version:** 0.0.354 **Platform:** MacOS Sonoma 14.2.1 **Python Version:** 3.11.6 ### Who can help? @hwchase17 @agola11 ### Information - [X] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction **Code sample that utilizes the Playwright Toolkit:** [https://python.langchain.com/docs/integrations/toolkits/playwright](https://python.langchain.com/docs/integrations/toolkits/playwright) For instance, when you attempt to run: ```Python await navigate_tool.arun( {"url": "https://web.archive.org/web/20230428131116/https://www.cnn.com/world"} ) ``` Nothing happens after 20 minutes. The only way I have been able to get a response was by waiting a few seconds and then turning off my computer's wifi, which would return the expected: ```Bash 'Navigating to https://web.archive.org/web/20230428131116/https://www.cnn.com/world returned status code 200' ``` I am utilizing the browser in an agent, and here is the code: ```Python import asyncio from typing import Type, Optional from langchain.agents import AgentExecutor from langchain.schema import SystemMessage, HumanMessage, AIMessage from long-chain.agents.format_scratchpad.openai_functions import format_to_openai_function_messages from langchain.agents.output_parsers.openai_functions import OpenAIFunctionsAgentOutputParser from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder from langchain.tools.convert_to_openai import format_tool_to_openai_function from langchain_community.tools.playwright.utils import create_async_playwright_browser from langchain.tools.tavily_search import TavilySearchResults from langchain.utilities.tavily_search import TavilySearchAPIWrapper from langchain_community.agent_toolkits.playwright import PlayWrightBrowserToolkit from langchain.callbacks.manager import CallbackManagerForToolRun from langchain.pydantic_v1 import BaseModel, Field from langchain.tools import BaseTool from auto_sentry.src.chat_models.enums.OpenAI import OpenAI as openai_enums from auto_sentry.src.chat_models.Memory import Memory from auto_sentry.src.chat_models.OpenAI import GPT class AIQuestionInput(BaseModel): query: str = Field(description="should contain your question for the user including specific aspects or details from the user's input that require further clarification or elaboration") class AIQuestionTool(BaseTool): name = "ai_question" description = "useful for when you need to clairify user requests or when you need to ask them a question" args_schema: Type[BaseModel] = AIQuestionInput def _run( self, query: str, run_manager: Optional[CallbackManagerForToolRun] = None ) -> str: """Use the tool.""" return query llm = GPT(model=openai_enums.GPT_4_1106_PREVIEW) memory = Memory("Test_Conversation") memory.clear() search = [TavilySearchResults(api_wrapper=TavilySearchAPIWrapper(), handle_tool_error=True, verbose=True)] playwright_async_browser = create_async_playwright_browser(headless=True) toolkit = PlayWrightBrowserToolkit.from_browser(async_browser=playwright_async_browser) playwright_tools = toolkit.get_tools() tools:list = search + playwright_tools MEMORY_KEY = "chat_history" prompt = ChatPromptTemplate.from_messages( [ SystemMessage( content="You are a helpful assistant." ), MessagesPlaceholder(variable_name=MEMORY_KEY), HumanMessage(content="{input}"), MessagesPlaceholder(variable_name="agent_scratchpad"), ] ) memory.add(prompt.messages[0]) functions=[format_tool_to_openai_function(tool) for tool in tools] #""" llm_with_tools = llm.llm.bind( functions=functions ) agent = ( { "input": lambda x: x["input"], "agent_scratchpad": lambda x: format_to_openai_function_messages( x["intermediate_steps"] ), "chat_history": lambda x: x["chat_history"], } | prompt | llm_with_tools | OpenAIFunctionsAgentOutputParser() ) agent_executer = AgentExecutor( agent=agent, tools=tools, verbose=True, return_intermediate_steps=True ) query = HumanMessage(content=input("> ")) memory.add(query) async def run_agent(): print(memory.memory()) response = await agent_executer.ainvoke( {"input": query, MEMORY_KEY: memory.memory()} ) return response response = asyncio.run(run_agent()) agent_messages = format_to_openai_function_messages(response["intermediate_steps"]) staged_messages = [] staged_messages.extend(agent_messages) staged_messages.append(AIMessage(content=response["output"])) memory.add(staged_messages) print(memory.memory()) ``` And when it executes a Playwright browser-related command, it just freezes and does nothing. Here is an example that runs a Playwright browser-related command: ```Bash > Summarize today's financial news from Google Finance. [SystemMessage(content='You are a helpful assistant.'), HumanMessage(content="Summarize today's financial news from Google Finance.")] > Entering new AgentExecutor chain... Invoking: `navigate_browser` with `{'url': 'https://www.google.com/finance'}` ``` But when it utilizes any other tool, such as Tavily Search, it works successfully: ```Bash > What is the weather supposed to be like in Miami tomorrow? [SystemMessage(content='You are a helpful assistant.'), HumanMessage(content='What is the weather supposed to be like in Miami tomorrow?')] > Entering new AgentExecutor chain... Invoking: `tavily_search_results_json` with `{'query': 'Miami weather forecast for tomorrow'}` [{'url': 'https://www.weather.gov/mfl/\xa0', 'content': 'Read More > Privacy Policy Miami - South Florida Weather Forecast Office NWS Forecast Of fice Miami - South Florida Aviation Weather International Weather RADAR IMAGERY National Miami Radar Key West Radar Across Florida CLIMATE Miami - South Florida11691 SW 17th StreetMiami, FL 33165305-229-4522Comments? Questions? Please Contact Us. Last Map Update: Fri, Jan. 5, 2024 at 3:54:05 pm EST Text Product Selector: CURRENT HAZARDS OutlooksMiami - South Florida. Weather Forecast Office. NWS Forecast Office Miami - South Florida. Weather.gov > Miami ... Fri, Jan. 5, 2024 at 2:20:05 am EST. Watches, Warnings & Advisories. Zoom Out: Gale Warning: Small Craft Advisory: Rip Current Statement: ... National Weather Service Miami - South Florida 11691 SW 17th Street Miami, FL 33165 305 ...'}]The weather forecast for Miami tomorrow can be found on the National Weather Service's website for the Miami - South Florida region. You can visit [this link](https://www.weather.gov/mfl/) for the most up-to-date information on the weather forecast, including any watches, warnings, or advisories that may be in effect. > Finished chain. [SystemMessage(content='You are a helpful assistant.'), HumanMessage(content='What is the weather supposed to be like in Miami tomorrow?'), AIMes sage(content='', additional_kwargs={'function_call': {'arguments': '{"query":"Miami weather forecast for tomorrow"}', 'name': 'tavily_search_results_json'}}), FunctionMessage(content='[{"url": "https://www.weather.gov/mfl/\xa0", "content": "Read More > Privacy Policy Miami - South Florida Weather Forecast Office NWS Forecast Office Miami - South Florida Aviation Weather International Weather RADAR IMAGERY National Miami Radar Key West Radar Across Florida CLIMATE Miami - South Florida11691 SW 17th StreetMiami, FL 33165305-229-4522Comments? Questions? Please Contact Us. Last Map Update: Fri, Jan. 5, 2024 at 3:54:05 pm EST Text Product Selector: CURRENT HAZARDS OutlooksMiami - South Florida. Weather Forecast Office. NWS Forecast Office Miami - South Florida. Weather.gov > Miami ... Fri, Jan. 5, 2024 at 2:20:05 am EST. Watches, Warnings & Advisories. Zoom Out: Gale Warning: Small Craft Advisory: Rip Current Statement: ... National Weather Service Miami - South Florida 11691 SW 17th Street Miami, FL 33165 305 ..."}]', name='tavily_search_results_json'), AIMessage(content="The weather forecast for Miami tomorrow can be found on the National Weather Service's website for the Miami - South Florida region. You can visit [this link](https://www.weather.gov/mfl/) for the most up-to-date information on the weather forecast, including any watches, warnings, or advisories that may be in effect.")] ``` ### Expected behavior The behavior of the Playwright Browser should return results to an input in a relatively prompt manner, but it currently freezes and returns.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15605/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15605/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15604
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15604/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15604/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15604/events
https://github.com/langchain-ai/langchain/issues/15604
2,068,029,209
I_kwDOIPDwls57Q58Z
15,604
Issue with LangChain Misclassifying gpt-3.5-turbo-instruct as Chat Model
{ "login": "MahdiJafari1", "id": 60805406, "node_id": "MDQ6VXNlcjYwODA1NDA2", "avatar_url": "https://avatars.githubusercontent.com/u/60805406?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MahdiJafari1", "html_url": "https://github.com/MahdiJafari1", "followers_url": "https://api.github.com/users/MahdiJafari1/followers", "following_url": "https://api.github.com/users/MahdiJafari1/following{/other_user}", "gists_url": "https://api.github.com/users/MahdiJafari1/gists{/gist_id}", "starred_url": "https://api.github.com/users/MahdiJafari1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MahdiJafari1/subscriptions", "organizations_url": "https://api.github.com/users/MahdiJafari1/orgs", "repos_url": "https://api.github.com/users/MahdiJafari1/repos", "events_url": "https://api.github.com/users/MahdiJafari1/events{/privacy}", "received_events_url": "https://api.github.com/users/MahdiJafari1/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
3
2024-01-05T20:55:57
2024-01-06T18:29:34
2024-01-06T18:29:34
NONE
null
### Discussed in https://github.com/langchain-ai/langchain/discussions/15598 <div type='discussions-op-text'> <sup>Originally posted by **MahdiJafari1** January 5, 2024</sup> OpenAI deprecated its `text-davinci-003` completion model. I've updated the model to `gpt-3.5-turbo-instruct`. I am encountering an issue with the LangChain where it incorrectly classifies the `gpt-3.5-turbo-instruct` model as a chat model. This is causing initialization problems in my code. **Environment:** ``` python = "^3.10" langchain = "^0.0.130" ``` OS: Ubuntu **Expected Behavior:** The expected behavior is that the gpt-3.5-turbo-instruct model should be recognized as a completion model by LangChain and initialized appropriately without warnings or errors. **Actual Behavior:** When attempting to initialize the gpt-3.5-turbo-instruct model, I receive warnings suggesting that this model is being misclassified as a chat model. The specific warnings are: ```shell /home/mahdi/.cache/pypoetry/virtualenvs/backend-bRqVKcMN-py3.11/lib/python3.11/site-packages/langchain/llms/openai.py:169: UserWarning: You are trying to use a chat model. This way of initializing it is no longer supported. Instead, please use: `from langchain.chat_models import ChatOpenAI` /home/mahdi/.cache/pypoetry/virtualenvs/backend-bRqVKcMN-py3.11/lib/python3.11/site-packages/langchain/llms/openai.py:608: UserWarning: You are trying to use a chat model. This way of initializing it is no longer supported. Instead, please use: `from langchain.chat_models import ChatOpenAI` ``` **My simplified code:** ```python from langchain import OpenAI llm = OpenAI({ "model_name": "gpt-3.5-turbo-instruct", "temperature": 0.0, "top_p": 1, "openai_api_key": "API_KEY", }) print(llm) ``` Output: ```shell OpenAIChat[Params: {'model_name': 'gpt-3.5-turbo-instruct', 'temperature': 0.0, 'top_p': 1} ```</div>
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15604/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/15604/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15603
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15603/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15603/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15603/events
https://github.com/langchain-ai/langchain/pull/15603
2,068,024,344
PR_kwDOIPDwls5jWU3S
15,603
core[patch], community[patch]: mark context, load as beta
{ "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": 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": 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": 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-05T20:50:31
2024-01-05T22:54:28
2024-01-05T22:54:27
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15603/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15603/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15603", "html_url": "https://github.com/langchain-ai/langchain/pull/15603", "diff_url": "https://github.com/langchain-ai/langchain/pull/15603.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15603.patch", "merged_at": "2024-01-05T22:54:27" }
https://api.github.com/repos/langchain-ai/langchain/issues/15601
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15601/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15601/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15601/events
https://github.com/langchain-ai/langchain/issues/15601
2,067,974,482
I_kwDOIPDwls57QslS
15,601
Issue with ConversationalRetrievalChain in LangChain - ValueError: Missing Input Keys
{ "login": "kakagawa", "id": 45973371, "node_id": "MDQ6VXNlcjQ1OTczMzcx", "avatar_url": "https://avatars.githubusercontent.com/u/45973371?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kakagawa", "html_url": "https://github.com/kakagawa", "followers_url": "https://api.github.com/users/kakagawa/followers", "following_url": "https://api.github.com/users/kakagawa/following{/other_user}", "gists_url": "https://api.github.com/users/kakagawa/gists{/gist_id}", "starred_url": "https://api.github.com/users/kakagawa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kakagawa/subscriptions", "organizations_url": "https://api.github.com/users/kakagawa/orgs", "repos_url": "https://api.github.com/users/kakagawa/repos", "events_url": "https://api.github.com/users/kakagawa/events{/privacy}", "received_events_url": "https://api.github.com/users/kakagawa/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
3
2024-01-05T20:09:10
2024-01-08T14:03:40
null
NONE
null
### System Info langchain 0.0.354, Windows 10,Python 3.11.5 ### Who can help? @hwchase17 @eyurtsev ### 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 - [X] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction input_data = { "chat_history": chat_history, "question": question } chain = ConversationalRetrievalChain.from_llm( llm=ChatOpenAI(model=current_model), retriever=retriever, memory=memory, return_source_documents=True, get_chat_history=lambda h: h ) result = chain(input_data) ### Expected behavior I am writing to seek assistance with an issue I've encountered while working with the ConversationalRetrievalChain in LangChain. I have been developing a Discord bot using LangChain and have run into a consistent error that I'm struggling to resolve. I am trying to use ConversationalRetrievalChain for a chatbot application. However, I keep encountering a ValueError related to input keys. The error message states: "ValueError: Missing some input keys: {'chat_history', 'question'}". This error occurs when I attempt to pass a dictionary containing 'chat_history' and 'question' as separate keys to the ConversationalRetrievalChain. I have tried various approaches to format the input data correctly, including combining 'chat_history' and 'question' into a single string and passing them as separate keys. Despite these efforts, the error persists. I have also searched for solutions on platforms like Stack Overflow and GitHub but haven't found a resolution that addresses this specific issue. Could you please provide guidance on how to correctly structure the input data for ConversationalRetrievalChain, or suggest any alternative approaches to resolve this issue? Any insights or recommendations would be greatly appreciated. Thank you for your time and assistance. I look forward to your response.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15601/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15601/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15600
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15600/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15600/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15600/events
https://github.com/langchain-ai/langchain/pull/15600
2,067,965,774
PR_kwDOIPDwls5jWH4P
15,600
Fix chain docs redirects
{ "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": 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-05T20:04:22
2024-01-05T20:09:35
2024-01-05T20:07:30
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/15600/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15600/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15600", "html_url": "https://github.com/langchain-ai/langchain/pull/15600", "diff_url": "https://github.com/langchain-ai/langchain/pull/15600.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15600.patch", "merged_at": "2024-01-05T20:07:30" }
https://api.github.com/repos/langchain-ai/langchain/issues/15599
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15599/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15599/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15599/events
https://github.com/langchain-ai/langchain/pull/15599
2,067,929,238
PR_kwDOIPDwls5jV_6F
15,599
Populate streamed_output for all runs handled by atransform_stream_with_config
{ "login": "nfcampos", "id": 56902, "node_id": "MDQ6VXNlcjU2OTAy", "avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nfcampos", "html_url": "https://github.com/nfcampos", "followers_url": "https://api.github.com/users/nfcampos/followers", "following_url": "https://api.github.com/users/nfcampos/following{/other_user}", "gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}", "starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions", "organizations_url": "https://api.github.com/users/nfcampos/orgs", "repos_url": "https://api.github.com/users/nfcampos/repos", "events_url": "https://api.github.com/users/nfcampos/events{/privacy}", "received_events_url": "https://api.github.com/users/nfcampos/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 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-05T19:29:33
2024-01-08T03:35:44
2024-01-08T03:35:43
COLLABORATOR
null
This means that users of astream_log() now get streamed output of virtually all requested runs, whereas before the only streamed output would be for the root run and raw llm runs <!-- 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/15599/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15599/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15599", "html_url": "https://github.com/langchain-ai/langchain/pull/15599", "diff_url": "https://github.com/langchain-ai/langchain/pull/15599.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15599.patch", "merged_at": "2024-01-08T03:35:43" }
https://api.github.com/repos/langchain-ai/langchain/issues/15597
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15597/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15597/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15597/events
https://github.com/langchain-ai/langchain/issues/15597
2,067,913,011
I_kwDOIPDwls57Qdkz
15,597
DOC: Lack of Documentation Versioning on Langchain Website
{ "login": "iambsk", "id": 49255558, "node_id": "MDQ6VXNlcjQ5MjU1NTU4", "avatar_url": "https://avatars.githubusercontent.com/u/49255558?v=4", "gravatar_id": "", "url": "https://api.github.com/users/iambsk", "html_url": "https://github.com/iambsk", "followers_url": "https://api.github.com/users/iambsk/followers", "following_url": "https://api.github.com/users/iambsk/following{/other_user}", "gists_url": "https://api.github.com/users/iambsk/gists{/gist_id}", "starred_url": "https://api.github.com/users/iambsk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/iambsk/subscriptions", "organizations_url": "https://api.github.com/users/iambsk/orgs", "repos_url": "https://api.github.com/users/iambsk/repos", "events_url": "https://api.github.com/users/iambsk/events{/privacy}", "received_events_url": "https://api.github.com/users/iambsk/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" } ]
open
false
null
[]
null
2
2024-01-05T19:17:59
2024-01-06T16:12:14
null
NONE
null
### Issue with current documentation: There is no way to view the old documentation on [the official site](https://python.langchain.com/). This makes it extremely difficult to develop. It seems as though every week there is another feature that is deleted, thus another page being deleted. How is this acceptable? It is becoming almost unusable in the Enterprise world due to the constant changes and lack of documentation. ### Idea or request for content: Implement a selector that lets you choose which langchain version you're on so that you can view the documentation for that specific version.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15597/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/15597/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15595
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15595/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15595/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15595/events
https://github.com/langchain-ai/langchain/pull/15595
2,067,863,755
PR_kwDOIPDwls5jVxa3
15,595
Allow system message add to history
{ "login": "Sypherd", "id": 50557586, "node_id": "MDQ6VXNlcjUwNTU3NTg2", "avatar_url": "https://avatars.githubusercontent.com/u/50557586?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Sypherd", "html_url": "https://github.com/Sypherd", "followers_url": "https://api.github.com/users/Sypherd/followers", "following_url": "https://api.github.com/users/Sypherd/following{/other_user}", "gists_url": "https://api.github.com/users/Sypherd/gists{/gist_id}", "starred_url": "https://api.github.com/users/Sypherd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Sypherd/subscriptions", "organizations_url": "https://api.github.com/users/Sypherd/orgs", "repos_url": "https://api.github.com/users/Sypherd/repos", "events_url": "https://api.github.com/users/Sypherd/events{/privacy}", "received_events_url": "https://api.github.com/users/Sypherd/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
3
2024-01-05T18:38:34
2024-01-10T14:27:30
2024-01-07T16:35:04
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. --> ## Description This is a follow-up PR to https://github.com/langchain-ai/langchain/pull/14967 that added support for `AIMessage` and `HumanMessage` to `BaseChatMessageHistory.add_user_message` and `BaseChatMessageHistory.add_ai_message`. This extends that to include a `BaseChatMessageHistory.add_system_message` method with the same functionality. It also clarifies the docstrings of the other two methods. ## Dependencies None ## Tag Maintainers @hinthornw @eyurtsev @butlfrazp ## Note I ran `make lint` and `make format` but `make test` results in `make: *** No rule to make target 'test'. Stop.`.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15595/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15595/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15595", "html_url": "https://github.com/langchain-ai/langchain/pull/15595", "diff_url": "https://github.com/langchain-ai/langchain/pull/15595.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15595.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15594
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15594/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15594/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15594/events
https://github.com/langchain-ai/langchain/pull/15594
2,067,846,671
PR_kwDOIPDwls5jVtkt
15,594
community: Fixing a performance issue with AzureSearch to perform batch embedding
{ "login": "msetbar", "id": 5564852, "node_id": "MDQ6VXNlcjU1NjQ4NTI=", "avatar_url": "https://avatars.githubusercontent.com/u/5564852?v=4", "gravatar_id": "", "url": "https://api.github.com/users/msetbar", "html_url": "https://github.com/msetbar", "followers_url": "https://api.github.com/users/msetbar/followers", "following_url": "https://api.github.com/users/msetbar/following{/other_user}", "gists_url": "https://api.github.com/users/msetbar/gists{/gist_id}", "starred_url": "https://api.github.com/users/msetbar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/msetbar/subscriptions", "organizations_url": "https://api.github.com/users/msetbar/orgs", "repos_url": "https://api.github.com/users/msetbar/repos", "events_url": "https://api.github.com/users/msetbar/events{/privacy}", "received_events_url": "https://api.github.com/users/msetbar/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "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
3
2024-01-05T18:28:16
2024-01-12T18:58:56
2024-01-12T18:58:56
CONTRIBUTOR
null
- **Description:** Azure Cognitive Search vector DB store performs slow embedding as it does not utilize the batch embedding functionality. This PR provide a fix to improve the performance of Azure Search class when adding documents to the vector search, - **Issue:** #11313 , - **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/15594/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15594/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15594", "html_url": "https://github.com/langchain-ai/langchain/pull/15594", "diff_url": "https://github.com/langchain-ai/langchain/pull/15594.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15594.patch", "merged_at": "2024-01-12T18:58:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/15593
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15593/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15593/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15593/events
https://github.com/langchain-ai/langchain/issues/15593
2,067,842,408
I_kwDOIPDwls57QMVo
15,593
AgentTokenBufferMemory does not remove old messages, leading to the "context_length_exceeded" error from OpenAI.
{ "login": "cefe-yalo", "id": 101429097, "node_id": "U_kgDOBguvaQ", "avatar_url": "https://avatars.githubusercontent.com/u/101429097?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cefe-yalo", "html_url": "https://github.com/cefe-yalo", "followers_url": "https://api.github.com/users/cefe-yalo/followers", "following_url": "https://api.github.com/users/cefe-yalo/following{/other_user}", "gists_url": "https://api.github.com/users/cefe-yalo/gists{/gist_id}", "starred_url": "https://api.github.com/users/cefe-yalo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cefe-yalo/subscriptions", "organizations_url": "https://api.github.com/users/cefe-yalo/orgs", "repos_url": "https://api.github.com/users/cefe-yalo/repos", "events_url": "https://api.github.com/users/cefe-yalo/events{/privacy}", "received_events_url": "https://api.github.com/users/cefe-yalo/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": 5955630415, "node_id": "LA_kwDOIPDwls8AAAABYvu1Tw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis", "name": "integration: redis", "color": "F9D0C4", "default": false, "description": "Any integration that uses Redis" } ]
open
false
null
[]
null
1
2024-01-05T18:25:18
2024-01-05T18:27:38
null
NONE
null
### System Info Hello Langchain team, I have encountered an error while using `AgentTokenBufferMemory` and `RedisChatMessageHistory`. The problem occurs because the buffer is not removing old messages when new ones are added. This causes an issue with OpenAI as the context window exceeds the token limit. Upon investigation, I found that the issue is in the `save_context()` method of the `AgentTokenBufferMemory` class. ```python def save_context(self, inputs: Dict[str, Any], outputs: Dict[str, Any]) -> None: """Save context from this conversation to buffer. Pruned.""" input_str, output_str = self._get_input_output(inputs, outputs) self.chat_memory.add_user_message(input_str) steps = format_to_openai_function_messages(outputs[self.intermediate_steps_key]) for msg in steps: self.chat_memory.add_message(msg) self.chat_memory.add_ai_message(output_str) # Prune buffer if it exceeds max token limit buffer = self.chat_memory.messages curr_buffer_length = self.llm.get_num_tokens_from_messages(buffer) if curr_buffer_length > self.max_token_limit: while curr_buffer_length > self.max_token_limit: buffer.pop(0) curr_buffer_length = self.llm.get_num_tokens_from_messages(buffer) ``` In the `save_context()` method, the input and output messages are retrieved and added to the chat memory. The intermediate steps are then converted to OpenAI function messages and added to the chat memory as well. If the maximum token limit is exceeded, the buffer is pruned by removing the oldest messages until the current buffer length is below the limit. However, the problem arises from the line `buffer.pop(0)`, which removes a message from a local variable rather than removing it from the Redis list. Since the list is not pruned, the agent becomes stuck and fails permanently. Here is the error I am receiving: ```json {'message': "This model's maximum context length is 16385 tokens. However, your messages resulted in 16602 tokens (16529 in the messages, 73 in the functions). Please reduce the length of the messages or functions.", 'type': 'invalid_request_error', 'param': 'messages', 'code': 'context_length_exceeded'} ``` Here is the information from LangSmith -> Metadata -> Runtime: <img width="422" alt="image" src="https://github.com/langchain-ai/langchain/assets/101429097/eb3105f2-fd18-4527-b4b2-f89e2e87bdb7"> ### Who can help? @baskarya ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [X] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```python import uuid from langchain.memory.chat_message_histories import RedisChatMessageHistory from langchain.agents.openai_functions_agent.agent_token_buffer_memory import AgentTokenBufferMemory from langchain.schema import SystemMessage from langchain.agents import OpenAIFunctionsAgent, AgentExecutor from langchain.prompts import MessagesPlaceholder prompt: SystemMessage = None # my prompt chat_message_history = RedisChatMessageHistory( session_id=uuid.uuid4(), url="redis://localhost:6379", key_prefix="my_feature_", ttl=3600, ) memory = AgentTokenBufferMemory( chat_memory=chat_message_history, memory_key="chat_history", return_messages=True, llm=llm, max_token_limit=10000, ) prompt = OpenAIFunctionsAgent.create_prompt( system_message=prompt, extra_prompt_messages=[MessagesPlaceholder(variable_name="chat_history")] ) agent = OpenAIFunctionsAgent(llm=llm, tools=tools, prompt=prompt) agent_executor = AgentExecutor(agent=agent, tools=tools, memory=memory, verbose=True, return_intermediate_steps=True) agent_response = agent_executor.invoke({"input": user_message}) ``` ### Expected behavior Once the current messages have been saved, if the tokens exceed the maximum token limit, the `AgentTokenBufferMemory` should remove old messages from the Redis list (RPOP) until they are below the maximum token limit.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15593/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/15593/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15592
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15592/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15592/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15592/events
https://github.com/langchain-ai/langchain/pull/15592
2,067,810,684
PR_kwDOIPDwls5jVlhM
15,592
docs top menu
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "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
6
2024-01-05T18:03:07
2024-01-10T02:20:39
null
COLLABORATOR
null
![image (2)](https://github.com/langchain-ai/langchain/assets/2256422/7d39063c-a477-4241-a8a0-797cfd790f5e) ![image (1)](https://github.com/langchain-ai/langchain/assets/2256422/1d5246f1-402f-4fa9-9f43-2510f8f49fd2)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15592/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15592/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15592", "html_url": "https://github.com/langchain-ai/langchain/pull/15592", "diff_url": "https://github.com/langchain-ai/langchain/pull/15592.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15592.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15591
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15591/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15591/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15591/events
https://github.com/langchain-ai/langchain/pull/15591
2,067,761,500
PR_kwDOIPDwls5jVabQ
15,591
langchain: Add dynamic num_variations to MultiQueryRetriever
{ "login": "rhamnett", "id": 6739670, "node_id": "MDQ6VXNlcjY3Mzk2NzA=", "avatar_url": "https://avatars.githubusercontent.com/u/6739670?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rhamnett", "html_url": "https://github.com/rhamnett", "followers_url": "https://api.github.com/users/rhamnett/followers", "following_url": "https://api.github.com/users/rhamnett/following{/other_user}", "gists_url": "https://api.github.com/users/rhamnett/gists{/gist_id}", "starred_url": "https://api.github.com/users/rhamnett/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rhamnett/subscriptions", "organizations_url": "https://api.github.com/users/rhamnett/orgs", "repos_url": "https://api.github.com/users/rhamnett/repos", "events_url": "https://api.github.com/users/rhamnett/events{/privacy}", "received_events_url": "https://api.github.com/users/rhamnett/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": 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-05T17:33:45
2024-01-16T00:16:45
2024-01-16T00:16:45
NONE
null
- **Description:** Add dynamic num_variations to MultiQueryRetriever
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15591/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15591/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15591", "html_url": "https://github.com/langchain-ai/langchain/pull/15591", "diff_url": "https://github.com/langchain-ai/langchain/pull/15591.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15591.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15590
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15590/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15590/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15590/events
https://github.com/langchain-ai/langchain/issues/15590
2,067,752,188
I_kwDOIPDwls57P2T8
15,590
Enhance Flexibility in VectorStoreRetriever by Allowing Dynamic search args in invoke Method
{ "login": "agusbegue", "id": 45459384, "node_id": "MDQ6VXNlcjQ1NDU5Mzg0", "avatar_url": "https://avatars.githubusercontent.com/u/45459384?v=4", "gravatar_id": "", "url": "https://api.github.com/users/agusbegue", "html_url": "https://github.com/agusbegue", "followers_url": "https://api.github.com/users/agusbegue/followers", "following_url": "https://api.github.com/users/agusbegue/following{/other_user}", "gists_url": "https://api.github.com/users/agusbegue/gists{/gist_id}", "starred_url": "https://api.github.com/users/agusbegue/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/agusbegue/subscriptions", "organizations_url": "https://api.github.com/users/agusbegue/orgs", "repos_url": "https://api.github.com/users/agusbegue/repos", "events_url": "https://api.github.com/users/agusbegue/events{/privacy}", "received_events_url": "https://api.github.com/users/agusbegue/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
3
2024-01-05T17:29:34
2024-01-05T21:25:31
null
NONE
null
### Feature request It would be really great to enhance the VectorStoreRetriever class, by allowing additional (optional) search kwargs to be passed directly to the invoke method. Right now the input type of the invoke method is str, it would be interesting to be able to receive a custom object with "query" and "filters". Ideally one would be able to do: ```python chain = ( vector_store.as_retriever() | parse_documents_to_str | llm ) chain.invoke({'query': some_question, 'filter': filter_expression}) ``` ### Motivation This change would enable dynamic querying capabilities, such as metadata filtering, which are not currently possible due to the requirement of defining search_kwargs at the constructor level or altering them in the instantiated object. I know I can work this out using a custom retriever class and override some methods, but metadata filtering is a very powerful option to enhance search, and it would be really helpful for developers to have this built in as a default behaviour. ### Your contribution I can submit a PR if someone confirms this makes sense
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15590/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15590/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15589
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15589/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15589/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15589/events
https://github.com/langchain-ai/langchain/pull/15589
2,067,660,605
PR_kwDOIPDwls5jVEHS
15,589
core[patch]: add beta decorator
{ "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": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 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
{ "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 }
[ { "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 } ]
null
1
2024-01-05T16:31:41
2024-01-05T18:16:28
2024-01-05T18:16:27
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15589/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15589/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15589", "html_url": "https://github.com/langchain-ai/langchain/pull/15589", "diff_url": "https://github.com/langchain-ai/langchain/pull/15589.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15589.patch", "merged_at": "2024-01-05T18:16:27" }
https://api.github.com/repos/langchain-ai/langchain/issues/15588
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15588/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15588/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15588/events
https://github.com/langchain-ai/langchain/pull/15588
2,067,637,104
PR_kwDOIPDwls5jU-zX
15,588
community: Add LiteLLM Router Integration
{ "login": "bburgin", "id": 5349024, "node_id": "MDQ6VXNlcjUzNDkwMjQ=", "avatar_url": "https://avatars.githubusercontent.com/u/5349024?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bburgin", "html_url": "https://github.com/bburgin", "followers_url": "https://api.github.com/users/bburgin/followers", "following_url": "https://api.github.com/users/bburgin/following{/other_user}", "gists_url": "https://api.github.com/users/bburgin/gists{/gist_id}", "starred_url": "https://api.github.com/users/bburgin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bburgin/subscriptions", "organizations_url": "https://api.github.com/users/bburgin/orgs", "repos_url": "https://api.github.com/users/bburgin/repos", "events_url": "https://api.github.com/users/bburgin/events{/privacy}", "received_events_url": "https://api.github.com/users/bburgin/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "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." } ]
open
false
null
[]
null
1
2024-01-05T16:20:44
2024-01-15T19:40:43
null
NONE
null
community: - **Description:** - Add new ChatLiteLLMRouter class that allows a client to use a LiteLLM Router as a LangChain chat model. - Note: The existing ChatLiteLLM integration did not cover the LiteLLM Router class. - Add tests and Jupyter notebook. - **Issue:** None - **Dependencies:** Relies on existing ChatLiteLLM integration - **Twitter handle:** @bburgin_0
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15588/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15588/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15588", "html_url": "https://github.com/langchain-ai/langchain/pull/15588", "diff_url": "https://github.com/langchain-ai/langchain/pull/15588.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15588.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15587
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15587/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15587/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15587/events
https://github.com/langchain-ai/langchain/issues/15587
2,067,440,671
I_kwDOIPDwls57OqQf
15,587
In a Chatbot to chat with SQL using openai and langchain, how to integrate the chatbot to make simple conversations
{ "login": "jyoti194", "id": 109470153, "node_id": "U_kgDOBoZhyQ", "avatar_url": "https://avatars.githubusercontent.com/u/109470153?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jyoti194", "html_url": "https://github.com/jyoti194", "followers_url": "https://api.github.com/users/jyoti194/followers", "following_url": "https://api.github.com/users/jyoti194/following{/other_user}", "gists_url": "https://api.github.com/users/jyoti194/gists{/gist_id}", "starred_url": "https://api.github.com/users/jyoti194/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jyoti194/subscriptions", "organizations_url": "https://api.github.com/users/jyoti194/orgs", "repos_url": "https://api.github.com/users/jyoti194/repos", "events_url": "https://api.github.com/users/jyoti194/events{/privacy}", "received_events_url": "https://api.github.com/users/jyoti194/received_events", "type": "User", "site_admin": false }
[ { "id": 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-05T14:26:07
2024-01-08T09:20:06
null
NONE
null
### System Info python: 3.11 langchain: latest ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction in my chatbot which interact with sql db, if im typing hi its giving me the output as the entity of 1st row and 1st column, instead of answering with nothing or invalid question. and some time the response is generated in ascending order and when re runed the query in descending order, how to validate the answer before its given out? and how can i make my chatbot user friendly, like when user ask hi, it should greet back or when there is informal question it should just reply import pandas as pd import sqlalchemy as sal import os, sys, openai import constants from langchain.sql_database import SQLDatabase from langchain.llms.openai import OpenAI from langchain_experimental.sql import SQLDatabaseChain from sqlalchemy import create_engine from langchain.prompts import ChatPromptTemplate # import ChatOpenAI from langchain.memory import ConversationBufferMemory # import sql_cmd from langchain.chat_models import ChatOpenAI from typing import List, Optional from langchain.agents.agent_toolkits import SQLDatabaseToolkit from langchain.callbacks.manager import CallbackManagerForToolRun from langchain.chat_models import ChatOpenAI from langchain_experimental.plan_and_execute import ( PlanAndExecute, load_agent_executor, load_chat_planner, ) from langchain.sql_database import SQLDatabase from langchain.text_splitter import TokenTextSplitter from langchain.tools import BaseTool from langchain.tools.sql_database.tool import QuerySQLDataBaseTool from secret_key import openapi_key # from langchain import PromptTemplate from langchain.prompts import PromptTemplate # from langchain.prompts.PromptTemplate import PromptTemplate # from langchain.models import ChatGPTClient # from langchain.utils import save_conversation os.environ['OPENAI_API_KEY'] = openapi_key from urllib.parse import quote_plus server_name = constants.server_name database_name = constants.database_name username = constants.username password = constants.password encoded_password = quote_plus(password) connection_uri = f"mssql+pyodbc://{username}:{encoded_password}@{server_name}/{database_name}?driver=ODBC+Driver+17+for+SQL+Server" # custom_suffix = """"" # If the SQLResult is empty, the Answer should be "No results found". DO NOT hallucinate an answer if there is no result.""" engine = create_engine(connection_uri) def chat(question,sql_format): model_name="gpt-3.5-turbo-16k" db = SQLDatabase(engine, view_support=True, include_tables=['EGV_emp_departments_ChatGPT']) # db2 = SQLDatabase(engine, view_support=True, include_tables=['EGV_emp_departments_ChatGPT']) # db = SQLDatabase(engine, view_support=True, include_tables=['EGV_emp_departments']) llm = ChatOpenAI(temperature=0, verbose=False, model=model_name) answer = None if sql_format==False: db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True) answer = db_chain.run(question) else: db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True , return_sql =True) sql_query = db_chain.run(question) print("SQLQuery: "+str(sql_query)) # result = engine.execute(sql_query) result_df = pd.read_sql(sql_query, engine) answer = result_df.to_dict() from langchain.prompts import PromptTemplate PROMPT = """ Given an input question, first create a syntactically correct mssql query to run, then look at the results of the query and return the SQLResult as answer. The question: {db_chain.run} """ prompt_template = """" Use the following pieces of context to answer the question at the end. If you don't know the answer, please think rationally and answer from your own knowledge base. Don't consider the table which are not mentioned, if no result is matching with the keyword Please return the answer as invalid question {context} Question: {questions} """ PROMPT = PromptTemplate( template=prompt_template, input_variables=["context", "questions"] ) def split_text(text, chunk_size, chunk_overlap=0): text_splitter = TokenTextSplitter( chunk_size=chunk_size, chunk_overlap=chunk_overlap ) yield from text_splitter.split_text(text) class QuerySQLDatabaseTool2(QuerySQLDataBaseTool): def _run( self, query: str, run_manager: Optional[CallbackManagerForToolRun] = None, ) -> str: result = self.db.run_no_throw(query) return next(split_text(result, chunk_size=14_000)) class SQLDatabaseToolkit2(SQLDatabaseToolkit): def get_tools(self) -> List[BaseTool]: tools = super().get_tools() original_query_tool_description = tools[0].description new_query_tool = QuerySQLDatabaseTool2( db=self.db, description=original_query_tool_description ) tools[0] = new_query_tool return tools return answer def chain1(question): text = chat(question,False) return text def chain2(question): query = chat(question,True) return query it uses "\Lib\site-packages\langchain_experimental\sql\base.py" "\Lib\site-packages\langchain_experimental\sql\vector_sql.py" "\Lib\site-packages\langchain_experimental\sql\prompt.py" ### Expected behavior in my chatbot which interact with sql db, if im typing hi its giving me the output as the entity of 1st row and 1st column, instead of answering with nothing or invalid question. and some time the response is generated in ascending order and when re runed the query in descending order, how to validate the answer before its given out? and how can i make my chatbot user friendly, like when user ask hi, it should greet back or when there is informal question it should just reply
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15587/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15587/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15586
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15586/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15586/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15586/events
https://github.com/langchain-ai/langchain/issues/15586
2,067,418,916
I_kwDOIPDwls57Ok8k
15,586
RAG chain response often includes "\n AI:" in front of actual response
{ "login": "mhyeonsoo", "id": 32179857, "node_id": "MDQ6VXNlcjMyMTc5ODU3", "avatar_url": "https://avatars.githubusercontent.com/u/32179857?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mhyeonsoo", "html_url": "https://github.com/mhyeonsoo", "followers_url": "https://api.github.com/users/mhyeonsoo/followers", "following_url": "https://api.github.com/users/mhyeonsoo/following{/other_user}", "gists_url": "https://api.github.com/users/mhyeonsoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/mhyeonsoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mhyeonsoo/subscriptions", "organizations_url": "https://api.github.com/users/mhyeonsoo/orgs", "repos_url": "https://api.github.com/users/mhyeonsoo/repos", "events_url": "https://api.github.com/users/mhyeonsoo/events{/privacy}", "received_events_url": "https://api.github.com/users/mhyeonsoo/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
4
2024-01-05T14:12:29
2024-01-16T00:49:32
2024-01-16T00:49:32
NONE
null
### System Info google-cloud-aiplatform==1.35.0, langchain-0.0.354 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```python template = """ **Role:** You are a helpful assistant. **Context:** You have to only use a reference stored document to generate a response. CONTEXT: {context} **Task:** 1. task 1 - some important requirements for task 1 2. task 2 - some important requirements for task 2 3. task 3 - some important requirements for task 3 Question: {question} Helpful Answer: **Resource:** [reference source name] """ qa_prompt = ChatPromptTemplate.from_messages( [ ("system", template), MessagesPlaceholder(variable_name="chat_history"), ("user", "{question}"), ] ) rag_chain = ( RunnablePassthrough.assign( context=contextualized_question | retriever | format_docs ) | qa_prompt | llm ) response = rag_chain.invoke({"question": message, "chat_history": memory.get_history()}) print(response) ``` ### Expected behavior I expect to get the response which is composed of only a proper response sentence. Sometimes, it does well as I expected. But frequently, it returns "\n AI:" in front of the actual response which is not suppose to do so. For example, ``` "\n AI: The reference document says blah blah.", ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15586/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15586/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15585
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15585/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15585/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15585/events
https://github.com/langchain-ai/langchain/issues/15585
2,067,361,958
I_kwDOIPDwls57OXCm
15,585
Chroma as_retriever function with kwargs leads to unexpected keyword argument
{ "login": "0xMatthieu", "id": 111059326, "node_id": "U_kgDOBp6hfg", "avatar_url": "https://avatars.githubusercontent.com/u/111059326?v=4", "gravatar_id": "", "url": "https://api.github.com/users/0xMatthieu", "html_url": "https://github.com/0xMatthieu", "followers_url": "https://api.github.com/users/0xMatthieu/followers", "following_url": "https://api.github.com/users/0xMatthieu/following{/other_user}", "gists_url": "https://api.github.com/users/0xMatthieu/gists{/gist_id}", "starred_url": "https://api.github.com/users/0xMatthieu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/0xMatthieu/subscriptions", "organizations_url": "https://api.github.com/users/0xMatthieu/orgs", "repos_url": "https://api.github.com/users/0xMatthieu/repos", "events_url": "https://api.github.com/users/0xMatthieu/events{/privacy}", "received_events_url": "https://api.github.com/users/0xMatthieu/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 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
5
2024-01-05T13:35:08
2024-01-07T07:11:28
null
NONE
null
### System Info langchain = 0.0.354 This problem appears since commit 62d32bd ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Comit 62d32bd allowed to pass kwarg to ChromaDb. This is really nice but I my case it leads to an error ... I don't know if it is relevant or a workaround exists so I raise the issue Here is how to reproduce ``` python from langchain.vectorstores import Chroma # load a simple Chroma DB vectordb = Chroma(persist_directory=my_chroma_db_directory, embedding_function=my_embedding) # init a retriever function retriever = vectordb.as_retriever(search_kwargs={"k": retriever_output_number, "fetch_k": retriever_documents_used, "lambda_mult": retriever_diversity}) # call the retriever in a qa qa_chain = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever, return_source_documents=False, verbose=True) # ask something answer = qa_chain.run("find something in doc ...") ``` ### Expected behavior kwargs are needed by the `as_retriever` function, in the example above the argument `fetch_k` is mandatory https://github.com/langchain-ai/langchain/blob/fd5fbb507dd3b1c189aa1e4b601b8669217b0f78/libs/core/langchain_core/vectorstores.py#L553 Since commit 62d32bd kwargs are passed up to Chroma `function similarity_search_with_score` which calls `__query_collection` leading to the error https://github.com/langchain-ai/langchain/blob/fd5fbb507dd3b1c189aa1e4b601b8669217b0f78/libs/community/langchain_community/vectorstores/chroma.py#L408 TypeError: Collection.query() got an unexpected keyword argument 'fetch_k' Is there a way to avoid that ?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15585/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15585/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15584
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15584/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15584/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15584/events
https://github.com/langchain-ai/langchain/issues/15584
2,067,357,036
I_kwDOIPDwls57OV1s
15,584
Clickhouse SQL Database Agent
{ "login": "vivekkalyanarangan30", "id": 12863647, "node_id": "MDQ6VXNlcjEyODYzNjQ3", "avatar_url": "https://avatars.githubusercontent.com/u/12863647?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vivekkalyanarangan30", "html_url": "https://github.com/vivekkalyanarangan30", "followers_url": "https://api.github.com/users/vivekkalyanarangan30/followers", "following_url": "https://api.github.com/users/vivekkalyanarangan30/following{/other_user}", "gists_url": "https://api.github.com/users/vivekkalyanarangan30/gists{/gist_id}", "starred_url": "https://api.github.com/users/vivekkalyanarangan30/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vivekkalyanarangan30/subscriptions", "organizations_url": "https://api.github.com/users/vivekkalyanarangan30/orgs", "repos_url": "https://api.github.com/users/vivekkalyanarangan30/repos", "events_url": "https://api.github.com/users/vivekkalyanarangan30/events{/privacy}", "received_events_url": "https://api.github.com/users/vivekkalyanarangan30/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2024-01-05T13:31:32
2024-01-06T07:38:01
2024-01-06T07:38:01
NONE
null
### System Info Python 3.10.11 Mac M1 Langchain Version: 0.0.353 openai Version: 0.28.0 ### 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 - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from langchain.agents import create_sql_agent from langchain.agents.agent_toolkits import SQLDatabaseToolkit from langchain.agents.agent_types import AgentType from langchain.llms.openai import OpenAI from langchain.sql_database import SQLDatabase db = SQLDatabase.from_uri("clickhouse+http://clickhouse_admin:P%21%40ssword42%21@localhost:8123/idfyDB") toolkit = SQLDatabaseToolkit(db=db, llm=OpenAI(temperature=0)) agent_executor = create_sql_agent( llm=OpenAI(model_name='gpt-4', temperature=0), toolkit=toolkit, verbose=True, agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION, ) agent_executor.run("Describe table sample_tbl") ### Expected behavior The SQLDatabase toolkit should be able to query the clickhouse database as I have installed and provided the right dialect and connecting directly via sqlalchemy works fine. The issue is langchain's sql database toolkit somehow is unable to query the clickhouse database, it works fine for the chinook db sqlite file. Logs for reference - > Entering new AgentExecutor chain... Action: sql_db_list_tables Action Input: Observation: Thought:I need to check the tables in the database to see if there is an "eve_tasks_executed" table. Action: sql_db_list_tables Action Input: Observation: Thought:Traceback (most recent call last): File "/Users/vivekkalyanarangan/opt/anaconda3/envs/streaml/lib/python3.10/site-packages/langchain/agents/agent.py", line 1066, in _iter_next_step output = self.agent.plan( File "/Users/vivekkalyanarangan/opt/anaconda3/envs/streaml/lib/python3.10/site-packages/langchain/agents/agent.py", line 636, in plan return self.output_parser.parse(full_output) File "/Users/vivekkalyanarangan/opt/anaconda3/envs/streaml/lib/python3.10/site-packages/langchain/agents/mrkl/output_parser.py", line 63, in parse raise OutputParserException( langchain_core.exceptions.OutputParserException: Could not parse LLM output: `I don't know the answer to the question because I don't have access to the list of tables in the database.` During handling of the above exception, another exception occurred: Traceback (most recent call last): agent_executor.run("Run select * query on eve_tasks_executed table") return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[ raise e self._call(inputs, run_manager=run_manager) next_step_output = self._take_next_step( [ [ raise ValueError( ValueError: An output parsing error occurred. In order to pass this error back to the agent and have it try again, pass `handle_parsing_errors=True` to the AgentExecutor. This is the error: Could not parse LLM output: `I don't know the answer to the question because I don't have access to the list of tables in the database.` [hidden file names]
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15584/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15584/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15583
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15583/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15583/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15583/events
https://github.com/langchain-ai/langchain/issues/15583
2,067,325,836
I_kwDOIPDwls57OOOM
15,583
Issue: ipykernel kernel crashes when using llama-2-13b model
{ "login": "PranjalKalbag", "id": 48360396, "node_id": "MDQ6VXNlcjQ4MzYwMzk2", "avatar_url": "https://avatars.githubusercontent.com/u/48360396?v=4", "gravatar_id": "", "url": "https://api.github.com/users/PranjalKalbag", "html_url": "https://github.com/PranjalKalbag", "followers_url": "https://api.github.com/users/PranjalKalbag/followers", "following_url": "https://api.github.com/users/PranjalKalbag/following{/other_user}", "gists_url": "https://api.github.com/users/PranjalKalbag/gists{/gist_id}", "starred_url": "https://api.github.com/users/PranjalKalbag/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PranjalKalbag/subscriptions", "organizations_url": "https://api.github.com/users/PranjalKalbag/orgs", "repos_url": "https://api.github.com/users/PranjalKalbag/repos", "events_url": "https://api.github.com/users/PranjalKalbag/events{/privacy}", "received_events_url": "https://api.github.com/users/PranjalKalbag/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-05T13:08:21
2024-01-05T13:21:14
null
NONE
null
Hi, I am using langchain and llama-cpp-python to do some QA on a text file. When using the llama-2-13b-chat quantized model from [HuggingFace](https://huggingface.co/TheBloke/Llama-2-13B-chat-GGUF/blob/main/llama-2-13b-chat.Q5_K_M.gguf). I am able to create a RetrievalQA chain passing the vectorstore and prompt, but when I use the chain.run(query), it crashes the anaconda kernel. I tried using the [7b variant](https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGUF/blob/main/llama-2-7b-chat.Q5_K_M.gguf) and this works fine without any issue. ### Package Version langchain==0.0.350 langchain-community==0.0.3 langchain-core==0.1.1 langsmith==0.0.70 llama_cpp_python==0.2.19 ### Code Snippet from langchain.text_splitter import RecursiveCharacterTextSplitter,SentenceTransformersTokenTextSplitter from langchain.embeddings import HuggingFaceEmbeddings, OpenAIEmbeddings, SentenceTransformerEmbeddings from langchain.vectorstores import FAISS from langchain.llms import LlamaCpp from langchain import PromptTemplate from langchain.chains import RetrievalQA model_path="Model Path/llama-2-13b-chat.Q5_K_M.gguf" llm = LlamaCpp( model_path = model_path, max_tokens=700,f16_kv=True,model_kwargs={'context_length':4000,'temparature':0.3} ) embeddings = HuggingFaceEmbeddings(model_name='sentence-transformers/all-MiniLM-L6-v2', model_kwargs={'device':'cpu'}) vectorstore = FAISS.load_local(f'Text File', embeddings=embeddings) template=""" Answer the question using only the context provided to you. Context: {context} Question:{question} """ qa_prompt=PromptTemplate(template=template, input_variables=["context","question"]) chain = RetrievalQA.from_chain_type(llm=llm, chain_type='stuff', retriever=vectorstore.as_retriever(), return_source_documents=False, chain_type_kwargs={'prompt': qa_prompt}) chain.run("Who are the people in the conversation?") ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15583/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15583/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15582
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15582/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15582/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15582/events
https://github.com/langchain-ai/langchain/pull/15582
2,067,223,975
PR_kwDOIPDwls5jTjki
15,582
community: Chat Huggingface and HuggingFace TGI llms
{ "login": "minhna1112", "id": 26354139, "node_id": "MDQ6VXNlcjI2MzU0MTM5", "avatar_url": "https://avatars.githubusercontent.com/u/26354139?v=4", "gravatar_id": "", "url": "https://api.github.com/users/minhna1112", "html_url": "https://github.com/minhna1112", "followers_url": "https://api.github.com/users/minhna1112/followers", "following_url": "https://api.github.com/users/minhna1112/following{/other_user}", "gists_url": "https://api.github.com/users/minhna1112/gists{/gist_id}", "starred_url": "https://api.github.com/users/minhna1112/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/minhna1112/subscriptions", "organizations_url": "https://api.github.com/users/minhna1112/orgs", "repos_url": "https://api.github.com/users/minhna1112/repos", "events_url": "https://api.github.com/users/minhna1112/events{/privacy}", "received_events_url": "https://api.github.com/users/minhna1112/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
3
2024-01-05T12:00:33
2024-01-17T07:15:43
null
NONE
null
community: - **Description:** - [x] The method `_resolve_model_id()` is only called when `model_id` is not explicitly defined, in order to avoid calling `list_inference_endpoints` when connecting `HuggingFaceTextGenInference` to a self-hosted TGI server. - [x] For `HuggingFaceTextGenInference` clients that send request to a HuggingFace-deployed Inference Endpoints, a Bearer Token is needed for authorization. - [x] More integrations tests is added for `HuggingFaceTextGenInference` - **Issue:** Referring to this current [issue](https://github.com/huggingface/text-generation-inference/issues/747) in HuggingFace TGI repo - **Dependencies:** No dependencies for this change - **Twitter handle:** @MinhN2804
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15582/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15582/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15582", "html_url": "https://github.com/langchain-ai/langchain/pull/15582", "diff_url": "https://github.com/langchain-ai/langchain/pull/15582.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15582.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15581
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15581/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15581/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15581/events
https://github.com/langchain-ai/langchain/issues/15581
2,067,198,112
I_kwDOIPDwls57NvCg
15,581
metadata is not properly processed when the field does not exists
{ "login": "egrish", "id": 17497692, "node_id": "MDQ6VXNlcjE3NDk3Njky", "avatar_url": "https://avatars.githubusercontent.com/u/17497692?v=4", "gravatar_id": "", "url": "https://api.github.com/users/egrish", "html_url": "https://github.com/egrish", "followers_url": "https://api.github.com/users/egrish/followers", "following_url": "https://api.github.com/users/egrish/following{/other_user}", "gists_url": "https://api.github.com/users/egrish/gists{/gist_id}", "starred_url": "https://api.github.com/users/egrish/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/egrish/subscriptions", "organizations_url": "https://api.github.com/users/egrish/orgs", "repos_url": "https://api.github.com/users/egrish/repos", "events_url": "https://api.github.com/users/egrish/events{/privacy}", "received_events_url": "https://api.github.com/users/egrish/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2024-01-05T11:39:32
2024-01-07T01:05:01
2024-01-07T01:05:01
NONE
null
### System Info In the langchain_community/vectorstores/azuresearch.py on line 656 the filed name is used explicitly, which leads to an error if the index does not have the mentioned filed. The suggestion is to replace `json.loads(result["metadata").get("key"), ""),` with `json.loads(result[FIELDS_METADATA]).get("key"), "") if FIELDS_METADATA in result else "",` ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. Configure Azure Search index without metadata field. 2. execute the following code `docs = vector_store.semantic_hybrid_search_with_score_and_rerank( query=query, k=3 )` ### Expected behavior successful execution of the above mentioned code
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15581/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15581/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15580
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15580/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15580/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15580/events
https://github.com/langchain-ai/langchain/issues/15580
2,067,191,288
I_kwDOIPDwls57NtX4
15,580
ValueError: variable chat_history should be a list of base messages, got [HumanMessage(content='input message'), "output response"]
{ "login": "mhyeonsoo", "id": 32179857, "node_id": "MDQ6VXNlcjMyMTc5ODU3", "avatar_url": "https://avatars.githubusercontent.com/u/32179857?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mhyeonsoo", "html_url": "https://github.com/mhyeonsoo", "followers_url": "https://api.github.com/users/mhyeonsoo/followers", "following_url": "https://api.github.com/users/mhyeonsoo/following{/other_user}", "gists_url": "https://api.github.com/users/mhyeonsoo/gists{/gist_id}", "starred_url": "https://api.github.com/users/mhyeonsoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mhyeonsoo/subscriptions", "organizations_url": "https://api.github.com/users/mhyeonsoo/orgs", "repos_url": "https://api.github.com/users/mhyeonsoo/repos", "events_url": "https://api.github.com/users/mhyeonsoo/events{/privacy}", "received_events_url": "https://api.github.com/users/mhyeonsoo/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2024-01-05T11:34:20
2024-01-05T13:53:05
2024-01-05T13:53:05
NONE
null
### System Info google-cloud-aiplatform==1.35.0, langchain-0.0.354 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [X] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```python class ChatbotHistory: def __init__(self, max_size=5): self.buffer = deque(maxlen=max_size) def add_interaction(self, user_message, bot_response): # Assuming HumanMessage is a class that stores a message content self.buffer.append(HumanMessage(content=user_message)) self.buffer.append(bot_response) def get_history(self): return list(self.buffer) def get_history_as_string(self): history_string = "" for message in self.buffer: if isinstance(message, HumanMessage): history_string += f"User: {message.content}\n" else: # Assuming bot responses are strings history_string += f"Bot: {message}\n" return history_string.strip() def clear_history(self): self.buffer.clear() def format_docs(docs): return "\n\n".join(doc.page_content for doc in docs) def contextualized_question(input: dict): llm = VertexAI(model_name='text-bison@001', max_output_tokens=512, temperature=0.2) contextualize_q_system_prompt = """Given a chat history and the latest user question \ which might reference context in the chat history, formulate a standalone question \ which can be understood without the chat history. Do NOT answer the question, \ just reformulate it if needed and otherwise return it as is.""" contextualize_q_prompt = ChatPromptTemplate.from_messages( [ ("system", contextualize_q_system_prompt), MessagesPlaceholder(variable_name="chat_history"), ("human", "{question}"), ] ) contextualize_q_chain = contextualize_q_prompt | llm | StrOutputParser() if input.get("chat_history"): return contextualize_q_chain else: return input["question"] if not message: message = request.form.get('userInput') template = """ CONTEXT: {context} Question: {question} Helpful Answer: **Resource:** [reference source name] """ # rag_prompt_custom = PromptTemplate.from_template(template) qa_prompt = ChatPromptTemplate.from_messages( [ ("system", template), MessagesPlaceholder(variable_name="chat_history"), ("human", "{question}"), ] ) rag_chain = ( RunnablePassthrough.assign( context=contextualized_question | temp_retriever | format_docs ) | qa_prompt | llm ) response = rag_chain.invoke({"question": message, "chat_history": memory.get_history()}) memory.add_interaction(message, response) ``` ### Expected behavior I expected to have string or json format output response as an output of invoke(), but it showed me an error saying, ``` ValueError: variable chat_history should be a list of base messages, got [HumanMessage(content='input message'), "output response"] ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15580/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15580/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15579
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15579/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15579/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15579/events
https://github.com/langchain-ai/langchain/issues/15579
2,067,188,914
I_kwDOIPDwls57Nsyy
15,579
Cannot import name 'URL' from 'sqlalchemy'
{ "login": "vjeshwar", "id": 64221256, "node_id": "MDQ6VXNlcjY0MjIxMjU2", "avatar_url": "https://avatars.githubusercontent.com/u/64221256?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vjeshwar", "html_url": "https://github.com/vjeshwar", "followers_url": "https://api.github.com/users/vjeshwar/followers", "following_url": "https://api.github.com/users/vjeshwar/following{/other_user}", "gists_url": "https://api.github.com/users/vjeshwar/gists{/gist_id}", "starred_url": "https://api.github.com/users/vjeshwar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vjeshwar/subscriptions", "organizations_url": "https://api.github.com/users/vjeshwar/orgs", "repos_url": "https://api.github.com/users/vjeshwar/repos", "events_url": "https://api.github.com/users/vjeshwar/events{/privacy}", "received_events_url": "https://api.github.com/users/vjeshwar/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
3
2024-01-05T11:32:28
2024-01-07T17:01:13
null
NONE
null
### Discussed in https://github.com/langchain-ai/langchain/discussions/5701 <div type='discussions-op-text'> <sup>Originally posted by **rdhillbb** June 5, 2023</sup> Newbie here. I found an issue while importing 'VectorstoreIndexCreator' ImportError: cannot import name 'URL' from 'sqlalchemy' (/Users/tst/anaconda3/lib/python3.10/site-packages/sqlalchemy/__init__.py) Error Log: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) Cell In[88], line 2 1 from langchain.docstore.document import Document ----> 2 from langchain.indexes import VectorstoreIndexCreator 3 from langchain_community.utilities import ApifyWrapper 5 apify = ApifyWrapper() File ~/anaconda3/lib/python3.10/site-packages/langchain/indexes/__init__.py:17 1 """Code to support various indexing workflows. 2 3 Provides code to: (...) 14 documents that were derived from parent documents by chunking.) 15 """ 16 from langchain.indexes._api import IndexingResult, aindex, index ---> 17 from langchain.indexes._sql_record_manager import SQLRecordManager 18 from langchain.indexes.graph import GraphIndexCreator 19 from langchain.indexes.vectorstore import VectorstoreIndexCreator File ~/anaconda3/lib/python3.10/site-packages/langchain/indexes/_sql_record_manager.py:21 18 import uuid 19 from typing import Any, AsyncGenerator, Dict, Generator, List, Optional, Sequence, Union ---> 21 from sqlalchemy import ( 22 URL, 23 Column, 24 Engine, 25 Float, 26 Index, 27 String, 28 UniqueConstraint, 29 and_, 30 create_engine, 31 delete, 32 select, 33 text, 34 ) 35 from sqlalchemy.ext.asyncio import ( 36 AsyncEngine, 37 AsyncSession, 38 async_sessionmaker, 39 create_async_engine, 40 ) 41 from sqlalchemy.ext.declarative import declarative_base Thank You Vj
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15579/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15579/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15578
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15578/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15578/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15578/events
https://github.com/langchain-ai/langchain/pull/15578
2,067,142,283
PR_kwDOIPDwls5jTRzU
15,578
changed broken link for wandb tracing with agent
{ "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": 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-05T10:59:18
2024-01-08T11:15:05
2024-01-07T16:48:15
CONTRIBUTOR
null
fix of #14905 <!-- 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/15578/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15578/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15578", "html_url": "https://github.com/langchain-ai/langchain/pull/15578", "diff_url": "https://github.com/langchain-ai/langchain/pull/15578.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15578.patch", "merged_at": "2024-01-07T16:48:15" }
https://api.github.com/repos/langchain-ai/langchain/issues/15577
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15577/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15577/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15577/events
https://github.com/langchain-ai/langchain/issues/15577
2,067,106,521
I_kwDOIPDwls57NYrZ
15,577
Issue:How can I resolve memory with conversation retreival chain error?
{ "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
1
2024-01-05T10:33:22
2024-01-05T10:46:17
null
NONE
null
### Issue you'd like to raise. below is my code 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: {{chat_history}} 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 = PromptTemplate(input_variables=["context_text","check","chat_history"],template=custom_prompt_template) formatted_prompt = custom_prompt.format(context_text=context_text, check=check) # QA_CHAIN_PROMPT = PromptTemplate( # input_variables=["context_text","check"],template=custom_prompt_template,) llm = ChatOpenAI(temperature=0.1) memory = ConversationBufferMemory(memory_key='chat_history', output_key='answer', 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": custom_prompt}) # prompt_qa={"qa": qa, "formatted_prompt": formatted_prompt} return qa The error I am getting is: File "/usr/lib/python3.8/string.py", line 272, in get_field obj = self.get_value(first, args, kwargs) File "/usr/lib/python3.8/string.py", line 229, in get_value return kwargs[key] KeyError: 'chat_history' _No response_ ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15577/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15577/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15576
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15576/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15576/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15576/events
https://github.com/langchain-ai/langchain/issues/15576
2,067,029,408
I_kwDOIPDwls57NF2g
15,576
Issue: Pypdf extract_image=True is not working on docker(production)
{ "login": "akash97715", "id": 34799343, "node_id": "MDQ6VXNlcjM0Nzk5MzQz", "avatar_url": "https://avatars.githubusercontent.com/u/34799343?v=4", "gravatar_id": "", "url": "https://api.github.com/users/akash97715", "html_url": "https://github.com/akash97715", "followers_url": "https://api.github.com/users/akash97715/followers", "following_url": "https://api.github.com/users/akash97715/following{/other_user}", "gists_url": "https://api.github.com/users/akash97715/gists{/gist_id}", "starred_url": "https://api.github.com/users/akash97715/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/akash97715/subscriptions", "organizations_url": "https://api.github.com/users/akash97715/orgs", "repos_url": "https://api.github.com/users/akash97715/repos", "events_url": "https://api.github.com/users/akash97715/events{/privacy}", "received_events_url": "https://api.github.com/users/akash97715/received_events", "type": "User", "site_admin": false }
[ { "id": 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-05T09:42:50
2024-01-05T09:52:03
null
NONE
null
### Issue you'd like to raise. Hello Team, we are trying to use pypdf to get the text out from the pdf use the chunk for embedding(details are there in attached code snippet. while using, i have installed all the required packages. its working fine in my local(windows 10). same code snippet and requirement.txt if i use on docker that uses ubuntu OS(its in prod), i am getting below error: **Error while chunking the file: Error while chunking the file, Errored while loading the document: `rapidocr-onnxruntime` package not found, please install it with `pip install rapidocr-onnxruntime**` The strage part here is this **rapidocr-onnxruntime** package is already installed on the ubuntu system**(i re-verified by seeing the github action runner logs where it installs all the packages from requirement.txt)** Not able to understand why on prod it **pypdf package with extract_image=True** is throwing above error It will be helpful, if you can provide any insight or workaround to this issue. ![process_pdff](https://github.com/langchain-ai/langchain/assets/34799343/d7a33465-d59d-438b-b6e2-3e68ab82fc9b) ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15576/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15576/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15575
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15575/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15575/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15575/events
https://github.com/langchain-ai/langchain/pull/15575
2,067,014,420
PR_kwDOIPDwls5jS2OU
15,575
Add llm cache in stream
{ "login": "pprados", "id": 204694, "node_id": "MDQ6VXNlcjIwNDY5NA==", "avatar_url": "https://avatars.githubusercontent.com/u/204694?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pprados", "html_url": "https://github.com/pprados", "followers_url": "https://api.github.com/users/pprados/followers", "following_url": "https://api.github.com/users/pprados/following{/other_user}", "gists_url": "https://api.github.com/users/pprados/gists{/gist_id}", "starred_url": "https://api.github.com/users/pprados/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pprados/subscriptions", "organizations_url": "https://api.github.com/users/pprados/orgs", "repos_url": "https://api.github.com/users/pprados/repos", "events_url": "https://api.github.com/users/pprados/events{/privacy}", "received_events_url": "https://api.github.com/users/pprados/received_events", "type": "User", "site_admin": false }
[ { "id": 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": 5955630415, "node_id": "LA_kwDOIPDwls8AAAABYvu1Tw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis", "name": "integration: redis", "color": "F9D0C4", "default": false, "description": "Any integration that uses Redis" }, { "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-05T09:33:11
2024-01-15T19:40:06
null
CONTRIBUTOR
null
**Description:** The current implementation does not exploit the cache when using stream. This PR add the usage of the llm cache with the stream. **Twitter handle:** @pprados
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15575/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15575/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15575", "html_url": "https://github.com/langchain-ai/langchain/pull/15575", "diff_url": "https://github.com/langchain-ai/langchain/pull/15575.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15575.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15574
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15574/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15574/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15574/events
https://github.com/langchain-ai/langchain/pull/15574
2,066,961,101
PR_kwDOIPDwls5jSq0E
15,574
community: Update pgvecto_rs to use its high level sdk
{ "login": "BeautyyuYanli", "id": 32453863, "node_id": "MDQ6VXNlcjMyNDUzODYz", "avatar_url": "https://avatars.githubusercontent.com/u/32453863?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BeautyyuYanli", "html_url": "https://github.com/BeautyyuYanli", "followers_url": "https://api.github.com/users/BeautyyuYanli/followers", "following_url": "https://api.github.com/users/BeautyyuYanli/following{/other_user}", "gists_url": "https://api.github.com/users/BeautyyuYanli/gists{/gist_id}", "starred_url": "https://api.github.com/users/BeautyyuYanli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BeautyyuYanli/subscriptions", "organizations_url": "https://api.github.com/users/BeautyyuYanli/orgs", "repos_url": "https://api.github.com/users/BeautyyuYanli/repos", "events_url": "https://api.github.com/users/BeautyyuYanli/events{/privacy}", "received_events_url": "https://api.github.com/users/BeautyyuYanli/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": 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-05T08:53:38
2024-01-15T19:42:00
2024-01-15T19:42:00
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. --> - **Description:** Update pgvecto_rs to use its high level sdk, - **Issue:** fix #15173
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15574/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15574/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15574", "html_url": "https://github.com/langchain-ai/langchain/pull/15574", "diff_url": "https://github.com/langchain-ai/langchain/pull/15574.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15574.patch", "merged_at": "2024-01-15T19:42:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/15573
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15573/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15573/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15573/events
https://github.com/langchain-ai/langchain/issues/15573
2,066,955,284
I_kwDOIPDwls57MzwU
15,573
Issue: Not able to get the expected answers when asking answer of other column corresponding to other column
{ "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": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
4
2024-01-05T08:49:04
2024-01-05T09:54:20
null
NONE
null
### Issue you'd like to raise. ` if file_path.lower().endswith(".xlsx") or file_path.lower().endswith(".xls"): loader = UnstructuredExcelLoader(file_path, mode="elements") document = loader.load() text_splitter = RecursiveCharacterTextSplitter(chunk_size=100, chunk_overlap=10) texts = text_splitter.split_documents(documents=document)` what can i modify so that I get answer from the column? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15573/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15573/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15572
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15572/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15572/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15572/events
https://github.com/langchain-ai/langchain/issues/15572
2,066,921,236
I_kwDOIPDwls57MrcU
15,572
How to set api key for news-api?
{ "login": "murphypei", "id": 11469548, "node_id": "MDQ6VXNlcjExNDY5NTQ4", "avatar_url": "https://avatars.githubusercontent.com/u/11469548?v=4", "gravatar_id": "", "url": "https://api.github.com/users/murphypei", "html_url": "https://github.com/murphypei", "followers_url": "https://api.github.com/users/murphypei/followers", "following_url": "https://api.github.com/users/murphypei/following{/other_user}", "gists_url": "https://api.github.com/users/murphypei/gists{/gist_id}", "starred_url": "https://api.github.com/users/murphypei/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/murphypei/subscriptions", "organizations_url": "https://api.github.com/users/murphypei/orgs", "repos_url": "https://api.github.com/users/murphypei/repos", "events_url": "https://api.github.com/users/murphypei/events{/privacy}", "received_events_url": "https://api.github.com/users/murphypei/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-05T08:21:08
2024-01-05T08:28:39
null
NONE
null
### System Info I want to use the news-api tool, and I have these setting for api key: ``` os.environ["NEWS_API_KEY"] = "9ed***" tools = load_tools(["news-api"], llm=llm, news_api_key="9ed****", memory=memory) ``` But when the action is activated, the error is: ``` Action: Search https://newsapi.org/v2/top-headlines?country=us&category=sports&pageSize=2&apiKey=YOUR_API_KEY Replace `YOUR_API_KEY` with your actual API key from NewsAPI.org to authenticate the request. ``` ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. load news-api tool 2. run the tool in the agent ### Expected behavior the news-api tool can run successfully
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15572/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15572/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15571
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15571/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15571/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15571/events
https://github.com/langchain-ai/langchain/pull/15571
2,066,895,548
PR_kwDOIPDwls5jScwu
15,571
community: support async streaming for VertexAI model.
{ "login": "bit-team-rakket", "id": 84695545, "node_id": "MDQ6VXNlcjg0Njk1NTQ1", "avatar_url": "https://avatars.githubusercontent.com/u/84695545?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bit-team-rakket", "html_url": "https://github.com/bit-team-rakket", "followers_url": "https://api.github.com/users/bit-team-rakket/followers", "following_url": "https://api.github.com/users/bit-team-rakket/following{/other_user}", "gists_url": "https://api.github.com/users/bit-team-rakket/gists{/gist_id}", "starred_url": "https://api.github.com/users/bit-team-rakket/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bit-team-rakket/subscriptions", "organizations_url": "https://api.github.com/users/bit-team-rakket/orgs", "repos_url": "https://api.github.com/users/bit-team-rakket/repos", "events_url": "https://api.github.com/users/bit-team-rakket/events{/privacy}", "received_events_url": "https://api.github.com/users/bit-team-rakket/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
{ "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-05T07:58:17
2024-01-15T19:41:13
null
NONE
null
**Description** Support async streaming for VertexAI model. The async method implementations are now aligned with their non-async counterparts for consistency.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15571/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15571/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15571", "html_url": "https://github.com/langchain-ai/langchain/pull/15571", "diff_url": "https://github.com/langchain-ai/langchain/pull/15571.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15571.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15570
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15570/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15570/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15570/events
https://github.com/langchain-ai/langchain/pull/15570
2,066,864,440
PR_kwDOIPDwls5jSWD_
15,570
community:Adding Konko Completion endpoint
{ "login": "shivanimodi16", "id": 22906652, "node_id": "MDQ6VXNlcjIyOTA2NjUy", "avatar_url": "https://avatars.githubusercontent.com/u/22906652?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shivanimodi16", "html_url": "https://github.com/shivanimodi16", "followers_url": "https://api.github.com/users/shivanimodi16/followers", "following_url": "https://api.github.com/users/shivanimodi16/following{/other_user}", "gists_url": "https://api.github.com/users/shivanimodi16/gists{/gist_id}", "starred_url": "https://api.github.com/users/shivanimodi16/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shivanimodi16/subscriptions", "organizations_url": "https://api.github.com/users/shivanimodi16/orgs", "repos_url": "https://api.github.com/users/shivanimodi16/repos", "events_url": "https://api.github.com/users/shivanimodi16/events{/privacy}", "received_events_url": "https://api.github.com/users/shivanimodi16/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 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." } ]
open
false
null
[]
null
4
2024-01-05T07:28:13
2024-01-16T15:56:44
null
NONE
null
This PR introduces update to Konko Integration with LangChain. 1. **New Endpoint Addition**: Integration of a new endpoint to utilize completion models hosted on Konko. 2. **Chat Model Updates for Backward Compatibility**: We have updated the chat models to ensure backward compatibility with previous OpenAI versions. 4. **Updated Documentation**: Comprehensive documentation has been updated to reflect these new changes, providing clear guidance on utilizing the new features and ensuring seamless integration. Thank you to the LangChain team for their exceptional work and for considering this PR. Please let me know if any additional information is needed.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15570/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15570/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15570", "html_url": "https://github.com/langchain-ai/langchain/pull/15570", "diff_url": "https://github.com/langchain-ai/langchain/pull/15570.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15570.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15569
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15569/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15569/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15569/events
https://github.com/langchain-ai/langchain/pull/15569
2,066,838,888
PR_kwDOIPDwls5jSQrq
15,569
Adding reading source for Curie model
{ "login": "Ammar-Azman", "id": 88831990, "node_id": "MDQ6VXNlcjg4ODMxOTkw", "avatar_url": "https://avatars.githubusercontent.com/u/88831990?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Ammar-Azman", "html_url": "https://github.com/Ammar-Azman", "followers_url": "https://api.github.com/users/Ammar-Azman/followers", "following_url": "https://api.github.com/users/Ammar-Azman/following{/other_user}", "gists_url": "https://api.github.com/users/Ammar-Azman/gists{/gist_id}", "starred_url": "https://api.github.com/users/Ammar-Azman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ammar-Azman/subscriptions", "organizations_url": "https://api.github.com/users/Ammar-Azman/orgs", "repos_url": "https://api.github.com/users/Ammar-Azman/repos", "events_url": "https://api.github.com/users/Ammar-Azman/events{/privacy}", "received_events_url": "https://api.github.com/users/Ammar-Azman/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": 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-05T07:03:41
2024-01-07T16:42:18
2024-01-07T16:42:18
CONTRIBUTOR
null
Improving documentation <!-- 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:** Adding resource for Curie model - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** @mmarccode 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/15569/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15569/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15569", "html_url": "https://github.com/langchain-ai/langchain/pull/15569", "diff_url": "https://github.com/langchain-ai/langchain/pull/15569.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15569.patch", "merged_at": "2024-01-07T16:42:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/15568
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15568/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15568/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15568/events
https://github.com/langchain-ai/langchain/pull/15568
2,066,782,626
PR_kwDOIPDwls5jSE7K
15,568
community: fix: should flush after inserting data on milvus
{ "login": "EeyoreLee", "id": 49790022, "node_id": "MDQ6VXNlcjQ5NzkwMDIy", "avatar_url": "https://avatars.githubusercontent.com/u/49790022?v=4", "gravatar_id": "", "url": "https://api.github.com/users/EeyoreLee", "html_url": "https://github.com/EeyoreLee", "followers_url": "https://api.github.com/users/EeyoreLee/followers", "following_url": "https://api.github.com/users/EeyoreLee/following{/other_user}", "gists_url": "https://api.github.com/users/EeyoreLee/gists{/gist_id}", "starred_url": "https://api.github.com/users/EeyoreLee/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/EeyoreLee/subscriptions", "organizations_url": "https://api.github.com/users/EeyoreLee/orgs", "repos_url": "https://api.github.com/users/EeyoreLee/repos", "events_url": "https://api.github.com/users/EeyoreLee/events{/privacy}", "received_events_url": "https://api.github.com/users/EeyoreLee/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 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-05T06:07:18
2024-01-07T17:33:48
2024-01-07T17:33:48
CONTRIBUTOR
null
The inserted data cannot take effect immediately. We should flush after inserting data on milvus.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15568/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15568/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15568", "html_url": "https://github.com/langchain-ai/langchain/pull/15568", "diff_url": "https://github.com/langchain-ai/langchain/pull/15568.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15568.patch", "merged_at": "2024-01-07T17:33:48" }
https://api.github.com/repos/langchain-ai/langchain/issues/15567
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15567/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15567/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15567/events
https://github.com/langchain-ai/langchain/issues/15567
2,066,727,007
I_kwDOIPDwls57L8Bf
15,567
SQLDatabaseToolkit - httpx.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol
{ "login": "Keyurkch", "id": 30364392, "node_id": "MDQ6VXNlcjMwMzY0Mzky", "avatar_url": "https://avatars.githubusercontent.com/u/30364392?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Keyurkch", "html_url": "https://github.com/Keyurkch", "followers_url": "https://api.github.com/users/Keyurkch/followers", "following_url": "https://api.github.com/users/Keyurkch/following{/other_user}", "gists_url": "https://api.github.com/users/Keyurkch/gists{/gist_id}", "starred_url": "https://api.github.com/users/Keyurkch/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Keyurkch/subscriptions", "organizations_url": "https://api.github.com/users/Keyurkch/orgs", "repos_url": "https://api.github.com/users/Keyurkch/repos", "events_url": "https://api.github.com/users/Keyurkch/events{/privacy}", "received_events_url": "https://api.github.com/users/Keyurkch/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-05T04:54:04
2024-01-05T05:01:50
null
NONE
null
### System Info Python 3.11 Langchain 0.0.354 Windows 11 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Getting exception httpcore.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol. while executing SQLDatabaseToolkit Execute below code and described environment: `import os from dotenv import load_dotenv from langchain.agents import create_sql_agent from langchain.agents.agent_toolkits import SQLDatabaseToolkit from langchain.sql_database import SQLDatabase from langchain.chat_models import ChatOpenAI llm_model = "gpt-3.5-turbo" #load secrets and keys from .env load_dotenv() database_user_local = os.getenv("DATABASE_USERNAME_LOCAL") database_password_local = os.getenv("DATABASE_PASSWORD_LOCAL") database_server_local = os.getenv("DATABASE_SERVER_LOCAL") database_db_local = os.getenv("DATABASE_DB_LOCAL") llm = ChatOpenAI(temperature = 0.0, model_name=llm_model) connection_string = f"mssql+pymssql://{database_user_local}:{database_password_local}@{database_server_local}/{database_db_local}" db = SQLDatabase.from_uri(connection_string) user_id = 118 query = "Select top 5 * from dbo.Users where Id = " + str(user_id) toolkit = SQLDatabaseToolkit(db=db, llm=llm, reduce_k_below_max_tokens=True) agent_executor = create_sql_agent( llm=llm, toolkit=toolkit, verbose=True, input_variables=["query"] ) agent_executor.run("Get lastlogin from dbo.Users for user_id 118") ` Error: ` Entering new AgentExecutor chain... Traceback (most recent call last): File "D:\Program\Python\Python311\Lib\site-packages\httpx\_transports\default.py", line 67, in map_httpcore_exceptions yield File "D:\Program\Python\Python311\Lib\site-packages\httpx\_transports\default.py", line 231, in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program\Python\Python311\Lib\site-packages\httpcore\_sync\connection_pool.py", line 215, in handle_request raise UnsupportedProtocol( httpcore.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\Program\Python\Python311\Lib\site-packages\openai\_base_client.py", line 866, in _request response = self._client.send(request, auth=self.custom_auth, stream=stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program\Python\Python311\Lib\site-packages\httpx\_client.py", line 915, in send response = self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program\Python\Python311\Lib\site-packages\httpx\_client.py", line 943, in _send_handling_auth response = self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program\Python\Python311\Lib\site-packages\httpx\_client.py", line 980, in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program\Python\Python311\Lib\site-packages\httpx\_client.py", line 1016, in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program\Python\Python311\Lib\site-packages\httpx\_transports\default.py", line 230, in handle_request with map_httpcore_exceptions(): File "D:\Program\Python\Python311\Lib\contextlib.py", line 155, in __exit__ self.gen.throw(typ, value, traceback) File "D:\Program\Python\Python311\Lib\site-packages\httpx\_transports\default.py", line 84, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Program\Python\Python311\Lib\site-packages\httpx\_transports\default.py", line 67, in map_httpcore_exceptions yield File "D:\Program\Python\Python311\Lib\site-packages\httpx\_transports\default.py", line 231, in handle_request resp = self._pool.handle_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program\Python\Python311\Lib\site-packages\httpcore\_sync\connection_pool.py", line 215, in handle_request raise UnsupportedProtocol( httpcore.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\Program\Python\Python311\Lib\site-packages\openai\_base_client.py", line 866, in _request response = self._client.send(request, auth=self.custom_auth, stream=stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program\Python\Python311\Lib\site-packages\httpx\_client.py", line 915, in send response = self._send_handling_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program\Python\Python311\Lib\site-packages\httpx\_client.py", line 943, in _send_handling_auth response = self._send_handling_redirects( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program\Python\Python311\Lib\site-packages\httpx\_client.py", line 980, in _send_handling_redirects response = self._send_single_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program\Python\Python311\Lib\site-packages\httpx\_client.py", line 1016, in _send_single_request response = transport.handle_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program\Python\Python311\Lib\site-packages\httpx\_transports\default.py", line 230, in handle_request with map_httpcore_exceptions(): File "D:\Program\Python\Python311\Lib\contextlib.py", line 155, in __exit__ self.gen.throw(typ, value, traceback) File "D:\Program\Python\Python311\Lib\site-packages\httpx\_transports\default.py", line 84, in map_httpcore_exceptions` ### Expected behavior It should execute sql agent and return the result
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15567/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15567/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15566
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15566/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15566/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15566/events
https://github.com/langchain-ai/langchain/pull/15566
2,066,722,221
PR_kwDOIPDwls5jR4xA
15,566
fix links
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 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": 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": 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-05T04:47:17
2024-01-05T05:57:31
2024-01-05T05:57:31
COLLABORATOR
null
there are still a few broken ones: - some in the chains docs, which I will delete soon :) - some pointing to a sqlite tool, which we should add
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15566/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15566/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15566", "html_url": "https://github.com/langchain-ai/langchain/pull/15566", "diff_url": "https://github.com/langchain-ai/langchain/pull/15566.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15566.patch", "merged_at": "2024-01-05T05:57:31" }
https://api.github.com/repos/langchain-ai/langchain/issues/15565
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15565/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15565/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15565/events
https://github.com/langchain-ai/langchain/pull/15565
2,066,673,889
PR_kwDOIPDwls5jRuy_
15,565
Docs: Fix typos in question_answering
{ "login": "Speuce", "id": 8062248, "node_id": "MDQ6VXNlcjgwNjIyNDg=", "avatar_url": "https://avatars.githubusercontent.com/u/8062248?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Speuce", "html_url": "https://github.com/Speuce", "followers_url": "https://api.github.com/users/Speuce/followers", "following_url": "https://api.github.com/users/Speuce/following{/other_user}", "gists_url": "https://api.github.com/users/Speuce/gists{/gist_id}", "starred_url": "https://api.github.com/users/Speuce/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Speuce/subscriptions", "organizations_url": "https://api.github.com/users/Speuce/orgs", "repos_url": "https://api.github.com/users/Speuce/repos", "events_url": "https://api.github.com/users/Speuce/events{/privacy}", "received_events_url": "https://api.github.com/users/Speuce/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-05T03:34:14
2024-01-05T05:57:21
2024-01-05T05:57:21
CONTRIBUTOR
null
**Description**: Fixed a minor typo in the RAG Docs: - ~~This usually happen offline~~ -> This usually happen**s** offline
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15565/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15565/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15565", "html_url": "https://github.com/langchain-ai/langchain/pull/15565", "diff_url": "https://github.com/langchain-ai/langchain/pull/15565.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15565.patch", "merged_at": "2024-01-05T05:57:21" }