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
unknown
updated_at
unknown
closed_at
unknown
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/16179
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16179/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16179/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16179/events
https://github.com/langchain-ai/langchain/issues/16179
2,087,527,966
I_kwDOIPDwls58bSYe
16,179
How can I embed chat logs into the specified collection 'QDRANT_COLLECTION_NAME' in Qrdant, and what approach should I use to write the chain for short-term memory?
{ "login": "yen111445", "id": 103471919, "node_id": "U_kgDOBirbLw", "avatar_url": "https://avatars.githubusercontent.com/u/103471919?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yen111445", "html_url": "https://github.com/yen111445", "followers_url": "https://api.github.com/users/yen111445/followers", "following_url": "https://api.github.com/users/yen111445/following{/other_user}", "gists_url": "https://api.github.com/users/yen111445/gists{/gist_id}", "starred_url": "https://api.github.com/users/yen111445/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yen111445/subscriptions", "organizations_url": "https://api.github.com/users/yen111445/orgs", "repos_url": "https://api.github.com/users/yen111445/repos", "events_url": "https://api.github.com/users/yen111445/events{/privacy}", "received_events_url": "https://api.github.com/users/yen111445/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
1
"2024-01-18T05:22:40"
"2024-01-18T05:32:44"
null
NONE
null
### Issue with current documentation: import os import qdrant_client from dotenv import load_dotenv from langchain.chains import RetrievalQA from langchain.embeddings.huggingface import HuggingFaceInstructEmbeddings from langchain.llms import OpenAI from langchain.vectorstores import Qdrant os.environ['OPENAI_API_KEY'] = "mykey" # memory= def get_vector_store(): client = qdrant_client.QdrantClient( os.getenv('QDRANT_HOST'), ) embeddings = HuggingFaceInstructEmbeddings(model_name="all-MiniLM-L6-v2") vector_store = Qdrant( client=client, collection_name=os.getenv('QDRANT_COLLECTION_NAME'), embeddings=embeddings, ) return vector_store def main(): load_dotenv() vectorstore = get_vector_store() qa = RetrievalQA.from_chain_type( llm=OpenAI( temperature=0.7, max_tokens=100, ), chain_type="stuff", retriever=vectorstore.as_retriever(search_type="similarity_score_threshold", search_kwargs={"score_threshold": 0.1}) ) while True: user_question = input("ask:") if user_question == "bye": break answer = qa.invoke(user_question) print(f"Ai: {answer}") if __name__ == "__main__": main() ### Idea or request for content: How can I embed chat logs into the specified collection 'QDRANT_COLLECTION_NAME' in Qrdant, and what approach should I use to write the chain for short-term memory?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16179/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16179/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16177
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16177/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16177/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16177/events
https://github.com/langchain-ai/langchain/pull/16177
2,087,508,087
PR_kwDOIPDwls5kYhzM
16,177
docs: add milvus multitenancy doc
{ "login": "zc277584121", "id": 17022025, "node_id": "MDQ6VXNlcjE3MDIyMDI1", "avatar_url": "https://avatars.githubusercontent.com/u/17022025?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zc277584121", "html_url": "https://github.com/zc277584121", "followers_url": "https://api.github.com/users/zc277584121/followers", "following_url": "https://api.github.com/users/zc277584121/following{/other_user}", "gists_url": "https://api.github.com/users/zc277584121/gists{/gist_id}", "starred_url": "https://api.github.com/users/zc277584121/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zc277584121/subscriptions", "organizations_url": "https://api.github.com/users/zc277584121/orgs", "repos_url": "https://api.github.com/users/zc277584121/repos", "events_url": "https://api.github.com/users/zc277584121/events{/privacy}", "received_events_url": "https://api.github.com/users/zc277584121/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
2
"2024-01-18T05:01:53"
"2024-01-18T05:08:49"
null
CONTRIBUTOR
null
- **Description:** add milvus multitenancy doc, it is an example for this [pr](https://github.com/langchain-ai/langchain/pull/15740) . - **Issue:** No, - **Dependencies:** No, - **Twitter handle:** No
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16177/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16177/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16177", "html_url": "https://github.com/langchain-ai/langchain/pull/16177", "diff_url": "https://github.com/langchain-ai/langchain/pull/16177.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16177.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16176
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16176/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16176/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16176/events
https://github.com/langchain-ai/langchain/pull/16176
2,087,473,387
PR_kwDOIPDwls5kYaDq
16,176
`output_parsers` updated dependency
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
"2024-01-18T04:32:09"
"2024-01-18T05:04:30"
"2024-01-18T05:04:15"
COLLABORATOR
null
nit Decreased dependency on `runnables`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16176/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16176/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16176", "html_url": "https://github.com/langchain-ai/langchain/pull/16176", "diff_url": "https://github.com/langchain-ai/langchain/pull/16176.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16176.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16174
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16174/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16174/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16174/events
https://github.com/langchain-ai/langchain/pull/16174
2,087,433,787
PR_kwDOIPDwls5kYRaR
16,174
rfc: agent initial tool choices
{ "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 }
[]
open
false
null
[]
null
1
"2024-01-18T03:52:58"
"2024-01-18T03:53:08"
null
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16174/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16174/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16174", "html_url": "https://github.com/langchain-ai/langchain/pull/16174", "diff_url": "https://github.com/langchain-ai/langchain/pull/16174.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16174.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16173
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16173/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16173/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16173/events
https://github.com/langchain-ai/langchain/pull/16173
2,087,418,130
PR_kwDOIPDwls5kYN_P
16,173
langchain-community: LanceDB integration improvements/fixes
{ "login": "raghavdixit99", "id": 34462078, "node_id": "MDQ6VXNlcjM0NDYyMDc4", "avatar_url": "https://avatars.githubusercontent.com/u/34462078?v=4", "gravatar_id": "", "url": "https://api.github.com/users/raghavdixit99", "html_url": "https://github.com/raghavdixit99", "followers_url": "https://api.github.com/users/raghavdixit99/followers", "following_url": "https://api.github.com/users/raghavdixit99/following{/other_user}", "gists_url": "https://api.github.com/users/raghavdixit99/gists{/gist_id}", "starred_url": "https://api.github.com/users/raghavdixit99/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/raghavdixit99/subscriptions", "organizations_url": "https://api.github.com/users/raghavdixit99/orgs", "repos_url": "https://api.github.com/users/raghavdixit99/repos", "events_url": "https://api.github.com/users/raghavdixit99/events{/privacy}", "received_events_url": "https://api.github.com/users/raghavdixit99/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." } ]
open
false
null
[]
null
1
"2024-01-18T03:34:34"
"2024-01-18T03:41:01"
null
NONE
null
Hi, I'm from the LanceDB team. Improves LanceDB integration by making it easier to use - now you aren't required to create tables manually and pass them in the constructor, although that is still backward compatible. Bug fix - pandas was being used even though it's not a dependency for LanceDB or langchain PS - this issue was raised a few months ago but lost traction. It is a feature improvement for our users kindly review this , Thanks !
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16173/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16173/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16173", "html_url": "https://github.com/langchain-ai/langchain/pull/16173", "diff_url": "https://github.com/langchain-ai/langchain/pull/16173.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16173.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16172
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16172/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16172/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16172/events
https://github.com/langchain-ai/langchain/pull/16172
2,087,378,381
PR_kwDOIPDwls5kYFOZ
16,172
core[patch]: RFC Add astream_events to Runnables
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
open
false
null
[]
null
1
"2024-01-18T02:54:59"
"2024-01-18T03:57:12"
null
COLLABORATOR
null
This PR adds `astream_events` method to Runnables to make it easier to stream data from arbitrary chains. * Streaming only works properly in async right now * One should use `astream()` with if mixing in imperative code as might be done with tool implementations * Astream_log has been modified with minimal additive changes, so no breaking changes are expected * Underlying callback code / tracing code should be refactored at some point to handle things more consistently (OK for now) - [ ] check if there are handled callbacks by other LangChain runnables (e.g., embedders) - [ ] verify event for on_retry - [ ] Any rrenaming? Should we rename "event" to "hook"? - [ ] Any other feedback from community? ## Example See this [Example Notebook](https://github.com/langchain-ai/langchain/blob/dbbc7fa0d66bcdde420760baa0ddb9918c12c349/docs/docs/modules/agents/how_to/streaming_events.ipynb) for an example with streaming in the context of an Agent ## Event Hooks Reference Here is a reference table that shows some events that might be emitted by the various Runnable objects. Definitions for some of the Runnable are included after the table. | event | name | chunk | input | output | |----------------------|------------------|---------------------------------|-----------------------------------------------|-------------------------------------------------| | on_chat_model_start | [model name] | | {"messages": [[SystemMessage, HumanMessage]]} | | | on_chat_model_stream | [model name] | AIMessageChunk(content="hello") | | | | on_chat_model_end | [model name] | | {"messages": [[SystemMessage, HumanMessage]]} | {"generations": [...], "llm_output": None, ...} | | on_llm_start | [model name] | | {'input': 'hello'} | | | on_llm_stream | [model name] | 'Hello' | | | | on_llm_end | [model name] | | 'Hello human!' | | on_chain_start | format_docs | | | | | on_chain_stream | format_docs | "hello world!, goodbye world!" | | | | on_chain_end | format_docs | | [Document(...)] | "hello world!, goodbye world!" | | on_tool_start | some_tool | | {"x": 1, "y": "2"} | | | on_tool_stream | some_tool | {"x": 1, "y": "2"} | | | | on_tool_end | some_tool | | | {"x": 1, "y": "2"} | | on_retriever_start | [retriever name] | | {"query": "hello"} | | | on_retriever_chunk | [retriever name] | {documents: [...]} | | | | on_retriever_end | [retriever name] | | {"query": "hello"} | {documents: [...]} | | on_prompt_start | [template_name] | | {"question": "hello"} | | | on_prompt_end | [template_name] | | {"question": "hello"} | ChatPromptValue(messages: [SystemMessage, ...]) | Here are declarations associated with the events shown above: `format_docs`: ```python def format_docs(docs: List[Document]) -> str: '''Format the docs.''' return ", ".join([doc.page_content for doc in docs]) format_docs = RunnableLambda(format_docs) ``` `some_tool`: ```python @tool def some_tool(x: int, y: str) -> dict: '''Some_tool.''' return {"x": x, "y": y} ``` `prompt`: ```python template = ChatPromptTemplate.from_messages( [("system", "You are Cat Agent 007"), ("human", "{question}")] ).with_config({"run_name": "my_template", "tags": ["my_template"]}) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16172/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16172/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16172", "html_url": "https://github.com/langchain-ai/langchain/pull/16172", "diff_url": "https://github.com/langchain-ai/langchain/pull/16172.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16172.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16171
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16171/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16171/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16171/events
https://github.com/langchain-ai/langchain/pull/16171
2,087,346,673
PR_kwDOIPDwls5kX-YG
16,171
community: New documents loader for visio files (with extension .vsdx)
{ "login": "florian-morel22", "id": 90619575, "node_id": "MDQ6VXNlcjkwNjE5NTc1", "avatar_url": "https://avatars.githubusercontent.com/u/90619575?v=4", "gravatar_id": "", "url": "https://api.github.com/users/florian-morel22", "html_url": "https://github.com/florian-morel22", "followers_url": "https://api.github.com/users/florian-morel22/followers", "following_url": "https://api.github.com/users/florian-morel22/following{/other_user}", "gists_url": "https://api.github.com/users/florian-morel22/gists{/gist_id}", "starred_url": "https://api.github.com/users/florian-morel22/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/florian-morel22/subscriptions", "organizations_url": "https://api.github.com/users/florian-morel22/orgs", "repos_url": "https://api.github.com/users/florian-morel22/repos", "events_url": "https://api.github.com/users/florian-morel22/events{/privacy}", "received_events_url": "https://api.github.com/users/florian-morel22/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": 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-18T02:20:45"
"2024-01-18T02:27:02"
null
NONE
null
**Description** : New documents loader for visio files (with extension .vsdx) A [visio file](https://fr.wikipedia.org/wiki/Microsoft_Visio) (with extension .vsdx) is associated with Microsoft Visio, a diagram creation software. It stores information about the structure, layout, and graphical elements of a diagram. This format facilitates the creation and sharing of visualizations in areas such as business, engineering, and computer science. A Visio file can contain multiple pages. Some of them may serve as the background for others, and this can occur across multiple layers. This loader extracts the textual content from each page and its associated pages, enabling the extraction of all visible text from each page, similar to what an OCR algorithm would do. **Dependencies** : xmltodict package
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16171/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16171/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16171", "html_url": "https://github.com/langchain-ai/langchain/pull/16171", "diff_url": "https://github.com/langchain-ai/langchain/pull/16171.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16171.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16170
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16170/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16170/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16170/events
https://github.com/langchain-ai/langchain/issues/16170
2,087,297,421
I_kwDOIPDwls58aaGN
16,170
No file/folder found for package langchain-monorepo
{ "login": "zcw5116", "id": 9591302, "node_id": "MDQ6VXNlcjk1OTEzMDI=", "avatar_url": "https://avatars.githubusercontent.com/u/9591302?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zcw5116", "html_url": "https://github.com/zcw5116", "followers_url": "https://api.github.com/users/zcw5116/followers", "following_url": "https://api.github.com/users/zcw5116/following{/other_user}", "gists_url": "https://api.github.com/users/zcw5116/gists{/gist_id}", "starred_url": "https://api.github.com/users/zcw5116/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zcw5116/subscriptions", "organizations_url": "https://api.github.com/users/zcw5116/orgs", "repos_url": "https://api.github.com/users/zcw5116/repos", "events_url": "https://api.github.com/users/zcw5116/events{/privacy}", "received_events_url": "https://api.github.com/users/zcw5116/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-18T01:24:10"
"2024-01-18T01:30:41"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code none ### Description In the HOME directory of the langchain source code, execute the following command: poetry install --with lint,typing,test However, the following errors are thrown, and I have a few questions to ask: (1) Why do we need to perform a downgrade operation on modules like langchain-core, and how to avoid downgrading? (2) Why can't the module langchain-monorepo be found? (3) How to compile the source code of langchain in order to understand the principles of langchain and contribute code to langchain? My development environment: Python: Built on conda, Python version 3.8.18 Langchain: The master branch on GitHub. Error message: (langchain) [xiaobai@xiaobai langchain-master]$ poetry install --with lint,typing,test Installing dependencies from lock file Package operations: 0 installs, 4 updates, 0 removals • Downgrading langchain-core (0.1.10 /home/xiaobai/data/pro/python/langchain-master/libs/core -> 0.1.3 /home/xiaobai/data/pro/python/langchain-master/libs/core) • Downgrading langchain-community (0.0.12 /home/xiaobai/data/pro/python/langchain-master/libs/community -> 0.0.6 /home/xiaobai/data/pro/python/langchain-master/libs/community) • Downgrading langchain (0.1.0 /home/xiaobai/data/pro/python/langchain-master/libs/langchain -> 0.0.352 /home/xiaobai/data/pro/python/langchain-master/libs/langchain) • Downgrading langchain-experimental (0.0.49 /home/xiaobai/data/pro/python/langchain-master/libs/experimental -> 0.0.47 /home/xiaobai/data/pro/python/langchain-master/libs/experimental) Installing the current project: langchain-monorepo (0.0.1) The current project could not be installed: No file/folder found for package langchain-monorepo If you do not want to install the current project use --no-root ### System Info Python: Built on conda, Python version 3.8.18 Langchain: The master branch on GitHub. ### 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
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16170/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16170/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16168
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16168/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16168/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16168/events
https://github.com/langchain-ai/langchain/pull/16168
2,087,258,034
PR_kwDOIPDwls5kXrrN
16,168
Bagatur/sql use case
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
1
"2024-01-18T00:43:01"
"2024-01-18T03:21:59"
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/16168/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16168/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16168", "html_url": "https://github.com/langchain-ai/langchain/pull/16168", "diff_url": "https://github.com/langchain-ai/langchain/pull/16168.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16168.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16167
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16167/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16167/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16167/events
https://github.com/langchain-ai/langchain/pull/16167
2,087,245,482
PR_kwDOIPDwls5kXo9o
16,167
Add revision identifier to run_on_dataset
{ "login": "samnoyes", "id": 6432132, "node_id": "MDQ6VXNlcjY0MzIxMzI=", "avatar_url": "https://avatars.githubusercontent.com/u/6432132?v=4", "gravatar_id": "", "url": "https://api.github.com/users/samnoyes", "html_url": "https://github.com/samnoyes", "followers_url": "https://api.github.com/users/samnoyes/followers", "following_url": "https://api.github.com/users/samnoyes/following{/other_user}", "gists_url": "https://api.github.com/users/samnoyes/gists{/gist_id}", "starred_url": "https://api.github.com/users/samnoyes/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/samnoyes/subscriptions", "organizations_url": "https://api.github.com/users/samnoyes/orgs", "repos_url": "https://api.github.com/users/samnoyes/repos", "events_url": "https://api.github.com/users/samnoyes/events{/privacy}", "received_events_url": "https://api.github.com/users/samnoyes/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": 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-18T00:28:20"
"2024-01-18T04:27:45"
"2024-01-18T04:27:44"
CONTRIBUTOR
null
Allow specifying revision identifier for better project versioning
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16167/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16167/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16167", "html_url": "https://github.com/langchain-ai/langchain/pull/16167", "diff_url": "https://github.com/langchain-ai/langchain/pull/16167.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16167.patch", "merged_at": "2024-01-18T04:27:44" }
https://api.github.com/repos/langchain-ai/langchain/issues/16166
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16166/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16166/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16166/events
https://github.com/langchain-ai/langchain/issues/16166
2,087,233,605
I_kwDOIPDwls58aKhF
16,166
Chroma and Pinecone provide totally different results even when created with the same document set.
{ "login": "Wosin", "id": 7119802, "node_id": "MDQ6VXNlcjcxMTk4MDI=", "avatar_url": "https://avatars.githubusercontent.com/u/7119802?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Wosin", "html_url": "https://github.com/Wosin", "followers_url": "https://api.github.com/users/Wosin/followers", "following_url": "https://api.github.com/users/Wosin/following{/other_user}", "gists_url": "https://api.github.com/users/Wosin/gists{/gist_id}", "starred_url": "https://api.github.com/users/Wosin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Wosin/subscriptions", "organizations_url": "https://api.github.com/users/Wosin/orgs", "repos_url": "https://api.github.com/users/Wosin/repos", "events_url": "https://api.github.com/users/Wosin/events{/privacy}", "received_events_url": "https://api.github.com/users/Wosin/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
2
"2024-01-18T00:16:00"
"2024-01-18T00:29:27"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code ``` def createAgent(): pinecone.init(environment="gcp-starter") llm = ChatOpenAI(temperature=0, model_name="gpt-4-1106-preview") embeddings = OpenAIEmbeddings() docsearch_ch = Chroma(persist_directory="../chroma_db", embedding_function=embeddings, collection_name="company") docsearch = Pinecone.from_existing_index(index_name="company", embedding=embeddings) companyQa = RetrievalQA.from_chain_type( llm=llm, chain_type="stuff", retriever=docsearch_ch.as_retriever(kwargs={"k": 15}) ) tools = [ Tool( name="Company QA", description="Useful to get informations about Company", func=companyQa.run ) ] return initialize_agent( tools=tools, llm=llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True ) ``` ### Description I have Chroma index and Pinecone index created from exactly the same documents. It is a company website scraped through Apify. Below code is used to create both indices: ``` splitter = RecursiveCharacterTextSplitter( chunk_size=500, chunk_overlap=50, separators= ["\n", "", " ", "\n\n"]) docs = splitter.split_documents(documents) embeddings = OpenAIEmbeddings() Pinecone.from_documents(docs, embeddings, index_name="company") Chroma.from_documents(docs, embeddings, persist_directory="./chroma_db", collection_name="company") ``` The problem is that Chroma seems very limited in capabilities compared to Pinecone.I have provided the example agent code that I am using. When we use the `docsearch_ch` and ask the following prompt: `What are some clients of the Company"?`. We are going to receive `To find out the clients of the Company, you would need to contact Company directly or visit their official website or check their press releases for announcements of new partnerships or clients. Company QA does not have access to this information.` When we use the `docsearch` that is based on Pinecone. The same prompt returns `Some clients of the company include industry leaders such as Demandbase, New Relic, Nubank, Rapid7, and Skyscanner.` If we try to do the similarity search manually using the below code: ``` print(docsearch_ch.similarity_search("List of the company clients.", k =10)) print(docsearch.similarity_search("List of the company clients.", k =10)) ``` Both of the vector stores will return more or less correct results (altough seems that Pinecone results are better), but more importantly both of them will return the Document with following content: ``` page_content='by industry leaders worldwide, such as Demandbase, New Relic, Nubank, Rapid7, and Skyscanner.' ``` When I try to debug the code and setup the breakpoint in the [BaseCombineDocumentsChain](https://github.com/langchain-ai/langchain/blob/ca014d5b04b1d73fd8f0fe224def98a82600c991/libs/langchain/langchain/chains/combine_documents/base.py#L136) the inputs for Chroma based retriever are empty. Seems like this isn't the expected behaviour. ### System Info langchain==0.0.342 langchain-community==0.0.13 langchain-core==0.0.7 langchain-experimental==0.0.49 Mac OS M1 Ventura 13.6 Python 3.9.6 ### 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
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16166/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16166/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16165
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16165/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16165/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16165/events
https://github.com/langchain-ai/langchain/issues/16165
2,087,170,268
I_kwDOIPDwls58Z7Dc
16,165
Improper chat_template when using Ollama
{ "login": "nrakocz", "id": 39495768, "node_id": "MDQ6VXNlcjM5NDk1NzY4", "avatar_url": "https://avatars.githubusercontent.com/u/39495768?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nrakocz", "html_url": "https://github.com/nrakocz", "followers_url": "https://api.github.com/users/nrakocz/followers", "following_url": "https://api.github.com/users/nrakocz/following{/other_user}", "gists_url": "https://api.github.com/users/nrakocz/gists{/gist_id}", "starred_url": "https://api.github.com/users/nrakocz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nrakocz/subscriptions", "organizations_url": "https://api.github.com/users/nrakocz/orgs", "repos_url": "https://api.github.com/users/nrakocz/repos", "events_url": "https://api.github.com/users/nrakocz/events{/privacy}", "received_events_url": "https://api.github.com/users/nrakocz/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-17T23:17:06"
"2024-01-18T05:37:29"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code I have noticed that the prompt produced by LangChain when using ```ChatOllama(model='mixtral')``` was not in the proper format. This can be replicated using the following: ``` from transformers import AutoModelForCausalLM, AutoTokenizer model_id = "mistralai/Mixtral-8x7B-v0.1" tokenizer = AutoTokenizer.from_pretrained(model_id) ##messages example messages = [ {"role": "system", "content": "You are a chef"}, {"role": "user", "content": "What is your favourite condiment?"}, {"role": "assistant", "content": "Well, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen!"}, {"role": "user", "content": "Do you have mayonnaise recipes?"} ] ##converting messages example to LC format messages_lc = [(m['role'],m['content']) for m in messages] ``` For the proper format: ``` tokenizer.apply_chat_template(messages,tokenize=False) ``` This would produce: ``` "<s>[INST] <<SYS>>\nYou are a chef\n<</SYS>>\n\nWhat is your favourite condiment? [/INST] Well, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen! </s><s>[INST] Do you have mayonnaise recipes? [/INST]" ``` Where as the LangChain format: ``` from langchain_community.chat_models import ChatOllama from langchain.prompts import ChatPromptTemplate chat = ChatOllama(model='mixtral') chat_resp = (ChatPromptTemplate.from_messages(messages_lc) | chat_tmp ).invoke({},{'callbacks': [ConsoleCallbackHandler()]}) ``` I then copied the tokens sent to the LLM (using the ConsoleCallbackHandler) into ```tokens``` and decoded them: ``` tokenizer.decode(tokens) ``` To receive this: ``` " [INST] <<SYS>> You are a chef <</SYS>>\n[INST] What is your favourite condiment? [/INST]\nWell, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen!\n[INST] Do you have mayonnaise recipes? [/INST] [/INST] ``` ### Description I'm trying to use LangChain with ChatOllama. Output tokens decoded were: ``` " [INST] <<SYS>> You are a chef <</SYS>>\n[INST] What is your favourite condiment? [/INST]\nWell, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen!\n[INST] Do you have mayonnaise recipes? [/INST] [/INST] ``` Where the proper format is: ``` "<s>[INST] <<SYS>>\nYou are a chef\n<</SYS>>\n\nWhat is your favourite condiment? [/INST] Well, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen! </s><s>[INST] Do you have mayonnaise recipes? [/INST]" ``` ### System Info langchain==0.0.350 langchain-community==0.0.3 langchain-core==0.1.0 Python 3.11.4 MacOS Sonoma ### 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 - [X] Callbacks/Tracing - [ ] Async
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16165/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16165/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16164
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16164/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16164/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16164/events
https://github.com/langchain-ai/langchain/pull/16164
2,087,019,595
PR_kwDOIPDwls5kW2-G
16,164
doc: Fix small typo in quickstart
{ "login": "hon-gyu", "id": 67950264, "node_id": "MDQ6VXNlcjY3OTUwMjY0", "avatar_url": "https://avatars.githubusercontent.com/u/67950264?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hon-gyu", "html_url": "https://github.com/hon-gyu", "followers_url": "https://api.github.com/users/hon-gyu/followers", "following_url": "https://api.github.com/users/hon-gyu/following{/other_user}", "gists_url": "https://api.github.com/users/hon-gyu/gists{/gist_id}", "starred_url": "https://api.github.com/users/hon-gyu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hon-gyu/subscriptions", "organizations_url": "https://api.github.com/users/hon-gyu/orgs", "repos_url": "https://api.github.com/users/hon-gyu/repos", "events_url": "https://api.github.com/users/hon-gyu/events{/privacy}", "received_events_url": "https://api.github.com/users/hon-gyu/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." } ]
open
false
null
[]
null
1
"2024-01-17T21:31:33"
"2024-01-18T02:26:27"
null
NONE
null
- **Description:** fix small typo in quickstart
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16164/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16164/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16164", "html_url": "https://github.com/langchain-ai/langchain/pull/16164", "diff_url": "https://github.com/langchain-ai/langchain/pull/16164.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16164.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16163
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16163/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16163/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16163/events
https://github.com/langchain-ai/langchain/pull/16163
2,086,990,183
PR_kwDOIPDwls5kWwle
16,163
docs: model io order
{ "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": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
"2024-01-17T21:11:19"
"2024-01-17T21:22:01"
"2024-01-17T21:13:31"
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16163/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16163/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16163", "html_url": "https://github.com/langchain-ai/langchain/pull/16163", "diff_url": "https://github.com/langchain-ai/langchain/pull/16163.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16163.patch", "merged_at": "2024-01-17T21:13:31" }
https://api.github.com/repos/langchain-ai/langchain/issues/16162
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16162/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16162/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16162/events
https://github.com/langchain-ai/langchain/pull/16162
2,086,967,961
PR_kwDOIPDwls5kWrq3
16,162
docs: bump sphinx>=5
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 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-17T20:57:06"
"2024-01-17T20:57:35"
"2024-01-17T20:57:34"
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16162/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16162/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16162", "html_url": "https://github.com/langchain-ai/langchain/pull/16162", "diff_url": "https://github.com/langchain-ai/langchain/pull/16162.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16162.patch", "merged_at": "2024-01-17T20:57:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/16161
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16161/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16161/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16161/events
https://github.com/langchain-ai/langchain/pull/16161
2,086,928,688
PR_kwDOIPDwls5kWjAL
16,161
core[patch]: Release 0.1.12
{ "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
1
"2024-01-17T20:30:01"
"2024-01-17T20:39:47"
"2024-01-17T20:39:46"
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16161/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16161/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16161", "html_url": "https://github.com/langchain-ai/langchain/pull/16161", "diff_url": "https://github.com/langchain-ai/langchain/pull/16161.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16161.patch", "merged_at": "2024-01-17T20:39:46" }
https://api.github.com/repos/langchain-ai/langchain/issues/16160
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16160/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16160/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16160/events
https://github.com/langchain-ai/langchain/pull/16160
2,086,831,199
PR_kwDOIPDwls5kWNuk
16,160
Update readme
{ "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": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
"2024-01-17T19:22:52"
"2024-01-17T21:56:08"
"2024-01-17T21:56:07"
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/16160/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16160/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16160", "html_url": "https://github.com/langchain-ai/langchain/pull/16160", "diff_url": "https://github.com/langchain-ai/langchain/pull/16160.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16160.patch", "merged_at": "2024-01-17T21:56:07" }
https://api.github.com/repos/langchain-ai/langchain/issues/16159
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16159/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16159/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16159/events
https://github.com/langchain-ai/langchain/pull/16159
2,086,821,291
PR_kwDOIPDwls5kWLsj
16,159
langchain[patch]: fix stuff documents chain api docs render
{ "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": 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." } ]
open
false
null
[]
null
1
"2024-01-17T19:18:10"
"2024-01-17T19:19:30"
null
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16159/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16159/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16159", "html_url": "https://github.com/langchain-ai/langchain/pull/16159", "diff_url": "https://github.com/langchain-ai/langchain/pull/16159.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16159.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16157
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16157/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16157/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16157/events
https://github.com/langchain-ai/langchain/pull/16157
2,086,813,661
PR_kwDOIPDwls5kWKBm
16,157
openai[patch]: clarify azure error
{ "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": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." }, { "id": 6348691034, "node_id": "LA_kwDOIPDwls8AAAABemlWWg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner", "name": "partner", "color": "ededed", "default": false, "description": null } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
1
"2024-01-17T19:12:31"
"2024-01-17T20:43:15"
"2024-01-17T20:43:14"
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16157/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16157/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16157", "html_url": "https://github.com/langchain-ai/langchain/pull/16157", "diff_url": "https://github.com/langchain-ai/langchain/pull/16157.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16157.patch", "merged_at": "2024-01-17T20:43:14" }
https://api.github.com/repos/langchain-ai/langchain/issues/16156
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16156/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16156/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16156/events
https://github.com/langchain-ai/langchain/issues/16156
2,086,808,660
I_kwDOIPDwls58YixU
16,156
Geopandas and Langchain blocking issue.
{ "login": "k-a-mendoza", "id": 4605410, "node_id": "MDQ6VXNlcjQ2MDU0MTA=", "avatar_url": "https://avatars.githubusercontent.com/u/4605410?v=4", "gravatar_id": "", "url": "https://api.github.com/users/k-a-mendoza", "html_url": "https://github.com/k-a-mendoza", "followers_url": "https://api.github.com/users/k-a-mendoza/followers", "following_url": "https://api.github.com/users/k-a-mendoza/following{/other_user}", "gists_url": "https://api.github.com/users/k-a-mendoza/gists{/gist_id}", "starred_url": "https://api.github.com/users/k-a-mendoza/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/k-a-mendoza/subscriptions", "organizations_url": "https://api.github.com/users/k-a-mendoza/orgs", "repos_url": "https://api.github.com/users/k-a-mendoza/repos", "events_url": "https://api.github.com/users/k-a-mendoza/events{/privacy}", "received_events_url": "https://api.github.com/users/k-a-mendoza/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" } ]
open
false
null
[]
null
1
"2024-01-17T19:08:48"
"2024-01-17T19:15:06"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code The bug was found by trying to install [jupyter-ai](https://github.com/jupyterlab/jupyter-ai) via conda-forge. ```install -c conda-forge jupyter_ai``` Basically, there is an incompatibility with the latest version of langchain and geopandas. ### Description Based on the bug report posted on the jupyter-ai github https://github.com/jupyterlab/jupyter-ai/issues/557#issue-2062998660 , it looks like langchain enforces a version of geopandas below 0.14. Could this be relaxed to allow for >0.14? There are many features of modern geopandas that make GIS workflows so much easier, and the current enforcement version prevents langchain-dependent repositories from making full use of GIS-adjacent stacks. ### System Info The incompatibility arose while using an M1 apple silicon laptop. ### 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
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16156/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16156/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16155
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16155/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16155/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16155/events
https://github.com/langchain-ai/langchain/pull/16155
2,086,790,654
PR_kwDOIPDwls5kWE-o
16,155
core[patch]: support old core namespaces
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 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-17T18:56:05"
"2024-01-17T19:26:27"
"2024-01-17T19:26:26"
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16155/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16155/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16155", "html_url": "https://github.com/langchain-ai/langchain/pull/16155", "diff_url": "https://github.com/langchain-ai/langchain/pull/16155.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16155.patch", "merged_at": "2024-01-17T19:26:26" }
https://api.github.com/repos/langchain-ai/langchain/issues/16153
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16153/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16153/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16153/events
https://github.com/langchain-ai/langchain/pull/16153
2,086,715,021
PR_kwDOIPDwls5kV0Xi
16,153
google-vertexai[patch]: typing, release 0.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": 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-17T18:09:43"
"2024-01-17T18:17:01"
"2024-01-17T18:17:00"
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16153/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16153/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16153", "html_url": "https://github.com/langchain-ai/langchain/pull/16153", "diff_url": "https://github.com/langchain-ai/langchain/pull/16153.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16153.patch", "merged_at": "2024-01-17T18:17:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/16152
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16152/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16152/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16152/events
https://github.com/langchain-ai/langchain/pull/16152
2,086,707,299
PR_kwDOIPDwls5kVysM
16,152
docs: change parallel doc name
{ "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-17T18:04:25"
"2024-01-17T18:04:39"
"2024-01-17T18:04:34"
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16152/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16152/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16152", "html_url": "https://github.com/langchain-ai/langchain/pull/16152", "diff_url": "https://github.com/langchain-ai/langchain/pull/16152.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16152.patch", "merged_at": "2024-01-17T18:04:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/16151
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16151/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16151/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16151/events
https://github.com/langchain-ai/langchain/issues/16151
2,086,661,037
I_kwDOIPDwls58X-ut
16,151
Dependency issues with Spark toolkit examples
{ "login": "lackeyi", "id": 99745484, "node_id": "U_kgDOBfH-zA", "avatar_url": "https://avatars.githubusercontent.com/u/99745484?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lackeyi", "html_url": "https://github.com/lackeyi", "followers_url": "https://api.github.com/users/lackeyi/followers", "following_url": "https://api.github.com/users/lackeyi/following{/other_user}", "gists_url": "https://api.github.com/users/lackeyi/gists{/gist_id}", "starred_url": "https://api.github.com/users/lackeyi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lackeyi/subscriptions", "organizations_url": "https://api.github.com/users/lackeyi/orgs", "repos_url": "https://api.github.com/users/lackeyi/repos", "events_url": "https://api.github.com/users/lackeyi/events{/privacy}", "received_events_url": "https://api.github.com/users/lackeyi/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-17T17:37:23"
"2024-01-17T17:43:36"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code ``` pip install langchain langchain-community langchain-core langchain-experimental ``` ``` from langchain.agents import create_spark_sql_agent from langchain_community.agent_toolkits import SparkSQLToolkit from langchain_community.utilities.spark_sql import SparkSQL from langchain_openai import ChatOpenAI from pyspark.sql import SparkSession ``` ### Description I get errors related to dependicies when trying to follow the Spark toolkit examples from the documentation. For example: https://python.langchain.com/docs/integrations/toolkits/spark_sql ``` ImportError: cannot import name 'TypeAliasType' from 'typing_extensions' (/databricks/python/lib/python3.10/site-packages/typing_extensions.py) --------------------------------------------------------------------------- ImportError Traceback (most recent call last) File <command-2000110168240505>, line 1 ----> 1 from langchain.agents import create_spark_sql_agent 2 from langchain_community.agent_toolkits import SparkSQLToolkit 3 from langchain_community.utilities.spark_sql import SparkSQL File /local_disk0/.ephemeral_nfs/envs/pythonEnv-b2a0b64a-b43b-40f8-a165-ff3aac48e3b4/lib/python3.10/site-packages/langchain/agents/__init__.py:34 31 from pathlib import Path 32 from typing import Any ---> 34 from langchain_community.agent_toolkits import ( 35 create_json_agent, 36 create_openapi_agent, 37 create_pbi_agent, 38 create_pbi_chat_agent, 39 create_spark_sql_agent, 40 create_sql_agent, 41 ) 42 from langchain_core._api.path import as_import_path 44 from langchain.agents.agent import ( 45 Agent, ``` ### System Info langchain==0.1.1 langchain-community==0.0.13 langchain-core==0.1.11 langchain-experimental==0.0.49 Python 3.10 ### 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
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16151/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16151/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16150
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16150/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16150/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16150/events
https://github.com/langchain-ai/langchain/issues/16150
2,086,621,372
I_kwDOIPDwls58X1C8
16,150
Inference Component Name header is required (SageMaker RedShift Flan T5)
{ "login": "jamontesg", "id": 16964566, "node_id": "MDQ6VXNlcjE2OTY0NTY2", "avatar_url": "https://avatars.githubusercontent.com/u/16964566?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jamontesg", "html_url": "https://github.com/jamontesg", "followers_url": "https://api.github.com/users/jamontesg/followers", "following_url": "https://api.github.com/users/jamontesg/following{/other_user}", "gists_url": "https://api.github.com/users/jamontesg/gists{/gist_id}", "starred_url": "https://api.github.com/users/jamontesg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jamontesg/subscriptions", "organizations_url": "https://api.github.com/users/jamontesg/orgs", "repos_url": "https://api.github.com/users/jamontesg/repos", "events_url": "https://api.github.com/users/jamontesg/events{/privacy}", "received_events_url": "https://api.github.com/users/jamontesg/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 5959659008, "node_id": "LA_kwDOIPDwls8AAAABYzkuAA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws", "name": "integration: aws", "color": "C5DEF5", "default": false, "description": "Related to Amazon Web Services (AWS) integrations" } ]
open
false
null
[]
null
1
"2024-01-17T17:11:42"
"2024-01-17T17:20:15"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code llm = SagemakerEndpoint( endpoint_name=endpoint_name, endpoint_kwargs={ "CustomAttributes": "accept_eula=true,InferenceComponentName="+inference_component_name }, region_name = region_name, credentials_profile_name = profile_name, model_kwargs = parameters, content_handler = content_handler, ) print(str( llm.endpoint_kwargs )) db = SQLDatabase.from_uri(REDSHIFT_ENDPOINT) db_chain = SQLDatabaseSequentialChain.from_llm( llm, db, verbose=True, use_query_checker=True ) try: results = db_chain.run(QUESTION_01) print(results) except (ProgrammingError, ValueError, DataError) as exc: print(f"\n\n{exc}") ### Description I am using a Sagemaker Flan T5 Xl model to ask model and is ok, but when try to use langchain to query RedShift DB. I have this error. ----> " Error raised by inference endpoint: An error occurred (ValidationError) when calling the InvokeEndpoint operation: Inference Component Name header is required for endpoints to which you plan to deploy inference components. Please include Inference Component Name header or consider using SageMaker models." ### System Info model jumpstart-dft-hf-text2text-flan-t5 xxl Python 3.11.6 boto3 1.34.19 langchain 0.1.0 langchain-community 0.0.12 langchain-core 0.1.10 langchain-experimental 0.0.49 sentence-transformers 2.2.2 SQLAlchemy 1.4.48 ### 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
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16150/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16150/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16149
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16149/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16149/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16149/events
https://github.com/langchain-ai/langchain/pull/16149
2,086,455,919
PR_kwDOIPDwls5kU70D
16,149
Update gradient.ipynb
{ "login": "eltociear", "id": 22633385, "node_id": "MDQ6VXNlcjIyNjMzMzg1", "avatar_url": "https://avatars.githubusercontent.com/u/22633385?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eltociear", "html_url": "https://github.com/eltociear", "followers_url": "https://api.github.com/users/eltociear/followers", "following_url": "https://api.github.com/users/eltociear/following{/other_user}", "gists_url": "https://api.github.com/users/eltociear/gists{/gist_id}", "starred_url": "https://api.github.com/users/eltociear/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eltociear/subscriptions", "organizations_url": "https://api.github.com/users/eltociear/orgs", "repos_url": "https://api.github.com/users/eltociear/repos", "events_url": "https://api.github.com/users/eltociear/events{/privacy}", "received_events_url": "https://api.github.com/users/eltociear/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-17T15:39:56"
"2024-01-17T16:48:24"
"2024-01-17T16:48:24"
CONTRIBUTOR
null
Enviroment -> Environment <!-- 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/16149/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16149/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16149", "html_url": "https://github.com/langchain-ai/langchain/pull/16149", "diff_url": "https://github.com/langchain-ai/langchain/pull/16149.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16149.patch", "merged_at": "2024-01-17T16:48:24" }
https://api.github.com/repos/langchain-ai/langchain/issues/16148
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16148/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16148/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16148/events
https://github.com/langchain-ai/langchain/pull/16148
2,086,451,849
PR_kwDOIPDwls5kU6_j
16,148
langchain_community.vectorstores: Issue #16146. Fix: Missing unpack operator for or_clause in pgvector document filter
{ "login": "felixkrones", "id": 92753725, "node_id": "U_kgDOBYdPPQ", "avatar_url": "https://avatars.githubusercontent.com/u/92753725?v=4", "gravatar_id": "", "url": "https://api.github.com/users/felixkrones", "html_url": "https://github.com/felixkrones", "followers_url": "https://api.github.com/users/felixkrones/followers", "following_url": "https://api.github.com/users/felixkrones/following{/other_user}", "gists_url": "https://api.github.com/users/felixkrones/gists{/gist_id}", "starred_url": "https://api.github.com/users/felixkrones/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/felixkrones/subscriptions", "organizations_url": "https://api.github.com/users/felixkrones/orgs", "repos_url": "https://api.github.com/users/felixkrones/repos", "events_url": "https://api.github.com/users/felixkrones/events{/privacy}", "received_events_url": "https://api.github.com/users/felixkrones/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": 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": 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-17T15:37:57"
"2024-01-17T17:17:55"
"2024-01-17T17:10:43"
CONTRIBUTOR
null
- Fix for #16146 - Adding unpack operation to "or" and "and" filter for pgvector retriever. #
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16148/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16148/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16148", "html_url": "https://github.com/langchain-ai/langchain/pull/16148", "diff_url": "https://github.com/langchain-ai/langchain/pull/16148.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16148.patch", "merged_at": "2024-01-17T17:10:43" }
https://api.github.com/repos/langchain-ai/langchain/issues/16146
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16146/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16146/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16146/events
https://github.com/langchain-ai/langchain/issues/16146
2,086,414,888
I_kwDOIPDwls58XCoo
16,146
Missing unpack operator for or_clause in pgvector document filter
{ "login": "felixkrones", "id": 92753725, "node_id": "U_kgDOBYdPPQ", "avatar_url": "https://avatars.githubusercontent.com/u/92753725?v=4", "gravatar_id": "", "url": "https://api.github.com/users/felixkrones", "html_url": "https://github.com/felixkrones", "followers_url": "https://api.github.com/users/felixkrones/followers", "following_url": "https://api.github.com/users/felixkrones/following{/other_user}", "gists_url": "https://api.github.com/users/felixkrones/gists{/gist_id}", "starred_url": "https://api.github.com/users/felixkrones/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/felixkrones/subscriptions", "organizations_url": "https://api.github.com/users/felixkrones/orgs", "repos_url": "https://api.github.com/users/felixkrones/repos", "events_url": "https://api.github.com/users/felixkrones/events{/privacy}", "received_events_url": "https://api.github.com/users/felixkrones/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
2
"2024-01-17T15:18:55"
"2024-01-17T17:19:16"
"2024-01-17T17:19:15"
CONTRIBUTOR
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code The following code: ``` from langchain.vectorstores import PGVector filter = { "source": { "or": [{"contains": "xlsx"}, {"contains": "pdf"}] } } vector_db = PGVector(connection_string=connection_string, embedding_function=embeddings) vector_db.as_retriever(search_type="similarity", search_kwargs={"k": 5, "filter": filter}) ``` won't work because the list is not unpacked when passed to filter_by_metadata = sqlalchemy.or_(or_clauses) in https://github.com/langchain-ai/langchain/blob/e5cf1e2414a22c7465f0f47bd661ece183e88924/libs/community/langchain_community/vectorstores/pgvector.py#L548 The code throws the error `ArgumentError: SQL expression for WHERE/HAVING role expected, got [, ].` ### Description * I am trying to filter documents based on metadata during retrieval * I want to pass a list to filter metadata via an "or" statement. * I think it should be `filter_by_metadata = sqlalchemy.or_(*or_clauses)` in https://github.com/langchain-ai/langchain/blob/e5cf1e2414a22c7465f0f47bd661ece183e88924/libs/community/langchain_community/vectorstores/pgvector.py#L548 ### System Info langchain==0.0.353 langchain-community==0.0.13 langchain-core==0.1.11 Python 3.10.13 ### 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
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16146/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16146/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16145
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16145/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16145/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16145/events
https://github.com/langchain-ai/langchain/issues/16145
2,086,351,099
I_kwDOIPDwls58WzD7
16,145
DOC: No documentation about QAGenerationChain in langchain.evaluation.qa
{ "login": "sohanjs111", "id": 65148994, "node_id": "MDQ6VXNlcjY1MTQ4OTk0", "avatar_url": "https://avatars.githubusercontent.com/u/65148994?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sohanjs111", "html_url": "https://github.com/sohanjs111", "followers_url": "https://api.github.com/users/sohanjs111/followers", "following_url": "https://api.github.com/users/sohanjs111/following{/other_user}", "gists_url": "https://api.github.com/users/sohanjs111/gists{/gist_id}", "starred_url": "https://api.github.com/users/sohanjs111/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sohanjs111/subscriptions", "organizations_url": "https://api.github.com/users/sohanjs111/orgs", "repos_url": "https://api.github.com/users/sohanjs111/repos", "events_url": "https://api.github.com/users/sohanjs111/events{/privacy}", "received_events_url": "https://api.github.com/users/sohanjs111/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
1
"2024-01-17T14:46:57"
"2024-01-17T14:53:36"
null
NONE
null
### Issue with current documentation: This is no documentation about QAGenerationChain in langchain.evaluation.qa I used `from langchain.evaluation.qa import QAGenerateChain` to run evaluation using LLM-generated examples. I tried to find documentation regarding the QAGenerateChain and found none. Even in [api.python.langchain.com/](https://api.python.langchain.com/en/latest/search.html?q=QAGenerationChain#) site there is documentation regarding `langchain.chains.qa_generation.base.QAGenerationChain` but nothing about `from langchain.evaluation.qa import QAGenerateChain` ### Idea or request for content: I believe there is more work that needs to be done. Please fill a documentation or a use case of `QAGenerateChain`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16145/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16145/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16144
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16144/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16144/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16144/events
https://github.com/langchain-ai/langchain/pull/16144
2,086,316,782
PR_kwDOIPDwls5kUd_Y
16,144
[community][cohere] Handle when documents are not provided in the Cohere response
{ "login": "BeatrixCohere", "id": 128378696, "node_id": "U_kgDOB6bnSA", "avatar_url": "https://avatars.githubusercontent.com/u/128378696?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BeatrixCohere", "html_url": "https://github.com/BeatrixCohere", "followers_url": "https://api.github.com/users/BeatrixCohere/followers", "following_url": "https://api.github.com/users/BeatrixCohere/following{/other_user}", "gists_url": "https://api.github.com/users/BeatrixCohere/gists{/gist_id}", "starred_url": "https://api.github.com/users/BeatrixCohere/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BeatrixCohere/subscriptions", "organizations_url": "https://api.github.com/users/BeatrixCohere/orgs", "repos_url": "https://api.github.com/users/BeatrixCohere/repos", "events_url": "https://api.github.com/users/BeatrixCohere/events{/privacy}", "received_events_url": "https://api.github.com/users/BeatrixCohere/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": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
"2024-01-17T14:29:47"
"2024-01-17T17:11:01"
"2024-01-17T17:11:01"
CONTRIBUTOR
null
- **Description:** This handles the cohere response when documents aren't included in the response - **Issue:** N/A - **Dependencies:** N/A - **Twitter handle:** N/A
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16144/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16144/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16144", "html_url": "https://github.com/langchain-ai/langchain/pull/16144", "diff_url": "https://github.com/langchain-ai/langchain/pull/16144.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16144.patch", "merged_at": "2024-01-17T17:11:01" }
https://api.github.com/repos/langchain-ai/langchain/issues/16140
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16140/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16140/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16140/events
https://github.com/langchain-ai/langchain/issues/16140
2,086,101,220
I_kwDOIPDwls58V2Dk
16,140
i want to add OutputFixingParser in LCEL chain
{ "login": "shuishu", "id": 13710218, "node_id": "MDQ6VXNlcjEzNzEwMjE4", "avatar_url": "https://avatars.githubusercontent.com/u/13710218?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shuishu", "html_url": "https://github.com/shuishu", "followers_url": "https://api.github.com/users/shuishu/followers", "following_url": "https://api.github.com/users/shuishu/following{/other_user}", "gists_url": "https://api.github.com/users/shuishu/gists{/gist_id}", "starred_url": "https://api.github.com/users/shuishu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shuishu/subscriptions", "organizations_url": "https://api.github.com/users/shuishu/orgs", "repos_url": "https://api.github.com/users/shuishu/repos", "events_url": "https://api.github.com/users/shuishu/events{/privacy}", "received_events_url": "https://api.github.com/users/shuishu/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": 6134259614, "node_id": "LA_kwDOIPDwls8AAAABbaFfng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20lcel", "name": "area: lcel", "color": "38B1E8", "default": false, "description": "" } ]
open
false
null
[]
null
1
"2024-01-17T12:35:21"
"2024-01-17T12:43:19"
null
NONE
null
### Feature request like from langchain.output_parsers import OutputFixingParser fix_parser = OutputFixingParser.from_llm(llm, parser) chain= chat_template | llm | parser |fix_parser ### Motivation I think OutputFixing should be in the process of generating content in a specific format. ### Your contribution I'm sorry.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16140/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16140/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16138
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16138/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16138/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16138/events
https://github.com/langchain-ai/langchain/pull/16138
2,086,064,746
PR_kwDOIPDwls5kTnbU
16,138
Add neo4j timeout and value sanitization option
{ "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": 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
null
[]
null
1
"2024-01-17T12:14:07"
"2024-01-17T21:22:20"
"2024-01-17T21:22:20"
CONTRIBUTOR
null
The timeout function comes in handy when you want to kill longrunning queries. The value sanitization removes all lists that are larger than 128 elements. The idea here is to remove embedding properties from results.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16138/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16138/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16138", "html_url": "https://github.com/langchain-ai/langchain/pull/16138", "diff_url": "https://github.com/langchain-ai/langchain/pull/16138.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16138.patch", "merged_at": "2024-01-17T21:22:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/16137
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16137/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16137/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16137/events
https://github.com/langchain-ai/langchain/pull/16137
2,086,014,320
PR_kwDOIPDwls5kTcfg
16,137
Use dotenv in langchain-community's integration tests
{ "login": "cbornet", "id": 11633333, "node_id": "MDQ6VXNlcjExNjMzMzMz", "avatar_url": "https://avatars.githubusercontent.com/u/11633333?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cbornet", "html_url": "https://github.com/cbornet", "followers_url": "https://api.github.com/users/cbornet/followers", "following_url": "https://api.github.com/users/cbornet/following{/other_user}", "gists_url": "https://api.github.com/users/cbornet/gists{/gist_id}", "starred_url": "https://api.github.com/users/cbornet/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cbornet/subscriptions", "organizations_url": "https://api.github.com/users/cbornet/orgs", "repos_url": "https://api.github.com/users/cbornet/repos", "events_url": "https://api.github.com/users/cbornet/events{/privacy}", "received_events_url": "https://api.github.com/users/cbornet/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
"2024-01-17T11:43:43"
"2024-01-18T02:18:27"
"2024-01-18T02:18:26"
CONTRIBUTOR
null
* Removed some env vars not used in langchain package IT * Added Astra DB env vars in langchain package, used for cache tests * Added conftest.py to load env vars in langchain_community IT * Added .env.example in langchain_community IT
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16137/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16137/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16137", "html_url": "https://github.com/langchain-ai/langchain/pull/16137", "diff_url": "https://github.com/langchain-ai/langchain/pull/16137.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16137.patch", "merged_at": "2024-01-18T02:18:26" }
https://api.github.com/repos/langchain-ai/langchain/issues/16136
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16136/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16136/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16136/events
https://github.com/langchain-ai/langchain/issues/16136
2,085,909,062
I_kwDOIPDwls58VHJG
16,136
Return Source Documents in LECL
{ "login": "bkhanal-11", "id": 43448240, "node_id": "MDQ6VXNlcjQzNDQ4MjQw", "avatar_url": "https://avatars.githubusercontent.com/u/43448240?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bkhanal-11", "html_url": "https://github.com/bkhanal-11", "followers_url": "https://api.github.com/users/bkhanal-11/followers", "following_url": "https://api.github.com/users/bkhanal-11/following{/other_user}", "gists_url": "https://api.github.com/users/bkhanal-11/gists{/gist_id}", "starred_url": "https://api.github.com/users/bkhanal-11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bkhanal-11/subscriptions", "organizations_url": "https://api.github.com/users/bkhanal-11/orgs", "repos_url": "https://api.github.com/users/bkhanal-11/repos", "events_url": "https://api.github.com/users/bkhanal-11/events{/privacy}", "received_events_url": "https://api.github.com/users/bkhanal-11/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5932474361, "node_id": "LA_kwDOIPDwls8AAAABYZpf-Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone", "name": "integration: pinecone", "color": "BC53BE", "default": false, "description": "Related to Pinecone vector store integration" } ]
open
false
null
[]
null
3
"2024-01-17T10:43:29"
"2024-01-17T11:37:29"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code The chain is defined as: ```python retriever_chain = create_retriever_chain(llm, retriever, use_chat_history) _get_k_or_less_documents = partial(get_k_or_less_documents, k=k) context = ( RunnableMap( { "question": lambda x: x["question"], "memory": memory.load_memory_variables, } ) | RunnableMap( { "context": ( retriever_chain | _get_k_or_less_documents | reorder_documents | format_docs ), "question": lambda x: x["question"], "chat_history": lambda x: x["memory"]["chat_history"], } ) ) prompt = ChatPromptTemplate.from_messages( messages=[ ("system", SYSTEM_ANSWER_QUESTION_TEMPLATE), MessagesPlaceholder(variable_name="chat_history"), ("human", "{question}"), ] ) response_synthesizer = prompt | llm response_chain = context | response_synthesizer ``` ### Description I am trying to get back source documents used for my RAG application. However, I cannot find any ways to retrieve the document. I am using `chain.astream` to stream through my chain. The relevant code and chains are given below. ```python async def generate_response(): input = {"question": data.message} response = "" async for token in chain.astream(input=input): yield token.content response += token.content memory.save_context(input, {"output": response}) ``` The chain is defined as: ```python retriever_chain = create_retriever_chain(llm, retriever, use_chat_history) _get_k_or_less_documents = partial(get_k_or_less_documents, k=k) context = ( RunnableMap( { "question": lambda x: x["question"], "memory": memory.load_memory_variables, } ) | RunnableMap( { "context": ( retriever_chain | _get_k_or_less_documents | reorder_documents | format_docs ), "question": lambda x: x["question"], "chat_history": lambda x: x["memory"]["chat_history"], } ) ) prompt = ChatPromptTemplate.from_messages( messages=[ ("system", SYSTEM_ANSWER_QUESTION_TEMPLATE), MessagesPlaceholder(variable_name="chat_history"), ("human", "{question}"), ] ) response_synthesizer = prompt | llm response_chain = context | response_synthesizer ``` Any kind of help is highly appreciated. ### System Info langchain 0.1.0 langchain-community 0.0.11 langchain-core 0.1.9 langchain-openai 0.0.2 ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [X] Async
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16136/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16136/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16135
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16135/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16135/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16135/events
https://github.com/langchain-ai/langchain/issues/16135
2,085,861,615
I_kwDOIPDwls58U7jv
16,135
ElasticsearchStore does not accept proxy
{ "login": "Uranium2", "id": 6902440, "node_id": "MDQ6VXNlcjY5MDI0NDA=", "avatar_url": "https://avatars.githubusercontent.com/u/6902440?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Uranium2", "html_url": "https://github.com/Uranium2", "followers_url": "https://api.github.com/users/Uranium2/followers", "following_url": "https://api.github.com/users/Uranium2/following{/other_user}", "gists_url": "https://api.github.com/users/Uranium2/gists{/gist_id}", "starred_url": "https://api.github.com/users/Uranium2/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Uranium2/subscriptions", "organizations_url": "https://api.github.com/users/Uranium2/orgs", "repos_url": "https://api.github.com/users/Uranium2/repos", "events_url": "https://api.github.com/users/Uranium2/events{/privacy}", "received_events_url": "https://api.github.com/users/Uranium2/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": 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" } ]
open
false
null
[]
null
1
"2024-01-17T10:17:26"
"2024-01-17T10:19:47"
null
NONE
null
### Feature request We should be able to pass some extra parameters to `ElasticsearchStore` in form of kwargs or predefined parameters. For example, to allow usage of `RequestsHttpNode` that takes `https_proxy` / `http_proxy` / `no_proxy` env variables. ### Motivation In some cases, all the external calls to internet/ELK (on cloud) must use a proxy, else it will be rejected by the firewall of the company. The default behavior of `Elasticsearch` class from https://github.com/elastic/elasticsearch-py does not take by default proxy env variable and you need to set a `node_class` to `RequestsHttpNode` ### Your contribution Instead of calling `ElasticsearchStore` from langchain, I duplicated locally the file and hardcoded in the `Elasticsearch` init the `node_class`. ``` python from elastic_transport import RequestsHttpNodes # https://github.com/langchain-ai/langchain/blob/e5cf1e2414a22c7465f0f47bd661ece183e88924/libs/community/langchain_community/vectorstores/elasticsearch.py#L593 es_client = elasticsearch.Elasticsearch( **connection_params, node_class=RequestsHttpNode, headers={"user-agent": ElasticsearchStore.get_user_agent()}, ) ``` I am sure there's a better way and more global way to pass parameters to `Elasticsearch()`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16135/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16135/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16134
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16134/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16134/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16134/events
https://github.com/langchain-ai/langchain/issues/16134
2,085,829,150
I_kwDOIPDwls58Uzoe
16,134
How is multiquery retreiver implemented with RAG?
{ "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": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "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-17T10:01:04"
"2024-01-17T10:21:37"
null
NONE
null
<peek> ``` below is my code :- def regenerate_custom_prompt(new_project_qa,chroma_db_path,query,name,not_uuid): check = query.lower() relevant_document = new_project_qa.get_relevant_documents(query=query) 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 = """Generate your response exclusively from the provided context: {context_text}. You function as a chatbot specializing in delivering detailed answers to the User's Question: ```{check} ```, enclosed within triple backticks. Generate your answer in points in the following format: 1. Point no 1 1.1 Its subpoint in details 1.2 More information if needed. 2. Point no 2 2.1 Its subpoint in details 2.2 More information if needed. … N. Another main point. If you encounter a question for which you don't know the answer based on the predefined points, please respond with 'I don't know' and refrain from making up an answer. However, if the answer is not present in the predefined points, then Provide comprehensive information related to the user's query. Remember, your goal is to assist the user in the best way possible. If the question is unclear or ambiguous, you can ask for clarification. User's Question: ```{check} ``` AI Answer:""" # Create the PromptTemplate custom_prompt = ChatPromptTemplate.from_template(custom_prompt_template) formatted_prompt = custom_prompt.format(context_text=context_text, check=check) print(formatted_prompt,"-------------------------------") embedding = OpenAIEmbeddings() vectordb = Chroma(persist_directory=chroma_db_path, embedding_function=embedding) llm = ChatOpenAI(model="gpt-3.5-turbo-16k",temperature=0.1) ### mmr stands for Maximum marginal relevance retriever = vectordb.as_retriever(search_type="similarity", search_kwargs={"k":2}) qa = MultiQueryRetriever.from_llm(llm=llm, retriever=retriever) return qa </peek>
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16134/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16134/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16133
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16133/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16133/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16133/events
https://github.com/langchain-ai/langchain/pull/16133
2,085,788,775
PR_kwDOIPDwls5kSrKn
16,133
Implement vector length definition at init time in PGVector for indexing
{ "login": "Frank995", "id": 47689966, "node_id": "MDQ6VXNlcjQ3Njg5OTY2", "avatar_url": "https://avatars.githubusercontent.com/u/47689966?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Frank995", "html_url": "https://github.com/Frank995", "followers_url": "https://api.github.com/users/Frank995/followers", "following_url": "https://api.github.com/users/Frank995/following{/other_user}", "gists_url": "https://api.github.com/users/Frank995/gists{/gist_id}", "starred_url": "https://api.github.com/users/Frank995/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Frank995/subscriptions", "organizations_url": "https://api.github.com/users/Frank995/orgs", "repos_url": "https://api.github.com/users/Frank995/repos", "events_url": "https://api.github.com/users/Frank995/events{/privacy}", "received_events_url": "https://api.github.com/users/Frank995/received_events", "type": "User", "site_admin": false }
[ { "id": 5510857403, "node_id": "LA_kwDOIPDwls8AAAABSHkCuw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation", "name": "needs documentation", "color": "DCAAC0", "default": false, "description": "PR needs to be updated with documentation" }, { "id": 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": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
open
false
null
[]
null
1
"2024-01-17T09:39:10"
"2024-01-17T17:12:08"
null
CONTRIBUTOR
null
Replace this entire comment with: - **Description:** allow user to define tVector length in PGVector when creating the embedding store, this allows for later indexing - **Issue:** #16132 - **Dependencies:** None
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16133/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16133/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16133", "html_url": "https://github.com/langchain-ai/langchain/pull/16133", "diff_url": "https://github.com/langchain-ai/langchain/pull/16133.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16133.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16132
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16132/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16132/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16132/events
https://github.com/langchain-ai/langchain/issues/16132
2,085,775,436
I_kwDOIPDwls58UmhM
16,132
Implement vector length definition at init time in PGVector for indexing
{ "login": "Frank995", "id": 47689966, "node_id": "MDQ6VXNlcjQ3Njg5OTY2", "avatar_url": "https://avatars.githubusercontent.com/u/47689966?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Frank995", "html_url": "https://github.com/Frank995", "followers_url": "https://api.github.com/users/Frank995/followers", "following_url": "https://api.github.com/users/Frank995/following{/other_user}", "gists_url": "https://api.github.com/users/Frank995/gists{/gist_id}", "starred_url": "https://api.github.com/users/Frank995/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Frank995/subscriptions", "organizations_url": "https://api.github.com/users/Frank995/orgs", "repos_url": "https://api.github.com/users/Frank995/repos", "events_url": "https://api.github.com/users/Frank995/events{/privacy}", "received_events_url": "https://api.github.com/users/Frank995/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
1
"2024-01-17T09:31:57"
"2024-01-17T09:34:24"
null
CONTRIBUTOR
null
### Feature request Allow manual definition of embedding column length in PGVector ### Motivation Right now embeddings stores in PGVector are initialised with: `embedding: Vector = sqlalchemy.Column(Vector(None))` This won't allow indexing of the DB ([https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/howto-optimize-performance-pgvector](url)) ### Your contribution I can open a PR shortly to fix it
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16132/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16132/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16131
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16131/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16131/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16131/events
https://github.com/langchain-ai/langchain/issues/16131
2,085,768,721
I_kwDOIPDwls58Uk4R
16,131
DOC: Dead link in langgraph docs
{ "login": "ldorigo", "id": 8631181, "node_id": "MDQ6VXNlcjg2MzExODE=", "avatar_url": "https://avatars.githubusercontent.com/u/8631181?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ldorigo", "html_url": "https://github.com/ldorigo", "followers_url": "https://api.github.com/users/ldorigo/followers", "following_url": "https://api.github.com/users/ldorigo/following{/other_user}", "gists_url": "https://api.github.com/users/ldorigo/gists{/gist_id}", "starred_url": "https://api.github.com/users/ldorigo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ldorigo/subscriptions", "organizations_url": "https://api.github.com/users/ldorigo/orgs", "repos_url": "https://api.github.com/users/ldorigo/repos", "events_url": "https://api.github.com/users/ldorigo/events{/privacy}", "received_events_url": "https://api.github.com/users/ldorigo/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
1
"2024-01-17T09:28:12"
"2024-01-17T09:35:57"
null
NONE
null
### Issue with current documentation: https://python.langchain.com/docs/langgraph The paragraph under "Examples": > > Modifications > > We also have a lot of examples highlighting how to slightly modify the base chat agent executor. These all build off the [getting started notebook](https://python.langchain.com/docs/examples/chat_agent_executor_with_function_calling/base.ipynb) so it is recommended you start with that first. The link is not working. ### Idea or request for content: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16131/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16131/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16129
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16129/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16129/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16129/events
https://github.com/langchain-ai/langchain/issues/16129
2,085,735,570
I_kwDOIPDwls58UcyS
16,129
SQLDatabase.from_uri Throws an error when used with Vertica
{ "login": "elghali", "id": 11211342, "node_id": "MDQ6VXNlcjExMjExMzQy", "avatar_url": "https://avatars.githubusercontent.com/u/11211342?v=4", "gravatar_id": "", "url": "https://api.github.com/users/elghali", "html_url": "https://github.com/elghali", "followers_url": "https://api.github.com/users/elghali/followers", "following_url": "https://api.github.com/users/elghali/following{/other_user}", "gists_url": "https://api.github.com/users/elghali/gists{/gist_id}", "starred_url": "https://api.github.com/users/elghali/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elghali/subscriptions", "organizations_url": "https://api.github.com/users/elghali/orgs", "repos_url": "https://api.github.com/users/elghali/repos", "events_url": "https://api.github.com/users/elghali/events{/privacy}", "received_events_url": "https://api.github.com/users/elghali/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-17T09:09:24"
"2024-01-17T09:18:55"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code ``` db = SQLDatabase.from_uri( 'vertica+vertica_python://user:pwd@x.x.x.x:5433/verticadst', schema='myschema' ) ``` ### Description When I use the above snippet to create an SQLDatabase object for vertica, I get the below error: > sqlalchemy.exc.ProgrammingError: (vertica_python.errors.MissingSchema) Severity: ERROR, Message: Schema "pg_catalog" does not exist Which makes sense because Vertica does not have pg_catalog schema, but how can I create the object without the reflect part where it tries to read from pg_catalog ### System Info sqlalchemy-vertica-python~=0.6.3 langchain==0.1.0 ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16129/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16129/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16123
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16123/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16123/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16123/events
https://github.com/langchain-ai/langchain/issues/16123
2,085,521,161
I_kwDOIPDwls58TocJ
16,123
PydanticOutputParser ` ValidationError: Field required [type=missing,' for an Optional field
{ "login": "vivek-kurma", "id": 54079233, "node_id": "MDQ6VXNlcjU0MDc5MjMz", "avatar_url": "https://avatars.githubusercontent.com/u/54079233?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vivek-kurma", "html_url": "https://github.com/vivek-kurma", "followers_url": "https://api.github.com/users/vivek-kurma/followers", "following_url": "https://api.github.com/users/vivek-kurma/following{/other_user}", "gists_url": "https://api.github.com/users/vivek-kurma/gists{/gist_id}", "starred_url": "https://api.github.com/users/vivek-kurma/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vivek-kurma/subscriptions", "organizations_url": "https://api.github.com/users/vivek-kurma/orgs", "repos_url": "https://api.github.com/users/vivek-kurma/repos", "events_url": "https://api.github.com/users/vivek-kurma/events{/privacy}", "received_events_url": "https://api.github.com/users/vivek-kurma/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-17T06:51:10"
"2024-01-17T07:03:05"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code The following code follows the example from [langchain docs](https://python.langchain.com/docs/use_cases/extraction#option-2-parsing). ```python class Person(BaseModel): person_name: str person_height: int person_hair_color: str dog_breed: Optional[str] dog_name: Optional[str] class People(BaseModel): """Identifying information about all people in a text.""" people: Sequence[Person] query = """Alex is 5 feet tall. Claudia is 1 feet taller Alex and jumps higher than him. Claudia is a brunette and Alex is blonde. Alex has a poodle named Rex.""" # Set up a parser + inject instructions into the prompt template parser = PydanticOutputParser(pydantic_object=People) prompt = PromptTemplate( template="Follow the given instructions and perform the task mentioned in the context of given information. \n{format_instructions}\n Context is:\n{query}\n", input_variables=["query"], partial_variables={"format_instructions": parser.get_format_instructions()}, ) input_to_model=prompt.format_prompt(query=query) print(input_to_model.to_string()) # output=FLAN.generate_text(input_to_model.to_string()) output=LLAMA.generate_text(input_to_model.to_string()) print(output) parser.parse(output) ``` ### Description * I'm trying to use PydanticOutputParser for structured output. * Incase of an optional field missing from JSON, pydanticoutput parser raises a validation error saying missing a required field Output from model: ```json ``` { "people": [ { "person_name": "Alex", "person_height": 5, "person_hair_color": "blonde", "dog_breed": "poodle", "dog_name": "Rex" }, { "person_name": "Claudia", "person_height": 6, "person_hair_color": "brunette" } ] } ``` ``` Complete Error: ```json { "name": "ValidationError", "message": "2 validation errors for People\npeople.1.dog_breed\n Field required [type=missing, input_value={'person_name': 'Claudia'...hair_color': 'brunette'}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.5/v/missing\npeople.1.dog_name\n Field required [type=missing, input_value={'person_name': 'Claudia'...hair_color': 'brunette'}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.5/v/missing", "stack": "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mValidationError\u001b[0m Traceback (most recent call last)\nCell \u001b[1;32mIn[70], line 33\u001b[0m\n\u001b[0;32m 30\u001b[0m \u001b[38;5;66;03m# output=FLAN.generate_text(input_to_model.to_string())\u001b[39;00m\n\u001b[0;32m 32\u001b[0m \u001b[38;5;28mprint\u001b[39m(output)\n\u001b[1;32m---> 33\u001b[0m \u001b[43mparser\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mparse\u001b[49m\u001b[43m(\u001b[49m\u001b[43moutput\u001b[49m\u001b[43m)\u001b[49m\n\u001b[0;32m 35\u001b[0m \u001b[38;5;66;03m# print(parser.get_format_instructions())\u001b[39;00m\n\nFile \u001b[1;32mc:\\Users\\user\\repos\\.venv\\Lib\\site-packages\\langchain\\output_parsers\\pydantic.py:30\u001b[0m, in \u001b[0;36mPydanticOutputParser.parse\u001b[1;34m(self, text)\u001b[0m\n\u001b[0;32m 28\u001b[0m json_str \u001b[38;5;241m=\u001b[39m match\u001b[38;5;241m.\u001b[39mgroup()\n\u001b[0;32m 29\u001b[0m json_object \u001b[38;5;241m=\u001b[39m json\u001b[38;5;241m.\u001b[39mloads(json_str, strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mFalse\u001b[39;00m)\n\u001b[1;32m---> 30\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mpydantic_object\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mparse_obj\u001b[49m\u001b[43m(\u001b[49m\u001b[43mjson_object\u001b[49m\u001b[43m)\u001b[49m\n\u001b[0;32m 32\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m (json\u001b[38;5;241m.\u001b[39mJSONDecodeError, ValidationError) \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[0;32m 33\u001b[0m name \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mpydantic_object\u001b[38;5;241m.\u001b[39m\u001b[38;5;18m__name__\u001b[39m\n\nFile \u001b[1;32mc:\\Users\\user\\repos\\.venv\\Lib\\site-packages\\typing_extensions.py:2499\u001b[0m, in \u001b[0;36mdeprecated.__call__.<locals>.wrapper\u001b[1;34m(*args, **kwargs)\u001b[0m\n\u001b[0;32m 2496\u001b[0m \u001b[38;5;129m@functools\u001b[39m\u001b[38;5;241m.\u001b[39mwraps(arg)\n\u001b[0;32m 2497\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mwrapper\u001b[39m(\u001b[38;5;241m*\u001b[39margs, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[0;32m 2498\u001b[0m warnings\u001b[38;5;241m.\u001b[39mwarn(msg, category\u001b[38;5;241m=\u001b[39mcategory, stacklevel\u001b[38;5;241m=\u001b[39mstacklevel \u001b[38;5;241m+\u001b[39m \u001b[38;5;241m1\u001b[39m)\n\u001b[1;32m-> 2499\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43marg\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\nFile \u001b[1;32mc:\\Users\\user\\repos\\.venv\\Lib\\site-packages\\pydantic\\main.py:1027\u001b[0m, in \u001b[0;36mBaseModel.parse_obj\u001b[1;34m(cls, obj)\u001b[0m\n\u001b[0;32m 1021\u001b[0m \u001b[38;5;129m@classmethod\u001b[39m\n\u001b[0;32m 1022\u001b[0m \u001b[38;5;129m@typing_extensions\u001b[39m\u001b[38;5;241m.\u001b[39mdeprecated(\n\u001b[0;32m 1023\u001b[0m \u001b[38;5;124m'\u001b[39m\u001b[38;5;124mThe `parse_obj` method is deprecated; use `model_validate` instead.\u001b[39m\u001b[38;5;124m'\u001b[39m, category\u001b[38;5;241m=\u001b[39mPydanticDeprecatedSince20\n\u001b[0;32m 1024\u001b[0m )\n\u001b[0;32m 1025\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mparse_obj\u001b[39m(\u001b[38;5;28mcls\u001b[39m: \u001b[38;5;28mtype\u001b[39m[Model], obj: Any) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m Model: \u001b[38;5;66;03m# noqa: D102\u001b[39;00m\n\u001b[0;32m 1026\u001b[0m warnings\u001b[38;5;241m.\u001b[39mwarn(\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mThe `parse_obj` method is deprecated; use `model_validate` instead.\u001b[39m\u001b[38;5;124m'\u001b[39m, \u001b[38;5;167;01mDeprecationWarning\u001b[39;00m)\n\u001b[1;32m-> 1027\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;43mcls\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmodel_validate\u001b[49m\u001b[43m(\u001b[49m\u001b[43mobj\u001b[49m\u001b[43m)\u001b[49m\n\nFile \u001b[1;32mc:\\Users\\user\\repos\\.venv\\Lib\\site-packages\\pydantic\\main.py:503\u001b[0m, in \u001b[0;36mBaseModel.model_validate\u001b[1;34m(cls, obj, strict, from_attributes, context)\u001b[0m\n\u001b[0;32m 501\u001b[0m \u001b[38;5;66;03m# `__tracebackhide__` tells pytest and some other tools to omit this function from tracebacks\u001b[39;00m\n\u001b[0;32m 502\u001b[0m __tracebackhide__ \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mTrue\u001b[39;00m\n\u001b[1;32m--> 503\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;43mcls\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m__pydantic_validator__\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mvalidate_python\u001b[49m\u001b[43m(\u001b[49m\n\u001b[0;32m 504\u001b[0m \u001b[43m \u001b[49m\u001b[43mobj\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mstrict\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mstrict\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfrom_attributes\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mfrom_attributes\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mcontext\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcontext\u001b[49m\n\u001b[0;32m 505\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\n\u001b[1;31mValidationError\u001b[0m: 2 validation errors for People\npeople.1.dog_breed\n Field required [type=missing, input_value={'person_name': 'Claudia'...hair_color': 'brunette'}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.5/v/missing\npeople.1.dog_name\n Field required [type=missing, input_value={'person_name': 'Claudia'...hair_color': 'brunette'}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.5/v/missing" } ``` ### System Info Langchain: ``` langchain==0.1.0 langchain-community==0.0.10 langchain-core==0.1.8 ``` platform: ``` Windows 11 Enterprise Version 10.0.22621 Build 22621 ``` python : ``` Python 3.11.7 ``` ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16123/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16123/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16122
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16122/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16122/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16122/events
https://github.com/langchain-ai/langchain/pull/16122
2,085,485,584
PR_kwDOIPDwls5kRpOt
16,122
langchain_community: Replace azure_cosmos_db_vector_search with azure_cosmos_db in Cosmos DB Documentation
{ "login": "blacksmithop", "id": 60320192, "node_id": "MDQ6VXNlcjYwMzIwMTky", "avatar_url": "https://avatars.githubusercontent.com/u/60320192?v=4", "gravatar_id": "", "url": "https://api.github.com/users/blacksmithop", "html_url": "https://github.com/blacksmithop", "followers_url": "https://api.github.com/users/blacksmithop/followers", "following_url": "https://api.github.com/users/blacksmithop/following{/other_user}", "gists_url": "https://api.github.com/users/blacksmithop/gists{/gist_id}", "starred_url": "https://api.github.com/users/blacksmithop/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/blacksmithop/subscriptions", "organizations_url": "https://api.github.com/users/blacksmithop/orgs", "repos_url": "https://api.github.com/users/blacksmithop/repos", "events_url": "https://api.github.com/users/blacksmithop/events{/privacy}", "received_events_url": "https://api.github.com/users/blacksmithop/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": 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-17T06:29:53"
"2024-01-17T17:11:17"
"2024-01-17T17:11:16"
CONTRIBUTOR
null
**Description**: This PR fixes an error in the documentation for Azure Cosmos DB Integration. **Issue**: The correct way to import `AzureCosmosDBVectorSearch` is ```python from langchain_community.vectorstores.azure_cosmos_db import ( AzureCosmosDBVectorSearch, ) ``` While the [documentation](https://python.langchain.com/docs/integrations/vectorstores/azure_cosmos_db) states it to be ```python from langchain_community.vectorstores.azure_cosmos_db_vector_search import ( AzureCosmosDBVectorSearch, CosmosDBSimilarityType, ) ``` As you can see in [azure_cosmos_db.py](https://github.com/langchain-ai/langchain/blob/c323742f4fda30e8bef5381f41f66192afb2b9d2/libs/langchain/langchain/vectorstores/azure_cosmos_db.py#L1C45-L2) **Dependencies:**: None **Twitter handle**: None
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16122/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16122/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16122", "html_url": "https://github.com/langchain-ai/langchain/pull/16122", "diff_url": "https://github.com/langchain-ai/langchain/pull/16122.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16122.patch", "merged_at": "2024-01-17T17:11:16" }
https://api.github.com/repos/langchain-ai/langchain/issues/16121
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16121/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16121/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16121/events
https://github.com/langchain-ai/langchain/issues/16121
2,085,484,831
I_kwDOIPDwls58Tfkf
16,121
Why can't test117 be retrieved by vector and provide replies for reference to achieve long-term memory?
{ "login": "yen111445", "id": 103471919, "node_id": "U_kgDOBirbLw", "avatar_url": "https://avatars.githubusercontent.com/u/103471919?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yen111445", "html_url": "https://github.com/yen111445", "followers_url": "https://api.github.com/users/yen111445/followers", "following_url": "https://api.github.com/users/yen111445/following{/other_user}", "gists_url": "https://api.github.com/users/yen111445/gists{/gist_id}", "starred_url": "https://api.github.com/users/yen111445/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yen111445/subscriptions", "organizations_url": "https://api.github.com/users/yen111445/orgs", "repos_url": "https://api.github.com/users/yen111445/repos", "events_url": "https://api.github.com/users/yen111445/events{/privacy}", "received_events_url": "https://api.github.com/users/yen111445/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
1
"2024-01-17T06:29:33"
"2024-01-17T06:37:50"
null
NONE
null
### Issue with current documentation: import os from langchain_community.chat_models import ChatOpenAI from langchain.schema import Document from langchain_community.embeddings import HuggingFaceEmbeddings from langchain_community.vectorstores import Qdrant from langchain.chains import ConversationChain from langchain.memory import ConversationBufferMemory from qdrant_client import QdrantClient, models os.environ['OPENAI_API_KEY'] = "mykey" embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2") client = QdrantClient(host="192.168.10.31", port=6333) collection_name = "test117" client.create_collection( collection_name=collection_name, vectors_config=models.VectorParams(size=384, distance=models.Distance.COSINE), optimizers_config=models.OptimizersConfigDiff(memmap_threshold=20000), ) vectorstore = Qdrant( client=client, embedding=embeddings, location=":memory:", collection_name=collection_name, ) llm = ChatOpenAI( temperature=0.7, model="gpt-3.5-turbo", max_tokens=100 ) memory = ConversationBufferMemory() conversation = ConversationChain(llm=llm, memory=memory, verbose=True,) collection_info = client.get_collection(collection_name) while True: chat_history = memory.load_memory_variables({}) question = input('ask:') question_vector = embeddings.embed_query(question)[0] search_results = client.search( collection_name=collection_name, query_vector=models.NamedSparseVector( name=collection_name, vector=models.SparseVector( indices=question_vector.indices, values=question_vector.values, ), ), limit=1, ) if search_results and search_results[0].payload: response_vector = search_results[0].payload.vector response_str = vectorstore.retrieve_text(response_vector) else: response = conversation.predict(input=f"Q: {question}\nA:") response_str = response.choices[0].text.strip() response_vector = embeddings.embed_query(response_str)[0] vectorstore.add_documents([Document(vector=response_vector, text=response_str)]) print("respones:", response_str) memory.add_memory_variables({"input": question, "output": response_str}) if question.lower() == 'bye': break ### Idea or request for content: Why can't test117 be retrieved by vector and provide replies for reference to achieve long-term memory? Is it that the retriever is not written well?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16121/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16121/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16120
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16120/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16120/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16120/events
https://github.com/langchain-ai/langchain/pull/16120
2,085,467,940
PR_kwDOIPDwls5kRlrm
16,120
Add Tuple support for messages placeholder
{ "login": "hinthornw", "id": 13333726, "node_id": "MDQ6VXNlcjEzMzMzNzI2", "avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hinthornw", "html_url": "https://github.com/hinthornw", "followers_url": "https://api.github.com/users/hinthornw/followers", "following_url": "https://api.github.com/users/hinthornw/following{/other_user}", "gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}", "starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions", "organizations_url": "https://api.github.com/users/hinthornw/orgs", "repos_url": "https://api.github.com/users/hinthornw/repos", "events_url": "https://api.github.com/users/hinthornw/events{/privacy}", "received_events_url": "https://api.github.com/users/hinthornw/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
1
"2024-01-17T06:16:51"
"2024-01-17T17:16:15"
null
COLLABORATOR
null
It's a bit annoying to work with LangChain messages on the frontend, which is why we [did things like this in chat langchain](https://github.com/langchain-ai/chat-langchain/blob/592d588a1bfe35fe03ed33ac8ba36afd9452bb6d/chain.py#L148). It would be convenient if the messages placeholder also accepted the same tuple format as the prompt template, so you could just pass the role and content values around. Maybe not as useful in a real memory setup, but simplifies the user code a bit in some situations.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16120/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16120/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16120", "html_url": "https://github.com/langchain-ai/langchain/pull/16120", "diff_url": "https://github.com/langchain-ai/langchain/pull/16120.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16120.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16119
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16119/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16119/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16119/events
https://github.com/langchain-ai/langchain/pull/16119
2,085,336,250
PR_kwDOIPDwls5kRJnO
16,119
community: Fix LlamaContentFormatter to match actual input/output formatting
{ "login": "parkerhancock", "id": 633163, "node_id": "MDQ6VXNlcjYzMzE2Mw==", "avatar_url": "https://avatars.githubusercontent.com/u/633163?v=4", "gravatar_id": "", "url": "https://api.github.com/users/parkerhancock", "html_url": "https://github.com/parkerhancock", "followers_url": "https://api.github.com/users/parkerhancock/followers", "following_url": "https://api.github.com/users/parkerhancock/following{/other_user}", "gists_url": "https://api.github.com/users/parkerhancock/gists{/gist_id}", "starred_url": "https://api.github.com/users/parkerhancock/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/parkerhancock/subscriptions", "organizations_url": "https://api.github.com/users/parkerhancock/orgs", "repos_url": "https://api.github.com/users/parkerhancock/repos", "events_url": "https://api.github.com/users/parkerhancock/events{/privacy}", "received_events_url": "https://api.github.com/users/parkerhancock/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": 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-17T03:50:50"
"2024-01-17T17:14:51"
null
NONE
null
**Description:** The `LlamaContentFormatter` in the `langchain_community.chat_models.azureml_endpoint` does not work because it doesn't actually comply to the output of Llama models. The input/output formats are documented here: [Deploy Llama2 Chat Models - Chat API](https://learn.microsoft.com/en-us/azure/ai-studio/how-to/deploy-models-llama?tabs=azure-studio#chat-api) This PR creates a LlamaContentFormatter that works with the documented API. **Issue:** N/A **Dependencies:** N/A **Twitter handle:** parkerdhancock
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16119/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16119/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16119", "html_url": "https://github.com/langchain-ai/langchain/pull/16119", "diff_url": "https://github.com/langchain-ai/langchain/pull/16119.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16119.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16117
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16117/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16117/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16117/events
https://github.com/langchain-ai/langchain/pull/16117
2,085,247,462
PR_kwDOIPDwls5kQ3Dk
16,117
partners: add license field
{ "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": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." }, { "id": 6348691034, "node_id": "LA_kwDOIPDwls8AAAABemlWWg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner", "name": "partner", "color": "ededed", "default": false, "description": null } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
2
"2024-01-17T01:54:33"
"2024-01-17T16:37:15"
"2024-01-17T16:37:14"
COLLABORATOR
null
- bumps package post versions for packages without current unreleased updates - will bump package version in release prs associated with packages that do have changes (mistral, vertex)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16117/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16117/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16117", "html_url": "https://github.com/langchain-ai/langchain/pull/16117", "diff_url": "https://github.com/langchain-ai/langchain/pull/16117.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16117.patch", "merged_at": "2024-01-17T16:37:14" }
https://api.github.com/repos/langchain-ai/langchain/issues/16116
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16116/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16116/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16116/events
https://github.com/langchain-ai/langchain/pull/16116
2,085,243,400
PR_kwDOIPDwls5kQ2OI
16,116
mistralai[patch]: release 0.0.3
{ "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-17T01:49:10"
"2024-01-17T16:36:06"
"2024-01-17T16:36:05"
COLLABORATOR
null
embeddings
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16116/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16116/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16116", "html_url": "https://github.com/langchain-ai/langchain/pull/16116", "diff_url": "https://github.com/langchain-ai/langchain/pull/16116.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16116.patch", "merged_at": "2024-01-17T16:36:05" }
https://api.github.com/repos/langchain-ai/langchain/issues/16115
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16115/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16115/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16115/events
https://github.com/langchain-ai/langchain/pull/16115
2,085,219,374
PR_kwDOIPDwls5kQxUY
16,115
refactor `langchain.retrievers.self_query`
{ "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": 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": 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" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." }, { "id": 6348691034, "node_id": "LA_kwDOIPDwls8AAAABemlWWg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner", "name": "partner", "color": "ededed", "default": false, "description": null } ]
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
3
"2024-01-17T01:17:32"
"2024-01-17T23:36:58"
null
COLLABORATOR
null
**Issue:** all classes in `langchain.retrievers.self_query` namespace belong to the `community` package. **Following issue:** We cannot just move these classes to `community` because of the dependency on the Visitor class and other classes from the `langchain.chains.query_constructor` namespace. What is interesting is that `langchain.chains.query_constructor` artifacts are used ONLY in the `langchain.retrievers.self_query` artifacts. It happens that `langchain.chains.query_constructor` artifacts do not depend on the `langchain.chains`. Actually the `langchain.chains.query_constructor` is quite independent. Because of that we can move `langchain.chains.query_constructor` under `langchain_core` as the `langchain_core.sql_constructor` The reason for renaming `query_constructor` into `sql_constructor` is simple. It IS the SQL constructor. Moreover, the `query_..` is the ambiguous name because we use `query` in retrievers and many other places not as the SQL queries but as the queries in prompts. `sql` is unambiguous name here. NOTE: The `langchain.chains.query_constructor.base.load_query_constructor_chain` is not moved! This is the only dependency to `chains`. It is not important because Chains will be depricated soon.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16115/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16115/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16115", "html_url": "https://github.com/langchain-ai/langchain/pull/16115", "diff_url": "https://github.com/langchain-ai/langchain/pull/16115.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16115.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16114
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16114/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16114/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16114/events
https://github.com/langchain-ai/langchain/issues/16114
2,085,185,440
I_kwDOIPDwls58SWeg
16,114
structured output parser on ChatPromptTemplate.from_template()
{ "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": 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
11
"2024-01-17T00:34:20"
"2024-01-17T05:09:20"
"2024-01-17T05:09:20"
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code ```python llm = VertexAI(model_name='gemini-pro', max_output_tokens=512, temperature=0.2) data = loader.load() embeddings = VertexAIEmbeddings(model_name='textembedding-gecko@003') vectorstore = Chroma.from_documents(data, embeddings) retriever = vectorstore.as_retriever() template = """ Use the following pieces of context to answer the question at the end. - If you think you need more information to find proper answer, ask user to clarify. - If you cannot find a proper answer from the reference, just say we don't have a data from the reference. Use three sentences maximum and keep the answer as concise as possible. Context: {context} Question: {question} Helpful Answer: **Resource:** [reference source name] """ 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.", ), ] found_output_parser = StructuredOutputParser.from_response_schemas(found_response_schemas) format_instructions = found_output_parser.get_format_instructions() rag_prompt_custom = ChatPromptTemplate.from_template(template) rag_chain = ( {"context": retriever, "question": RunnablePassthrough()} | rag_prompt_custom | llm | StrOutputParser() ) response = rag_chain.invoke(message) print(response) ``` ### Description I am trying to add StructuredOutputParser with a specific ResponseSchema. What I would like to add as a ResponseSchema is, adding boolean value to check whether the llm could find proper information from reference document in RAG. ### System Info langchain==0.0.353 ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16114/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16114/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16110
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16110/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16110/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16110/events
https://github.com/langchain-ai/langchain/pull/16110
2,084,884,157
PR_kwDOIPDwls5kPoV5
16,110
Community[Patch] Remove docs form bm25 repr
{ "login": "hinthornw", "id": 13333726, "node_id": "MDQ6VXNlcjEzMzMzNzI2", "avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hinthornw", "html_url": "https://github.com/hinthornw", "followers_url": "https://api.github.com/users/hinthornw/followers", "following_url": "https://api.github.com/users/hinthornw/following{/other_user}", "gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}", "starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions", "organizations_url": "https://api.github.com/users/hinthornw/orgs", "repos_url": "https://api.github.com/users/hinthornw/repos", "events_url": "https://api.github.com/users/hinthornw/events{/privacy}", "received_events_url": "https://api.github.com/users/hinthornw/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "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-16T20:44:42"
"2024-01-17T08:00:56"
"2024-01-17T08:00:55"
COLLABORATOR
null
Not sure how helpful they are to include in the representation? Resolves: https://github.com/langchain-ai/langsmith-sdk/issues/356
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16110/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16110/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16110", "html_url": "https://github.com/langchain-ai/langchain/pull/16110", "diff_url": "https://github.com/langchain-ai/langchain/pull/16110.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16110.patch", "merged_at": "2024-01-17T08:00:55" }
https://api.github.com/repos/langchain-ai/langchain/issues/16109
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16109/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16109/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16109/events
https://github.com/langchain-ai/langchain/pull/16109
2,084,841,637
PR_kwDOIPDwls5kPekO
16,109
Community[patch]use secret str in Tavily and HuggingFaceInferenceEmbeddings
{ "login": "hinthornw", "id": 13333726, "node_id": "MDQ6VXNlcjEzMzMzNzI2", "avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hinthornw", "html_url": "https://github.com/hinthornw", "followers_url": "https://api.github.com/users/hinthornw/followers", "following_url": "https://api.github.com/users/hinthornw/following{/other_user}", "gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}", "starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions", "organizations_url": "https://api.github.com/users/hinthornw/orgs", "repos_url": "https://api.github.com/users/hinthornw/repos", "events_url": "https://api.github.com/users/hinthornw/events{/privacy}", "received_events_url": "https://api.github.com/users/hinthornw/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "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-16T20:28:24"
"2024-01-17T08:30:08"
"2024-01-17T08:30:07"
COLLABORATOR
null
So the api keys don't show up in repr's Still need to do tests
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16109/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16109/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16109", "html_url": "https://github.com/langchain-ai/langchain/pull/16109", "diff_url": "https://github.com/langchain-ai/langchain/pull/16109.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16109.patch", "merged_at": "2024-01-17T08:30:07" }
https://api.github.com/repos/langchain-ai/langchain/issues/16108
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16108/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16108/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16108/events
https://github.com/langchain-ai/langchain/pull/16108
2,084,785,356
PR_kwDOIPDwls5kPRhM
16,108
core : in RunnableRetry, correct the example snippet that uses with_retry method on Runnable
{ "login": "ksachdeva", "id": 127006, "node_id": "MDQ6VXNlcjEyNzAwNg==", "avatar_url": "https://avatars.githubusercontent.com/u/127006?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ksachdeva", "html_url": "https://github.com/ksachdeva", "followers_url": "https://api.github.com/users/ksachdeva/followers", "following_url": "https://api.github.com/users/ksachdeva/following{/other_user}", "gists_url": "https://api.github.com/users/ksachdeva/gists{/gist_id}", "starred_url": "https://api.github.com/users/ksachdeva/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ksachdeva/subscriptions", "organizations_url": "https://api.github.com/users/ksachdeva/orgs", "repos_url": "https://api.github.com/users/ksachdeva/repos", "events_url": "https://api.github.com/users/ksachdeva/events{/privacy}", "received_events_url": "https://api.github.com/users/ksachdeva/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
2
"2024-01-16T20:09:35"
"2024-01-17T17:11:28"
"2024-01-17T17:11:27"
CONTRIBUTOR
null
The example code snippet for with_retry is using incorrect argument names. This PR fixes that
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16108/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16108/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16108", "html_url": "https://github.com/langchain-ai/langchain/pull/16108", "diff_url": "https://github.com/langchain-ai/langchain/pull/16108.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16108.patch", "merged_at": "2024-01-17T17:11:27" }
https://api.github.com/repos/langchain-ai/langchain/issues/16107
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16107/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16107/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16107/events
https://github.com/langchain-ai/langchain/pull/16107
2,084,687,434
PR_kwDOIPDwls5kO7Jm
16,107
docs: updated `Anyscale` page
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
"2024-01-16T19:30:11"
"2024-01-17T01:48:56"
"2024-01-17T01:13:52"
COLLABORATOR
null
- added description - fixed broken links - added setting instructions - added the Chat model reference
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16107/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16107/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16107", "html_url": "https://github.com/langchain-ai/langchain/pull/16107", "diff_url": "https://github.com/langchain-ai/langchain/pull/16107.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16107.patch", "merged_at": "2024-01-17T01:13:52" }
https://api.github.com/repos/langchain-ai/langchain/issues/16105
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16105/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16105/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16105/events
https://github.com/langchain-ai/langchain/pull/16105
2,084,592,009
PR_kwDOIPDwls5kOloi
16,105
WIP docs: agent prompt docs
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[]
open
false
null
[]
null
1
"2024-01-16T18:39:38"
"2024-01-17T02:15:41"
null
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16105/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16105/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16105", "html_url": "https://github.com/langchain-ai/langchain/pull/16105", "diff_url": "https://github.com/langchain-ai/langchain/pull/16105.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16105.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16104
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16104/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16104/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16104/events
https://github.com/langchain-ai/langchain/pull/16104
2,084,583,476
PR_kwDOIPDwls5kOjyd
16,104
langchain[patch]: bump core dep to 0.1.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-16T18:32:59"
"2024-01-16T18:39:08"
"2024-01-16T18:39:07"
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16104/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16104/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16104", "html_url": "https://github.com/langchain-ai/langchain/pull/16104", "diff_url": "https://github.com/langchain-ai/langchain/pull/16104.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16104.patch", "merged_at": "2024-01-16T18:39:07" }
https://api.github.com/repos/langchain-ai/langchain/issues/16103
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16103/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16103/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16103/events
https://github.com/langchain-ai/langchain/pull/16103
2,084,546,206
PR_kwDOIPDwls5kObmT
16,103
langchain[patch]: Release 0.1.1
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
"2024-01-16T18:09:39"
"2024-01-16T18:17:39"
"2024-01-16T18:17:38"
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16103/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16103/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16103", "html_url": "https://github.com/langchain-ai/langchain/pull/16103", "diff_url": "https://github.com/langchain-ai/langchain/pull/16103.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16103.patch", "merged_at": "2024-01-16T18:17:38" }
https://api.github.com/repos/langchain-ai/langchain/issues/16102
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16102/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16102/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16102/events
https://github.com/langchain-ai/langchain/issues/16102
2,084,539,156
I_kwDOIPDwls58P4sU
16,102
JSONDecodeError: Invalid control character at: line 2 column 631 (char 632) when using langchain new agent
{ "login": "glejdis", "id": 53597226, "node_id": "MDQ6VXNlcjUzNTk3MjI2", "avatar_url": "https://avatars.githubusercontent.com/u/53597226?v=4", "gravatar_id": "", "url": "https://api.github.com/users/glejdis", "html_url": "https://github.com/glejdis", "followers_url": "https://api.github.com/users/glejdis/followers", "following_url": "https://api.github.com/users/glejdis/following{/other_user}", "gists_url": "https://api.github.com/users/glejdis/gists{/gist_id}", "starred_url": "https://api.github.com/users/glejdis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/glejdis/subscriptions", "organizations_url": "https://api.github.com/users/glejdis/orgs", "repos_url": "https://api.github.com/users/glejdis/repos", "events_url": "https://api.github.com/users/glejdis/events{/privacy}", "received_events_url": "https://api.github.com/users/glejdis/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
3
"2024-01-16T18:04:37"
"2024-01-17T15:29:17"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code This code: ```python def parse(output): # If no function was invoked, return to user if "function_call" not in output.additional_kwargs: return AgentFinish(return_values={"output": output.content}, log=output.content) # Parse out the function call function_call = output.additional_kwargs["function_call"] name = function_call["name"] inputs = json.loads(function_call["arguments"]) # If the Response function was invoked, return to the user with the function inputs if name == "Response": return AgentFinish(return_values=inputs, log=str(function_call)) # Otherwise, return an agent action else: return AgentActionMessageLog( tool=name, tool_input=inputs, log="", message_log=[output] ) def creat_ai_search_new_agent(embeddings, llm, class_name_rich): ai_search_endpoint = get_ai_search_endpoint() ai_search_admin_key = get_ai_search_admin_key() vector_store = AzureSearch( azure_search_endpoint=ai_search_endpoint, azure_search_key=ai_search_admin_key, index_name=class_name_rich, embedding_function=embeddings.embed_query, content_key=content_key ) """Retriever that uses `Azure Cognitive Search`.""" azure_search_retriever = AzureSearchVectorStoreRetriever( vectorstore=vector_store, search_type=search_type, k=k, top=n ) retriever_tool = create_retriever_tool( azure_search_retriever, "Retriever", "Useful when you need to retrieve information from documents", ) class Response(BaseModel): """Final response to the question being asked""" answer: str = Field(description="The final answer to respond to the user") sources: List[int] = Field( description="List of page chunks that contain answer to the question. Only include a page chunk if it contains relevant information" ) prompt = ChatPromptTemplate.from_messages( [ ("system", "You are a helpful assistant who retrieves information from documents"), ("user", "{input}"), MessagesPlaceholder(variable_name="agent_scratchpad"), ] ) llm_with_tools = llm.bind( functions=[ # The retriever tool format_tool_to_openai_function(retriever_tool), # Response schema convert_pydantic_to_openai_function(Response), ] ) try: agent = ( { "input": lambda x: x["input"], # Format agent scratchpad from intermediate steps "agent_scratchpad": lambda x: format_to_openai_function_messages( x["intermediate_steps"] ), } | prompt | llm_with_tools | parse ) agent_executor = AgentExecutor(tools=[retriever_tool], agent=agent, verbose=True, return_intermediate_steps=True) except Exception as e: print(e) print("error instanciating the agent") return agent_executor ``` Gives me the following error: JSONDecodeError Traceback (most recent call last) File <command-2290979546782169>, line 5 3 # get the start time 4 st = time.time() ----> 5 answer = agent_executor.invoke( 6 {"input": text}, 7 # return_only_outputs=True, 8 9 ) 10 # get the end time 11 et = time.time() File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain/chains/base.py:162, in Chain.invoke(self, input, config, **kwargs) 160 except BaseException as e: 161 run_manager.on_chain_error(e) --> 162 raise e 163 run_manager.on_chain_end(outputs) 164 final_outputs: Dict[str, Any] = self.prep_outputs( 165 inputs, outputs, return_only_outputs 166 ) File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain/chains/base.py:156, in Chain.invoke(self, input, config, **kwargs) 149 run_manager = callback_manager.on_chain_start( 150 dumpd(self), 151 inputs, 152 name=run_name, 153 ) 154 try: 155 outputs = ( --> 156 self._call(inputs, run_manager=run_manager) 157 if new_arg_supported 158 else self._call(inputs) 159 ) 160 except BaseException as e: 161 run_manager.on_chain_error(e) File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain/agents/agent.py:1329, in AgentExecutor._call(self, inputs, run_manager) 1327 # We now enter the agent loop (until it returns something). 1328 while self._should_continue(iterations, time_elapsed): -> 1329 next_step_output = self._take_next_step( 1330 name_to_tool_map, 1331 color_mapping, 1332 inputs, 1333 intermediate_steps, 1334 run_manager=run_manager, 1335 ) 1336 if isinstance(next_step_output, AgentFinish): 1337 return self._return( 1338 next_step_output, intermediate_steps, run_manager=run_manager 1339 ) File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain/agents/agent.py:1055, in AgentExecutor._take_next_step(self, name_to_tool_map, color_mapping, inputs, intermediate_steps, run_manager) 1046 def _take_next_step( 1047 self, 1048 name_to_tool_map: Dict[str, BaseTool], (...) 1052 run_manager: Optional[CallbackManagerForChainRun] = None, 1053 ) -> Union[AgentFinish, List[Tuple[AgentAction, str]]]: 1054 return self._consume_next_step( -> 1055 [ 1056 a 1057 for a in self._iter_next_step( 1058 name_to_tool_map, 1059 color_mapping, 1060 inputs, 1061 intermediate_steps, 1062 run_manager, 1063 ) 1064 ] 1065 ) File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain/agents/agent.py:1055, in <listcomp>(.0) 1046 def _take_next_step( 1047 self, 1048 name_to_tool_map: Dict[str, BaseTool], (...) 1052 run_manager: Optional[CallbackManagerForChainRun] = None, 1053 ) -> Union[AgentFinish, List[Tuple[AgentAction, str]]]: 1054 return self._consume_next_step( -> 1055 [ 1056 a 1057 for a in self._iter_next_step( 1058 name_to_tool_map, 1059 color_mapping, 1060 inputs, 1061 intermediate_steps, 1062 run_manager, 1063 ) 1064 ] 1065 ) File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain/agents/agent.py:1083, in AgentExecutor._iter_next_step(self, name_to_tool_map, color_mapping, inputs, intermediate_steps, run_manager) 1080 intermediate_steps = self._prepare_intermediate_steps(intermediate_steps) 1082 # Call the LLM to see what to do. -> 1083 output = self.agent.plan( 1084 intermediate_steps, 1085 callbacks=run_manager.get_child() if run_manager else None, 1086 **inputs, 1087 ) 1088 except OutputParserException as e: 1089 if isinstance(self.handle_parsing_errors, bool): File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain/agents/agent.py:386, in RunnableAgent.plan(self, intermediate_steps, callbacks, **kwargs) 374 """Given input, decided what to do. 375 376 Args: (...) 383 Action specifying what tool to use. 384 """ 385 inputs = {**kwargs, **{"intermediate_steps": intermediate_steps}} --> 386 output = self.runnable.invoke(inputs, config={"callbacks": callbacks}) 387 return output File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain_core/runnables/base.py:1774, in RunnableSequence.invoke(self, input, config) 1772 try: 1773 for i, step in enumerate(self.steps): -> 1774 input = step.invoke( 1775 input, 1776 # mark each step as a child run 1777 patch_config( 1778 config, callbacks=run_manager.get_child(f"seq:step:{i+1}") 1779 ), 1780 ) 1781 # finish the root run 1782 except BaseException as e: File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain_core/runnables/base.py:3074, in RunnableLambda.invoke(self, input, config, **kwargs) 3072 """Invoke this runnable synchronously.""" 3073 if hasattr(self, "func"): -> 3074 return self._call_with_config( 3075 self._invoke, 3076 input, 3077 self._config(config, self.func), 3078 **kwargs, 3079 ) 3080 else: 3081 raise TypeError( 3082 "Cannot invoke a coroutine function synchronously." 3083 "Use `ainvoke` instead." 3084 ) File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain_core/runnables/base.py:975, in Runnable._call_with_config(self, func, input, config, run_type, **kwargs) 971 context = copy_context() 972 context.run(var_child_runnable_config.set, child_config) 973 output = cast( 974 Output, --> 975 context.run( 976 call_func_with_variable_args, 977 func, # type: ignore[arg-type] 978 input, # type: ignore[arg-type] 979 config, 980 run_manager, 981 **kwargs, 982 ), 983 ) 984 except BaseException as e: 985 run_manager.on_chain_error(e) File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain_core/runnables/config.py:323, in call_func_with_variable_args(func, input, config, run_manager, **kwargs) 321 if run_manager is not None and accepts_run_manager(func): 322 kwargs["run_manager"] = run_manager --> 323 return func(input, **kwargs) File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain_core/runnables/base.py:2950, in RunnableLambda._invoke(self, input, run_manager, config, **kwargs) 2948 output = chunk 2949 else: -> 2950 output = call_func_with_variable_args( 2951 self.func, input, config, run_manager, **kwargs 2952 ) 2953 # If the output is a runnable, invoke it 2954 if isinstance(output, Runnable): File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/langchain_core/runnables/config.py:323, in call_func_with_variable_args(func, input, config, run_manager, **kwargs) 321 if run_manager is not None and accepts_run_manager(func): 322 kwargs["run_manager"] = run_manager --> 323 return func(input, **kwargs) File <command-2290979546782090>, line 11, in parse(output) 9 function_call = output.additional_kwargs["function_call"] 10 name = function_call["name"] ---> 11 inputs = json.loads(function_call["arguments"]) 13 # If the Response function was invoked, return to the user with the function inputs 14 if name == "Response": File /usr/lib/python3.10/json/__init__.py:346, in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 341 s = s.decode(detect_encoding(s), 'surrogatepass') 343 if (cls is None and object_hook is None and 344 parse_int is None and parse_float is None and 345 parse_constant is None and object_pairs_hook is None and not kw): --> 346 return _default_decoder.decode(s) 347 if cls is None: 348 cls = JSONDecoder File /usr/lib/python3.10/json/decoder.py:337, in JSONDecoder.decode(self, s, _w) 332 def decode(self, s, _w=WHITESPACE.match): 333 """Return the Python representation of ``s`` (a ``str`` instance 334 containing a JSON document). 335 336 """ --> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 338 end = _w(s, end).end() 339 if end != len(s): File /usr/lib/python3.10/json/decoder.py:353, in JSONDecoder.raw_decode(self, s, idx) 344 """Decode a JSON document from ``s`` (a ``str`` beginning with 345 a JSON document) and return a 2-tuple of the Python 346 representation and the index in ``s`` where the document ended. (...) 350 351 """ 352 try: --> 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: 355 raise JSONDecodeError("Expecting value", s, err.value) from None JSONDecodeError: Invalid control character at: line 2 column 631 (char 632) Can someone help? ### Description Error half of the times ### System Info langchain==0.1.0 openai==1.7.0 ### Related Components - [X] LLMs/Chat Models - [X] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16102/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16102/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16101
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16101/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16101/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16101/events
https://github.com/langchain-ai/langchain/pull/16101
2,084,524,809
PR_kwDOIPDwls5kOXBW
16,101
core[patch]: fallbacks error chain
{ "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": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
open
false
null
[]
null
1
"2024-01-16T17:54:19"
"2024-01-16T18:01:21"
null
COLLABORATOR
null
Potential alternative to #16048 bit about last exception would need to be implemented for ainvoke too
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16101/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16101/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16101", "html_url": "https://github.com/langchain-ai/langchain/pull/16101", "diff_url": "https://github.com/langchain-ai/langchain/pull/16101.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16101.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16100
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16100/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16100/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16100/events
https://github.com/langchain-ai/langchain/pull/16100
2,084,505,116
PR_kwDOIPDwls5kOSy2
16,100
core[patch]: Release 0.1.11
{ "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-16T17:40:10"
"2024-01-16T17:46:05"
"2024-01-16T17:46:04"
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16100/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16100/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16100", "html_url": "https://github.com/langchain-ai/langchain/pull/16100", "diff_url": "https://github.com/langchain-ai/langchain/pull/16100.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16100.patch", "merged_at": "2024-01-16T17:46:04" }
https://api.github.com/repos/langchain-ai/langchain/issues/16099
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16099/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16099/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16099/events
https://github.com/langchain-ai/langchain/issues/16099
2,084,474,502
I_kwDOIPDwls58Po6G
16,099
RedisVectorStoreRetriever similarity search similarity_distance_threshold is not implemented asyncronously
{ "login": "HugoMichard", "id": 15155145, "node_id": "MDQ6VXNlcjE1MTU1MTQ1", "avatar_url": "https://avatars.githubusercontent.com/u/15155145?v=4", "gravatar_id": "", "url": "https://api.github.com/users/HugoMichard", "html_url": "https://github.com/HugoMichard", "followers_url": "https://api.github.com/users/HugoMichard/followers", "following_url": "https://api.github.com/users/HugoMichard/following{/other_user}", "gists_url": "https://api.github.com/users/HugoMichard/gists{/gist_id}", "starred_url": "https://api.github.com/users/HugoMichard/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HugoMichard/subscriptions", "organizations_url": "https://api.github.com/users/HugoMichard/orgs", "repos_url": "https://api.github.com/users/HugoMichard/repos", "events_url": "https://api.github.com/users/HugoMichard/events{/privacy}", "received_events_url": "https://api.github.com/users/HugoMichard/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": 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-16T17:19:05"
"2024-01-16T17:21:33"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code ```python from langchain_community.vectorstores.redis import Redis embedding = ... redis_url = ... schema_path = ... vectorstore = Redis.from_existing_index( embedding, index_name='index', redis_url=redis_url, schema=schema_path, ) retriever = vectorstore.as_retriever(search_type="similarity_distance_threshold", search_kwargs={"distance_threshold": 0.9, "k": 5}) retriever.aget_relevant_documents('query') ``` ### Description The asynchronous method `_aget_relevant_documents` is not defined for `RedisVectorStoreRetriever`. As such, the method of the parent of `RedisVectorStoreRetriever` (`VectorStoreRetriever`) is called. In `VectorStoreRetriever` however, `similarity_distance_threshold` is not available. This makes the chain crash when `RedisVectorStoreRetriever` is called asynchronously in a chain. I will make a PR to solve this ### System Info ``` langchain 0.1.0 langchain-community 0.0.12 langchain-core 0.1.10 ``` ### 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 - [x] Async
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16099/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16099/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16098
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16098/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16098/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16098/events
https://github.com/langchain-ai/langchain/pull/16098
2,084,463,377
PR_kwDOIPDwls5kOJtR
16,098
core:Add optional max_messages to MessagePlaceholder
{ "login": "DaveDeCaprio", "id": 841146, "node_id": "MDQ6VXNlcjg0MTE0Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/841146?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DaveDeCaprio", "html_url": "https://github.com/DaveDeCaprio", "followers_url": "https://api.github.com/users/DaveDeCaprio/followers", "following_url": "https://api.github.com/users/DaveDeCaprio/following{/other_user}", "gists_url": "https://api.github.com/users/DaveDeCaprio/gists{/gist_id}", "starred_url": "https://api.github.com/users/DaveDeCaprio/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DaveDeCaprio/subscriptions", "organizations_url": "https://api.github.com/users/DaveDeCaprio/orgs", "repos_url": "https://api.github.com/users/DaveDeCaprio/repos", "events_url": "https://api.github.com/users/DaveDeCaprio/events{/privacy}", "received_events_url": "https://api.github.com/users/DaveDeCaprio/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": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
open
false
null
[]
null
1
"2024-01-16T17:12:20"
"2024-01-16T17:12:31"
null
CONTRIBUTOR
null
- **Description:** Add optional max_messages to MessagePlaceholder - **Issue:** [16096](https://github.com/langchain-ai/langchain/issues/16096) - **Dependencies:** None - **Twitter handle:** @davedecaprio Sometimes it's better to limit the history in the prompt itself rather than the memory. This is needed if you want different prompts in the chain to have different history lengths.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16098/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16098/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16098", "html_url": "https://github.com/langchain-ai/langchain/pull/16098", "diff_url": "https://github.com/langchain-ai/langchain/pull/16098.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16098.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16096
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16096/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16096/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16096/events
https://github.com/langchain-ai/langchain/issues/16096
2,084,423,853
I_kwDOIPDwls58Pcit
16,096
Allow MessagesPlaceholder to include a maximum number of messages
{ "login": "DaveDeCaprio", "id": 841146, "node_id": "MDQ6VXNlcjg0MTE0Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/841146?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DaveDeCaprio", "html_url": "https://github.com/DaveDeCaprio", "followers_url": "https://api.github.com/users/DaveDeCaprio/followers", "following_url": "https://api.github.com/users/DaveDeCaprio/following{/other_user}", "gists_url": "https://api.github.com/users/DaveDeCaprio/gists{/gist_id}", "starred_url": "https://api.github.com/users/DaveDeCaprio/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DaveDeCaprio/subscriptions", "organizations_url": "https://api.github.com/users/DaveDeCaprio/orgs", "repos_url": "https://api.github.com/users/DaveDeCaprio/repos", "events_url": "https://api.github.com/users/DaveDeCaprio/events{/privacy}", "received_events_url": "https://api.github.com/users/DaveDeCaprio/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": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
1
"2024-01-16T16:48:18"
"2024-01-16T16:50:38"
null
CONTRIBUTOR
null
### Feature request When using `MessagesPlaceholder`, it always includes all messages. For some prompts I want the full message history, but for others, I want to limit it to just the most recent few messages. This can be accomplished with `ConversationBufferWindowMemory`, but that limits the memory storage which is used for all my LLM prompts in the chain. I currently accomplish this with a custom prompt generator, but it would be easier if there were an optional max_messages parameter to MessagesPlaceholder that limits the history to the given number of messages. ### Motivation I have chain with multiple LLM calls. For one, the routing prompt, it works best when passed the last few messages in the conversation. Right now I have to use a custom prompt generator to accomplish this. I'd really like to be able to just add a limit to MessagesPlaceholder. ### Your contribution I will submit a PR,
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16096/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16096/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16095
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16095/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16095/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16095/events
https://github.com/langchain-ai/langchain/issues/16095
2,084,420,246
I_kwDOIPDwls58PbqW
16,095
Embedding for NVIDIA NeMo
{ "login": "nvpranak", "id": 153478526, "node_id": "U_kgDOCSXlfg", "avatar_url": "https://avatars.githubusercontent.com/u/153478526?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nvpranak", "html_url": "https://github.com/nvpranak", "followers_url": "https://api.github.com/users/nvpranak/followers", "following_url": "https://api.github.com/users/nvpranak/following{/other_user}", "gists_url": "https://api.github.com/users/nvpranak/gists{/gist_id}", "starred_url": "https://api.github.com/users/nvpranak/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nvpranak/subscriptions", "organizations_url": "https://api.github.com/users/nvpranak/orgs", "repos_url": "https://api.github.com/users/nvpranak/repos", "events_url": "https://api.github.com/users/nvpranak/events{/privacy}", "received_events_url": "https://api.github.com/users/nvpranak/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
open
false
null
[]
null
1
"2024-01-16T16:46:07"
"2024-01-16T16:48:28"
null
NONE
null
### Feature request This feature request adds support for NVIDIA NeMo embedding models. ### Motivation I am constantly in need of custom embedding models like Embedding models from NeMo. ### Your contribution I will open a PR to add support for this.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16095/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16095/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16094
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16094/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16094/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16094/events
https://github.com/langchain-ai/langchain/pull/16094
2,084,397,078
PR_kwDOIPDwls5kN7Wn
16,094
docs: Updated SQLite example to use LCEL and SQLChatMessageHistory
{ "login": "DaveDeCaprio", "id": 841146, "node_id": "MDQ6VXNlcjg0MTE0Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/841146?v=4", "gravatar_id": "", "url": "https://api.github.com/users/DaveDeCaprio", "html_url": "https://github.com/DaveDeCaprio", "followers_url": "https://api.github.com/users/DaveDeCaprio/followers", "following_url": "https://api.github.com/users/DaveDeCaprio/following{/other_user}", "gists_url": "https://api.github.com/users/DaveDeCaprio/gists{/gist_id}", "starred_url": "https://api.github.com/users/DaveDeCaprio/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DaveDeCaprio/subscriptions", "organizations_url": "https://api.github.com/users/DaveDeCaprio/orgs", "repos_url": "https://api.github.com/users/DaveDeCaprio/repos", "events_url": "https://api.github.com/users/DaveDeCaprio/events{/privacy}", "received_events_url": "https://api.github.com/users/DaveDeCaprio/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": 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
4
"2024-01-16T16:33:20"
"2024-01-17T17:39:45"
"2024-01-17T17:39:45"
CONTRIBUTOR
null
- **Description:** Updated the SQLite example integration notebook to latest standards - **Issue:** [15664](https://github.com/langchain-ai/langchain/issues/15664) - **Dependencies:** None - **Twitter handle:** @davedecaprio
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16094/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16094/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16094", "html_url": "https://github.com/langchain-ai/langchain/pull/16094", "diff_url": "https://github.com/langchain-ai/langchain/pull/16094.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16094.patch", "merged_at": "2024-01-17T17:39:45" }
https://api.github.com/repos/langchain-ai/langchain/issues/16093
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16093/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16093/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16093/events
https://github.com/langchain-ai/langchain/pull/16093
2,084,382,343
PR_kwDOIPDwls5kN4Hw
16,093
Add unit test for overridden lc_namespace
{ "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": 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-16T16:25:00"
"2024-01-16T17:22:54"
"2024-01-16T17:22:53"
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/16093/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16093/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16093", "html_url": "https://github.com/langchain-ai/langchain/pull/16093", "diff_url": "https://github.com/langchain-ai/langchain/pull/16093.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16093.patch", "merged_at": "2024-01-16T17:22:53" }
https://api.github.com/repos/langchain-ai/langchain/issues/16092
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16092/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16092/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16092/events
https://github.com/langchain-ai/langchain/pull/16092
2,084,347,558
PR_kwDOIPDwls5kNwgQ
16,092
[community][document loaders][surrealdb] fix for asyncio
{ "login": "lalanikarim", "id": 1296705, "node_id": "MDQ6VXNlcjEyOTY3MDU=", "avatar_url": "https://avatars.githubusercontent.com/u/1296705?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lalanikarim", "html_url": "https://github.com/lalanikarim", "followers_url": "https://api.github.com/users/lalanikarim/followers", "following_url": "https://api.github.com/users/lalanikarim/following{/other_user}", "gists_url": "https://api.github.com/users/lalanikarim/gists{/gist_id}", "starred_url": "https://api.github.com/users/lalanikarim/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lalanikarim/subscriptions", "organizations_url": "https://api.github.com/users/lalanikarim/orgs", "repos_url": "https://api.github.com/users/lalanikarim/repos", "events_url": "https://api.github.com/users/lalanikarim/events{/privacy}", "received_events_url": "https://api.github.com/users/lalanikarim/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
open
false
null
[]
null
1
"2024-01-16T16:05:27"
"2024-01-16T16:05:41"
null
CONTRIBUTOR
null
Code fix for asyncio
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16092/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16092/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16092", "html_url": "https://github.com/langchain-ai/langchain/pull/16092", "diff_url": "https://github.com/langchain-ai/langchain/pull/16092.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16092.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16091
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16091/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16091/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16091/events
https://github.com/langchain-ai/langchain/pull/16091
2,084,340,284
PR_kwDOIPDwls5kNu7L
16,091
docs:Updated integration docs structure for llm/google_vertex_ai_palm
{ "login": "jzaldi", "id": 14315037, "node_id": "MDQ6VXNlcjE0MzE1MDM3", "avatar_url": "https://avatars.githubusercontent.com/u/14315037?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jzaldi", "html_url": "https://github.com/jzaldi", "followers_url": "https://api.github.com/users/jzaldi/followers", "following_url": "https://api.github.com/users/jzaldi/following{/other_user}", "gists_url": "https://api.github.com/users/jzaldi/gists{/gist_id}", "starred_url": "https://api.github.com/users/jzaldi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jzaldi/subscriptions", "organizations_url": "https://api.github.com/users/jzaldi/orgs", "repos_url": "https://api.github.com/users/jzaldi/repos", "events_url": "https://api.github.com/users/jzaldi/events{/privacy}", "received_events_url": "https://api.github.com/users/jzaldi/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": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
4
"2024-01-16T16:01:16"
"2024-01-17T20:08:48"
null
NONE
null
- **Description**: Updated doc for llm/google_vertex_ai_palm with new functions: `invoke`, `stream`... Changed structure of the document to match the required one. - **Issue**: #15664 - **Dependencies**: None - **Twitter handle**: None
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16091/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16091/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16091", "html_url": "https://github.com/langchain-ai/langchain/pull/16091", "diff_url": "https://github.com/langchain-ai/langchain/pull/16091.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16091.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16090
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16090/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16090/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16090/events
https://github.com/langchain-ai/langchain/pull/16090
2,084,215,587
PR_kwDOIPDwls5kNTFp
16,090
Update elasticsearch.ipynb
{ "login": "bustosjuan", "id": 19805929, "node_id": "MDQ6VXNlcjE5ODA1OTI5", "avatar_url": "https://avatars.githubusercontent.com/u/19805929?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bustosjuan", "html_url": "https://github.com/bustosjuan", "followers_url": "https://api.github.com/users/bustosjuan/followers", "following_url": "https://api.github.com/users/bustosjuan/following{/other_user}", "gists_url": "https://api.github.com/users/bustosjuan/gists{/gist_id}", "starred_url": "https://api.github.com/users/bustosjuan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bustosjuan/subscriptions", "organizations_url": "https://api.github.com/users/bustosjuan/orgs", "repos_url": "https://api.github.com/users/bustosjuan/repos", "events_url": "https://api.github.com/users/bustosjuan/events{/privacy}", "received_events_url": "https://api.github.com/users/bustosjuan/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "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": 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-16T15:08:19"
"2024-01-16T17:49:42"
"2024-01-16T17:49:42"
CONTRIBUTOR
null
Fixed a typo, the parameter used for the Elasticsearch API key was called api_key, but the parameter is called es_api_key. <!-- 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/16090/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16090/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16090", "html_url": "https://github.com/langchain-ai/langchain/pull/16090", "diff_url": "https://github.com/langchain-ai/langchain/pull/16090.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16090.patch", "merged_at": "2024-01-16T17:49:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/16087
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16087/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16087/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16087/events
https://github.com/langchain-ai/langchain/pull/16087
2,084,079,694
PR_kwDOIPDwls5kM0fm
16,087
community[patch]: release 0.0.13
{ "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-16T14:19:34"
"2024-01-16T14:25:29"
"2024-01-16T14:25:28"
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16087/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16087/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16087", "html_url": "https://github.com/langchain-ai/langchain/pull/16087", "diff_url": "https://github.com/langchain-ai/langchain/pull/16087.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16087.patch", "merged_at": "2024-01-16T14:25:28" }
https://api.github.com/repos/langchain-ai/langchain/issues/16085
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16085/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16085/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16085/events
https://github.com/langchain-ai/langchain/issues/16085
2,083,997,805
I_kwDOIPDwls58N0ht
16,085
PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH?
{ "login": "KaifAhmad1", "id": 98801504, "node_id": "U_kgDOBeOXYA", "avatar_url": "https://avatars.githubusercontent.com/u/98801504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/KaifAhmad1", "html_url": "https://github.com/KaifAhmad1", "followers_url": "https://api.github.com/users/KaifAhmad1/followers", "following_url": "https://api.github.com/users/KaifAhmad1/following{/other_user}", "gists_url": "https://api.github.com/users/KaifAhmad1/gists{/gist_id}", "starred_url": "https://api.github.com/users/KaifAhmad1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/KaifAhmad1/subscriptions", "organizations_url": "https://api.github.com/users/KaifAhmad1/orgs", "repos_url": "https://api.github.com/users/KaifAhmad1/repos", "events_url": "https://api.github.com/users/KaifAhmad1/events{/privacy}", "received_events_url": "https://api.github.com/users/KaifAhmad1/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
7
"2024-01-16T13:44:40"
"2024-01-17T08:56:38"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code ``` Python from langchain_community.document_loaders import DirectoryLoader directory = '/content/drive/MyDrive/History_QA_dataset' def load_docs(directory): return DirectoryLoader(directory).load() documents = load_docs(directory) ``` ### Description ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) [/usr/local/lib/python3.10/dist-packages/pdf2image/pdf2image.py](https://localhost:8080/#) in pdfinfo_from_path(pdf_path, userpw, ownerpw, poppler_path, rawdates, timeout, first_page, last_page) 580 env["LD_LIBRARY_PATH"] = poppler_path + ":" + env.get("LD_LIBRARY_PATH", "") --> 581 proc = Popen(command, env=env, stdout=PIPE, stderr=PIPE) 582 19 frames FileNotFoundError: [Errno 2] No such file or directory: 'pdfinfo' During handling of the above exception, another exception occurred: PDFInfoNotInstalledError Traceback (most recent call last) [/usr/local/lib/python3.10/dist-packages/pdf2image/pdf2image.py](https://localhost:8080/#) in pdfinfo_from_path(pdf_path, userpw, ownerpw, poppler_path, rawdates, timeout, first_page, last_page) 605 606 except OSError: --> 607 raise PDFInfoNotInstalledError( 608 "Unable to get page count. Is poppler installed and in PATH?" 609 ) PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH? ``` ### System Info Windows: 11 pip == 23.3.1 python == 3.10.10 langchain == 0.1.0 transformers == 4.36.2 sentence_transformers == 2.2.2 unstructured == 0.12.0 ### 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
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16085/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16085/timeline
null
reopened
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16081
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16081/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16081/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16081/events
https://github.com/langchain-ai/langchain/issues/16081
2,083,828,687
I_kwDOIPDwls58NLPP
16,081
ConversationalRetrievalChain with ChatGoogleGenerativeAI performs poorly
{ "login": "andrei-rusu", "id": 17093185, "node_id": "MDQ6VXNlcjE3MDkzMTg1", "avatar_url": "https://avatars.githubusercontent.com/u/17093185?v=4", "gravatar_id": "", "url": "https://api.github.com/users/andrei-rusu", "html_url": "https://github.com/andrei-rusu", "followers_url": "https://api.github.com/users/andrei-rusu/followers", "following_url": "https://api.github.com/users/andrei-rusu/following{/other_user}", "gists_url": "https://api.github.com/users/andrei-rusu/gists{/gist_id}", "starred_url": "https://api.github.com/users/andrei-rusu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andrei-rusu/subscriptions", "organizations_url": "https://api.github.com/users/andrei-rusu/orgs", "repos_url": "https://api.github.com/users/andrei-rusu/repos", "events_url": "https://api.github.com/users/andrei-rusu/events{/privacy}", "received_events_url": "https://api.github.com/users/andrei-rusu/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
2
"2024-01-16T12:21:54"
"2024-01-16T21:09:44"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code I have omitted as much as possible irrelevant portions: ```python def get_text(docs): if not docs: return None all_text = "" for doc in docs: reader = PdfReader(doc) for page in reader.pages: all_text += page.extract_text() return all_text def get_chunks(text): splitter = CharacterTextSplitter( separator='\n', chunk_size=1000, chunk_overlap=200, ) chunks = splitter.split_text(text) return chunks def get_vectorstore(chunks, model='models/embedding-001'): client = qdrant_client.QdrantClient( os.environ['QDRANT_HOST'], api_key=os.environ["QDRANT_API_KEY"], ) vectors_config = qdrant_client.http.models.VectorParams( size=768, distance=qdrant_client.http.models.Distance.COSINE ) client.recreate_collection( collection_name=os.environ["QDRANT_COLLECTION"], vectors_config=vectors_config ) embeddings = GoogleGenerativeAIEmbeddings(model=model) vectorstore = Qdrant( client=client, collection_name=os.environ["QDRANT_COLLECTION"], embeddings=embeddings, ) vectorstore.add_texts(chunks) return vectorstore def get_conversation_chain(vectorstore): llm = ChatGoogleGenerativeAI(model="gemini-pro", convert_system_message_to_human=True, temperature=0) memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True) chain = ConversationalRetrievalChain.from_llm( llm=llm, retriever=vectorstore.as_retriever(), memory=memory, ) return chain docs = st.file_uploader("Upload your documents:", accept_multiple_files=True, type=["pdf", "txt", "csv"]) user_input = "Some question" if st.button("Proess"): with st.spinner("Processing..."): text = get_text(docs) chunks = get_chunks(text) vectorstore = get_vectorstore(chunks) chain = get_conversation_chain(vectorstore) response = chain({'question': user_input}) ``` ### Description I'm trying to use ``ConversationalRetrievalChain`` with the ``ChatGoogleGenerativeAI`` integration. This seems to perform rather poorly in several scenarios involving PDF documents, with 2 issues frequently arising: 1. The model seems to default quite often to "I don't know" or "I cannot find the information in the context provided", despite the fact that the context seems to have the requested information within (so it's unlikely to be a problem with the vector DB). 2. Some of the LangChain-built system prompts (converted to human messages via the recently-added hyperparameter) which ask the model to translate something to the "original language" completely confuse it, making it output its response in a random language. I have tried using the prompt created by LangChain with the Google API directly, and the response is also bad. Example prompt created by LangChain from my conversation: ``"Human: Given the following conversation and a follow up question, rephrase the follow up question to be a standalone question, in its original language.\n\nChat History:\n\nHuman: what does the third amendment say?\nAssistant: I do not have access to the context necessary to answer that question.\nFollow Up Input: what does the second amendment say?\nStandalone question:"``. This outputs a message in a random language on both the Google Gemini API and LangChain. Example document: <a href="https://www.archives.gov/files/legislative/resources/education/bill-of-rights/images/handout-3.pdf"> Bill of rights</a>. Example questions: (see example prompt above). ### System Info langchain==0.0.351 langchain-community==0.0.4 langchain-core==0.1.1 langchain-experimental==0.0.47 langchain-google-genai==0.0.5 ### 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
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16081/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16081/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16079
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16079/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16079/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16079/events
https://github.com/langchain-ai/langchain/issues/16079
2,083,642,796
I_kwDOIPDwls58Md2s
16,079
Make research assistant template work with OpenAI models on AzureAI
{ "login": "LarsAC", "id": 84110, "node_id": "MDQ6VXNlcjg0MTEw", "avatar_url": "https://avatars.githubusercontent.com/u/84110?v=4", "gravatar_id": "", "url": "https://api.github.com/users/LarsAC", "html_url": "https://github.com/LarsAC", "followers_url": "https://api.github.com/users/LarsAC/followers", "following_url": "https://api.github.com/users/LarsAC/following{/other_user}", "gists_url": "https://api.github.com/users/LarsAC/gists{/gist_id}", "starred_url": "https://api.github.com/users/LarsAC/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LarsAC/subscriptions", "organizations_url": "https://api.github.com/users/LarsAC/orgs", "repos_url": "https://api.github.com/users/LarsAC/repos", "events_url": "https://api.github.com/users/LarsAC/events{/privacy}", "received_events_url": "https://api.github.com/users/LarsAC/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-16T10:56:49"
"2024-01-16T11:05:41"
null
CONTRIBUTOR
null
### Feature request I would like to use the research assistant template with OpenAI models on Azure. Can this be integrated into the template somehow ? I can of course modify the code post template expansion (ChatOpenAI -> AzureChatOpenAI etc.), but that would be lost upon changes / enhancements to the templates. ### Motivation Cannot use OpenAI models directly due to company policy. ### Your contribution Happy to spend some effort if someone can point me to a good way of adding e.g. a switch to the template (don't want to duplicate the whole template).
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16079/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16079/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16077
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16077/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16077/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16077/events
https://github.com/langchain-ai/langchain/pull/16077
2,083,520,647
PR_kwDOIPDwls5kK31p
16,077
Add doc for AstraDB self retriever
{ "login": "cbornet", "id": 11633333, "node_id": "MDQ6VXNlcjExNjMzMzMz", "avatar_url": "https://avatars.githubusercontent.com/u/11633333?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cbornet", "html_url": "https://github.com/cbornet", "followers_url": "https://api.github.com/users/cbornet/followers", "following_url": "https://api.github.com/users/cbornet/following{/other_user}", "gists_url": "https://api.github.com/users/cbornet/gists{/gist_id}", "starred_url": "https://api.github.com/users/cbornet/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cbornet/subscriptions", "organizations_url": "https://api.github.com/users/cbornet/orgs", "repos_url": "https://api.github.com/users/cbornet/repos", "events_url": "https://api.github.com/users/cbornet/events{/privacy}", "received_events_url": "https://api.github.com/users/cbornet/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
"2024-01-16T10:04:58"
"2024-01-16T20:37:57"
"2024-01-16T17:50:31"
CONTRIBUTOR
null
Preview: https://langchain-git-fork-cbornet-astra-self-retriever-docs-langchain.vercel.app/docs/integrations/retrievers/self_query/astradb
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16077/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16077/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16077", "html_url": "https://github.com/langchain-ai/langchain/pull/16077", "diff_url": "https://github.com/langchain-ai/langchain/pull/16077.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16077.patch", "merged_at": "2024-01-16T17:50:31" }
https://api.github.com/repos/langchain-ai/langchain/issues/16076
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16076/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16076/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16076/events
https://github.com/langchain-ai/langchain/pull/16076
2,083,422,944
PR_kwDOIPDwls5kKh_f
16,076
langchain: support more comparators in Milvus self-querying retriever
{ "login": "zc277584121", "id": 17022025, "node_id": "MDQ6VXNlcjE3MDIyMDI1", "avatar_url": "https://avatars.githubusercontent.com/u/17022025?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zc277584121", "html_url": "https://github.com/zc277584121", "followers_url": "https://api.github.com/users/zc277584121/followers", "following_url": "https://api.github.com/users/zc277584121/following{/other_user}", "gists_url": "https://api.github.com/users/zc277584121/gists{/gist_id}", "starred_url": "https://api.github.com/users/zc277584121/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zc277584121/subscriptions", "organizations_url": "https://api.github.com/users/zc277584121/orgs", "repos_url": "https://api.github.com/users/zc277584121/repos", "events_url": "https://api.github.com/users/zc277584121/events{/privacy}", "received_events_url": "https://api.github.com/users/zc277584121/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
4
"2024-01-16T09:24:31"
"2024-01-17T17:41:24"
"2024-01-17T17:41:24"
CONTRIBUTOR
null
- **Description:** Support IN and LIKE comparators in Milvus self-querying retriever, based on [Boolean Expression Rules](https://milvus.io/docs/boolean.md) - **Issue:** No - **Dependencies:** No - **Twitter handle:** No
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16076/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16076/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16076", "html_url": "https://github.com/langchain-ai/langchain/pull/16076", "diff_url": "https://github.com/langchain-ai/langchain/pull/16076.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16076.patch", "merged_at": "2024-01-17T17:41:24" }
https://api.github.com/repos/langchain-ai/langchain/issues/16074
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16074/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16074/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16074/events
https://github.com/langchain-ai/langchain/issues/16074
2,083,390,517
I_kwDOIPDwls58LgQ1
16,074
Why can't the response refer to the vector data of the historical conversation in test116 for achieving long-term memory in replies?
{ "login": "yen111445", "id": 103471919, "node_id": "U_kgDOBirbLw", "avatar_url": "https://avatars.githubusercontent.com/u/103471919?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yen111445", "html_url": "https://github.com/yen111445", "followers_url": "https://api.github.com/users/yen111445/followers", "following_url": "https://api.github.com/users/yen111445/following{/other_user}", "gists_url": "https://api.github.com/users/yen111445/gists{/gist_id}", "starred_url": "https://api.github.com/users/yen111445/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yen111445/subscriptions", "organizations_url": "https://api.github.com/users/yen111445/orgs", "repos_url": "https://api.github.com/users/yen111445/repos", "events_url": "https://api.github.com/users/yen111445/events{/privacy}", "received_events_url": "https://api.github.com/users/yen111445/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
1
"2024-01-16T09:10:31"
"2024-01-16T09:24:27"
null
NONE
null
### Issue with current documentation: import os from docarray.index.backends.qdrant import qdrant_client from langchain.schema import Document from langchain_community.embeddings import HuggingFaceEmbeddings from langchain_community.vectorstores import Qdrant from qdrant_client import QdrantClient from langchain.chains.query_constructor.base import AttributeInfo from langchain.retrievers.self_query.base import SelfQueryRetriever from langchain.chat_models import ChatOpenAI from langchain.chains import ConversationChain from langchain.memory import ConversationBufferMemory os.environ['OPENAI_API_KEY'] = "mykey" embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2") client = QdrantClient(host="192.168.0.22", port=6333) conversation_doc = Document( id="1", page_content="openhistory", metadata={ "timestamp": "2023-01-16", "user": "Ai", }, ) print(conversation_doc) vectorstore = Qdrant.from_documents( [conversation_doc], client=client, embedding=embeddings, location=":memory:", collection_name="test116", ) # client.create_collection( # collection_name="test116", # vectors_config=models.VectorParams( # distance=models.Distance.COSINE, # size=384), # optimizers_config=models.OptimizersConfigDiff(memmap_threshold=20000), # hnsw_config=models.HnswConfigDiff(on_disk=True, m=16, ef_construct=100) # ) print("找到ㄉtable:") collections = client.get_collections() for collection in collections: print(collection) metadata_field_info = [ AttributeInfo( name="openhistory", description="talk_history_embeddings", type="string or list[string]", ) ] document_content_description = "chat_history" llm = ChatOpenAI( temperature=0.7, model="gpt-3.5-turbo", max_tokens=100 ) retriever = SelfQueryRetriever.from_llm( llm, vectorstore, document_content_description, metadata_field_info, verbose=True ) memory = ConversationBufferMemory() conversation = ConversationChain(llm=llm, memory=memory, verbose=True, ) while True: chat_history = memory.load_memory_variables({}) client.get_collection(collection_name="test116") print("成功載入history") question = input('冒險者:') response = conversation.predict(input=f"Q: {question}\nA:") print(response) response_str = str(response[0]) response_vector = embeddings.embed_query(response_str)[0] conversation_doc = Document( id="1", page_content=response, metadata={ "user": f"{question}", "response_vector": response_vector }, ) vectorstore.add_documents([conversation_doc]) print(conversation_doc) if question.lower() == 'bye': break ### Idea or request for content: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16074/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16074/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16073
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16073/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16073/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16073/events
https://github.com/langchain-ai/langchain/issues/16073
2,083,177,951
I_kwDOIPDwls58KsXf
16,073
Input to ChatPromptTemplate is missing variables {'input', 'agent_scratchpad'}. Expected: ['agent_scratchpad', 'input']
{ "login": "glejdis", "id": 53597226, "node_id": "MDQ6VXNlcjUzNTk3MjI2", "avatar_url": "https://avatars.githubusercontent.com/u/53597226?v=4", "gravatar_id": "", "url": "https://api.github.com/users/glejdis", "html_url": "https://github.com/glejdis", "followers_url": "https://api.github.com/users/glejdis/followers", "following_url": "https://api.github.com/users/glejdis/following{/other_user}", "gists_url": "https://api.github.com/users/glejdis/gists{/gist_id}", "starred_url": "https://api.github.com/users/glejdis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/glejdis/subscriptions", "organizations_url": "https://api.github.com/users/glejdis/orgs", "repos_url": "https://api.github.com/users/glejdis/repos", "events_url": "https://api.github.com/users/glejdis/events{/privacy}", "received_events_url": "https://api.github.com/users/glejdis/received_events", "type": "User", "site_admin": false }
[ { "id": 5496183033, "node_id": "LA_kwDOIPDwls8AAAABR5kY-Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20weaviate", "name": "integration: weaviate", "color": "9B0BAF", "default": false, "description": "" }, { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 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-16T07:31:25"
"2024-01-17T01:06:37"
"2024-01-17T01:06:36"
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code This code gives me an weird error: ``` from langchain_core.output_parsers import StrOutputParser from langchain_core.runnables import RunnableLambda, RunnablePassthrough def create_weaviate_new_RAG(client, embeddings, llm, class_name_rich, class_properties_rich, class_text_key): vector_store = Weaviate(client=client, index_name=class_name_rich, text_key=class_text_key, embedding=embeddings, attributes=class_properties_rich, #by_text=False, ) retriever=vector_store.as_retriever( search_type= "mmr", search_kwargs={ "k": 4, "fetch_k": 20, } ) prompt = ChatPromptTemplate.from_messages( [ ("system", "You are a helpful assistant who retrieves information from documents"), ("user", "{input}"), MessagesPlaceholder(variable_name="agent_scratchpad"), ] ) rag_pipe = ( {"context": retriever, "question": RunnablePassthrough()} | prompt | llm | StrOutputParser() ) return rag_pipe rag_pipe = create_weaviate_new_RAG(client, embeddings, llm_chat, class_name, ["chunk_id", "doc_name", "doc_path"], "chunk_text") text = "what is ai policy?" rag_pipe.invoke(text) ``` Gives me this error: ``` "Input to ChatPromptTemplate is missing variables {'input', 'agent_scratchpad'}. Expected: ['agent_scratchpad', 'input'] Received: ['context', 'question']" ``` I am using openai==1.7.0 and langchain==0.1.0 This inly started the appear after adding the new rag code from langchain. Can someone help? Thank you :) ### Description I expect the function to just run smoothly. Mot of the code is copied from the langchain documentation. ### System Info openai==1.7.0 and langchain==0.1.0 ### Related Components - [X] LLMs/Chat Models - [X] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16073/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16073/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16072
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16072/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16072/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16072/events
https://github.com/langchain-ai/langchain/pull/16072
2,083,164,926
PR_kwDOIPDwls5kJolF
16,072
DOCS: Fix StreamlitChatMessageHistory docs to latest API
{ "login": "sfc-gh-jcarroll", "id": 116604821, "node_id": "U_kgDOBvM_lQ", "avatar_url": "https://avatars.githubusercontent.com/u/116604821?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sfc-gh-jcarroll", "html_url": "https://github.com/sfc-gh-jcarroll", "followers_url": "https://api.github.com/users/sfc-gh-jcarroll/followers", "following_url": "https://api.github.com/users/sfc-gh-jcarroll/following{/other_user}", "gists_url": "https://api.github.com/users/sfc-gh-jcarroll/gists{/gist_id}", "starred_url": "https://api.github.com/users/sfc-gh-jcarroll/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sfc-gh-jcarroll/subscriptions", "organizations_url": "https://api.github.com/users/sfc-gh-jcarroll/orgs", "repos_url": "https://api.github.com/users/sfc-gh-jcarroll/repos", "events_url": "https://api.github.com/users/sfc-gh-jcarroll/events{/privacy}", "received_events_url": "https://api.github.com/users/sfc-gh-jcarroll/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 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-16T07:20:39"
"2024-01-17T17:42:11"
"2024-01-17T17:42:10"
CONTRIBUTOR
null
- **Description:** Update [this page](https://python.langchain.com/docs/integrations/memory/streamlit_chat_message_history) to use the latest API - **Issue:** https://github.com/langchain-ai/langchain/issues/13995 - **Dependencies:** None - **Twitter handle:** @OhSynap
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16072/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16072/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16072", "html_url": "https://github.com/langchain-ai/langchain/pull/16072", "diff_url": "https://github.com/langchain-ai/langchain/pull/16072.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16072.patch", "merged_at": "2024-01-17T17:42:10" }
https://api.github.com/repos/langchain-ai/langchain/issues/16070
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16070/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16070/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16070/events
https://github.com/langchain-ai/langchain/pull/16070
2,083,142,967
PR_kwDOIPDwls5kJj3F
16,070
[fix] ollama astream
{ "login": "Fei-Wang", "id": 11441526, "node_id": "MDQ6VXNlcjExNDQxNTI2", "avatar_url": "https://avatars.githubusercontent.com/u/11441526?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Fei-Wang", "html_url": "https://github.com/Fei-Wang", "followers_url": "https://api.github.com/users/Fei-Wang/followers", "following_url": "https://api.github.com/users/Fei-Wang/following{/other_user}", "gists_url": "https://api.github.com/users/Fei-Wang/gists{/gist_id}", "starred_url": "https://api.github.com/users/Fei-Wang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Fei-Wang/subscriptions", "organizations_url": "https://api.github.com/users/Fei-Wang/orgs", "repos_url": "https://api.github.com/users/Fei-Wang/repos", "events_url": "https://api.github.com/users/Fei-Wang/events{/privacy}", "received_events_url": "https://api.github.com/users/Fei-Wang/received_events", "type": "User", "site_admin": false }
[ { "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
2
"2024-01-16T07:02:59"
"2024-01-18T01:06:36"
"2024-01-17T17:42:41"
CONTRIBUTOR
null
Update ollama.py <!-- 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/16070/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16070/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16070", "html_url": "https://github.com/langchain-ai/langchain/pull/16070", "diff_url": "https://github.com/langchain-ai/langchain/pull/16070.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16070.patch", "merged_at": "2024-01-17T17:42:41" }
https://api.github.com/repos/langchain-ai/langchain/issues/16069
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16069/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16069/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16069/events
https://github.com/langchain-ai/langchain/issues/16069
2,083,138,870
I_kwDOIPDwls58Ki02
16,069
Issue will function calling using Langchain, incase of OpenAI it works fine
{ "login": "shrimad-mishra-cognoai", "id": 97015370, "node_id": "U_kgDOBchWSg", "avatar_url": "https://avatars.githubusercontent.com/u/97015370?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shrimad-mishra-cognoai", "html_url": "https://github.com/shrimad-mishra-cognoai", "followers_url": "https://api.github.com/users/shrimad-mishra-cognoai/followers", "following_url": "https://api.github.com/users/shrimad-mishra-cognoai/following{/other_user}", "gists_url": "https://api.github.com/users/shrimad-mishra-cognoai/gists{/gist_id}", "starred_url": "https://api.github.com/users/shrimad-mishra-cognoai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shrimad-mishra-cognoai/subscriptions", "organizations_url": "https://api.github.com/users/shrimad-mishra-cognoai/orgs", "repos_url": "https://api.github.com/users/shrimad-mishra-cognoai/repos", "events_url": "https://api.github.com/users/shrimad-mishra-cognoai/events{/privacy}", "received_events_url": "https://api.github.com/users/shrimad-mishra-cognoai/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
2
"2024-01-16T06:59:33"
"2024-01-16T09:38:20"
null
NONE
null
### Checked other resources - [x] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code ` llm = AzureChatOpenAI( openai_api_version=OPENAI_API_VERSION, azure_deployment=OPENAI_DEPLOYMENT_NAME, n=1, temperature=0.0, model_kwargs={"presence_penalty": -2} ) from langchain.prompts import PromptTemplate from langchain.chains.openai_functions import create_openai_fn_chain functions = [ { "name": "get_pizza_info", "description": "Get name and price of a pizza of the restaurant", "parameters": { "type": "object", "properties": { "pizza_name": { "type": "string", "description": "The name of the pizza, e.g. Hawaii", }, }, "required": ["pizza_name"], }, }, { "name": "place_order", "description": "Place an order for a pizza from the restaurant", "parameters": { "type": "object", "properties": { "pizza_name": { "type": "string", "description": "The name of the pizza you want to order, e.g. Margherita", }, "quantity": { "type": "integer", "description": "The number of pizzas you want to order", "minimum": 1 }, "address": { "type": "string", "description": "The address where the pizza should be delivered", }, }, "required": ["pizza_name", "quantity", "address"], }, } ] template = """You are an AI chatbot having a conversation with a human. Human: {human_input} AI: """ prompt = PromptTemplate(input_variables=["human_input"], template=template) chain = create_openai_fn_chain(functions, llm, prompt) while True: user_input = input("Enter you query -------> ") if not user_input: break print(chain.invoke(user_input)) ` ### Description I am using openai 0.28.1 and langchain latest version. Whenever the user asks a general query like "Hi", or "I need help" the chain results in an error. But the same thing is working in the case of OpenAI implementation Error:- langchain_core.exceptions.OutputParserException: Could not parse function call: 'function_call' Can anyone suggests better way or any clue to fix this problem ### System Info python 3.9 openai 0.28.1 langchain 0.1.0 ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16069/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16069/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16068
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16068/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16068/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16068/events
https://github.com/langchain-ai/langchain/issues/16068
2,083,083,972
I_kwDOIPDwls58KVbE
16,068
Created a RAG with history it's working but not following the prompt instructions properly
{ "login": "Bijoy99roy", "id": 51710621, "node_id": "MDQ6VXNlcjUxNzEwNjIx", "avatar_url": "https://avatars.githubusercontent.com/u/51710621?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Bijoy99roy", "html_url": "https://github.com/Bijoy99roy", "followers_url": "https://api.github.com/users/Bijoy99roy/followers", "following_url": "https://api.github.com/users/Bijoy99roy/following{/other_user}", "gists_url": "https://api.github.com/users/Bijoy99roy/gists{/gist_id}", "starred_url": "https://api.github.com/users/Bijoy99roy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Bijoy99roy/subscriptions", "organizations_url": "https://api.github.com/users/Bijoy99roy/orgs", "repos_url": "https://api.github.com/users/Bijoy99roy/repos", "events_url": "https://api.github.com/users/Bijoy99roy/events{/privacy}", "received_events_url": "https://api.github.com/users/Bijoy99roy/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-16T06:08:41"
"2024-01-16T07:08:26"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code ```bash qa_system_prompt = """Note\ Make sure to address the user's queries politely.\ Compose a comprehensive reply to the query using the search results given.\ 1.Respond to the questions based on the given context. \ 2.please refrain from inventing responses.\ 3.Use as much detail when as possible when responding. Answer step-by-step.\ 4.Locate the answer within the given context.\ 5.Keep the response within 3000 tokens.\ 6. If a user asks the questions like please summarise the above, then you should summarize the previous answer you provided which can be fetched from the history\ 7. If the user queries based on its previous questions please surround your answers based on the history of previous questions\ IMPORTANT NOTE: Don't answer question outside of provided context and kindly respond with "I apologize, but that falls outside of my current scope of knowledge."\ Use the following context to answer the question:\ ------ CONTEXT: {context} """ ``` ### Description Using this prompt, this was working fine in v0.0.336 but after i started using this new v0.1.0 code the no matter how i write the prompt it's not following the instruction mentioned below: IMPORTANT NOTE: Don't answer question outside of provided context and kindly respond with "I apologize, but that falls outside of my current scope of knowledge. It's working for few questions and not working for others. ### System Info %pip install --upgrade langchain langchain-community langchainhub langchain-openai chromadb bs4 python 3.9 model: gpt-3.5-turbo-16k ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16068/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16068/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16067
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16067/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16067/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16067/events
https://github.com/langchain-ai/langchain/issues/16067
2,083,056,200
I_kwDOIPDwls58KOpI
16,067
how to save plots/graphs when using PythonREPLTool in langchain experimental
{ "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": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
9
"2024-01-16T05:39:37"
"2024-01-17T12:32:21"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True, return_direct=True) tools = [PythonREPLTool()] description = ( "Useful for when you need to answer questions about employess. " "You must not input SQL. Use this more than the Python tool if the question " "is about employee data, like 'how many employees are there?' or 'count the number of department'" ) repl_tool = Tool( name="Data", # We'll just call it 'Data' func=db_chain.run, description=description, ) tools.append(repl_tool) prefix = "Fulfill the following request as best you can. You have access to the following tools:" # Remind the agent of the Data tool, and what types of input it expects suffix = ( "Begin! When looking for data, do not write a SQL query. " "Pass the relevant portion of the request directly to the Data tool in its entirety." "\n\n" "Request: {input}\n" "{agent_scratchpad}" ) # The agent's prompt is built with the list of tools, prefix, suffix, and input variables prompt = ZeroShotAgent.create_prompt( tools, prefix=prefix, suffix=suffix, input_variables=["input", "agent_scratchpad"] ) # Set up the llm_chain llm_chain = LLMChain(llm=llm, prompt=prompt) # Specify the tools the agent may use tool_names = [tool.name for tool in tools] agent = ZeroShotAgent(llm_chain=llm_chain, allowed_tools=tool_names) # Create the AgentExecutor agent_executor = AgentExecutor.from_agent_and_tools( agent=agent, tools=tools, verbose=True, handle_parsing_errors=True ) answer = agent_executor.run(question) print(answer) ### Description using langchain experimental, i'm trying to interact with sql db, where i should also be able to plot the graph using natural language. im using the following above method using python repl tool, its displaying the graph but how to save the graph, like in create_pandas_dataframe_agent in langchain agent where we have a save_chatrs=True function. and also, python repl tool in python or pandas ai which one is the best method to generate graphs/plots in natural language ### System Info python: 3.11 langchain: latest version ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [X] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16067/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16067/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16066
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16066/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16066/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16066/events
https://github.com/langchain-ai/langchain/issues/16066
2,083,029,208
I_kwDOIPDwls58KIDY
16,066
500 Internal Error when using google genai langchain with agents
{ "login": "refugedesigns", "id": 70457144, "node_id": "MDQ6VXNlcjcwNDU3MTQ0", "avatar_url": "https://avatars.githubusercontent.com/u/70457144?v=4", "gravatar_id": "", "url": "https://api.github.com/users/refugedesigns", "html_url": "https://github.com/refugedesigns", "followers_url": "https://api.github.com/users/refugedesigns/followers", "following_url": "https://api.github.com/users/refugedesigns/following{/other_user}", "gists_url": "https://api.github.com/users/refugedesigns/gists{/gist_id}", "starred_url": "https://api.github.com/users/refugedesigns/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/refugedesigns/subscriptions", "organizations_url": "https://api.github.com/users/refugedesigns/orgs", "repos_url": "https://api.github.com/users/refugedesigns/repos", "events_url": "https://api.github.com/users/refugedesigns/events{/privacy}", "received_events_url": "https://api.github.com/users/refugedesigns/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
2
"2024-01-16T05:06:54"
"2024-01-17T08:09:14"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code ```python from langchain_google_genai import ChatGoogleGenerativeAI from langchain.agents import load_tools, initialize_agent, AgentType, Agent from dotenv import dotenv_values config = dotenv_values(".env") GOOGLE_API_KEY = config["GOOGLE_API_KEY"] model = ChatGoogleGenerativeAI( model="gemini-pro", google_api_key=GOOGLE_API_KEY, temperature=0.8, max_tokens=32000, top_p=0.9, top_k=1) tools = load_tools(["serpapi", "wikipedia"], llm=model) tool_names = [tool.name for tool in tools] FORMAT_INSTRUCTIONS=""" The context includes relevant information you can use to generate a an email response: {context} Here is the students email message: {message} To use a tools, please use the following format: ''' Thought: Do I need to use a tool? Yes Action: the action to take. Action Input: the input to the action Observation: the result of the action Final Answer: the final answer ''' Write a professional reply to {sender_name} answering his questions. Do not include anything that is not relevant to Email sent by {sender_name}. Always represent ... and address the student by his name. If the context does not contain relevant information, try using the tools to search for answers to write the response. Don't try searching anything in the context. Only use it as source of information to write the response. If you don't find anything relevent in your search or in the context, just write the response with your best guess. """ PREFIX = '''You are an email assistant with more than 10 years of experience working at ....''' SUFFIX=''' Begin! Instructions: {input} {agent_scratchpad} ''' prompt = PromptTemplate( template=FORMAT_INSTRUCTIONS, input_variables=["context", "sender_name", "message"], ) agent = initialize_agent( tools, llm=model, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True, handle_parsing_errors=True, agent_kwargs={ "suffix": SUFFIX, "prefix": PREFIX } ) result = agent(prompt.format(context=retriever, sender_name=sender_name, message=message)) print(result["output"]) ``` ### Description I am trying to use the langchain-google-genai library to build an agent to answer emails I expert to see a successful agent execution which I saw from the start However, I am getting an error: ``` Retrying langchain_google_genai.chat_models._chat_with_retry.<locals>._chat_with_retry in 2.0 seconds as it raised InternalServerError: 500 An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting. Retrying langchain_google_genai.chat_models._chat_with_retry.<locals>._chat_with_retry in 4.0 seconds as it raised InternalServerError: 500 An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting. Retrying langchain_google_genai.chat_models._chat_with_retry.<locals>._chat_with_retry in 8.0 seconds as it raised InternalServerError: 500 An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting. Retrying langchain_google_genai.chat_models._chat_with_retry.<locals>._chat_with_retry in 16.0 seconds as it raised InternalServerError: 500 An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting. ``` ### System Info ``` langchain==0.1.0 langchain-community==0.0.12 langchain-core==0.1.10 langchain-google-genai==0.0.6 ``` ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16066/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16066/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16064
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16064/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16064/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16064/events
https://github.com/langchain-ai/langchain/pull/16064
2,082,976,284
PR_kwDOIPDwls5kJAyX
16,064
updated `chains` imports
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "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": 6077048506, "node_id": "LA_kwDOIPDwls8AAAABajhmug", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20elasticsearch", "name": "integration: elasticsearch", "color": "DAB5EC", "default": false, "description": "Related to elastic/elasticsearch integrations" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
"2024-01-16T03:58:19"
"2024-01-17T18:32:23"
"2024-01-17T17:58:42"
COLLABORATOR
null
Updated imports into `langchain` to `core` where it is possible
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16064/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16064/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16064", "html_url": "https://github.com/langchain-ai/langchain/pull/16064", "diff_url": "https://github.com/langchain-ai/langchain/pull/16064.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16064.patch", "merged_at": "2024-01-17T17:58:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/16063
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16063/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16063/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16063/events
https://github.com/langchain-ai/langchain/issues/16063
2,082,970,379
I_kwDOIPDwls58J5sL
16,063
multiple prompt in a single 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": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
3
"2024-01-16T03:49:37"
"2024-01-16T04:06:07"
null
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code ```python llm = VertexAI(model_name='gemini-pro', max_output_tokens=512, temperature=0.2) data = loader.load() embeddings = VertexAIEmbeddings(model_name='textembedding-gecko@003') vectorstore = Chroma.from_documents(data, embeddings) retriever = vectorstore.as_retriever() template = """ Use the following pieces of context to answer the question at the end. - If you think you need more information to find proper answer, ask user to clarify. - If you cannot find a proper answer from the reference, just say we don't have a data from the reference. Use three sentences maximum and keep the answer as concise as possible. Context: {context} Question: {question} Helpful Answer: **Resource:** [reference source name] """ template2 = """ If the user query lacks of below data, please ask user to get additional data. - data1 - data2 If the user query has enough data, response with the context directly. Context: {context} Question: {question} Answer: """ rag_prompt_custom = ChatPromptTemplate.from_template(template) multi_turn_prompt_custom = ChatPromptTemplate.from_template(template2) rag_chain = ( {"context": retriever, "question": RunnablePassthrough()} | rag_prompt_custom | llm | StrOutputParser() ) response = rag_chain.invoke(message) print(response) ``` ### Description I would like to have two prompt based chat in a single RAG chain. Below is what I am thinking about. 1. based on query and context information from the document, fine the proper answer. 2. with the generated (found) answer and the user's prompt, consider if the user's prompt lacks of data. If it lacks of data, ask user to get addiitonal data. And if there is enough data to generate and find the answer from the document, response found answer directly. I have no idea how to make it merged. ### System Info langchain==0.0.352 ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16063/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16063/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16062
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16062/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16062/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16062/events
https://github.com/langchain-ai/langchain/pull/16062
2,082,957,176
PR_kwDOIPDwls5kI81s
16,062
updated `retrievers` imports
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
"2024-01-16T03:29:59"
"2024-01-17T18:32:47"
"2024-01-17T18:01:06"
COLLABORATOR
null
Updated imports into `langchain` to `core` where it is possible
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16062/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16062/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16062", "html_url": "https://github.com/langchain-ai/langchain/pull/16062", "diff_url": "https://github.com/langchain-ai/langchain/pull/16062.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16062.patch", "merged_at": "2024-01-17T18:01:06" }
https://api.github.com/repos/langchain-ai/langchain/issues/16061
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16061/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16061/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16061/events
https://github.com/langchain-ai/langchain/pull/16061
2,082,951,090
PR_kwDOIPDwls5kI7kb
16,061
updated `agents` imports
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
"2024-01-16T03:20:47"
"2024-01-17T18:33:20"
"2024-01-17T18:02:29"
COLLABORATOR
null
Updated imports into `langchain` to `core` where it is possible
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16061/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16061/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16061", "html_url": "https://github.com/langchain-ai/langchain/pull/16061", "diff_url": "https://github.com/langchain-ai/langchain/pull/16061.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16061.patch", "merged_at": "2024-01-17T18:02:29" }
https://api.github.com/repos/langchain-ai/langchain/issues/16060
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16060/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16060/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16060/events
https://github.com/langchain-ai/langchain/pull/16060
2,082,930,082
PR_kwDOIPDwls5kI3RW
16,060
updated imports for `langchain.callbacks`
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
"2024-01-16T02:50:55"
"2024-01-17T18:34:01"
"2024-01-17T18:07:00"
COLLABORATOR
null
Updated imports from 'langchain` to `core` where it is possible
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16060/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16060/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16060", "html_url": "https://github.com/langchain-ai/langchain/pull/16060", "diff_url": "https://github.com/langchain-ai/langchain/pull/16060.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16060.patch", "merged_at": "2024-01-17T18:07:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/16059
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16059/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16059/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16059/events
https://github.com/langchain-ai/langchain/pull/16059
2,082,922,007
PR_kwDOIPDwls5kI1m9
16,059
updated imports for `output_parsers`
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 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
2
"2024-01-16T02:39:08"
"2024-01-17T18:32:59"
"2024-01-17T18:02:12"
COLLABORATOR
null
Updated imports from `langchain` to `core` where it is possible
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16059/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16059/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16059", "html_url": "https://github.com/langchain-ai/langchain/pull/16059", "diff_url": "https://github.com/langchain-ai/langchain/pull/16059.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16059.patch", "merged_at": "2024-01-17T18:02:12" }
https://api.github.com/repos/langchain-ai/langchain/issues/16058
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16058/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16058/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16058/events
https://github.com/langchain-ai/langchain/pull/16058
2,082,921,681
PR_kwDOIPDwls5kI1ij
16,058
doc bug fix
{ "login": "Bigtable123", "id": 63093159, "node_id": "MDQ6VXNlcjYzMDkzMTU5", "avatar_url": "https://avatars.githubusercontent.com/u/63093159?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Bigtable123", "html_url": "https://github.com/Bigtable123", "followers_url": "https://api.github.com/users/Bigtable123/followers", "following_url": "https://api.github.com/users/Bigtable123/following{/other_user}", "gists_url": "https://api.github.com/users/Bigtable123/gists{/gist_id}", "starred_url": "https://api.github.com/users/Bigtable123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Bigtable123/subscriptions", "organizations_url": "https://api.github.com/users/Bigtable123/orgs", "repos_url": "https://api.github.com/users/Bigtable123/repos", "events_url": "https://api.github.com/users/Bigtable123/events{/privacy}", "received_events_url": "https://api.github.com/users/Bigtable123/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." } ]
open
false
null
[]
null
1
"2024-01-16T02:38:37"
"2024-01-16T02:45:00"
null
CONTRIBUTOR
null
- **Description:** I found some problems in the doc of retry parser: 1. A redundant prompt template 2. The `bad_response` before modification will not raise an `OutputParserException` but a `ValidationError`. Since `OutputFixingParser` and `RetryWithErrorOutputParser` will pass in error by catching `OutputParserException`, if we add double quotes to the content of `bad_response`, it will raise an `OutputParserException`, then we could run the rest of code. 3. Add "Do not forget to use double quotes" to the prompt to improve the success rate of model correction. - **Issue:** N/A - **Dependencies:** N/A
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16058/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16058/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16058", "html_url": "https://github.com/langchain-ai/langchain/pull/16058", "diff_url": "https://github.com/langchain-ai/langchain/pull/16058.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16058.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16057
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16057/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16057/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16057/events
https://github.com/langchain-ai/langchain/pull/16057
2,082,874,804
PR_kwDOIPDwls5kIr6e
16,057
refactored `output_parsers.ernie_functions`
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
"2024-01-16T01:30:33"
"2024-01-17T18:33:31"
"2024-01-17T18:06:18"
COLLABORATOR
null
`output_parsers.ernie_functions` moved into `community`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16057/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16057/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16057", "html_url": "https://github.com/langchain-ai/langchain/pull/16057", "diff_url": "https://github.com/langchain-ai/langchain/pull/16057.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16057.patch", "merged_at": "2024-01-17T18:06:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/16056
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16056/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16056/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16056/events
https://github.com/langchain-ai/langchain/issues/16056
2,082,852,718
I_kwDOIPDwls58Jc9u
16,056
inconsistent performance of langchain rag
{ "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": 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
3
"2024-01-16T00:53:43"
"2024-01-16T03:40:22"
"2024-01-16T03:40:22"
NONE
null
### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. ### Example Code ```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) ``` ### Description I tried to make the rag chain with the prompt. In here, I found that the tasks mentioned in the prompt are sometimes followed, but sometimes not. I would like to make the chain consistent for the user queries. Is there way to do this? ### System Info langchain==0.0.352 ### Related Components - [X] LLMs/Chat Models - [X] 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
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16056/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16056/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/16055
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16055/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16055/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16055/events
https://github.com/langchain-ai/langchain/pull/16055
2,082,840,163
PR_kwDOIPDwls5kIkse
16,055
WIP core[patch]: simple fallback streaming
{ "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": "" } ]
open
false
null
[]
null
1
"2024-01-16T00:31:12"
"2024-01-16T01:59:15"
null
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16055/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16055/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16055", "html_url": "https://github.com/langchain-ai/langchain/pull/16055", "diff_url": "https://github.com/langchain-ai/langchain/pull/16055.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16055.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16054
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16054/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16054/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16054/events
https://github.com/langchain-ai/langchain/pull/16054
2,082,769,336
PR_kwDOIPDwls5kIVgN
16,054
community[patch]: add vector param to index query for pinecone vec store
{ "login": "jamescalam", "id": 35938317, "node_id": "MDQ6VXNlcjM1OTM4MzE3", "avatar_url": "https://avatars.githubusercontent.com/u/35938317?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jamescalam", "html_url": "https://github.com/jamescalam", "followers_url": "https://api.github.com/users/jamescalam/followers", "following_url": "https://api.github.com/users/jamescalam/following{/other_user}", "gists_url": "https://api.github.com/users/jamescalam/gists{/gist_id}", "starred_url": "https://api.github.com/users/jamescalam/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jamescalam/subscriptions", "organizations_url": "https://api.github.com/users/jamescalam/orgs", "repos_url": "https://api.github.com/users/jamescalam/repos", "events_url": "https://api.github.com/users/jamescalam/events{/privacy}", "received_events_url": "https://api.github.com/users/jamescalam/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": 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": 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-15T22:50:39"
"2024-01-16T14:12:20"
"2024-01-16T14:12:20"
CONTRIBUTOR
null
- **Description:** added `vector=` as it will become a required parameter from `pinecone-client 3.0.0.dev10` onwards, - **Issue:** did not raise issue, - **Dependencies:** N/A, - **Twitter handle:** @jamescalam
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16054/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16054/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16054", "html_url": "https://github.com/langchain-ai/langchain/pull/16054", "diff_url": "https://github.com/langchain-ai/langchain/pull/16054.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16054.patch", "merged_at": "2024-01-16T14:12:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/16053
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16053/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16053/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16053/events
https://github.com/langchain-ai/langchain/pull/16053
2,082,746,761
PR_kwDOIPDwls5kIQqU
16,053
rfc: correct batch typing
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
open
false
null
[]
null
1
"2024-01-15T22:20:45"
"2024-01-16T02:19:32"
null
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16053/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16053/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16053", "html_url": "https://github.com/langchain-ai/langchain/pull/16053", "diff_url": "https://github.com/langchain-ai/langchain/pull/16053.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16053.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16052
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16052/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16052/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16052/events
https://github.com/langchain-ai/langchain/pull/16052
2,082,698,588
PR_kwDOIPDwls5kIGKQ
16,052
core[path]: tool invocation
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 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-15T21:27:59"
"2024-01-15T22:31:38"
"2024-01-15T22:31:38"
COLLABORATOR
null
Add base class for tool invocation that is just tool and tool input
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16052/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16052/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16052", "html_url": "https://github.com/langchain-ai/langchain/pull/16052", "diff_url": "https://github.com/langchain-ai/langchain/pull/16052.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16052.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16051
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16051/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16051/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16051/events
https://github.com/langchain-ai/langchain/pull/16051
2,082,684,320
PR_kwDOIPDwls5kIDFE
16,051
community: add the ability to load existing transcripts from AssemblyAI by their id.
{ "login": "RaphaelFavero", "id": 15946488, "node_id": "MDQ6VXNlcjE1OTQ2NDg4", "avatar_url": "https://avatars.githubusercontent.com/u/15946488?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RaphaelFavero", "html_url": "https://github.com/RaphaelFavero", "followers_url": "https://api.github.com/users/RaphaelFavero/followers", "following_url": "https://api.github.com/users/RaphaelFavero/following{/other_user}", "gists_url": "https://api.github.com/users/RaphaelFavero/gists{/gist_id}", "starred_url": "https://api.github.com/users/RaphaelFavero/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RaphaelFavero/subscriptions", "organizations_url": "https://api.github.com/users/RaphaelFavero/orgs", "repos_url": "https://api.github.com/users/RaphaelFavero/repos", "events_url": "https://api.github.com/users/RaphaelFavero/events{/privacy}", "received_events_url": "https://api.github.com/users/RaphaelFavero/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": 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
1
"2024-01-15T21:12:10"
"2024-01-15T21:14:38"
null
NONE
null
- **Description:** the existing AssemblyAI API allows to pass a path or an url to transcribe an audio file and turn in into Langchain Documents, this PR allows to get existing transcript by their transcript id and turn them into Documents. - **Issue:** not related to an existing issue - **Dependencies:** requests
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16051/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16051/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16051", "html_url": "https://github.com/langchain-ai/langchain/pull/16051", "diff_url": "https://github.com/langchain-ai/langchain/pull/16051.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16051.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/16049
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16049/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16049/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16049/events
https://github.com/langchain-ai/langchain/pull/16049
2,082,662,291
PR_kwDOIPDwls5kH-SJ
16,049
langchain[patch]: fix requests lint
{ "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
1
"2024-01-15T20:51:15"
"2024-01-15T20:54:31"
"2024-01-15T20:54:30"
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16049/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16049/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16049", "html_url": "https://github.com/langchain-ai/langchain/pull/16049", "diff_url": "https://github.com/langchain-ai/langchain/pull/16049.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16049.patch", "merged_at": "2024-01-15T20:54:30" }
https://api.github.com/repos/langchain-ai/langchain/issues/16048
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16048/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16048/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16048/events
https://github.com/langchain-ai/langchain/pull/16048
2,082,656,373
PR_kwDOIPDwls5kH8-6
16,048
core[patch]: pass exceptions to fallbacks
{ "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
null
[]
null
1
"2024-01-15T20:45:43"
"2024-01-16T17:36:45"
"2024-01-16T17:36:44"
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16048/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16048/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16048", "html_url": "https://github.com/langchain-ai/langchain/pull/16048", "diff_url": "https://github.com/langchain-ai/langchain/pull/16048.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16048.patch", "merged_at": "2024-01-16T17:36:44" }
https://api.github.com/repos/langchain-ai/langchain/issues/16047
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16047/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16047/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16047/events
https://github.com/langchain-ai/langchain/pull/16047
2,082,556,284
PR_kwDOIPDwls5kHnVI
16,047
langchain_community: Small Fix for the SQLDatabase Tool
{ "login": "keenborder786", "id": 45242107, "node_id": "MDQ6VXNlcjQ1MjQyMTA3", "avatar_url": "https://avatars.githubusercontent.com/u/45242107?v=4", "gravatar_id": "", "url": "https://api.github.com/users/keenborder786", "html_url": "https://github.com/keenborder786", "followers_url": "https://api.github.com/users/keenborder786/followers", "following_url": "https://api.github.com/users/keenborder786/following{/other_user}", "gists_url": "https://api.github.com/users/keenborder786/gists{/gist_id}", "starred_url": "https://api.github.com/users/keenborder786/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/keenborder786/subscriptions", "organizations_url": "https://api.github.com/users/keenborder786/orgs", "repos_url": "https://api.github.com/users/keenborder786/repos", "events_url": "https://api.github.com/users/keenborder786/events{/privacy}", "received_events_url": "https://api.github.com/users/keenborder786/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 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": 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": 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-15T19:07:36"
"2024-01-17T18:31:11"
"2024-01-17T18:31:11"
CONTRIBUTOR
null
- **Description:** Made a small fix for the `SQLDatabase` highlighted in an issue. The issue pertains to switching schema for different SQL engines. - **Issue:** #16023 @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16047/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16047/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16047", "html_url": "https://github.com/langchain-ai/langchain/pull/16047", "diff_url": "https://github.com/langchain-ai/langchain/pull/16047.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16047.patch", "merged_at": "2024-01-17T18:31:11" }
https://api.github.com/repos/langchain-ai/langchain/issues/16044
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/16044/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/16044/comments
https://api.github.com/repos/langchain-ai/langchain/issues/16044/events
https://github.com/langchain-ai/langchain/pull/16044
2,082,448,264
PR_kwDOIPDwls5kHQM9
16,044
changed default params for gemini
{ "login": "lkuligin", "id": 11026406, "node_id": "MDQ6VXNlcjExMDI2NDA2", "avatar_url": "https://avatars.githubusercontent.com/u/11026406?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lkuligin", "html_url": "https://github.com/lkuligin", "followers_url": "https://api.github.com/users/lkuligin/followers", "following_url": "https://api.github.com/users/lkuligin/following{/other_user}", "gists_url": "https://api.github.com/users/lkuligin/gists{/gist_id}", "starred_url": "https://api.github.com/users/lkuligin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lkuligin/subscriptions", "organizations_url": "https://api.github.com/users/lkuligin/orgs", "repos_url": "https://api.github.com/users/lkuligin/repos", "events_url": "https://api.github.com/users/lkuligin/events{/privacy}", "received_events_url": "https://api.github.com/users/lkuligin/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 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
4
"2024-01-15T17:33:33"
"2024-01-17T20:19:18"
"2024-01-17T20:19:18"
CONTRIBUTOR
null
Replace this entire comment with: - **Description:** changed default values for Vertex LLMs (to be handled on the SDK's side)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/16044/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/16044/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/16044", "html_url": "https://github.com/langchain-ai/langchain/pull/16044", "diff_url": "https://github.com/langchain-ai/langchain/pull/16044.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/16044.patch", "merged_at": "2024-01-17T20:19:18" }