url
stringlengths
63
64
repository_url
stringclasses
1 value
labels_url
stringlengths
77
78
comments_url
stringlengths
72
73
events_url
stringlengths
70
71
html_url
stringlengths
51
54
id
int64
1.73B
2.09B
node_id
stringlengths
18
19
number
int64
5.23k
16.2k
title
stringlengths
1
385
user
dict
labels
list
state
stringclasses
2 values
locked
bool
2 classes
assignee
dict
assignees
list
milestone
null
comments
int64
0
56
created_at
timestamp[s]
updated_at
timestamp[s]
closed_at
timestamp[s]
author_association
stringclasses
3 values
active_lock_reason
null
body
stringlengths
1
55.4k
reactions
dict
timeline_url
stringlengths
72
73
performed_via_github_app
null
state_reason
stringclasses
3 values
draft
bool
2 classes
pull_request
dict
https://api.github.com/repos/langchain-ai/langchain/issues/8827
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8827/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8827/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8827/events
https://github.com/langchain-ai/langchain/issues/8827
1,838,264,689
I_kwDOIPDwls5tkbFx
8,827
Agent using tool when it's not needed
{ "login": "Khalidzo", "id": 78038233, "node_id": "MDQ6VXNlcjc4MDM4MjMz", "avatar_url": "https://avatars.githubusercontent.com/u/78038233?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Khalidzo", "html_url": "https://github.com/Khalidzo", "followers_url": "https://api.github.com/users/Khalidzo/followers", "following_url": "https://api.github.com/users/Khalidzo/following{/other_user}", "gists_url": "https://api.github.com/users/Khalidzo/gists{/gist_id}", "starred_url": "https://api.github.com/users/Khalidzo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Khalidzo/subscriptions", "organizations_url": "https://api.github.com/users/Khalidzo/orgs", "repos_url": "https://api.github.com/users/Khalidzo/repos", "events_url": "https://api.github.com/users/Khalidzo/events{/privacy}", "received_events_url": "https://api.github.com/users/Khalidzo/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
10
2023-08-06T16:17:01
2023-12-14T12:34:07
2023-11-15T16:06:17
NONE
null
I initialized the tool and agent as following: ``` llm = ChatOpenAI( openai_api_key=OPENAI_API_KEY, model_name = 'gpt-3.5-turbo', temperature=0.0, ) conversational_memory = ConversationBufferWindowMemory( memory_key='chat_history', k=6, return_messages=True ) qa = RetrievalQA.from_chain_type( llm=llm, chain_type='stuff', retriever=vectorstore.as_retriever(), ) tools = [ Tool( name='Fressnapf Knowledge Base', func=qa.run, description=(""" Only use this tool when you need to know more about Fressnapf service and products """) ) ] agent = initialize_agent( agent='chat-conversational-react-description', tools=tools, llm=llm, verbose=True, max_iterations=3, early_stopping_method='generate', memory=conversational_memory, ) ``` Now, when I'm asking the agent some basic questions he always uses the tool even if it's not useful to for answering the question. After running `agent('Do you have ideas for a birthday gift?')` the agent directly uses the tool. ``` > Entering new AgentExecutor chain... { "action": "Fressnapf Knowledge Base", "action_input": "birthday gift ideas" } Observation: Here are some birthday gift ideas: 1. Personalized photo album or picture frame 2. Spa or wellness gift set 3. Subscription to a favorite magazine or streaming service 4. Cooking or baking class 5. Outdoor adventure experience, such as a hiking or kayaking trip 6. Customized jewelry or accessories 7. Book or a set of books by their favorite author 8. Tickets to a concert, play, or sports event 9. A gift card to their favorite restaurant or store 10. A thoughtful handwritten letter or card expressing your love and appreciation. Thought:{ "action": "Final Answer", "action_input": "Here are some birthday gift ideas:\n\n1. Personalized photo album or picture frame\n2. Spa or wellness gift set\n3. Subscription to a favorite magazine or streaming service\n4. Cooking or baking class\n5. Outdoor adventure experience, such as a hiking or kayaking trip\n6. Customized jewelry or accessories\n7. Book or a set of books by their favorite author\n8. Tickets to a concert, play, or sports event\n9. A gift card to their favorite restaurant or store\n10. A thoughtful handwritten letter or card expressing your love and appreciation." } ``` I've provided a very clear description for the tool and when the agent should be using it, but it seems like as if the agent ignoring my instructions. Does anyone have any idea how to solve this issue?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8827/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8827/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8824
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8824/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8824/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8824/events
https://github.com/langchain-ai/langchain/issues/8824
1,838,248,487
I_kwDOIPDwls5tkXIn
8,824
Refine prompt modification
{ "login": "PavelAgurov", "id": 37487002, "node_id": "MDQ6VXNlcjM3NDg3MDAy", "avatar_url": "https://avatars.githubusercontent.com/u/37487002?v=4", "gravatar_id": "", "url": "https://api.github.com/users/PavelAgurov", "html_url": "https://github.com/PavelAgurov", "followers_url": "https://api.github.com/users/PavelAgurov/followers", "following_url": "https://api.github.com/users/PavelAgurov/following{/other_user}", "gists_url": "https://api.github.com/users/PavelAgurov/gists{/gist_id}", "starred_url": "https://api.github.com/users/PavelAgurov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PavelAgurov/subscriptions", "organizations_url": "https://api.github.com/users/PavelAgurov/orgs", "repos_url": "https://api.github.com/users/PavelAgurov/repos", "events_url": "https://api.github.com/users/PavelAgurov/events{/privacy}", "received_events_url": "https://api.github.com/users/PavelAgurov/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" } ]
open
false
null
[]
null
3
2023-08-06T15:25:06
2023-11-05T17:16:40
null
NONE
null
### Feature request I want to offer to change refine prompts to make a summary more correct. ### Motivation In some cased (I can't say when exactly, but one time per 10-20) I saw that refine LLM added some additional text for summary. Example: > Since the provided context does not add any relevant information to the original summary, we will return the original summary: > ... summary here... On other cases I even saw output of refine prompt as: >The existing summary is more comprehensive and provides a clear understanding of <my topic here>. The additional context provided does not contribute to the summary and can be disregarded. As result I have this text as summary, but not my summary itself. ### Your contribution I want to propose to use other prompts and check JSON result. ``` refine_initial_prompt_template = """\ Write a concise summary of the text (delimited with XML tags). Please provide result in JSON format: {{ "summary": "summary here" }} <text> {text} </text> """ refine_combine_prompt_template = """\ Your job is to produce a final summary. We have provided an existing summary up to a certain point (delimited with XML tags). We have the opportunity to refine the existing summary (only if needed) with some more context (delimited with XML tags). Given the new context, refine the original summary (only if new context is useful) otherwise say that it's not useful. Please provide result in JSON format: {{ "not_useful": "True if new context was not useful, False if new content was used", "refined_summary": "refined summary here if new context was useful" }} <existing_summary> {existing_summary} </existing_summary> <more_context> {more_context} </more_context> """ ``` Now I have JSON with field not_useful=True and can easy ignore it.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8824/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8824/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8823
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8823/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8823/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8823/events
https://github.com/langchain-ai/langchain/pull/8823
1,838,230,735
PR_kwDOIPDwls5XRYek
8,823
Feature/partial clearance buffer memory
{ "login": "apurv101", "id": 14235444, "node_id": "MDQ6VXNlcjE0MjM1NDQ0", "avatar_url": "https://avatars.githubusercontent.com/u/14235444?v=4", "gravatar_id": "", "url": "https://api.github.com/users/apurv101", "html_url": "https://github.com/apurv101", "followers_url": "https://api.github.com/users/apurv101/followers", "following_url": "https://api.github.com/users/apurv101/following{/other_user}", "gists_url": "https://api.github.com/users/apurv101/gists{/gist_id}", "starred_url": "https://api.github.com/users/apurv101/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/apurv101/subscriptions", "organizations_url": "https://api.github.com/users/apurv101/orgs", "repos_url": "https://api.github.com/users/apurv101/repos", "events_url": "https://api.github.com/users/apurv101/events{/privacy}", "received_events_url": "https://api.github.com/users/apurv101/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" } ]
closed
false
null
[]
null
2
2023-08-06T14:31:37
2023-08-06T22:29:52
2023-08-06T22:29:52
CONTRIBUTOR
null
- Description: I ran into a problem several times that Conversation buffer memory gets full as soon as it reaches 4097 tokens. And we wouldn't want to completely clear the history as then the complete context would be lost. So I have added a method in **ChatMessageHistory** named **partial_clear** which takes an argument **delete_ratio**. If you pass 0.5 as delete_ratio it will remove 50% of the oldest messages in the memory. **BaseChatMemory** also inherits this method. - Issue: NA, - Dependencies: NA, - Tag maintainer: @hwchase17,
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8823/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8823/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8823", "html_url": "https://github.com/langchain-ai/langchain/pull/8823", "diff_url": "https://github.com/langchain-ai/langchain/pull/8823.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8823.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/8822
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8822/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8822/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8822/events
https://github.com/langchain-ai/langchain/pull/8822
1,838,207,052
PR_kwDOIPDwls5XRUGy
8,822
Add support for Xata as a vector store
{ "login": "tsg", "id": 101817, "node_id": "MDQ6VXNlcjEwMTgxNw==", "avatar_url": "https://avatars.githubusercontent.com/u/101817?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tsg", "html_url": "https://github.com/tsg", "followers_url": "https://api.github.com/users/tsg/followers", "following_url": "https://api.github.com/users/tsg/following{/other_user}", "gists_url": "https://api.github.com/users/tsg/gists{/gist_id}", "starred_url": "https://api.github.com/users/tsg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tsg/subscriptions", "organizations_url": "https://api.github.com/users/tsg/orgs", "repos_url": "https://api.github.com/users/tsg/repos", "events_url": "https://api.github.com/users/tsg/events{/privacy}", "received_events_url": "https://api.github.com/users/tsg/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
4
2023-08-06T13:19:19
2023-08-08T11:15:57
2023-08-07T15:14:52
CONTRIBUTOR
null
This adds support for [Xata](https://xata.io) (data platform based on Postgres) as a vector store. We have recently added [Xata to Langchain.js](https://github.com/hwchase17/langchainjs/pull/2125) and would love to have the equivalent in the Python project as well. The PR includes integration tests and a Jupyter notebook as docs. Please let me know if anything else would be needed or helpful. I have added the xata python SDK as an optional dependency. ## To run the integration tests You will need to create a DB in xata (see the docs), then run something like: ``` OPENAI_API_KEY=sk-... XATA_API_KEY=xau_... XATA_DB_URL='https://....xata.sh/db/langchain' poetry run pytest tests/integration_tests/vectorstores/test_xata.py ``` <!-- Thank you for contributing to LangChain! Replace this comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - 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 you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8822/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8822/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8822", "html_url": "https://github.com/langchain-ai/langchain/pull/8822", "diff_url": "https://github.com/langchain-ai/langchain/pull/8822.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8822.patch", "merged_at": "2023-08-07T15:14:52" }
https://api.github.com/repos/langchain-ai/langchain/issues/8821
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8821/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8821/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8821/events
https://github.com/langchain-ai/langchain/issues/8821
1,838,189,640
I_kwDOIPDwls5tkIxI
8,821
How to pass a CSV file or a dataframe to Pandas REPL tool in Langchain?
{ "login": "moayadeldin", "id": 100358671, "node_id": "U_kgDOBftaDw", "avatar_url": "https://avatars.githubusercontent.com/u/100358671?v=4", "gravatar_id": "", "url": "https://api.github.com/users/moayadeldin", "html_url": "https://github.com/moayadeldin", "followers_url": "https://api.github.com/users/moayadeldin/followers", "following_url": "https://api.github.com/users/moayadeldin/following{/other_user}", "gists_url": "https://api.github.com/users/moayadeldin/gists{/gist_id}", "starred_url": "https://api.github.com/users/moayadeldin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/moayadeldin/subscriptions", "organizations_url": "https://api.github.com/users/moayadeldin/orgs", "repos_url": "https://api.github.com/users/moayadeldin/repos", "events_url": "https://api.github.com/users/moayadeldin/events{/privacy}", "received_events_url": "https://api.github.com/users/moayadeldin/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" } ]
closed
false
null
[]
null
3
2023-08-06T12:26:01
2023-11-14T16:06:09
2023-11-14T16:06:08
NONE
null
I am trying to utilize Python Repl Tool in langchain with a CSV file and send me the answer based on the CSV file content. The problem is that it gets the action_input step of writing the code to execute right. However, it fails to answer because it couldn't determine the dataframe it should run the code on. For example, I ask it about the longest name in a dataframe containing a column named "name" and it returns the following: Entering new AgentExecutor chain... { "action": "python_repl_ast", "action_input": "import pandas as pd\n\n# Assuming the dataset is stored in a pandas DataFrame called 'data'\nnames = data['NAMES']\nlongest_name = max(names, key=len)\nlongest_name" } Observation: NameError: name 'data' is not defined Thought:{ "action": "Final Answer", **"action_input": "I apologize for the confusion. Unfortunately, I do not have access to the dataset required to find the longest name. Is there anything else I can assist you with?"** } Is there a way to pass the dataframe object to the Pandas REPL tool in order for the code to execute properly and return me the answer? This problem is encountered while using the GPT-3.5-turbo API model. This is the full code: ``` df = pd.read_csv(file_path) tools = [PythonAstREPLTool(locals={"df": df})] agent = initialize_agent( agent='chat-conversational-react-description', tools=tools, llm=llm, verbose=True, max_iterations=3, early_stopping_method='generate', memory=conversational_memory ) query = 'What is the longest name?' print(agent(query)) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8821/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8821/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8819
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8819/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8819/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8819/events
https://github.com/langchain-ai/langchain/issues/8819
1,838,174,943
I_kwDOIPDwls5tkFLf
8,819
Issue: Unstructured module nees backing off to lower ver. 0.7.12 seems ok
{ "login": "johnda98", "id": 13384285, "node_id": "MDQ6VXNlcjEzMzg0Mjg1", "avatar_url": "https://avatars.githubusercontent.com/u/13384285?v=4", "gravatar_id": "", "url": "https://api.github.com/users/johnda98", "html_url": "https://github.com/johnda98", "followers_url": "https://api.github.com/users/johnda98/followers", "following_url": "https://api.github.com/users/johnda98/following{/other_user}", "gists_url": "https://api.github.com/users/johnda98/gists{/gist_id}", "starred_url": "https://api.github.com/users/johnda98/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/johnda98/subscriptions", "organizations_url": "https://api.github.com/users/johnda98/orgs", "repos_url": "https://api.github.com/users/johnda98/repos", "events_url": "https://api.github.com/users/johnda98/events{/privacy}", "received_events_url": "https://api.github.com/users/johnda98/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-08-06T11:45:44
2023-11-12T16:05:44
2023-11-12T16:05:43
NONE
null
### Issue you'd like to raise. guys if not already logged.. I had to uninstall unstructured module and back it off to lower ver. 0.7.12. python3 -m pip install unstructured==0.7.12 ### Suggestion: maybe this needs attention ?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8819/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8819/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8818
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8818/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8818/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8818/events
https://github.com/langchain-ai/langchain/issues/8818
1,838,174,041
I_kwDOIPDwls5tkE9Z
8,818
Issue: Conversation retreival chain : if current question is not at all related to prevoius chat history
{ "login": "yashugupta786", "id": 22386918, "node_id": "MDQ6VXNlcjIyMzg2OTE4", "avatar_url": "https://avatars.githubusercontent.com/u/22386918?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yashugupta786", "html_url": "https://github.com/yashugupta786", "followers_url": "https://api.github.com/users/yashugupta786/followers", "following_url": "https://api.github.com/users/yashugupta786/following{/other_user}", "gists_url": "https://api.github.com/users/yashugupta786/gists{/gist_id}", "starred_url": "https://api.github.com/users/yashugupta786/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yashugupta786/subscriptions", "organizations_url": "https://api.github.com/users/yashugupta786/orgs", "repos_url": "https://api.github.com/users/yashugupta786/repos", "events_url": "https://api.github.com/users/yashugupta786/events{/privacy}", "received_events_url": "https://api.github.com/users/yashugupta786/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": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
7
2023-08-06T11:42:41
2023-11-13T16:40:41
null
NONE
null
### Issue you'd like to raise. How to handle such scenarios if the current asked questions is totally a new question and does not have relation with previous chat history . The standalone question would probably be non-sense, as it's semantic is twisted by the chat history. `OPENAI_API_KEY=xxxxxx OPENAI_API_BASE=https://xxxxxxxx.openai.azure.com/ OPENAI_API_VERSION=2023-05-15 import os import openai from dotenv import load_dotenv from langchain.chat_models import AzureChatOpenAI from langchain.embeddings import OpenAIEmbeddings # Load environment variables (set OPENAI_API_KEY, OPENAI_API_BASE, and OPENAI_API_VERSION in .env) load_dotenv() # Configure OpenAI API openai.api_type = "azure" openai.api_base = os.getenv('OPENAI_API_BASE') openai.api_key = os.getenv("OPENAI_API_KEY") openai.api_version = os.getenv('OPENAI_API_VERSION') # Initialize gpt-35-turbo and our embedding model llm = AzureChatOpenAI(deployment_name="gpt-35-turbo") embeddings = OpenAIEmbeddings(deployment_id="text-embedding-ada-002", chunk_size=1) from langchain.document_loaders import DirectoryLoader from langchain.document_loaders import TextLoader from langchain.text_splitter import TokenTextSplitter loader = DirectoryLoader('data/qna/', glob="*.txt", loader_cls=TextLoader, loader_kwargs={'autodetect_encoding': True}) documents = loader.load() text_splitter = TokenTextSplitter(chunk_size=1000, chunk_overlap=0) docs = text_splitter.split_documents(documents) from langchain.vectorstores import FAISS db = FAISS.from_documents(documents=docs, embedding=embeddings) from langchain.chains import ConversationalRetrievalChain from langchain.prompts import PromptTemplate # Adapt if needed CONDENSE_QUESTION_PROMPT = PromptTemplate.from_template("""Given the following conversation and a follow up question, rephrase the follow up question to be a standalone question. Chat History: {chat_history} Follow Up Input: {question} Standalone question:""") qa = ConversationalRetrievalChain.from_llm(llm=llm, retriever=db.as_retriever(), condense_question_prompt=CONDENSE_QUESTION_PROMPT, return_source_documents=True, verbose=False) ` ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8818/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8818/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8817
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8817/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8817/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8817/events
https://github.com/langchain-ai/langchain/issues/8817
1,838,102,702
I_kwDOIPDwls5tjziu
8,817
How to catch 'maximum context length' error
{ "login": "yiouyou", "id": 14249712, "node_id": "MDQ6VXNlcjE0MjQ5NzEy", "avatar_url": "https://avatars.githubusercontent.com/u/14249712?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yiouyou", "html_url": "https://github.com/yiouyou", "followers_url": "https://api.github.com/users/yiouyou/followers", "following_url": "https://api.github.com/users/yiouyou/following{/other_user}", "gists_url": "https://api.github.com/users/yiouyou/gists{/gist_id}", "starred_url": "https://api.github.com/users/yiouyou/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yiouyou/subscriptions", "organizations_url": "https://api.github.com/users/yiouyou/orgs", "repos_url": "https://api.github.com/users/yiouyou/repos", "events_url": "https://api.github.com/users/yiouyou/events{/privacy}", "received_events_url": "https://api.github.com/users/yiouyou/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": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
2
2023-08-06T08:08:29
2023-11-12T16:05:50
2023-11-12T16:05:50
NONE
null
### Issue you'd like to raise. Can't find the way to deal with the 'maximum context length' error from OpenAI. Any way to catch it within langchain? ### Suggestion: Add a error handler?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8817/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8817/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8816
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8816/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8816/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8816/events
https://github.com/langchain-ai/langchain/issues/8816
1,838,088,521
I_kwDOIPDwls5tjwFJ
8,816
How to make a Chatbot responde based on custom data and from the internet?
{ "login": "venturaEffect", "id": 29057173, "node_id": "MDQ6VXNlcjI5MDU3MTcz", "avatar_url": "https://avatars.githubusercontent.com/u/29057173?v=4", "gravatar_id": "", "url": "https://api.github.com/users/venturaEffect", "html_url": "https://github.com/venturaEffect", "followers_url": "https://api.github.com/users/venturaEffect/followers", "following_url": "https://api.github.com/users/venturaEffect/following{/other_user}", "gists_url": "https://api.github.com/users/venturaEffect/gists{/gist_id}", "starred_url": "https://api.github.com/users/venturaEffect/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/venturaEffect/subscriptions", "organizations_url": "https://api.github.com/users/venturaEffect/orgs", "repos_url": "https://api.github.com/users/venturaEffect/repos", "events_url": "https://api.github.com/users/venturaEffect/events{/privacy}", "received_events_url": "https://api.github.com/users/venturaEffect/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": 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": 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": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
2
2023-08-06T07:22:44
2023-11-12T16:05:54
2023-11-12T16:05:53
NONE
null
### Issue you'd like to raise. I've updated the code but very strange it doesn't find a good response. When I print(response["answer"]) I get that there is no text to give to the query I put. Even if it gets information from the internet and the Document on the list seems good structured. Here the code: ` from googlesearch import search from langchain.chains import ConversationalRetrievalChain from langchain.memory import ConversationBufferMemory from langchain.vectorstores import DocArrayInMemorySearch from langchain.embeddings.openai import OpenAIEmbeddings from langchain.document_loaders import ( UnstructuredWordDocumentLoader, TextLoader, UnstructuredPowerPointLoader, ) from langchain.tools import Tool from langchain.utilities import GoogleSearchAPIWrapper from langchain.chat_models import ChatOpenAI from langchain.docstore.document import Document import os import openai import sys from dotenv import load_dotenv, find_dotenv sys.path.append('../..') _ = load_dotenv(find_dotenv()) google_api_key = os.environ.get("GOOGLE_API_KEY") google_cse_id = os.environ.get("GOOGLE_CSE_ID") openai.api_key = os.environ['OPENAI_API_KEY'] os.environ["LANGCHAIN_TRACING_V2"] = "true" os.environ["LANGCHAIN_ENDPOINT"] = "https://api.langchain.plus" os.environ["LANGCHAIN_API_KEY"] = os.environ['LANGCHAIN_API_KEY'] os.environ["GOOGLE_API_KEY"] = google_api_key os.environ["GOOGLE_CSE_ID"] = google_cse_id folder_path_docx = "DB\\DB VARIADO\\DOCS" folder_path_txt = "DB\\BLOG-POSTS" folder_path_pptx_1 = "DB\\PPT JUNIO" folder_path_pptx_2 = "DB\\DB VARIADO\\PPTX" loaded_content = [] for file in os.listdir(folder_path_docx): if file.endswith(".docx"): file_path = os.path.join(folder_path_docx, file) loader = UnstructuredWordDocumentLoader(file_path) docx = loader.load() loaded_content.extend(docx) for file in os.listdir(folder_path_txt): if file.endswith(".txt"): file_path = os.path.join(folder_path_txt, file) loader = TextLoader(file_path, encoding='utf-8') text = loader.load() loaded_content.extend(text) for file in os.listdir(folder_path_pptx_1): if file.endswith(".pptx"): file_path = os.path.join(folder_path_pptx_1, file) loader = UnstructuredPowerPointLoader(file_path) slides_1 = loader.load() loaded_content.extend(slides_1) for file in os.listdir(folder_path_pptx_2): if file.endswith(".pptx"): file_path = os.path.join(folder_path_pptx_2, file) loader = UnstructuredPowerPointLoader(file_path) slides_2 = loader.load() loaded_content.extend(slides_2) embedding = OpenAIEmbeddings() embeddings_content = [] for one_loaded_content in loaded_content: embedding_content = embedding.embed_query(one_loaded_content.page_content) embeddings_content.append(embedding_content) db = DocArrayInMemorySearch.from_documents(loaded_content, embedding) retriever = db.as_retriever(search_type="similarity", search_kwargs={"k": 3}) search = GoogleSearchAPIWrapper() def custom_search(query): max_results = 3 internet_results = search.results(query, max_results) internet_documents = [Document(page_content=result["snippet"], metadata={ "source": result["link"]}) for result in internet_results ] return internet_documents chain = ConversationalRetrievalChain.from_llm( llm=ChatOpenAI(model_name="gpt-4", temperature=0), chain_type="map_reduce", retriever=retriever, return_source_documents=True, return_generated_question=True, ) history = [] while True: query = input("Hola, soy Chatbot. ¿Qué te gustaría saber? ") internet_documents = custom_search(query) small = loaded_content[:3] combined_results = small + internet_documents print(combined_results) response = chain( {"question": query, "chat_history": history, "documents": combined_results}) print(response["answer"]) history.append(("system", query)) history.append(("assistant", response["answer"])) ` Can anyone help me to make it work? Appreciate! ### Suggestion: I would like that the Chatbot gives a response not just from the custom data also from what it gets from the internet. But of what I've done so far it doesn't work.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8816/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8816/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8815
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8815/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8815/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8815/events
https://github.com/langchain-ai/langchain/issues/8815
1,838,084,628
I_kwDOIPDwls5tjvIU
8,815
Object of type AgentAction is not JSON serializable
{ "login": "coreygarvey", "id": 1421820, "node_id": "MDQ6VXNlcjE0MjE4MjA=", "avatar_url": "https://avatars.githubusercontent.com/u/1421820?v=4", "gravatar_id": "", "url": "https://api.github.com/users/coreygarvey", "html_url": "https://github.com/coreygarvey", "followers_url": "https://api.github.com/users/coreygarvey/followers", "following_url": "https://api.github.com/users/coreygarvey/following{/other_user}", "gists_url": "https://api.github.com/users/coreygarvey/gists{/gist_id}", "starred_url": "https://api.github.com/users/coreygarvey/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/coreygarvey/subscriptions", "organizations_url": "https://api.github.com/users/coreygarvey/orgs", "repos_url": "https://api.github.com/users/coreygarvey/repos", "events_url": "https://api.github.com/users/coreygarvey/events{/privacy}", "received_events_url": "https://api.github.com/users/coreygarvey/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-08-06T07:11:26
2023-08-06T09:06:42
2023-08-06T09:06:42
NONE
null
### System Info version 0.0.253 Running on a Jupyter Notebook in Google Colab ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Follow the steps in [Access Intermediate Steps](https://github.com/langchain-ai/langchain/blob/master/docs/extras/modules/agents/how_to/intermediate_steps.ipynb) within the Agent "How To". The final step calls for `print(json.dumps(response["intermediate_steps"], indent=2))` This is throwing the following error: `TypeError: Object of type AgentAction is not JSON serializable` Based on [this issue](https://github.com/langchain-ai/langchain/issues/2222) I think it may be happening following a recent upgrade. ### Expected behavior Printing the intermediate steps as JSON.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8815/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8815/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8814
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8814/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8814/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8814/events
https://github.com/langchain-ai/langchain/pull/8814
1,838,076,379
PR_kwDOIPDwls5XQ711
8,814
Add missing tests for evaluation
{ "login": "shibuiwilliam", "id": 23517545, "node_id": "MDQ6VXNlcjIzNTE3NTQ1", "avatar_url": "https://avatars.githubusercontent.com/u/23517545?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shibuiwilliam", "html_url": "https://github.com/shibuiwilliam", "followers_url": "https://api.github.com/users/shibuiwilliam/followers", "following_url": "https://api.github.com/users/shibuiwilliam/following{/other_user}", "gists_url": "https://api.github.com/users/shibuiwilliam/gists{/gist_id}", "starred_url": "https://api.github.com/users/shibuiwilliam/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shibuiwilliam/subscriptions", "organizations_url": "https://api.github.com/users/shibuiwilliam/orgs", "repos_url": "https://api.github.com/users/shibuiwilliam/repos", "events_url": "https://api.github.com/users/shibuiwilliam/events{/privacy}", "received_events_url": "https://api.github.com/users/shibuiwilliam/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-06T06:39:39
2023-08-06T19:57:02
2023-08-06T19:57:02
CONTRIBUTOR
null
# What - Add missing tests for evaluation Replace this comment with: - Description: Add missing tests for evaluation - Issue: None - Dependencies: None - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - Twitter handle: @MLopsJ Please make sure you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8814/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8814/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8814", "html_url": "https://github.com/langchain-ai/langchain/pull/8814", "diff_url": "https://github.com/langchain-ai/langchain/pull/8814.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8814.patch", "merged_at": "2023-08-06T19:57:02" }
https://api.github.com/repos/langchain-ai/langchain/issues/8813
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8813/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8813/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8813/events
https://github.com/langchain-ai/langchain/pull/8813
1,838,068,927
PR_kwDOIPDwls5XQ6dY
8,813
Recursive url loader w/ test
{ "login": "proximal-phalanx", "id": 108248080, "node_id": "U_kgDOBnO8EA", "avatar_url": "https://avatars.githubusercontent.com/u/108248080?v=4", "gravatar_id": "", "url": "https://api.github.com/users/proximal-phalanx", "html_url": "https://github.com/proximal-phalanx", "followers_url": "https://api.github.com/users/proximal-phalanx/followers", "following_url": "https://api.github.com/users/proximal-phalanx/following{/other_user}", "gists_url": "https://api.github.com/users/proximal-phalanx/gists{/gist_id}", "starred_url": "https://api.github.com/users/proximal-phalanx/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/proximal-phalanx/subscriptions", "organizations_url": "https://api.github.com/users/proximal-phalanx/orgs", "repos_url": "https://api.github.com/users/proximal-phalanx/repos", "events_url": "https://api.github.com/users/proximal-phalanx/events{/privacy}", "received_events_url": "https://api.github.com/users/proximal-phalanx/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" } ]
closed
false
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false } ]
null
5
2023-08-06T06:14:51
2023-08-10T21:50:32
2023-08-10T21:50:32
CONTRIBUTOR
null
Description: Due to some issue on the test, this is a separate PR with the test for #8502 Tag maintainer: @rlancemartin
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8813/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8813/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8813", "html_url": "https://github.com/langchain-ai/langchain/pull/8813", "diff_url": "https://github.com/langchain-ai/langchain/pull/8813.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8813.patch", "merged_at": "2023-08-10T21:50:32" }
https://api.github.com/repos/langchain-ai/langchain/issues/8812
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8812/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8812/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8812/events
https://github.com/langchain-ai/langchain/pull/8812
1,838,064,955
PR_kwDOIPDwls5XQ5pb
8,812
fix exception inconsistencies
{ "login": "shibuiwilliam", "id": 23517545, "node_id": "MDQ6VXNlcjIzNTE3NTQ1", "avatar_url": "https://avatars.githubusercontent.com/u/23517545?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shibuiwilliam", "html_url": "https://github.com/shibuiwilliam", "followers_url": "https://api.github.com/users/shibuiwilliam/followers", "following_url": "https://api.github.com/users/shibuiwilliam/following{/other_user}", "gists_url": "https://api.github.com/users/shibuiwilliam/gists{/gist_id}", "starred_url": "https://api.github.com/users/shibuiwilliam/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shibuiwilliam/subscriptions", "organizations_url": "https://api.github.com/users/shibuiwilliam/orgs", "repos_url": "https://api.github.com/users/shibuiwilliam/repos", "events_url": "https://api.github.com/users/shibuiwilliam/events{/privacy}", "received_events_url": "https://api.github.com/users/shibuiwilliam/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" } ]
closed
false
null
[]
null
1
2023-08-06T06:04:02
2023-08-06T20:43:05
2023-08-06T20:43:05
CONTRIBUTOR
null
# What - This is to fix exception inconsistencies. <!-- Thank you for contributing to LangChain! Replace this comment with: - Description: fix exception inconsistencies - Issue: None - Dependencies: None - Tag maintainer: @baskaryan - Twitter handle: @MLopsJ Please make sure you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8812/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8812/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8812", "html_url": "https://github.com/langchain-ai/langchain/pull/8812", "diff_url": "https://github.com/langchain-ai/langchain/pull/8812.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8812.patch", "merged_at": "2023-08-06T20:43:05" }
https://api.github.com/repos/langchain-ai/langchain/issues/8811
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8811/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8811/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8811/events
https://github.com/langchain-ai/langchain/pull/8811
1,838,030,470
PR_kwDOIPDwls5XQzKB
8,811
Fix typo in long_context_reorder.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" } ]
closed
false
null
[]
null
1
2023-08-06T03:43:16
2023-08-06T22:31:39
2023-08-06T22:31:38
CONTRIBUTOR
null
begining -> beginning <!-- Thank you for contributing to LangChain! Replace this comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - 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 you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8811/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8811/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8811", "html_url": "https://github.com/langchain-ai/langchain/pull/8811", "diff_url": "https://github.com/langchain-ai/langchain/pull/8811.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8811.patch", "merged_at": "2023-08-06T22:31:38" }
https://api.github.com/repos/langchain-ai/langchain/issues/8808
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8808/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8808/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8808/events
https://github.com/langchain-ai/langchain/pull/8808
1,838,018,436
PR_kwDOIPDwls5XQw_Q
8,808
docs: Improvements on Mendable Search
{ "login": "nickscamara", "id": 20311743, "node_id": "MDQ6VXNlcjIwMzExNzQz", "avatar_url": "https://avatars.githubusercontent.com/u/20311743?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nickscamara", "html_url": "https://github.com/nickscamara", "followers_url": "https://api.github.com/users/nickscamara/followers", "following_url": "https://api.github.com/users/nickscamara/following{/other_user}", "gists_url": "https://api.github.com/users/nickscamara/gists{/gist_id}", "starred_url": "https://api.github.com/users/nickscamara/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nickscamara/subscriptions", "organizations_url": "https://api.github.com/users/nickscamara/orgs", "repos_url": "https://api.github.com/users/nickscamara/repos", "events_url": "https://api.github.com/users/nickscamara/events{/privacy}", "received_events_url": "https://api.github.com/users/nickscamara/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" } ]
closed
false
null
[]
null
1
2023-08-06T02:44:11
2023-08-06T22:32:07
2023-08-06T22:32:06
CONTRIBUTOR
null
- Balancing prioritization between keyword / AI search - Show snippets of highlighted keywords when searching - Improved keyword search - Fixed bugs and issues Shoutout to @calebpeffer for implementing and gathering feedback on it cc: @dev2049 @rlancemartin @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8808/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 1, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8808/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8808", "html_url": "https://github.com/langchain-ai/langchain/pull/8808", "diff_url": "https://github.com/langchain-ai/langchain/pull/8808.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8808.patch", "merged_at": "2023-08-06T22:32:06" }
https://api.github.com/repos/langchain-ai/langchain/issues/8807
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8807/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8807/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8807/events
https://github.com/langchain-ai/langchain/pull/8807
1,837,994,669
PR_kwDOIPDwls5XQso3
8,807
Fix docs for Rockset
{ "login": "kwadhwa18", "id": 6015244, "node_id": "MDQ6VXNlcjYwMTUyNDQ=", "avatar_url": "https://avatars.githubusercontent.com/u/6015244?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kwadhwa18", "html_url": "https://github.com/kwadhwa18", "followers_url": "https://api.github.com/users/kwadhwa18/followers", "following_url": "https://api.github.com/users/kwadhwa18/following{/other_user}", "gists_url": "https://api.github.com/users/kwadhwa18/gists{/gist_id}", "starred_url": "https://api.github.com/users/kwadhwa18/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kwadhwa18/subscriptions", "organizations_url": "https://api.github.com/users/kwadhwa18/orgs", "repos_url": "https://api.github.com/users/kwadhwa18/repos", "events_url": "https://api.github.com/users/kwadhwa18/events{/privacy}", "received_events_url": "https://api.github.com/users/kwadhwa18/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" } ]
closed
false
null
[]
null
1
2023-08-06T00:54:48
2023-08-06T22:54:27
2023-08-06T22:04:02
CONTRIBUTOR
null
* remove error output for notebook * add comment about vector length for ingest transformation * change OPENAI_KEY -> OPENAI_API_KEY cc @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8807/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8807/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8807", "html_url": "https://github.com/langchain-ai/langchain/pull/8807", "diff_url": "https://github.com/langchain-ai/langchain/pull/8807.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8807.patch", "merged_at": "2023-08-06T22:04:02" }
https://api.github.com/repos/langchain-ai/langchain/issues/8806
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8806/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8806/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8806/events
https://github.com/langchain-ai/langchain/pull/8806
1,837,970,378
PR_kwDOIPDwls5XQoHi
8,806
feat(llms): add support for vLLM
{ "login": "mspronesti", "id": 44113430, "node_id": "MDQ6VXNlcjQ0MTEzNDMw", "avatar_url": "https://avatars.githubusercontent.com/u/44113430?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mspronesti", "html_url": "https://github.com/mspronesti", "followers_url": "https://api.github.com/users/mspronesti/followers", "following_url": "https://api.github.com/users/mspronesti/following{/other_user}", "gists_url": "https://api.github.com/users/mspronesti/gists{/gist_id}", "starred_url": "https://api.github.com/users/mspronesti/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mspronesti/subscriptions", "organizations_url": "https://api.github.com/users/mspronesti/orgs", "repos_url": "https://api.github.com/users/mspronesti/repos", "events_url": "https://api.github.com/users/mspronesti/events{/privacy}", "received_events_url": "https://api.github.com/users/mspronesti/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
3
2023-08-05T23:07:51
2023-08-07T14:32:03
2023-08-07T14:32:03
CONTRIBUTOR
null
Hello langchain maintainers, this PR aims at integrating [vllm](https://vllm.readthedocs.io/en/latest/#) into langchain. This PR closes #8729. This feature clearly depends on `vllm`, but I've seen other models supported here depend on packages that are not included in the pyproject.toml (e.g. `gpt4all`, `text-generation`) so I thought it was the case for this as well. @hwchase17, @baskaryan <!-- Thank you for contributing to LangChain! Replace this comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - 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 you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8806/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 1, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8806/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8806", "html_url": "https://github.com/langchain-ai/langchain/pull/8806", "diff_url": "https://github.com/langchain-ai/langchain/pull/8806.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8806.patch", "merged_at": "2023-08-07T14:32:02" }
https://api.github.com/repos/langchain-ai/langchain/issues/8805
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8805/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8805/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8805/events
https://github.com/langchain-ai/langchain/pull/8805
1,837,951,257
PR_kwDOIPDwls5XQkmn
8,805
added the embeddings part
{ "login": "balnarendrasapa", "id": 61614290, "node_id": "MDQ6VXNlcjYxNjE0Mjkw", "avatar_url": "https://avatars.githubusercontent.com/u/61614290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/balnarendrasapa", "html_url": "https://github.com/balnarendrasapa", "followers_url": "https://api.github.com/users/balnarendrasapa/followers", "following_url": "https://api.github.com/users/balnarendrasapa/following{/other_user}", "gists_url": "https://api.github.com/users/balnarendrasapa/gists{/gist_id}", "starred_url": "https://api.github.com/users/balnarendrasapa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/balnarendrasapa/subscriptions", "organizations_url": "https://api.github.com/users/balnarendrasapa/orgs", "repos_url": "https://api.github.com/users/balnarendrasapa/repos", "events_url": "https://api.github.com/users/balnarendrasapa/events{/privacy}", "received_events_url": "https://api.github.com/users/balnarendrasapa/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": 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" } ]
closed
false
null
[]
null
1
2023-08-05T21:51:09
2023-08-06T00:47:57
2023-08-06T00:16:33
CONTRIBUTOR
null
Description: forgot to add the embeddings part in the documentation. sorry 😅 @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8805/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8805/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8805", "html_url": "https://github.com/langchain-ai/langchain/pull/8805", "diff_url": "https://github.com/langchain-ai/langchain/pull/8805.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8805.patch", "merged_at": "2023-08-06T00:16:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/8804
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8804/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8804/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8804/events
https://github.com/langchain-ai/langchain/pull/8804
1,837,949,519
PR_kwDOIPDwls5XQkRr
8,804
Enhanced functionality of PostgresChatMessageHistory
{ "login": "rajib76", "id": 16340036, "node_id": "MDQ6VXNlcjE2MzQwMDM2", "avatar_url": "https://avatars.githubusercontent.com/u/16340036?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rajib76", "html_url": "https://github.com/rajib76", "followers_url": "https://api.github.com/users/rajib76/followers", "following_url": "https://api.github.com/users/rajib76/following{/other_user}", "gists_url": "https://api.github.com/users/rajib76/gists{/gist_id}", "starred_url": "https://api.github.com/users/rajib76/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rajib76/subscriptions", "organizations_url": "https://api.github.com/users/rajib76/orgs", "repos_url": "https://api.github.com/users/rajib76/repos", "events_url": "https://api.github.com/users/rajib76/events{/privacy}", "received_events_url": "https://api.github.com/users/rajib76/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" } ]
closed
false
null
[]
null
11
2023-08-05T21:43:39
2023-11-10T22:28:49
2023-11-10T22:28:49
CONTRIBUTOR
null
- Description : The PostgresChatMessageHistory will be more useful if it stores the timestamp of each message. While retrieving the messages, it is currently retrieved ordering it by session id. However, in an actual chat, the sessionid will be maintained for the duration of the chat. So, the messages will need to b retrieved after sorting it by the timestamp. The enhancement that I have pushed adds timestamp as a field in the table. Also added a function messages_order_by_time which orders the messages by timestamp(either desc or asc based on the parameter passed) - Issue: NA - Dependencies: datetime package, - Tag maintainer: @hwchase17 - Twitter handle: NA
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8804/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8804/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8804", "html_url": "https://github.com/langchain-ai/langchain/pull/8804", "diff_url": "https://github.com/langchain-ai/langchain/pull/8804.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8804.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/8803
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8803/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8803/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8803/events
https://github.com/langchain-ai/langchain/pull/8803
1,837,926,271
PR_kwDOIPDwls5XQf9Y
8,803
Convenient filter pass to as_retriver() for vectorstores
{ "login": "Bytestorm5", "id": 31070777, "node_id": "MDQ6VXNlcjMxMDcwNzc3", "avatar_url": "https://avatars.githubusercontent.com/u/31070777?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Bytestorm5", "html_url": "https://github.com/Bytestorm5", "followers_url": "https://api.github.com/users/Bytestorm5/followers", "following_url": "https://api.github.com/users/Bytestorm5/following{/other_user}", "gists_url": "https://api.github.com/users/Bytestorm5/gists{/gist_id}", "starred_url": "https://api.github.com/users/Bytestorm5/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Bytestorm5/subscriptions", "organizations_url": "https://api.github.com/users/Bytestorm5/orgs", "repos_url": "https://api.github.com/users/Bytestorm5/repos", "events_url": "https://api.github.com/users/Bytestorm5/events{/privacy}", "received_events_url": "https://api.github.com/users/Bytestorm5/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" } ]
closed
false
null
[]
null
6
2023-08-05T20:22:05
2023-08-06T22:37:42
2023-08-06T22:37:42
CONTRIBUTOR
null
**Description:** Makes it more intuitive to pass filters to VectorStore Retrievers from `as_retriever`, by allowing for it to be passed as an argument separately from search_kwargs. This is related to #7002, but I wouldn't resolve because that calls for taking all search arguments as direct keyword arguments, while this is currently only for filters. Other arguments seem to be mostly primitive types which aren't as unwieldy to pass as a dict- with the docstring it should hopefully be clearer how to pass those arguments.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8803/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8803/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8803", "html_url": "https://github.com/langchain-ai/langchain/pull/8803", "diff_url": "https://github.com/langchain-ai/langchain/pull/8803.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8803.patch", "merged_at": "2023-08-06T22:37:42" }
https://api.github.com/repos/langchain-ai/langchain/issues/8802
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8802/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8802/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8802/events
https://github.com/langchain-ai/langchain/issues/8802
1,837,920,794
I_kwDOIPDwls5tjHIa
8,802
How to pass multiple filters in db.get_relevant_documents()
{ "login": "sid8491", "id": 8565062, "node_id": "MDQ6VXNlcjg1NjUwNjI=", "avatar_url": "https://avatars.githubusercontent.com/u/8565062?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sid8491", "html_url": "https://github.com/sid8491", "followers_url": "https://api.github.com/users/sid8491/followers", "following_url": "https://api.github.com/users/sid8491/following{/other_user}", "gists_url": "https://api.github.com/users/sid8491/gists{/gist_id}", "starred_url": "https://api.github.com/users/sid8491/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sid8491/subscriptions", "organizations_url": "https://api.github.com/users/sid8491/orgs", "repos_url": "https://api.github.com/users/sid8491/repos", "events_url": "https://api.github.com/users/sid8491/events{/privacy}", "received_events_url": "https://api.github.com/users/sid8491/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
2
2023-08-05T20:03:46
2023-11-12T16:05:59
2023-11-12T16:05:59
NONE
null
I have three metadata: vehicle, color and city. I want to retrieve chunks with filter -> vehicle = car, color = red and city = NY All these conditions should be met in the retrieved chunks. How can I do that? results = db.get_relevant_documents( query=query, filter={"vehicle": "car", "color": "red", "city": "NY"}, ) But I am not getting desired results.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8802/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8802/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8801
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8801/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8801/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8801/events
https://github.com/langchain-ai/langchain/pull/8801
1,837,899,556
PR_kwDOIPDwls5XQbVO
8,801
Code understanding use case
{ "login": "manuel-soria", "id": 66525873, "node_id": "MDQ6VXNlcjY2NTI1ODcz", "avatar_url": "https://avatars.githubusercontent.com/u/66525873?v=4", "gravatar_id": "", "url": "https://api.github.com/users/manuel-soria", "html_url": "https://github.com/manuel-soria", "followers_url": "https://api.github.com/users/manuel-soria/followers", "following_url": "https://api.github.com/users/manuel-soria/following{/other_user}", "gists_url": "https://api.github.com/users/manuel-soria/gists{/gist_id}", "starred_url": "https://api.github.com/users/manuel-soria/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/manuel-soria/subscriptions", "organizations_url": "https://api.github.com/users/manuel-soria/orgs", "repos_url": "https://api.github.com/users/manuel-soria/repos", "events_url": "https://api.github.com/users/manuel-soria/events{/privacy}", "received_events_url": "https://api.github.com/users/manuel-soria/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" } ]
closed
false
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false } ]
null
1
2023-08-05T18:59:54
2023-08-11T17:16:05
2023-08-11T17:16:05
CONTRIBUTOR
null
Code understanding docs
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8801/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8801/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8801", "html_url": "https://github.com/langchain-ai/langchain/pull/8801", "diff_url": "https://github.com/langchain-ai/langchain/pull/8801.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8801.patch", "merged_at": "2023-08-11T17:16:05" }
https://api.github.com/repos/langchain-ai/langchain/issues/8800
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8800/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8800/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8800/events
https://github.com/langchain-ai/langchain/issues/8800
1,837,898,928
I_kwDOIPDwls5tjByw
8,800
Issue: Amazon Bedrock can't load my credentials when called from a Lambda function
{ "login": "MustaphaU", "id": 123378149, "node_id": "U_kgDOB1qZ5Q", "avatar_url": "https://avatars.githubusercontent.com/u/123378149?v=4", "gravatar_id": "", "url": "https://api.github.com/users/MustaphaU", "html_url": "https://github.com/MustaphaU", "followers_url": "https://api.github.com/users/MustaphaU/followers", "following_url": "https://api.github.com/users/MustaphaU/following{/other_user}", "gists_url": "https://api.github.com/users/MustaphaU/gists{/gist_id}", "starred_url": "https://api.github.com/users/MustaphaU/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MustaphaU/subscriptions", "organizations_url": "https://api.github.com/users/MustaphaU/orgs", "repos_url": "https://api.github.com/users/MustaphaU/repos", "events_url": "https://api.github.com/users/MustaphaU/events{/privacy}", "received_events_url": "https://api.github.com/users/MustaphaU/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": 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
21
2023-08-05T18:57:43
2023-10-15T02:09:25
null
NONE
null
### Issue you'd like to raise. Bedrock can't seem to load my credentials when used within a Lambda function. My AWS credentials were set up in my local environment using environment variables. When I use the bedrock class directly, it is able to load my credentials and my code runs smoothly. Here is the RetrievalQA function that utilizes the bedrock class: ``` def qa(query): secrets = json.loads(get_secret()) kendra_index_id = secrets['kendra_index_id'] llm = Bedrock(model_id="amazon.titan-tg1-large", region_name='us-east-1') llm.model_kwargs = {"maxTokenCount": 4096} retriever = AmazonKendraRetriever(index_id=kendra_index_id) prompt_template = """ {context} {question} If you are unable to find the relevant article, respond 'I can't generate the needed content based on the context provided.' """ PROMPT = PromptTemplate( template=prompt_template, input_variables=["context", "question"]) chain = RetrievalQA.from_chain_type( llm=llm, retriever=retriever, verbose=True, chain_type_kwargs={ "prompt": PROMPT } ) return chain(query) ``` The above code runs without issues when used directly. However, when used within a lambda function, it fails. The scripts file used to build my lambda function uses the bedrock class as written above, however, I run into the `validation errors` when I invoke the Lambda function. ` { "errorMessage": "1 validation error for Bedrock\n__root__\n Could not load credentials to authenticate with AWS client. Please check that credentials in the specified profile name are valid. (type=value_error)", "errorType": "ValidationError", "requestId": "b772f236-f582-4308-8af5-b5a418d4327f", "stackTrace": [ " File \"/var/task/main.py\", line 62, in handler\n response = qa(query)\n", " File \"/var/task/main.py\", line 32, in qa\n llm = Bedrock(model_id=\"amazon.titan-tg1-large\", region_name='us-east-1',) #client=BEDROCK_CLIENT)\n", " File \"/var/task/langchain/load/serializable.py\", line 74, in __init__\n super().__init__(**kwargs)\n", " File \"pydantic/main.py\", line 341, in pydantic.main.BaseModel.__init__\n raise validation_error\n" ] ` As clearly indicated by the error message, bedrock couldn't load credentials. ### Suggestion: I have looked at the official documentation of the [bedrock class](https://github.com/langchain-ai/langchain/blob/b786335dd10902489f87a536ee074d747b6df370/libs/langchain/langchain/llms/bedrock.py#L51) but still do not understand why my code fails. Any help will be appreciated. @3coins @jasondotparse @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8800/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8800/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8799
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8799/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8799/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8799/events
https://github.com/langchain-ai/langchain/pull/8799
1,837,880,318
PR_kwDOIPDwls5XQXx2
8,799
rm nuclia dep
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" } ]
closed
false
null
[]
null
3
2023-08-05T18:10:46
2023-08-06T18:28:51
2023-08-06T18:28:50
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8799/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8799/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8799", "html_url": "https://github.com/langchain-ai/langchain/pull/8799", "diff_url": "https://github.com/langchain-ai/langchain/pull/8799.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8799.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/8798
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8798/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8798/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8798/events
https://github.com/langchain-ai/langchain/pull/8798
1,837,860,792
PR_kwDOIPDwls5XQTye
8,798
bump 253
{ "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": 5010622926, "node_id": "LA_kwDOIPDwls8AAAABKqgJzg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/release", "name": "release", "color": "07D4BE", "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" } ]
closed
false
null
[]
null
1
2023-08-05T17:36:21
2023-08-05T17:57:23
2023-08-05T17:57:22
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8798/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8798/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8798", "html_url": "https://github.com/langchain-ai/langchain/pull/8798", "diff_url": "https://github.com/langchain-ai/langchain/pull/8798.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8798.patch", "merged_at": "2023-08-05T17:57:22" }
https://api.github.com/repos/langchain-ai/langchain/issues/8796
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8796/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8796/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8796/events
https://github.com/langchain-ai/langchain/pull/8796
1,837,796,344
PR_kwDOIPDwls5XQIB4
8,796
feat: expose Kendra result item id and document id as document metadata
{ "login": "wnleao", "id": 2644049, "node_id": "MDQ6VXNlcjI2NDQwNDk=", "avatar_url": "https://avatars.githubusercontent.com/u/2644049?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wnleao", "html_url": "https://github.com/wnleao", "followers_url": "https://api.github.com/users/wnleao/followers", "following_url": "https://api.github.com/users/wnleao/following{/other_user}", "gists_url": "https://api.github.com/users/wnleao/gists{/gist_id}", "starred_url": "https://api.github.com/users/wnleao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wnleao/subscriptions", "organizations_url": "https://api.github.com/users/wnleao/orgs", "repos_url": "https://api.github.com/users/wnleao/repos", "events_url": "https://api.github.com/users/wnleao/events{/privacy}", "received_events_url": "https://api.github.com/users/wnleao/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-05T14:52:16
2023-08-06T00:21:25
2023-08-06T00:21:25
CONTRIBUTOR
null
- Description: we expose Kendra result item id and document id as document metadata. - Tag maintainer: @3coins @baskaryan - Twitter handle: wilsonleao **Why** The result item id and document id might be used to keep track of the retrieved resources.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8796/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8796/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8796", "html_url": "https://github.com/langchain-ai/langchain/pull/8796", "diff_url": "https://github.com/langchain-ai/langchain/pull/8796.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8796.patch", "merged_at": "2023-08-06T00:21:25" }
https://api.github.com/repos/langchain-ai/langchain/issues/8795
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8795/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8795/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8795/events
https://github.com/langchain-ai/langchain/issues/8795
1,837,792,197
I_kwDOIPDwls5tinvF
8,795
BSHTMLLoader not working for urls
{ "login": "iiitmahesh", "id": 13597781, "node_id": "MDQ6VXNlcjEzNTk3Nzgx", "avatar_url": "https://avatars.githubusercontent.com/u/13597781?v=4", "gravatar_id": "", "url": "https://api.github.com/users/iiitmahesh", "html_url": "https://github.com/iiitmahesh", "followers_url": "https://api.github.com/users/iiitmahesh/followers", "following_url": "https://api.github.com/users/iiitmahesh/following{/other_user}", "gists_url": "https://api.github.com/users/iiitmahesh/gists{/gist_id}", "starred_url": "https://api.github.com/users/iiitmahesh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/iiitmahesh/subscriptions", "organizations_url": "https://api.github.com/users/iiitmahesh/orgs", "repos_url": "https://api.github.com/users/iiitmahesh/repos", "events_url": "https://api.github.com/users/iiitmahesh/events{/privacy}", "received_events_url": "https://api.github.com/users/iiitmahesh/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" } ]
closed
false
null
[]
null
2
2023-08-05T14:41:28
2023-08-06T11:42:45
2023-08-06T11:42:45
NONE
null
### System Info BSHTMLLoader not working for urls ```` from langchain.document_loaders import BSHTMLLoader url = "https://www.google.com" loader = BSHTMLLoader({"url": url}) doc = loader.load() ```` I tried this one also not working ```` from langchain.document_loaders import BSHTMLLoader url = "https://www.google.com" loader = BSHTMLLoader({"url": url}) doc = loader.load() ```` ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` from langchain.document_loaders import BSHTMLLoader url = "https://www.example.com" loader = BSHTMLLoader(url) doc = loader.load() ``` ### Expected behavior It has respond html data of url. I believe BSHTMLLoader won't work with url and only work files(.html files).
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8795/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8795/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8794
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8794/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8794/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8794/events
https://github.com/langchain-ai/langchain/issues/8794
1,837,765,386
I_kwDOIPDwls5tihMK
8,794
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__ pydantic.error_wrappers.ValidationError: 1 validation error for Document"
{ "login": "data-xyz", "id": 129659544, "node_id": "U_kgDOB7pymA", "avatar_url": "https://avatars.githubusercontent.com/u/129659544?v=4", "gravatar_id": "", "url": "https://api.github.com/users/data-xyz", "html_url": "https://github.com/data-xyz", "followers_url": "https://api.github.com/users/data-xyz/followers", "following_url": "https://api.github.com/users/data-xyz/following{/other_user}", "gists_url": "https://api.github.com/users/data-xyz/gists{/gist_id}", "starred_url": "https://api.github.com/users/data-xyz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/data-xyz/subscriptions", "organizations_url": "https://api.github.com/users/data-xyz/orgs", "repos_url": "https://api.github.com/users/data-xyz/repos", "events_url": "https://api.github.com/users/data-xyz/events{/privacy}", "received_events_url": "https://api.github.com/users/data-xyz/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": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
5
2023-08-05T13:36:08
2024-01-06T04:15:11
null
NONE
null
### System Info Traceback: docsearch.similarity_search( File "/usr/local/lib/python3.9/site-packages/langchain/vectorstores/pinecone.py", line 162, in similarity_search docs_and_scores = self.similarity_search_with_score( File "/usr/local/lib/python3.9/site-packages/langchain/vectorstores/pinecone.py", line 136, in similarity_search_with_score docs.append((Document(page_content=text, metadata=metadata), score)) File "/usr/local/lib/python3.9/site-packages/langchain/load/serializable.py", line 74, in __init__ super().__init__(**kwargs) File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__ pydantic.error_wrappers.ValidationError: 1 validation error for Document" page_content str type expected (type=type_error.str) ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction langchain pinecone similarity_search_with_score docs.append((Document(page_content=text, metadata=metadata), score)) seem to raise error when page_content is not an string type while when we wrote the document to the pinecone using pdf loader maybe the loader produce something unexpected. it should be a bug ### Expected behavior No erro raised
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8794/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8794/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8793
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8793/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8793/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8793/events
https://github.com/langchain-ai/langchain/pull/8793
1,837,714,071
PR_kwDOIPDwls5XP4mE
8,793
Add new parameter forced_decoder_ids to OpenAIWhisperParserLocal + small bug fix
{ "login": "idcore", "id": 30922976, "node_id": "MDQ6VXNlcjMwOTIyOTc2", "avatar_url": "https://avatars.githubusercontent.com/u/30922976?v=4", "gravatar_id": "", "url": "https://api.github.com/users/idcore", "html_url": "https://github.com/idcore", "followers_url": "https://api.github.com/users/idcore/followers", "following_url": "https://api.github.com/users/idcore/following{/other_user}", "gists_url": "https://api.github.com/users/idcore/gists{/gist_id}", "starred_url": "https://api.github.com/users/idcore/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/idcore/subscriptions", "organizations_url": "https://api.github.com/users/idcore/orgs", "repos_url": "https://api.github.com/users/idcore/repos", "events_url": "https://api.github.com/users/idcore/events{/privacy}", "received_events_url": "https://api.github.com/users/idcore/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" } ]
closed
false
null
[]
null
2
2023-08-05T11:37:44
2023-08-12T11:15:42
2023-08-07T20:17:58
CONTRIBUTOR
null
- Description: new parameter forced_decoder_ids for OpenAIWhisperParserLocal to force input language, and enable optional translate mode. Usage example: processor = WhisperProcessor.from_pretrained("openai/whisper-medium") forced_decoder_ids = processor.get_decoder_prompt_ids(language="french", task="transcribe") #forced_decoder_ids = processor.get_decoder_prompt_ids(language="french", task="translate") loader = GenericLoader(YoutubeAudioLoader(urls, save_dir), OpenAIWhisperParserLocal(lang_model="openai/whisper-medium",forced_decoder_ids=forced_decoder_ids)) - Issue #8792 - Tag maintainer: @rlancemartin, @eyurtsev Please make sure you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8793/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8793/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8793", "html_url": "https://github.com/langchain-ai/langchain/pull/8793", "diff_url": "https://github.com/langchain-ai/langchain/pull/8793.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8793.patch", "merged_at": "2023-08-07T20:17:58" }
https://api.github.com/repos/langchain-ai/langchain/issues/8792
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8792/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8792/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8792/events
https://github.com/langchain-ai/langchain/issues/8792
1,837,713,670
I_kwDOIPDwls5tiUkG
8,792
Add option to directly set input language for OpenAIWhisperParserLocal
{ "login": "idcore", "id": 30922976, "node_id": "MDQ6VXNlcjMwOTIyOTc2", "avatar_url": "https://avatars.githubusercontent.com/u/30922976?v=4", "gravatar_id": "", "url": "https://api.github.com/users/idcore", "html_url": "https://github.com/idcore", "followers_url": "https://api.github.com/users/idcore/followers", "following_url": "https://api.github.com/users/idcore/following{/other_user}", "gists_url": "https://api.github.com/users/idcore/gists{/gist_id}", "starred_url": "https://api.github.com/users/idcore/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/idcore/subscriptions", "organizations_url": "https://api.github.com/users/idcore/orgs", "repos_url": "https://api.github.com/users/idcore/repos", "events_url": "https://api.github.com/users/idcore/events{/privacy}", "received_events_url": "https://api.github.com/users/idcore/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-05T11:36:13
2023-11-11T16:05:21
2023-11-11T16:05:21
CONTRIBUTOR
null
### Feature request Add option to directly set input language for OpenAIWhisperParserLocal (in case incorrect autodetection (language="french", task = "transcribe") and optionally use translation mode of the whisper model (language="french", task = "translate") ### Motivation I encountered situations where audio is split in chunks and therefore language autodetection was incorrect by OpenAIWhisperParserLocal ### Your contribution I'll post PR.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8792/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8792/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8791
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8791/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8791/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8791/events
https://github.com/langchain-ai/langchain/pull/8791
1,837,701,142
PR_kwDOIPDwls5XP16B
8,791
Fix: RecursiveUrlLoader is not working (#8367)
{ "login": "ai-ashok", "id": 91247690, "node_id": "MDQ6VXNlcjkxMjQ3Njkw", "avatar_url": "https://avatars.githubusercontent.com/u/91247690?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ai-ashok", "html_url": "https://github.com/ai-ashok", "followers_url": "https://api.github.com/users/ai-ashok/followers", "following_url": "https://api.github.com/users/ai-ashok/following{/other_user}", "gists_url": "https://api.github.com/users/ai-ashok/gists{/gist_id}", "starred_url": "https://api.github.com/users/ai-ashok/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ai-ashok/subscriptions", "organizations_url": "https://api.github.com/users/ai-ashok/orgs", "repos_url": "https://api.github.com/users/ai-ashok/repos", "events_url": "https://api.github.com/users/ai-ashok/events{/privacy}", "received_events_url": "https://api.github.com/users/ai-ashok/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
6
2023-08-05T11:05:37
2023-08-10T22:59:52
2023-08-10T22:59:52
NONE
null
Fixes #8367 Before this fix: ```python from langchain.document_loaders import RecursiveUrlLoader docs = RecursiveUrlLoader(url="https://docs.python.org/3/").load() print(len(docs)) ``` It returns 0 docs After this fix: ```python from langchain.document_loaders import RecursiveUrlLoader docs = RecursiveUrlLoader(url="https://docs.python.org/3/").load() print(len(docs)) ``` It returns 23 docs now. <!-- Thank you for contributing to LangChain! Replace this comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - 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 you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8791/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8791/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8791", "html_url": "https://github.com/langchain-ai/langchain/pull/8791", "diff_url": "https://github.com/langchain-ai/langchain/pull/8791.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8791.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/8790
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8790/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8790/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8790/events
https://github.com/langchain-ai/langchain/issues/8790
1,837,647,295
I_kwDOIPDwls5tiEW_
8,790
Issue: AzureOpenAI connection with SQL Database
{ "login": "KrunalT", "id": 13148390, "node_id": "MDQ6VXNlcjEzMTQ4Mzkw", "avatar_url": "https://avatars.githubusercontent.com/u/13148390?v=4", "gravatar_id": "", "url": "https://api.github.com/users/KrunalT", "html_url": "https://github.com/KrunalT", "followers_url": "https://api.github.com/users/KrunalT/followers", "following_url": "https://api.github.com/users/KrunalT/following{/other_user}", "gists_url": "https://api.github.com/users/KrunalT/gists{/gist_id}", "starred_url": "https://api.github.com/users/KrunalT/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/KrunalT/subscriptions", "organizations_url": "https://api.github.com/users/KrunalT/orgs", "repos_url": "https://api.github.com/users/KrunalT/repos", "events_url": "https://api.github.com/users/KrunalT/events{/privacy}", "received_events_url": "https://api.github.com/users/KrunalT/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" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
1
2023-08-05T08:30:33
2023-11-11T16:05:26
2023-11-11T16:05:26
NONE
null
### Issue you'd like to raise. Hello, I want achive SQL Database Agent, by using that I want to retrive data from the database and execute queries. So for that I have tried, ``` from langchain.agents import create_sql_agent from langchain.agents.agent_toolkits import SQLDatabaseToolkit from langchain.sql_database import SQLDatabase from langchain.llms.openai import AzureOpenAI from langchain.agents.agent_types import AgentType db = SQLDatabase.from_uri("mysql://user:pwd@localhost/db_name") toolkit = SQLDatabaseToolkit(db=db, llm=AzureOpenAI(deployment_name="ABCD",model_name="text-davinci-003",temperature=0)) agent_executor = create_sql_agent( llm=AzureOpenAI(deployment_name="ABCD",model_name="text-davinci-003",temperature=0), toolkit=toolkit, verbose=True, agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION, ) agent_executor.run("Describe the XYZ table") ``` But into above code facing problem is that "**openai.error.InvalidRequestError: Invalid URL (POST /v1/openai/deployments/trailadvisor/completions)**". Same thing I can run using the OpenAI but getting error in AzureOpenAI. Am i doing the correct approach, or any other way that using AzureOpenAI deployment we can achive the requirement? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8790/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8790/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8789
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8789/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8789/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8789/events
https://github.com/langchain-ai/langchain/issues/8789
1,837,646,215
I_kwDOIPDwls5tiEGH
8,789
"n" hyperparmeter doesn't work in ChatOpenAI
{ "login": "bergr7", "id": 52296520, "node_id": "MDQ6VXNlcjUyMjk2NTIw", "avatar_url": "https://avatars.githubusercontent.com/u/52296520?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bergr7", "html_url": "https://github.com/bergr7", "followers_url": "https://api.github.com/users/bergr7/followers", "following_url": "https://api.github.com/users/bergr7/following{/other_user}", "gists_url": "https://api.github.com/users/bergr7/gists{/gist_id}", "starred_url": "https://api.github.com/users/bergr7/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bergr7/subscriptions", "organizations_url": "https://api.github.com/users/bergr7/orgs", "repos_url": "https://api.github.com/users/bergr7/repos", "events_url": "https://api.github.com/users/bergr7/events{/privacy}", "received_events_url": "https://api.github.com/users/bergr7/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-08-05T08:26:14
2023-08-07T13:40:06
2023-08-07T13:40:06
NONE
null
### System Info Name: langchain Version: 0.0.250 Python=3.11.4 ### Who can help? @agola @hwchase17 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` llm = ChatOpenAI( model="gpt-4", temperature=0.0, top_p=1.0, n=20, max_tokens=30 ) results = llm(chat_prompt.format_prompt( inputs_description=vars["inputs_description"], task_description=vars["task_description"], criteria=vars["criteria"], criteria_description=vars["criteria_description"], eval_steps=vars["eval_steps"], input=vars["input"], input_type=vars["input_type"], output=vars["output"], output_type=vars["output_type"] ).to_messages()) ``` ### Expected behavior I was expecting to get a response with 20 results, instead of just one since I set n=20. This is the behaviour when using Openai SDK.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8789/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8789/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8788
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8788/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8788/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8788/events
https://github.com/langchain-ai/langchain/issues/8788
1,837,636,776
I_kwDOIPDwls5tiByo
8,788
Error while loading the Llama 2 70B chat model
{ "login": "taimoorrf", "id": 56273879, "node_id": "MDQ6VXNlcjU2MjczODc5", "avatar_url": "https://avatars.githubusercontent.com/u/56273879?v=4", "gravatar_id": "", "url": "https://api.github.com/users/taimoorrf", "html_url": "https://github.com/taimoorrf", "followers_url": "https://api.github.com/users/taimoorrf/followers", "following_url": "https://api.github.com/users/taimoorrf/following{/other_user}", "gists_url": "https://api.github.com/users/taimoorrf/gists{/gist_id}", "starred_url": "https://api.github.com/users/taimoorrf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/taimoorrf/subscriptions", "organizations_url": "https://api.github.com/users/taimoorrf/orgs", "repos_url": "https://api.github.com/users/taimoorrf/repos", "events_url": "https://api.github.com/users/taimoorrf/events{/privacy}", "received_events_url": "https://api.github.com/users/taimoorrf/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-08-05T07:59:48
2023-11-15T16:07:07
2023-11-15T16:07:06
NONE
null
### System Info Hi! While using Llama cpp in LangChain, I am trying to load the "llama-2-70b-chat" model. The code I am using is: n_gpu_layers = 40 # Change this value based on your model and your GPU VRAM pool. n_batch = 512 # Should be between 1 and n_ctx, consider the amount of VRAM in your GPU. callback_manager = CallbackManager([StreamingStdOutCallbackHandler()]) llm = LlamaCpp( model_path="/Users/taimoorarif/Downloads/llama-2-70b-chat.ggmlv3.q4_0.bin", n_gpu_layers=n_gpu_layers, n_batch=n_batch, callback_manager=callback_manager, verbose=True, n_ctx=2048 ) I am getting an error which I am attaching below. The same code works perfectly fine for the 13b model. Moreover, for the 65B model, the model keeps processing the prompt and does not return anything. Any help would be appreciated. Thanks! <img width="1018" alt="Screenshot 2023-08-05 at 3 59 05 AM" src="https://github.com/langchain-ai/langchain/assets/56273879/db0fb151-3bdb-4518-b6f7-d58dca2af261"> ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction . ### Expected behavior .
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8788/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8788/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8787
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8787/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8787/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8787/events
https://github.com/langchain-ai/langchain/pull/8787
1,837,611,197
PR_kwDOIPDwls5XPjqF
8,787
#8786 Fixed: Callback handler disconnect in between
{ "login": "devilankur18", "id": 431165, "node_id": "MDQ6VXNlcjQzMTE2NQ==", "avatar_url": "https://avatars.githubusercontent.com/u/431165?v=4", "gravatar_id": "", "url": "https://api.github.com/users/devilankur18", "html_url": "https://github.com/devilankur18", "followers_url": "https://api.github.com/users/devilankur18/followers", "following_url": "https://api.github.com/users/devilankur18/following{/other_user}", "gists_url": "https://api.github.com/users/devilankur18/gists{/gist_id}", "starred_url": "https://api.github.com/users/devilankur18/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/devilankur18/subscriptions", "organizations_url": "https://api.github.com/users/devilankur18/orgs", "repos_url": "https://api.github.com/users/devilankur18/repos", "events_url": "https://api.github.com/users/devilankur18/events{/privacy}", "received_events_url": "https://api.github.com/users/devilankur18/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" } ]
closed
false
null
[]
null
1
2023-08-05T06:47:54
2023-08-06T22:11:45
2023-08-06T22:11:45
CONTRIBUTOR
null
Fixes for #8786 @agola11 - Description: The flow of callback is breaking till the last chain, as callbacks are missed in between chain along nested path. This will help get full trace and correlate parent child relationship in all nested chains. - Issue: the issue #8786 - Dependencies: NA - Tag maintainer: @agola11 - Twitter handle: Agarwal_Ankur
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8787/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8787/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8787", "html_url": "https://github.com/langchain-ai/langchain/pull/8787", "diff_url": "https://github.com/langchain-ai/langchain/pull/8787.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8787.patch", "merged_at": "2023-08-06T22:11:45" }
https://api.github.com/repos/langchain-ai/langchain/issues/8786
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8786/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8786/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8786/events
https://github.com/langchain-ai/langchain/issues/8786
1,837,609,787
I_kwDOIPDwls5th7M7
8,786
RetrievalQA.from_chain_type: callbacks are not called for all nested chains
{ "login": "devilankur18", "id": 431165, "node_id": "MDQ6VXNlcjQzMTE2NQ==", "avatar_url": "https://avatars.githubusercontent.com/u/431165?v=4", "gravatar_id": "", "url": "https://api.github.com/users/devilankur18", "html_url": "https://github.com/devilankur18", "followers_url": "https://api.github.com/users/devilankur18/followers", "following_url": "https://api.github.com/users/devilankur18/following{/other_user}", "gists_url": "https://api.github.com/users/devilankur18/gists{/gist_id}", "starred_url": "https://api.github.com/users/devilankur18/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/devilankur18/subscriptions", "organizations_url": "https://api.github.com/users/devilankur18/orgs", "repos_url": "https://api.github.com/users/devilankur18/repos", "events_url": "https://api.github.com/users/devilankur18/events{/privacy}", "received_events_url": "https://api.github.com/users/devilankur18/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-08-05T06:43:10
2023-11-11T16:05:36
2023-11-11T16:05:36
CONTRIBUTOR
null
### System Info langchain: 0.0.252 python: 3.10.12 @agola11 ### Who can help? @agola11 please take a look, ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [X] Callbacks/Tracing - [ ] Async ### Reproduction 1. Create a callback handler LogHandler for on_chain_start, on_chain_start, on_chat_model_start and log run_id, parent_run_id in each of them 2. Create a retrival chain and add this LogHandler 3. Add this LogHandler to llm as well 4. When running the chain, one of nested chain is not logged in between, because callbacks are not passed to that chain ### Expected behavior All the nested chains should have callbacks defined.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8786/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8786/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8784
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8784/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8784/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8784/events
https://github.com/langchain-ai/langchain/pull/8784
1,837,568,690
PR_kwDOIPDwls5XPa5c
8,784
Update links on QA Use Case docs
{ "login": "snehil002", "id": 88778723, "node_id": "MDQ6VXNlcjg4Nzc4NzIz", "avatar_url": "https://avatars.githubusercontent.com/u/88778723?v=4", "gravatar_id": "", "url": "https://api.github.com/users/snehil002", "html_url": "https://github.com/snehil002", "followers_url": "https://api.github.com/users/snehil002/followers", "following_url": "https://api.github.com/users/snehil002/following{/other_user}", "gists_url": "https://api.github.com/users/snehil002/gists{/gist_id}", "starred_url": "https://api.github.com/users/snehil002/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/snehil002/subscriptions", "organizations_url": "https://api.github.com/users/snehil002/orgs", "repos_url": "https://api.github.com/users/snehil002/repos", "events_url": "https://api.github.com/users/snehil002/events{/privacy}", "received_events_url": "https://api.github.com/users/snehil002/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" } ]
closed
false
null
[]
null
1
2023-08-05T04:33:31
2023-08-06T00:30:56
2023-08-06T00:30:56
CONTRIBUTOR
null
- Description: 2 links were not working on Question Answering Use Cases documentation page. Hence, changed them to nearest useful links, - Issue: NA, - Dependencies: NA, - Tag maintainer: @baskaryan, - Twitter handle: NA <!-- Thank you for contributing to LangChain! Replace this comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - 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 you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8784/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8784/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8784", "html_url": "https://github.com/langchain-ai/langchain/pull/8784", "diff_url": "https://github.com/langchain-ai/langchain/pull/8784.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8784.patch", "merged_at": "2023-08-06T00:30:56" }
https://api.github.com/repos/langchain-ai/langchain/issues/8783
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8783/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8783/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8783/events
https://github.com/langchain-ai/langchain/pull/8783
1,837,549,130
PR_kwDOIPDwls5XPW66
8,783
Add missing test for retrievers self_query
{ "login": "shibuiwilliam", "id": 23517545, "node_id": "MDQ6VXNlcjIzNTE3NTQ1", "avatar_url": "https://avatars.githubusercontent.com/u/23517545?v=4", "gravatar_id": "", "url": "https://api.github.com/users/shibuiwilliam", "html_url": "https://github.com/shibuiwilliam", "followers_url": "https://api.github.com/users/shibuiwilliam/followers", "following_url": "https://api.github.com/users/shibuiwilliam/following{/other_user}", "gists_url": "https://api.github.com/users/shibuiwilliam/gists{/gist_id}", "starred_url": "https://api.github.com/users/shibuiwilliam/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shibuiwilliam/subscriptions", "organizations_url": "https://api.github.com/users/shibuiwilliam/orgs", "repos_url": "https://api.github.com/users/shibuiwilliam/repos", "events_url": "https://api.github.com/users/shibuiwilliam/events{/privacy}", "received_events_url": "https://api.github.com/users/shibuiwilliam/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-05T03:23:33
2023-08-06T00:32:34
2023-08-06T00:31:41
CONTRIBUTOR
null
# What - Add missing test for retrievers self_query - Add missing import validation <!-- Thank you for contributing to LangChain! Replace this comment with: - Description: Add missing test for retrievers self_query - Issue: None - Dependencies: None - Tag maintainer: @rlancemartin, @eyurtsev - Twitter handle: @MlopsJ Please make sure you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8783/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8783/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8783", "html_url": "https://github.com/langchain-ai/langchain/pull/8783", "diff_url": "https://github.com/langchain-ai/langchain/pull/8783.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8783.patch", "merged_at": "2023-08-06T00:31:41" }
https://api.github.com/repos/langchain-ai/langchain/issues/8782
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8782/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8782/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8782/events
https://github.com/langchain-ai/langchain/issues/8782
1,837,527,287
I_kwDOIPDwls5thnD3
8,782
NLTK alternatives option
{ "login": "yangboz", "id": 481954, "node_id": "MDQ6VXNlcjQ4MTk1NA==", "avatar_url": "https://avatars.githubusercontent.com/u/481954?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yangboz", "html_url": "https://github.com/yangboz", "followers_url": "https://api.github.com/users/yangboz/followers", "following_url": "https://api.github.com/users/yangboz/following{/other_user}", "gists_url": "https://api.github.com/users/yangboz/gists{/gist_id}", "starred_url": "https://api.github.com/users/yangboz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yangboz/subscriptions", "organizations_url": "https://api.github.com/users/yangboz/orgs", "repos_url": "https://api.github.com/users/yangboz/repos", "events_url": "https://api.github.com/users/yangboz/events{/privacy}", "received_events_url": "https://api.github.com/users/yangboz/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" } ]
closed
false
null
[]
null
2
2023-08-05T02:22:42
2023-08-07T00:40:13
2023-08-07T00:40:13
NONE
null
### Feature request if possible to provide NLTK tokenizer alternative options? such as spaCy, openNLP... ### Motivation NLTK issues: ``` Resource averaged_perceptron_tagger not found. Please use the NLTK Downloader to obtain the resource: >>> import nltk >>> nltk.download('averaged_perceptron_tagger') For more information see: https://www.nltk.org/data.html ``` ### Your contribution https://python.langchain.com/docs/modules/data_connection/document_transformers/text_splitters/split_by_token#spacy NLTK issues: https://stackoverflow.com/questions/49546253/attributeerror-module-nltk-has-no-attribute-download
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8782/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8782/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8781
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8781/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8781/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8781/events
https://github.com/langchain-ai/langchain/pull/8781
1,837,473,798
PR_kwDOIPDwls5XPG-c
8,781
Same Project for Eval Runs
{ "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": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-05T00:33:45
2023-08-05T00:51:50
2023-08-05T00:51:49
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8781/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8781/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8781", "html_url": "https://github.com/langchain-ai/langchain/pull/8781", "diff_url": "https://github.com/langchain-ai/langchain/pull/8781.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8781.patch", "merged_at": "2023-08-05T00:51:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/8780
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8780/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8780/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8780/events
https://github.com/langchain-ai/langchain/issues/8780
1,837,465,382
I_kwDOIPDwls5thX8m
8,780
inconsistent agent answer
{ "login": "dikyridhlo", "id": 35356597, "node_id": "MDQ6VXNlcjM1MzU2NTk3", "avatar_url": "https://avatars.githubusercontent.com/u/35356597?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dikyridhlo", "html_url": "https://github.com/dikyridhlo", "followers_url": "https://api.github.com/users/dikyridhlo/followers", "following_url": "https://api.github.com/users/dikyridhlo/following{/other_user}", "gists_url": "https://api.github.com/users/dikyridhlo/gists{/gist_id}", "starred_url": "https://api.github.com/users/dikyridhlo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dikyridhlo/subscriptions", "organizations_url": "https://api.github.com/users/dikyridhlo/orgs", "repos_url": "https://api.github.com/users/dikyridhlo/repos", "events_url": "https://api.github.com/users/dikyridhlo/events{/privacy}", "received_events_url": "https://api.github.com/users/dikyridhlo/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
4
2023-08-05T00:19:15
2023-11-13T16:06:51
2023-11-13T16:06:50
NONE
null
### System Info i'm using newest langchain, python 3 so i try agent but got inconsistent answer, this is the output ![WhatsApp Image 2023-08-04 at 19 31 26](https://github.com/langchain-ai/langchain/assets/35356597/5a594e1c-55c8-40e4-a584-9433e429784b) the true answer is "Jalan lori tidak termasuk jalan umum". i try using retrieval with prompt without agent and got true answer too. so sometimes agent has inconsistent answer. how to prevent this? ### Who can help? _No response_ ### Information - [x] The official example notebooks/scripts - [x] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction i put example code below my Agent Prompt ![WhatsApp Image 2023-08-04 at 19 31 26 (1)](https://github.com/langchain-ai/langchain/assets/35356597/91f5dde2-7fd6-4ea3-a9d9-3ddd3cd5c9a7) How To Call my Agent ``` agent_executor = initialize_agent( tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True, handle_parsing_errors=True, return_direct=True, agent_kwargs={ 'prefix':constant.PREFIX, 'format_instructions':constant.FORMAT_INSTRUCTIONS, 'suffix':constant.SUFFIX } ) result = agent_executor.run(question) return result ``` ### Expected behavior got true answer same with the documents
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8780/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8780/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8779
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8779/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8779/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8779/events
https://github.com/langchain-ai/langchain/pull/8779
1,837,433,065
PR_kwDOIPDwls5XO-oa
8,779
Add integration to collect feedback on documentation
{ "login": "Anshuman71", "id": 28081510, "node_id": "MDQ6VXNlcjI4MDgxNTEw", "avatar_url": "https://avatars.githubusercontent.com/u/28081510?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Anshuman71", "html_url": "https://github.com/Anshuman71", "followers_url": "https://api.github.com/users/Anshuman71/followers", "following_url": "https://api.github.com/users/Anshuman71/following{/other_user}", "gists_url": "https://api.github.com/users/Anshuman71/gists{/gist_id}", "starred_url": "https://api.github.com/users/Anshuman71/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Anshuman71/subscriptions", "organizations_url": "https://api.github.com/users/Anshuman71/orgs", "repos_url": "https://api.github.com/users/Anshuman71/repos", "events_url": "https://api.github.com/users/Anshuman71/events{/privacy}", "received_events_url": "https://api.github.com/users/Anshuman71/received_events", "type": "User", "site_admin": false }
[ { "id": 4678528810, "node_id": "LA_kwDOIPDwls8AAAABFtyvKg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/documentation", "name": "documentation", "color": "0075ca", "default": true, "description": "Improvements or additions to documentation" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
5
2023-08-04T23:13:03
2023-11-02T00:47:30
2023-11-02T00:47:29
NONE
null
## Background LangChain has become widely popular and adopted by developers. The documentation of any developer product plays a crucial role in the developer experience. Collecting feedback on the LangChain documentation will further improve the developer experience and help the community. ## Description [Docsly](https://docsly.dev) is a feedback tool crafted for developer documentation. It lets the readers leave contextual feedback (comments) on the documentation website and helps the maintainer by showing the feedback exactly where the user left it. The feedback feature (like/dislike) gives a general sense of whether users are finding a particular page helpful. - Dependencies: Installed `@docsly/react` in the Docusaurus project - Tag maintainer: @baskaryan - Twitter handle: [sun_anshuman](https://twitter.com/sun_anshuman) ### Example project for preview [Clerk](https://clerk.com/docs), [Tigris](https://www.tigrisdata.com/docs/), and [Dyte](https://docs.dyte.io) are using docsly in production already. ### Todo - [ ] Sign up on [docsly.dev ](https://docsly.dev/dashboard)for a fresh account for maintainers ### Cost implications [Docsly](https://docsly.dev) is free to use for open-source projects.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8779/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8779/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8779", "html_url": "https://github.com/langchain-ai/langchain/pull/8779", "diff_url": "https://github.com/langchain-ai/langchain/pull/8779.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8779.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/8778
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8778/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8778/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8778/events
https://github.com/langchain-ai/langchain/pull/8778
1,837,419,453
PR_kwDOIPDwls5XO7tx
8,778
Fix Recursive URL Loader
{ "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": 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" } ]
closed
false
null
[]
null
3
2023-08-04T22:49:34
2023-08-07T15:25:55
2023-08-07T15:25:55
COLLABORATOR
null
Previously we wouldn't follow paths like ``` relative/to/current ``` or ``` https://www.samedomain.com/i/am/relative/path ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8778/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8778/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8778", "html_url": "https://github.com/langchain-ai/langchain/pull/8778", "diff_url": "https://github.com/langchain-ai/langchain/pull/8778.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8778.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/8777
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8777/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8777/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8777/events
https://github.com/langchain-ai/langchain/issues/8777
1,837,409,860
I_kwDOIPDwls5thKZE
8,777
OpenAIEmbeddings error trying to load chroma from Confluence
{ "login": "supsailor", "id": 39586726, "node_id": "MDQ6VXNlcjM5NTg2NzI2", "avatar_url": "https://avatars.githubusercontent.com/u/39586726?v=4", "gravatar_id": "", "url": "https://api.github.com/users/supsailor", "html_url": "https://github.com/supsailor", "followers_url": "https://api.github.com/users/supsailor/followers", "following_url": "https://api.github.com/users/supsailor/following{/other_user}", "gists_url": "https://api.github.com/users/supsailor/gists{/gist_id}", "starred_url": "https://api.github.com/users/supsailor/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/supsailor/subscriptions", "organizations_url": "https://api.github.com/users/supsailor/orgs", "repos_url": "https://api.github.com/users/supsailor/repos", "events_url": "https://api.github.com/users/supsailor/events{/privacy}", "received_events_url": "https://api.github.com/users/supsailor/received_events", "type": "User", "site_admin": false }
[]
closed
false
null
[]
null
1
2023-08-04T22:33:52
2023-08-06T09:36:55
2023-08-05T12:29:59
NONE
null
### System Info Platform: Apple M1 Pro Python version: Python 3.9.6 Dependencies: aiohttp==3.8.5 aiosignal==1.3.1 anyio==3.7.1 async-timeout==4.0.2 atlassian-python-api==3.40.0 attrs==23.1.0 backoff==2.2.1 beautifulsoup4==4.12.2 blobfile==2.0.2 certifi==2023.7.22 charset-normalizer==3.2.0 chroma-hnswlib==0.7.2 chromadb==0.4.5 click==8.1.6 coloredlogs==15.0.1 dataclasses-json==0.5.14 Deprecated==1.2.14 exceptiongroup==1.1.2 fastapi==0.99.1 filelock==3.12.2 flatbuffers==23.5.26 frozenlist==1.4.0 h11==0.14.0 httptools==0.6.0 humanfriendly==10.0 idna==3.4 importlib-resources==6.0.0 langchain==0.0.252 langsmith==0.0.18 lxml==4.9.3 marshmallow==3.20.1 monotonic==1.6 mpmath==1.3.0 multidict==6.0.4 mypy-extensions==1.0.0 numexpr==2.8.4 numpy==1.25.2 oauthlib==3.2.2 onnxruntime==1.15.1 openai==0.27.8 openapi-schema-pydantic==1.2.4 overrides==7.3.1 packaging==23.1 Pillow==10.0.0 posthog==3.0.1 protobuf==4.23.4 pulsar-client==3.2.0 pycryptodomex==3.18.0 pydantic==1.10.12 PyPika==0.48.9 pytesseract==0.3.10 python-dateutil==2.8.2 python-dotenv==1.0.0 PyYAML==6.0.1 regex==2023.6.3 requests==2.31.0 requests-oauthlib==1.3.1 six==1.16.0 sniffio==1.3.0 soupsieve==2.4.1 SQLAlchemy==2.0.19 starlette==0.27.0 sympy==1.12 tenacity==8.2.2 tiktoken==0.4.0 tokenizers==0.13.3 tqdm==4.65.0 typing-inspect==0.9.0 typing_extensions==4.7.1 urllib3==1.25.11 uvicorn==0.23.2 uvloop==0.17.0 watchfiles==0.19.0 websockets==11.0.3 wrapt==1.15.0 yarl==1.9.2 zipp==3.16.2 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Intro: I have some code to load my vector from confluence: ```python from langchain.document_loaders import ConfluenceLoader from langchain.text_splitter import CharacterTextSplitter, TokenTextSplitter, RecursiveCharacterTextSplitter from langchain.embeddings.openai import OpenAIEmbeddings from langchain.vectorstores import Chroma import pytesseract import os pytesseract.pytesseract.tesseract_cmd = "/opt/homebrew/bin/tesseract" os.environ["OPENAI_API_KEY"] = "my_openai_key" CONFLUENCE_URL = "confluence_path" CONFLUENCE_TOKEN = "some_token" CONFLUENCE_SPACE = "confluence_space" PERSIST_DIRECTORY = "./chroma_db/" def confluence_vector(force_reload: bool = False): # Init Openai Embeddings embeddings = OpenAIEmbeddings(model="text-embedding-ada-002", chunk_size=1, max_retries=10) # Check persist exists if PERSIST_DIRECTORY and os.path.exists(PERSIST_DIRECTORY) and not force_reload: vector = Chroma(persist_directory=PERSIST_DIRECTORY, embedding_function=embeddings) print("Chroma loaded") return vector else: loader = ConfluenceLoader(url=CONFLUENCE_URL, token=CONFLUENCE_TOKEN) documents = loader.load( space_key=CONFLUENCE_SPACE, limit=10, max_pages=1000 ) text_splitter = RecursiveCharacterTextSplitter(chunk_size=100, chunk_overlap=0) texts = text_splitter.split_documents(documents) #text_splitter = TokenTextSplitter(chunk_size=1000, chunk_overlap=10) #texts = text_splitter.split_documents(texts) print(texts) vector = Chroma.from_documents(documents=texts, embedding=embeddings, persist_directory=PERSIST_DIRECTORY) vector.persist() print("Chroma builded") return vector if __name__ == '__main__': confluence_vector(force_reload=True) ``` Then after run I have an exception: ``` Traceback (most recent call last): File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn conn = connection.create_connection( File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection raise err File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection sock.connect(sa) TimeoutError: [Errno 60] Operation timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen httplib_response = self._make_request( File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/urllib3/connectionpool.py", line 381, in _make_request self._validate_conn(conn) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn conn.connect() File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/urllib3/connection.py", line 309, in connect conn = self._new_conn() File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x1357d2640>: Failed to establish a new connection: [Errno 60] Operation timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen retries = retries.increment( File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x1357d2640>: Failed to establish a new connection: [Errno 60] Operation timed out')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/main.py", line 47, in <module> confluence_vector(force_reload=True) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/main.py", line 40, in confluence_vector vector = Chroma.from_documents(documents=texts, embedding=embeddings, persist_directory=PERSIST_DIRECTORY) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/langchain/vectorstores/chroma.py", line 603, in from_documents return cls.from_texts( File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/langchain/vectorstores/chroma.py", line 567, in from_texts chroma_collection.add_texts(texts=texts, metadatas=metadatas, ids=ids) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/langchain/vectorstores/chroma.py", line 187, in add_texts embeddings = self._embedding_function.embed_documents(texts) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/langchain/embeddings/openai.py", line 472, in embed_documents return self._get_len_safe_embeddings(texts, engine=self.deployment) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/langchain/embeddings/openai.py", line 325, in _get_len_safe_embeddings encoding = tiktoken.encoding_for_model(model_name) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/tiktoken/model.py", line 75, in encoding_for_model return get_encoding(encoding_name) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/tiktoken/registry.py", line 63, in get_encoding enc = Encoding(**constructor()) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/tiktoken_ext/openai_public.py", line 64, in cl100k_base mergeable_ranks = load_tiktoken_bpe( File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/tiktoken/load.py", line 116, in load_tiktoken_bpe contents = read_file_cached(tiktoken_bpe_file) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/tiktoken/load.py", line 39, in read_file_cached return read_file(blobpath) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/tiktoken/load.py", line 24, in read_file resp = requests.get(blobpath) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/requests/adapters.py", line 519, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x1357d2640>: Failed to establish a new connection: [Errno 60] Operation timed out')) ``` After that first I think about - is the network connection to the cl100k_base.tiktoken file For double check I tried to wget this file, the output was like this (ip's and domains are fake): ``` Resolving proxy (someproxy)... 10.0.0.0 Connecting to someproxy (someproxy)|10.0.0.0|:3131... connected. Proxy request sent, awaiting response... 200 OK Length: 1681126 (1.6M) [application/octet-stream] Saving to: ‘cl100k_base.tiktoken’ cl100k_base.tiktoken 100%[=================================================================================================>] 1.60M --.-KB/s in 0.1s 2023-08-05 01:18:36 (14.4 MB/s) - ‘cl100k_base.tiktoken’ saved [1681126/1681126] ``` Ok then, for full transparency I tried to override .tiktoken file location in library files ``` file location: /Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/tiktoken_ext/openai_public.py ``` ```python ... def cl100k_base(): mergeable_ranks = load_tiktoken_bpe( "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/cl100k_base.tiktoken" ) special_tokens = { ENDOFTEXT: 100257, FIM_PREFIX: 100258, FIM_MIDDLE: 100259, FIM_SUFFIX: 100260, ENDOFPROMPT: 100276, } return { "name": "cl100k_base", "pat_str": r"""(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\r\n\p{L}\p{N}]?\p{L}+|\p{N}{1,3}| ?[^\s\p{L}\p{N}]+[\r\n]*|\s*[\r\n]+|\s+(?!\S)|\s+""", "mergeable_ranks": mergeable_ranks, "special_tokens": special_tokens, } ... ``` The file was accepted by lib and then I have this kind of exception: ``` Traceback (most recent call last): File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/main.py", line 47, in <module> confluence_vector(force_reload=True) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/main.py", line 40, in confluence_vector vector = Chroma.from_documents(documents=texts, embedding=embeddings, persist_directory=PERSIST_DIRECTORY) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/langchain/vectorstores/chroma.py", line 603, in from_documents return cls.from_texts( File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/langchain/vectorstores/chroma.py", line 567, in from_texts chroma_collection.add_texts(texts=texts, metadatas=metadatas, ids=ids) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/langchain/vectorstores/chroma.py", line 187, in add_texts embeddings = self._embedding_function.embed_documents(texts) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/langchain/embeddings/openai.py", line 472, in embed_documents return self._get_len_safe_embeddings(texts, engine=self.deployment) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/langchain/embeddings/openai.py", line 358, in _get_len_safe_embeddings response = embed_with_retry( File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/langchain/embeddings/openai.py", line 107, in embed_with_retry return _embed_with_retry(**kwargs) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/tenacity/__init__.py", line 289, in wrapped_f return self(f, *args, **kw) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/tenacity/__init__.py", line 379, in __call__ do = self.iter(retry_state=retry_state) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/tenacity/__init__.py", line 314, in iter return fut.result() File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 438, in result return self.__get_result() File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 390, in __get_result raise self._exception File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/tenacity/__init__.py", line 382, in __call__ result = fn(*args, **kwargs) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/langchain/embeddings/openai.py", line 104, in _embed_with_retry response = embeddings.client.create(**kwargs) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/openai/api_resources/embedding.py", line 33, in create response = super().create(*args, **kwargs) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 153, in create response, _, api_key = requestor.request( File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/openai/api_requestor.py", line 298, in request resp, got_stream = self._interpret_response(result, stream) File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/openai/api_requestor.py", line 700, in _interpret_response self._interpret_response_line( File "/Users/pobabi1/PycharmProjects/langchainConflWithGPT/venv/lib/python3.9/site-packages/openai/api_requestor.py", line 763, in _interpret_response_line raise self.handle_error_response( openai.error.InvalidRequestError: Invalid URL (GET /embeddings) ``` For double-check this moment I tried to use /embeddings API from curl with default request and it fully works: ``` curl https://api.openai.com/v1/embeddings \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -d '{ "input": "Your text string goes here", "model": "text-embedding-ada-002" }' ``` ``` { "object": "list", "data": [ { "object": "embedding", "index": 0, "embedding": [ -0.006968617, -0.0052718227, 0.011901081, -0.024984878, -0.024554798, 0.039674748, -0.010140447, -0.009481888, -0.013245076, -0.010006047, -0.011511322, 0.0077750143, -0.014138834, 0.0077414145, 0.010147166, -0.0050131036, 0.022942005, -0.0016287547, 0.01498555, -0.010281566, 0.004858544, 0.012472278, 0.004835024, 0.010819164, -0.006615818, -0.00035090884, 0.0055708615, -0.012613398, 0.016369866, 0.0044587054, 0.006639338, -0.0071164565, -0.01516027, -0.006625898, -0.0185337, 0.0040622265, 0.0031785495, -0.018963777, 0.03032054, -0.0075263754, 0.0081177335, 0.009481888, -0.0011029163, -0.00044225855, -0.008776291, -0.028600225, 0.0028996705, 0.0092802895, 0.016463945, 0.006431019, 0.019380417, 0.014730191, -0.025643434, -0.009911967, -0.003311269, 0.014837711, -0.03690612, 0.014058193, 0.013446676, 0.0043948656, -0.004841744, 0.0032171893, -0.011040923, 0.002407432, -0.014138834, -0.018587459, -0.024702638, -0.0035011084, 0.01803642, 0.008480612, 0.034083728, 0.01518715, 0.014071633, -0.006672938, 0.022041528, 0.022122167, 0.005359182, 0.020885691, 0.008312613, -0.011948121, 0.0076540546, -0.025065517, 0.010684765, 0.016786505, 0.009475169, -0.000614458, -0.0028929505, 0.028949665, -0.03292789, -0.03045494, 0.0076607745, 0.020200253, 0.009972447, 0.018063301, -0.005668301, 0.008285733, -0.010281566, 0.020361533, 0.022283446, -0.034621324, 0.005426382, 0.013318996, -0.017324103, -0.008137893, -0.029782942, 0.017713862, 0.021503929, -0.016759625, 0.016316107, 0.0038203073, -0.029137824, 0.012143, -0.01815738, -0.017337542, 0.0030122302, 0.016894024, 0.010778844, -0.014031313, -0.021436729, -0.03026678, 0.009959007, 0.012687318, 0.03018614, -0.017754182, 0.026436392, 0.019568576, -0.0058598206, -0.031315096, 0.0067770975, -0.0019471135, 0.037443716, 0.024447279, 0.010765404, 0.014864591, -0.013157717, 0.022821045, -0.03604596, 0.0025317515, -0.027417509, -0.012808277, 0.012895637, 0.026960552, 0.0029114303, -0.0031382297, 0.012613398, 0.011087963, -0.0022898323, -0.0105167655, 0.021490488, -0.013124117, -0.002716551, 0.0041126264, 0.0049727834, -0.01495867, -0.010563805, 0.017203143, 0.0052919826, 0.008023653, 0.0019823934, -0.0299711, 0.011007324, 0.009300449, 0.016894024, -0.014649551, 0.033949327, 0.05112559, -0.0037195077, 0.0053491024, -0.0059236605, -0.0082790125, -0.029567903, 0.028546466, -0.06413547, 0.0126066785, -0.041368183, 0.0038471874, 0.026181033, 0.013345876, -0.02076473, -0.018990656, -0.03994355, 0.0023335123, 0.0050534233, 0.025186477, -0.02720247, -0.013964114, 0.000013433393, 0.0040723067, 0.0007723775, 0.00298199, 0.016719304, 0.022095287, 0.009246689, -0.0080438135, -0.68941593, -0.0038740672, 0.020710971, -0.026328873, 0.025670316, 0.03843827, 0.00089207705, 0.018560579, -0.025589675, 0.020670652, -0.019125057, -0.0024998318, -0.010940124, -0.01227068, 0.0028946304, -0.012673878, 0.010335326, -0.0065788585, -0.014770512, 0.008265573, 0.005171023, 0.032444052, 0.0016900745, 0.014273233, 0.019044418, -0.00006415479, 0.009905247, -0.018775618, -0.001812714, 0.031906456, -0.029460382, -0.003275989, -0.0025703914, 0.010610845, 0.061017398, -0.020549692, -0.009488609, -0.0049492638, -0.005453262, 0.0018479939, -0.0181977, -0.026127273, 0.02106041, -0.0044519855, 0.005832941, -0.0040555065, 0.0049459036, -0.02114105, 0.005251663, 0.005681741, 0.0018849538, -0.0018983937, 0.010866204, -0.0013549156, 0.014757072, 0.009730528, 0.043303538, -0.016544586, 0.0012490759, 0.015523149, -0.0038875071, 0.022135606, -0.029057184, -0.013661715, 0.0028324707, 0.009488609, -0.0120086, 0.006595658, 0.009710368, -0.005785901, 0.015778508, 0.013896914, -0.020321213, -0.0061185397, 0.002054633, 0.026637992, 0.018654658, -0.009488609, -0.020603452, 0.0181977, 0.006676298, -0.0036052682, -0.023130164, -0.016598346, 0.025388077, -0.00601102, -0.022229686, 0.009495328, 0.0067636576, 0.0046535847, 0.013083797, 0.010852764, -0.008171493, -0.0014019554, 0.0041697463, 0.005869901, -0.00004504485, 0.014259793, -0.007801894, -0.0038471874, -0.014824271, 0.015818827, -0.028358307, 0.005382702, 0.0077548544, -0.0015187149, -0.0032373492, 0.019219136, 0.03311605, -0.02376184, -0.0061689396, -0.008668771, -0.0028677506, -0.0133861955, -0.0066998177, -0.023896242, 0.010180767, 0.005517102, 0.023721522, -0.00026375914, 0.020952892, -0.002729991, -0.00298199, 0.0012877157, 0.026785832, 0.008144613, 0.0076271747, -0.02134265, -0.022296887, -0.003964787, 0.007519655, -0.000922317, 0.05429742, -0.016988104, 0.025199916, -0.002464552, 0.01847994, -0.00085049716, 0.016020427, -0.005443182, -0.019985214, 0.015254349, -0.017579462, 0.006558698, 0.010557085, -0.0183993, -0.018762179, -0.007163496, 0.009468448, -0.010375646, 0.0019807136, -0.012552919, -0.024581678, 0.026691752, 0.012237079, -0.01790202, 0.0047879843, -0.015791947, -0.0076540546, -0.02147705, -0.0018748738, 0.011397082, -0.011047644, 0.016208587, -0.010120287, -0.004559505, -0.037820034, 0.013406356, -0.016517706, -0.026476713, -0.0031802296, -0.02084537, -0.005769101, -0.00022112927, -0.013977554, -0.0043545454, -0.019958334, -0.0020227134, 0.022995764, -0.016369866, 0.008655331, 0.013755795, -0.002741751, 0.015281229, 0.016463945, 0.014273233, -0.0018496739, 0.015791947, 0.0077078147, -0.01798266, 0.0037430276, -0.013466836, -0.013493716, 0.0005195383, -0.011491162, 0.00039983867, -0.007976614, 0.03026678, 0.017377863, 0.008756131, 0.03362677, 0.0062697395, 0.042873457, -0.025670316, -0.0045796647, -0.02162489, 0.002414152, -0.022270007, 0.01803642, 0.012633558, 0.003911027, -0.02126201, -0.01212956, 0.010100126, 0.015308109, 0.025871914, -0.007297896, 0.007781734, -0.0019504735, 0.008198373, 0.004942544, -0.006723338, 0.0041059065, -0.0124588385, -0.013379476, 0.0057220613, 0.026651433, 0.03580404, 0.0056649414, -0.02370808, -0.0031751895, -0.003944627, 0.0008546972, 0.010933404, 0.013829715, 0.017686982, 0.029137824, 0.0008861971, 0.029003425, -0.0035246282, -0.010745244, 0.023103284, 0.018775618, -0.007371816, 0.0244204, 0.004495665, 0.020186814, 0.0014783951, -0.019608894, 0.009972447, -0.011141723, 0.012700758, -0.031691417, -0.006326859, 0.021436729, -0.013292116, 0.00009911967, 0.013345876, 0.026140714, 0.018842818, 0.015751628, -0.019017538, -0.0044654254, -0.00064973783, 0.018977217, -0.009932127, -0.014111954, -0.0045931046, -0.016907465, 0.014232913, -0.0072306963, -0.0070425365, 0.035132043, -0.008252133, 0.02427256, -0.00027656907, 0.009528928, -0.0009357569, -0.016894024, 0.004310866, 0.0014599152, -0.044298094, 0.0073180557, 0.007244136, -0.002093273, -0.019380417, -0.03368053, 0.037363075, 0.003934547, 0.0009962367, 0.00033767888, 0.00900477, 0.02076473, 0.002152073, 0.00068081776, 0.023425842, 0.013359316, -0.028707745, -0.0020411932, 0.0015716348, 0.008238693, 0.017337542, -0.0038606273, -0.027793828, 0.030831259, -0.0071030166, 0.0055003017, 0.021893688, 0.006696458, -0.009999327, 0.0059942203, 0.01847994, -0.0038505474, -0.02390968, 0.02411128, 0.0071231765, -0.019461056, -0.004542705, 0.034701966, 0.013775954, -0.0035582283, -0.029164704, -0.019313216, 0.0055137416, 0.062576436, 0.021356089, -0.0045796647, -0.0040958263, 0.0072306963, 0.005372622, -0.010745244, -0.03327733, 0.00891069, -0.021651769, -0.0017421542, 0.0044217454, 0.015402189, 0.0068778973, 0.015845709, -0.0034070287, 0.010725085, -0.0068039773, -0.0013280356, -0.023533363, -0.009676768, 0.027471269, 0.012741078, 0.0046300646, 0.01770042, 0.0001832244, 0.0046502245, 0.010718364, 0.01212956, -0.05150191, -0.020173373, 0.031449497, 0.008050533, 0.009952287, -0.005120623, 0.029110944, -0.005459982, -0.01494523, 0.018748738, -0.0020025533, 0.021503929, 0.019340096, 0.017082183, -0.015657548, 0.009535649, -0.0032591892, 0.0020378332, -0.00071609765, -0.013883474, -0.0036825477, 0.0019991933, -0.008077413, -0.0074524553, -0.023466162, 0.008198373, 0.009864927, -0.009817887, 0.0062260595, -0.018883137, -0.026530473, 0.0077414145, 0.008292452, -0.0065788585, -0.0037833476, -0.018291779, -0.013164436, -0.00029378902, 0.0037564675, -0.02099321, -0.00601438, 0.0024964719, 0.008144613, 0.0014137153, 0.013540755, 0.013446676, 0.0040219068, 0.005144143, -0.01537531, -0.023291443, -0.010731804, -0.0013406356, -0.0359922, 0.0070022168, -0.010167327, -0.023587123, 0.016611785, 0.005419662, 0.011551642, 0.0052180625, 0.011948121, 0.02411128, 0.003301189, 0.006320139, -0.016974663, 0.0030945498, -0.026785832, 0.0019571935, -0.034594446, -0.010590685, -0.019165376, -0.0074121356, -0.003329749, 0.00598414, -0.006545258, 0.012431959, 0.0025435116, 0.008635172, 0.031126937, -0.014461393, 0.019420736, -0.00037064878, 0.00056699815, -0.010342046, 0.00044351854, -0.008265573, 0.01186748, 0.008796451, -0.000047118596, 0.008615011, -0.022753844, 0.025482155, -0.059243325, 0.01225724, 0.029541023, 0.000908877, 0.014447953, -0.011054363, -0.012882197, 0.0031382297, -0.0062260595, -0.009542368, 0.005742221, -0.01830522, -0.014542032, -0.029648542, -0.0077481344, -0.016074186, 0.0037766276, -0.018923458, -0.0077682943, -0.023869362, 0.0023150323, 0.008749411, -0.000101219666, -0.022310326, -0.024702638, 0.0037799876, 0.01814394, -0.0067938976, 0.034379408, 0.00091475697, 0.0113702025, -0.013910354, -0.018291779, 0.002113433, -0.02720247, -0.014085073, -0.019756734, 0.009858208, 0.02417848, 0.028600225, -0.0043007857, 0.012801558, 0.004260466, -0.015953228, 0.0025031918, 0.0025939115, -0.011733081, -0.018264899, 0.011155163, 0.005372622, 0.023654321, 0.01537531, -0.009582688, 0.004166386, -0.01497211, 0.012828438, -0.016692424, -0.013789395, -0.024796719, 0.0028996705, 0.008359652, -0.009320609, 0.01220348, -0.016652105, 0.006746858, 0.046206567, 0.010570525, 0.008675491, 0.026960552, 0.00031541896, -0.0179961, 0.012714198, -0.0004481385, 0.015496269, -0.01838586, -0.015079631, -0.012378199, 0.0017589541, 0.030938778, 0.016208587, -0.0044116653, -0.013023317, 0.0073650954, 0.001216316, -0.017592901, 0.0060043, -0.0029651902, 0.013500435, -0.0049559837, -0.031960215, 0.0019739934, -0.008373092, -0.024742959, -0.008366372, 0.016060747, -0.013520596, 0.010886364, -0.024124721, -0.0068174177, -0.002118473, 0.0005031583, 0.029836701, 0.010711645, 0.0010793965, 0.0085881315, -0.009938847, -0.005480142, 0.007580135, -0.00899133, -0.01198172, 0.035105165, 0.016988104, 0.00296351, -0.0017203143, 0.015657548, 0.022350647, -0.016074186, -0.019904574, 0.015697869, 0.013654995, 0.0047006244, -0.03935219, -0.016302666, -0.050480474, 0.023385523, 0.016477386, -0.020254012, -0.027874468, 0.0005447382, -0.040669307, 0.025320876, -0.01847994, -0.0031197497, 0.013124117, -0.002430952, -0.031207576, 0.0066998177, -0.0022360727, 0.00016138447, 0.006431019, 0.034029968, -0.013379476, 0.014918351, 0.0061386996, 0.019622335, -0.006306699, -0.009663328, 0.003339829, 0.019918013, -0.037443716, -0.008843491, -0.0043444657, -0.0125327585, 0.00902493, -0.0062764594, -0.017256903, -0.003581748, -0.015482829, -0.011464282, 0.011901081, -0.003348229, -0.021745848, -0.0117532415, 0.0043747057, -0.022431286, -0.013130836, -0.011417243, 0.013372756, -0.026530473, -0.024917677, -0.0047107046, 0.010812445, 0.0052550226, -0.0008769571, -0.0065990184, 0.019501375, 0.037981313, -0.0070290966, 0.015294669, 0.0018748738, 0.0067569376, -0.03346549, 0.005826221, 0.00024716917, 0.00059765804, 0.028600225, -0.018560579, -0.026409512, 0.008890531, -0.00300383, 0.019971775, 0.013198037, -0.009031651, -0.008608292, 0.02136953, -0.0013473555, -0.0085881315, -0.02416504, 0.021665208, 0.008655331, -0.005372622, 0.00610846, -0.016463945, 0.0014867951, -0.0100598065, -0.0034507087, 0.009481888, -0.02454136, -0.034029968, -0.0014506752, 0.001232276, 0.004425105, -0.026154153, -0.019098178, -0.015966667, -0.0013641554, -0.0070358166, -0.005863181, 0.0013145957, -0.00905181, 0.005140783, -0.011652442, 0.028707745, -0.015818827, -0.01845306, -0.021544248, 0.00010090467, -0.02709495, -0.025509035, -0.009145889, 0.025509035, 0.015066191, -0.0090450905, -0.012048921, -0.013043477, -0.028223908, -0.011007324, -0.004052147, 0.001846314, 0.020697532, 0.0087359715, -0.003338149, 0.03290101, 0.00040193868, 0.027713189, -0.0068778973, 0.00045065852, -0.0072172564, -0.007996773, 0.0037497475, 0.008628451, 0.0007370976, -0.014461393, 0.038626432, 0.014609232, 0.0051475028, 0.017189704, 0.0026073514, -0.007882534, -0.0133861955, -0.0028862304, -0.0062294193, 0.010469725, 0.0049828636, -0.009381089, -0.013332436, 0.0031903095, -0.006928297, -0.00013670955, 0.014488272, 0.0093542095, 0.0126066785, 0.0098985275, -0.010617565, 0.0018496739, -0.016853705, -0.015751628, 0.025414957, -0.000895437, -0.025173036, 0.020240573, 0.0008412572, -0.0043982253, -0.023318322, 0.03040118, -0.018977217, -0.013164436, -0.007600295, -0.017028423, -0.033546127, 0.0012549559, -0.007559975, -0.010221086, -0.0034507087, -0.0052550226, -0.025535915, -0.025965994, -0.0038807872, 0.005402862, -0.031879574, -0.04518513, -0.013648275, 0.027740069, -0.010006047, -0.009293729, -0.0068946974, -0.012888918, 0.012304279, 0.013722194, -0.0005459982, -0.01215644, 0.031073177, 0.016087627, -0.011101403, 0.02710839, 0.23052211, -0.01537531, 0.015402189, 0.03959411, 0.0055775815, 0.026584232, 0.0029047104, 0.0020294334, -0.014716751, 0.003900947, -0.008809891, -0.0017203143, 0.019017538, -0.00605134, 0.025535915, 0.007889254, -0.019192256, -0.014058193, -0.015738187, -0.029514143, 0.008695651, 0.002162153, -0.0018530339, -0.021813048, 0.0061487798, -0.0058732606, -0.0135340355, -0.0122975595, 0.027444389, 0.018950338, -0.0070358166, -0.00921309, 0.021517368, 0.0049862233, -0.017431622, 0.011565082, 0.0089711705, -0.0044284654, 0.028519586, 0.02710839, 0.011195483, -0.0004489785, -0.012828438, -0.019595455, -0.008467172, 0.017431622, -0.0023200724, -0.008715811, -0.01200188, -0.0043377457, 0.008776291, 0.0042134263, 0.0112962825, 0.012774678, 0.012747798, -0.002694711, 0.024890797, -0.011249243, -0.031879574, 0.024326319, -0.001216316, 0.016517706, -0.004764464, 0.009938847, -0.014165713, -0.006407499, 0.007271016, -0.0047174245, 0.0052819024, 0.0011071163, 0.0009676768, -0.016880585, -0.002743431, -0.007506215, -0.030858139, -0.010489886, -0.002110073, 0.019797055, 0.031825814, 0.018412739, -0.027551908, -0.0128418775, 0.010483165, -0.025455276, -0.025186477, -0.029809821, 0.0017404743, -0.013668435, -0.010819164, -0.0084268525, -0.011121564, -0.016396746, -0.009569248, -0.0060815797, 0.002141993, -0.008023653, -0.017230023, 0.028815264, 0.007291176, 0.0073247757, -0.029110944, 0.020388413, 0.01202204, 0.013601235, -0.0127679575, -0.010819164, -0.012431959, 0.011289563, 0.006935017, -0.01503931, -0.0034103887, 0.011047644, 0.012956117, 0.004818224, -0.013668435, 0.0062260595, 0.01538875, -0.013896914, 0.0038303873, -0.00095171685, -0.009643168, -0.019528255, -0.00607822, -0.00082445727, -0.0070156567, -0.0129157975, -0.013520596, -0.018842818, 0.012888918, -0.024447279, 0.0050399834, 0.010785565, 0.010725085, -0.0030777499, -0.007976614, 0.005160943, 0.0025283915, -0.00900477, -0.011887641, 0.03316981, -0.0012826758, -0.008494052, 0.0068274974, 0.0001803894, 0.011820441, -0.034406286, -0.00299879, -0.010120287, -0.0077682943, -0.01835898, -0.028600225, -0.013258516, -0.015899468, -0.00076733745, 0.020509372, -0.016450506, -0.031368855, -0.025912235, 0.013453395, 0.00012536958, -0.02116793, 0.0050265435, 0.029299103, -0.014609232, 0.004505745, -0.0037732676, -0.1762247, 0.001505275, 0.007055977, -0.011309722, 0.019004097, -0.013271956, 0.00303239, 0.0011171963, -0.002758551, 0.015926348, -0.00037295878, -0.010839324, -0.04319602, -0.012868757, -0.016423626, 0.016786505, -0.027874468, 0.0041563064, 0.011618841, 0.030696858, 0.017660102, -0.0050769434, 0.020052414, -0.020227132, 0.0014582352, 0.001517875, 0.009777567, 0.031987093, 0.005120623, -0.0091324495, -0.0063402993, -0.0104428455, -0.007855654, 0.005036623, 0.027525028, -0.011665882, 0.0047241445, -0.026987432, -0.014918351, 0.025186477, 0.033841807, 0.032175254, 0.0028963105, -0.013036757, 0.004179826, 0.016786505, 0.018439619, -0.010180767, 0.011659161, -0.005806061, 0.01220348, -0.043222897, 0.0015220749, -0.017216584, 0.00305255, 0.023869362, -0.011544921, -0.012317719, 0.009549089, 0.02416504, 0.0037060678, -0.021033531, 0.016450506, 0.010590685, 0.013251796, -0.017203143, -0.009643168, 0.009777567, -0.014689871, 0.018600898, -0.024286, -0.017942341, 0.0035044684, -0.011524762, 0.012814998, -0.010637725, -0.022740405, 0.026637992, -0.0027652709, -0.02122169, -0.021517368, 0.03327733, -0.01509307, 0.01782138, 0.012190039, 0.022054967, -0.004499025, 0.0037396676, 0.002740071, 0.0006404979, 0.03255157, -0.0061219, -0.010261406, -0.014165713, 0.022162486, 0.016396746, 0.015482829, 0.002180633, -0.00035258883, -0.00059387804, -0.013816275, -0.034029968, -0.011907801, 0.0034910284, 0.019313216, 0.008413413, 0.011269403, 0.00068081776, 0.0043444657, -0.019676095, -0.031180697, 0.017404743, 0.019797055, 0.029030304, -0.00061739795, 0.010960284, -0.026019754, -0.021584569, 0.00900477, 0.016988104, 0.037604995, -0.005785901, -0.005510382, 0.014501712, -0.00015875947, -0.012143, -0.06531818, -0.021880249, 0.010967004, 0.028761504, 0.003598548, 0.017001543, -0.00066359784, 0.005869901, -0.000609838, -0.0028744705, -0.0040319865, -0.029433502, -0.025616555, -0.013480276, 0.013708754, -0.008803171, 0.0024914318, -0.002057993, -0.000905517, 0.022646325, -0.014810831, -0.019743295, 0.0018513539, -0.0181305, -0.009461729, -0.0002122043, -0.034460045, 0.035239562, 0.016961224, -0.010967004, -0.0076204548, -0.0044452655, 0.02682615, -0.019205697, -0.022081846, 0.0070290966, -0.044486254, -0.004519185, 0.021786168, -0.02718903, -0.0071500563, 0.008346212, -0.001800954, -0.023143604, -0.015832268, -0.0037900675, -0.007922854, 0.041153144, 0.0058766208, -0.020428732, -0.030858139, -0.009938847, -0.029110944, -0.020737851, 0.023278004, 0.0028610306, 0.026248233, 0.0019420736, -0.02443384, -0.00037757875, 0.0071231765, -0.016504265, -0.005379342, 0.017310662, 0.012680599, 0.009502049, -0.011807001, 0.0048887837, 0.011766681, 0.0053054225, -0.008944291, 0.008245413, -0.014206033, 0.025589675, -0.01782138, -0.0058967806, -0.023022644, -0.030508699, 0.023224244, 0.0014254752, -0.017095624, -0.02093945, -0.0013943954, -0.019474495, 0.005782541, 0.019487936, -0.0054062223, 0.008191653, 0.0035716682, -0.026396073, 0.014138834, 0.044190574, 0.0065284586, -0.02084537, -0.008063973, -0.0051844628, 0.010328606, 0.0070223766, 0.011571802, -0.0022192728, -0.028976545, -0.023479603, -0.06392043, 0.025845034, 0.008373092, -0.008500772, -0.008225253, -0.008883811, -0.010967004, -0.0053356625, -0.014246353, 0.005728781, -0.00029336903, -0.005345742, 0.008957731, -0.0034708686, -0.018090181, 0.0064746984, 0.021436729, -0.008675491, 0.024729518, 0.0047443043, -0.010355486, -0.0105167655, 0.00013838954, -0.0009374369, -0.0061655794, 0.015254349, -0.03916403, 0.018990656, -0.010832604, -0.01513339, 0.010812445, -0.03282037, -0.0038807872, 0.01498555, -0.0052819024, -0.0031365496, -0.0077548544, 0.044755053, 0.0044486253, -0.0012238759, -0.00302231, -0.022659766, -0.003625428, -0.019259457, 0.00613534, 0.020401852, -0.019850815, -0.029702302, 0.02404408, 0.0032776692, 0.0061319796, 0.012290839, -0.029756062, -0.026664872, -0.016006988, -0.028519586, 0.02440696, -0.01538875, 0.001528795, -0.017203143, 0.04540017, -0.008433572, -0.010550365, -0.023775281, 0.012418519, -0.00046955844, -0.017068744, 0.013856594, 0.0010306766, -0.011686041, -0.013426515, -0.0025871915, -0.004015187, 0.03623412, 0.015818827, 0.016719304, -0.014447953, 0.013641555, -0.008386532, 0.021920567, 0.009979167, 0.005137423, -0.014138834, 0.0029534302, 0.03029366, 0.022323767, -0.009582688, -0.00093995687, -0.008010213, 0.00302399, -0.019555135, 0.013164436, -0.004851824, 0.00014426952, 0.010503326, 0.006646058, 0.001794234, 0.0058497405, 0.014878031, 0.022659766, 0.004525905, -0.00895101, 0.0016077547, -0.0062193396, -0.004858544, -0.0001809144, -0.037282437, -0.031100057, 0.012626838, -0.0021907128, -0.011027483, -0.008272293, 0.034943886, 0.017149383, -0.021853367, 0.023802161, 0.0018026341, -0.009811168, -0.025764395, 0.026839592, -0.001186916, 0.0073314956, 0.026920231, -0.013144276, 0.014192593, 0.0034103887, 0.008648612, -0.024689198, 0.0076271747, 0.002691351, -0.009468448, 0.0027988707, -0.0051038233, -0.019178817, 0.0005728781, 0.008084133, -0.010106847, 0.035669643, -0.006867817, 0.082145005, -0.0020025533, -0.0023049524, 0.0088972505, -0.0040891063, 0.023116723, 0.00891069, 0.020885691, -0.014031313, 0.0028324707, 0.011538202, 0.0031365496, -0.008084133, -0.0084268525, -0.016544586, -0.012633558, -0.0057724607, 0.016208587, -0.016853705, 0.010012767, 0.018587459, 0.012720918, 0.02102009, 0.01518715, -0.012492439, -0.023062963, 0.023062963, -0.014542032, -0.014595792, -0.029863581, -0.011726362, -0.0015632348, -0.026691752, -0.008097573, 0.010711645, 0.010772124, -0.005093743, -0.03287413, -0.003890867, 0.014676431, 0.0032255894, 0.026113834, -0.0101337265, -0.003301189, -0.00038639872, 0.010967004, -0.017014984, -0.00007502225, -0.0240844 ] } ], "model": "text-embedding-ada-002-v2", "usage": { "prompt_tokens": 5, "total_tokens": 5 } } ``` Please. help me out, I'm totally frustrated, because the embedding method was /POST type, but after overriding library calls /GET embeddings ### Expected behavior A few weeks ago this code works correct, and I don't mind where the problem can be
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8777/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8777/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8776
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8776/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8776/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8776/events
https://github.com/langchain-ai/langchain/pull/8776
1,837,354,723
PR_kwDOIPDwls5XOt1L
8,776
Async RetryOutputParser, RetryWithErrorOutputParser and OutputFixingParser
{ "login": "Bennji94", "id": 11806209, "node_id": "MDQ6VXNlcjExODA2MjA5", "avatar_url": "https://avatars.githubusercontent.com/u/11806209?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Bennji94", "html_url": "https://github.com/Bennji94", "followers_url": "https://api.github.com/users/Bennji94/followers", "following_url": "https://api.github.com/users/Bennji94/following{/other_user}", "gists_url": "https://api.github.com/users/Bennji94/gists{/gist_id}", "starred_url": "https://api.github.com/users/Bennji94/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Bennji94/subscriptions", "organizations_url": "https://api.github.com/users/Bennji94/orgs", "repos_url": "https://api.github.com/users/Bennji94/repos", "events_url": "https://api.github.com/users/Bennji94/events{/privacy}", "received_events_url": "https://api.github.com/users/Bennji94/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
1
2023-08-04T21:14:46
2023-08-07T21:42:49
2023-08-07T21:42:48
CONTRIBUTOR
null
Added async parsing functions for RetryOutputParser, RetryWithErrorOutputParser and OutputFixingParser. The async parse functions call the arun methods of the used LLMChains. Fix for #7989
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8776/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8776/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8776", "html_url": "https://github.com/langchain-ai/langchain/pull/8776", "diff_url": "https://github.com/langchain-ai/langchain/pull/8776.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8776.patch", "merged_at": "2023-08-07T21:42:48" }
https://api.github.com/repos/langchain-ai/langchain/issues/8775
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8775/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8775/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8775/events
https://github.com/langchain-ai/langchain/issues/8775
1,837,350,467
I_kwDOIPDwls5tg75D
8,775
Just install Langchain and getting Import error from typing extensions
{ "login": "RishabhDey", "id": 75045238, "node_id": "MDQ6VXNlcjc1MDQ1MjM4", "avatar_url": "https://avatars.githubusercontent.com/u/75045238?v=4", "gravatar_id": "", "url": "https://api.github.com/users/RishabhDey", "html_url": "https://github.com/RishabhDey", "followers_url": "https://api.github.com/users/RishabhDey/followers", "following_url": "https://api.github.com/users/RishabhDey/following{/other_user}", "gists_url": "https://api.github.com/users/RishabhDey/gists{/gist_id}", "starred_url": "https://api.github.com/users/RishabhDey/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RishabhDey/subscriptions", "organizations_url": "https://api.github.com/users/RishabhDey/orgs", "repos_url": "https://api.github.com/users/RishabhDey/repos", "events_url": "https://api.github.com/users/RishabhDey/events{/privacy}", "received_events_url": "https://api.github.com/users/RishabhDey/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-08-04T21:09:37
2023-11-10T16:05:47
2023-11-10T16:05:46
NONE
null
### System Info Latest versions of langchain at the current time. ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [x] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Literally just pip installed lang-chain and getting the error: ImportError: cannot import name 'dataclass_transform' from 'typing_extensions'. I tried upgrading pydantic and typing_extensions which only make the problem worse. ### Expected behavior No import errors.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8775/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8775/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8774
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8774/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8774/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8774/events
https://github.com/langchain-ai/langchain/pull/8774
1,837,333,600
PR_kwDOIPDwls5XOpC8
8,774
Extend the StreamlitChatMessageHistory docs with a fuller example and…
{ "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" } ]
closed
false
null
[]
null
3
2023-08-04T20:58:58
2023-08-04T21:27:47
2023-08-04T21:27:47
CONTRIBUTOR
null
Add more details to the [notebook for StreamlitChatMessageHistory](https://python.langchain.com/docs/integrations/memory/streamlit_chat_message_history), including a link to a [running example app](https://langchain-st-memory.streamlit.app/). Original PR: https://github.com/langchain-ai/langchain/pull/8497
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8774/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8774/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8774", "html_url": "https://github.com/langchain-ai/langchain/pull/8774", "diff_url": "https://github.com/langchain-ai/langchain/pull/8774.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8774.patch", "merged_at": "2023-08-04T21:27:47" }
https://api.github.com/repos/langchain-ai/langchain/issues/8773
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8773/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8773/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8773/events
https://github.com/langchain-ai/langchain/pull/8773
1,837,320,744
PR_kwDOIPDwls5XOmKV
8,773
rm sklearn links
{ "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" } ]
closed
false
null
[]
null
1
2023-08-04T20:48:01
2023-08-04T21:28:01
2023-08-04T21:28:00
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8773/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8773/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8773", "html_url": "https://github.com/langchain-ai/langchain/pull/8773", "diff_url": "https://github.com/langchain-ai/langchain/pull/8773.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8773.patch", "merged_at": "2023-08-04T21:28:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/8772
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8772/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8772/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8772/events
https://github.com/langchain-ai/langchain/pull/8772
1,837,292,543
PR_kwDOIPDwls5XOf-r
8,772
rfc: runnable locals
{ "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": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
7
2023-08-04T20:20:22
2023-08-11T00:12:18
2023-08-11T00:12:18
COLLABORATOR
null
add concept of locals, which is state to pass around in RunnableSequence, and specific runnable for read/write to locals. cc @jacoblee93 @nfcampos ![Screenshot 2023-08-04 at 1 18 36 PM](https://github.com/langchain-ai/langchain/assets/22008038/1e9608cb-e4c1-4df1-956e-e5f640929b56)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8772/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8772/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8772", "html_url": "https://github.com/langchain-ai/langchain/pull/8772", "diff_url": "https://github.com/langchain-ai/langchain/pull/8772.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8772.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/8771
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8771/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8771/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8771/events
https://github.com/langchain-ai/langchain/pull/8771
1,837,256,833
PR_kwDOIPDwls5XOYQC
8,771
Fix invalid escape sequence warnings
{ "login": "aemr3", "id": 6818719, "node_id": "MDQ6VXNlcjY4MTg3MTk=", "avatar_url": "https://avatars.githubusercontent.com/u/6818719?v=4", "gravatar_id": "", "url": "https://api.github.com/users/aemr3", "html_url": "https://github.com/aemr3", "followers_url": "https://api.github.com/users/aemr3/followers", "following_url": "https://api.github.com/users/aemr3/following{/other_user}", "gists_url": "https://api.github.com/users/aemr3/gists{/gist_id}", "starred_url": "https://api.github.com/users/aemr3/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aemr3/subscriptions", "organizations_url": "https://api.github.com/users/aemr3/orgs", "repos_url": "https://api.github.com/users/aemr3/repos", "events_url": "https://api.github.com/users/aemr3/events{/privacy}", "received_events_url": "https://api.github.com/users/aemr3/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" } ]
closed
false
null
[]
null
1
2023-08-04T19:45:53
2023-08-07T04:56:26
2023-08-07T00:01:18
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - 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 you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md --> Description: The lines I have changed looks like incorrectly escaped for regex. In python 3.11, I receive DeprecationWarning for these lines. You don't see any warnings unless you explicitly run python with `-W always::DeprecationWarning` flag. So, this is my attempt to fix it. Here are the warnings from log files: ``` /usr/local/lib/python3.11/site-packages/langchain/text_splitter.py:919: DeprecationWarning: invalid escape sequence '\s' /usr/local/lib/python3.11/site-packages/langchain/text_splitter.py:918: DeprecationWarning: invalid escape sequence '\s' /usr/local/lib/python3.11/site-packages/langchain/text_splitter.py:917: DeprecationWarning: invalid escape sequence '\s' /usr/local/lib/python3.11/site-packages/langchain/text_splitter.py:916: DeprecationWarning: invalid escape sequence '\c' /usr/local/lib/python3.11/site-packages/langchain/text_splitter.py:903: DeprecationWarning: invalid escape sequence '\*' /usr/local/lib/python3.11/site-packages/langchain/text_splitter.py:804: DeprecationWarning: invalid escape sequence '\*' /usr/local/lib/python3.11/site-packages/langchain/text_splitter.py:804: DeprecationWarning: invalid escape sequence '\*' ``` cc @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8771/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8771/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8771", "html_url": "https://github.com/langchain-ai/langchain/pull/8771", "diff_url": "https://github.com/langchain-ai/langchain/pull/8771.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8771.patch", "merged_at": "2023-08-07T00:01:18" }
https://api.github.com/repos/langchain-ai/langchain/issues/8770
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8770/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8770/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8770/events
https://github.com/langchain-ai/langchain/pull/8770
1,837,223,672
PR_kwDOIPDwls5XORE5
8,770
Create ChatAnyscale
{ "login": "joshuasundance-swca", "id": 84336755, "node_id": "MDQ6VXNlcjg0MzM2NzU1", "avatar_url": "https://avatars.githubusercontent.com/u/84336755?v=4", "gravatar_id": "", "url": "https://api.github.com/users/joshuasundance-swca", "html_url": "https://github.com/joshuasundance-swca", "followers_url": "https://api.github.com/users/joshuasundance-swca/followers", "following_url": "https://api.github.com/users/joshuasundance-swca/following{/other_user}", "gists_url": "https://api.github.com/users/joshuasundance-swca/gists{/gist_id}", "starred_url": "https://api.github.com/users/joshuasundance-swca/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/joshuasundance-swca/subscriptions", "organizations_url": "https://api.github.com/users/joshuasundance-swca/orgs", "repos_url": "https://api.github.com/users/joshuasundance-swca/repos", "events_url": "https://api.github.com/users/joshuasundance-swca/events{/privacy}", "received_events_url": "https://api.github.com/users/joshuasundance-swca/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" } ]
closed
false
null
[]
null
7
2023-08-04T19:12:55
2023-08-10T09:45:57
2023-08-07T20:21:06
CONTRIBUTOR
null
- Description: Adds the ChatAnyscale class with llama-2 7b, llama-2 13b, and llama-2 70b on [Anyscale Endpoints](https://app.endpoints.anyscale.com/) - It inherits from ChatOpenAI and requires openai (probably unnecessary but it made for a quick and easy implementation) - Inspired by https://github.com/langchain-ai/langchain/pull/8434 (@kylehh and @baskaryan )
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8770/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8770/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8770", "html_url": "https://github.com/langchain-ai/langchain/pull/8770", "diff_url": "https://github.com/langchain-ai/langchain/pull/8770.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8770.patch", "merged_at": "2023-08-07T20:21:06" }
https://api.github.com/repos/langchain-ai/langchain/issues/8769
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8769/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8769/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8769/events
https://github.com/langchain-ai/langchain/pull/8769
1,837,176,485
PR_kwDOIPDwls5XOGtp
8,769
add documentation for serializer function
{ "login": "balnarendrasapa", "id": 61614290, "node_id": "MDQ6VXNlcjYxNjE0Mjkw", "avatar_url": "https://avatars.githubusercontent.com/u/61614290?v=4", "gravatar_id": "", "url": "https://api.github.com/users/balnarendrasapa", "html_url": "https://github.com/balnarendrasapa", "followers_url": "https://api.github.com/users/balnarendrasapa/followers", "following_url": "https://api.github.com/users/balnarendrasapa/following{/other_user}", "gists_url": "https://api.github.com/users/balnarendrasapa/gists{/gist_id}", "starred_url": "https://api.github.com/users/balnarendrasapa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/balnarendrasapa/subscriptions", "organizations_url": "https://api.github.com/users/balnarendrasapa/orgs", "repos_url": "https://api.github.com/users/balnarendrasapa/repos", "events_url": "https://api.github.com/users/balnarendrasapa/events{/privacy}", "received_events_url": "https://api.github.com/users/balnarendrasapa/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" } ]
closed
false
null
[]
null
1
2023-08-04T18:29:24
2023-08-04T18:52:21
2023-08-04T18:39:41
CONTRIBUTOR
null
Description: Added necessary documentation for serializer functions @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8769/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8769/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8769", "html_url": "https://github.com/langchain-ai/langchain/pull/8769", "diff_url": "https://github.com/langchain-ai/langchain/pull/8769.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8769.patch", "merged_at": "2023-08-04T18:39:41" }
https://api.github.com/repos/langchain-ai/langchain/issues/8767
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8767/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8767/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8767/events
https://github.com/langchain-ai/langchain/pull/8767
1,837,101,669
PR_kwDOIPDwls5XN2to
8,767
Improving the text of the invalid tool to list the available tools.
{ "login": "paulhager", "id": 15194617, "node_id": "MDQ6VXNlcjE1MTk0NjE3", "avatar_url": "https://avatars.githubusercontent.com/u/15194617?v=4", "gravatar_id": "", "url": "https://api.github.com/users/paulhager", "html_url": "https://github.com/paulhager", "followers_url": "https://api.github.com/users/paulhager/followers", "following_url": "https://api.github.com/users/paulhager/following{/other_user}", "gists_url": "https://api.github.com/users/paulhager/gists{/gist_id}", "starred_url": "https://api.github.com/users/paulhager/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/paulhager/subscriptions", "organizations_url": "https://api.github.com/users/paulhager/orgs", "repos_url": "https://api.github.com/users/paulhager/repos", "events_url": "https://api.github.com/users/paulhager/events{/privacy}", "received_events_url": "https://api.github.com/users/paulhager/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" } ]
closed
false
null
[]
null
1
2023-08-04T17:19:20
2023-08-06T01:09:33
2023-08-06T01:09:32
CONTRIBUTOR
null
Description: When using a ReAct Agent with tools and no tool is found, the InvalidTool gets called. Previously it just asked for a different action, but I've found that if you list the available actions it improves the chances of getting a valid action in the next round. I've added a UnitTest for it also. @hinthornw
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8767/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8767/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8767", "html_url": "https://github.com/langchain-ai/langchain/pull/8767", "diff_url": "https://github.com/langchain-ai/langchain/pull/8767.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8767.patch", "merged_at": "2023-08-06T01:09:32" }
https://api.github.com/repos/langchain-ai/langchain/issues/8766
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8766/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8766/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8766/events
https://github.com/langchain-ai/langchain/issues/8766
1,837,073,191
I_kwDOIPDwls5tf4Mn
8,766
LlamaCppEmbeddings does not work with n_gpu_layers
{ "login": "nparraa10", "id": 51352112, "node_id": "MDQ6VXNlcjUxMzUyMTEy", "avatar_url": "https://avatars.githubusercontent.com/u/51352112?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nparraa10", "html_url": "https://github.com/nparraa10", "followers_url": "https://api.github.com/users/nparraa10/followers", "following_url": "https://api.github.com/users/nparraa10/following{/other_user}", "gists_url": "https://api.github.com/users/nparraa10/gists{/gist_id}", "starred_url": "https://api.github.com/users/nparraa10/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nparraa10/subscriptions", "organizations_url": "https://api.github.com/users/nparraa10/orgs", "repos_url": "https://api.github.com/users/nparraa10/repos", "events_url": "https://api.github.com/users/nparraa10/events{/privacy}", "received_events_url": "https://api.github.com/users/nparraa10/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-08-04T16:52:30
2023-11-10T16:05:52
2023-11-10T16:05:51
NONE
null
### System Info I am used langchain to get a text embedding with the next code: ``` from langchain.embeddings import LlamaCppEmbeddings llama = LlamaCppEmbeddings(model_path="/alloc/data/fury_mld-nlp-search/ggml-model-q4_0.bin",n_gpu_layers=None) embedding= llama.embed_documents(["Thi is a text"]) ``` The problem is the prediction takes a long time. For this reason, I try to to use a GPU ''Tesla V100-SXM2-16GB''. When i use the GPU layer, example ``` from langchain.embeddings import LlamaCppEmbeddings llama = LlamaCppEmbeddings(model_path="/alloc/data/fury_mld-nlp-search/ggml-model-q4_0.bin",n_gpu_layers=1) ``` I get the follows: ``` Exception ignored in: <function Llama.__del__ at 0x7f29f59cab80> Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/llama_cpp/llama.py", line 978, in __del__ if self.ctx is not None: AttributeError: 'Llama' object has no attribute 'ctx' --------------------------------------------------------------------------- ValidationError Traceback (most recent call last) Input In [9], in <cell line: 1>() ----> 1 llama = LlamaCppEmbeddings(model_path="/alloc/data/fury_mld-nlp-search/ggml-model-q4_0.bin",n_gpu_layers=1) File /usr/local/lib/python3.9/site-packages/pydantic/main.py:341, in pydantic.main.BaseModel.__init__() ValidationError: 1 validation error for LlamaCppEmbeddings __root__ Could not load Llama model from path: /alloc/data/fury_mld-nlp-search/ggml-model-q4_0.bin. Received error __init__() got an unexpected keyword argument 'n_gpu_layers' (type=value_error) ``` I am using the versions llama-cpp-python==0.1.48 y langachain=0.0.252 Some Idea? ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` from langchain.embeddings import LlamaCppEmbeddings llama = LlamaCppEmbeddings(model_path="/alloc/data/fury_mld-nlp-search/ggml-model-q4_0.bin",n_gpu_layers=1) ``` ### Expected behavior ``` Exception ignored in: <function Llama.__del__ at 0x7f29f59cab80> Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/llama_cpp/llama.py", line 978, in __del__ if self.ctx is not None: AttributeError: 'Llama' object has no attribute 'ctx' --------------------------------------------------------------------------- ValidationError Traceback (most recent call last) Input In [9], in <cell line: 1>() ----> 1 llama = LlamaCppEmbeddings(model_path="/alloc/data/fury_mld-nlp-search/ggml-model-q4_0.bin",n_gpu_layers=1) File /usr/local/lib/python3.9/site-packages/pydantic/main.py:341, in pydantic.main.BaseModel.__init__() ValidationError: 1 validation error for LlamaCppEmbeddings __root__ Could not load Llama model from path: /alloc/data/fury_mld-nlp-search/ggml-model-q4_0.bin. Received error __init__() got an unexpected keyword argument 'n_gpu_layers' (type=value_error) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8766/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8766/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8765
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8765/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8765/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8765/events
https://github.com/langchain-ai/langchain/pull/8765
1,837,036,540
PR_kwDOIPDwls5XNooc
8,765
Updates fireworks
{ "login": "rjanardhan3", "id": 12781611, "node_id": "MDQ6VXNlcjEyNzgxNjEx", "avatar_url": "https://avatars.githubusercontent.com/u/12781611?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rjanardhan3", "html_url": "https://github.com/rjanardhan3", "followers_url": "https://api.github.com/users/rjanardhan3/followers", "following_url": "https://api.github.com/users/rjanardhan3/following{/other_user}", "gists_url": "https://api.github.com/users/rjanardhan3/gists{/gist_id}", "starred_url": "https://api.github.com/users/rjanardhan3/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rjanardhan3/subscriptions", "organizations_url": "https://api.github.com/users/rjanardhan3/orgs", "repos_url": "https://api.github.com/users/rjanardhan3/repos", "events_url": "https://api.github.com/users/rjanardhan3/events{/privacy}", "received_events_url": "https://api.github.com/users/rjanardhan3/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" } ]
closed
false
null
[]
null
1
2023-08-04T16:23:25
2023-08-04T17:32:22
2023-08-04T17:32:22
CONTRIBUTOR
null
- Description: Updates to Fireworks Documentation, - Issue: N/A, - Dependencies: N/A, - Tag maintainer: @rlancemartin,
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8765/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8765/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8765", "html_url": "https://github.com/langchain-ai/langchain/pull/8765", "diff_url": "https://github.com/langchain-ai/langchain/pull/8765.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8765.patch", "merged_at": "2023-08-04T17:32:22" }
https://api.github.com/repos/langchain-ai/langchain/issues/8764
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8764/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8764/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8764/events
https://github.com/langchain-ai/langchain/issues/8764
1,837,018,787
I_kwDOIPDwls5tfq6j
8,764
PlanAndExecute Agent Error: langchain.tools.base.ToolException: Too many arguments to single-input
{ "login": "rajivraghu", "id": 5885193, "node_id": "MDQ6VXNlcjU4ODUxOTM=", "avatar_url": "https://avatars.githubusercontent.com/u/5885193?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rajivraghu", "html_url": "https://github.com/rajivraghu", "followers_url": "https://api.github.com/users/rajivraghu/followers", "following_url": "https://api.github.com/users/rajivraghu/following{/other_user}", "gists_url": "https://api.github.com/users/rajivraghu/gists{/gist_id}", "starred_url": "https://api.github.com/users/rajivraghu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rajivraghu/subscriptions", "organizations_url": "https://api.github.com/users/rajivraghu/orgs", "repos_url": "https://api.github.com/users/rajivraghu/repos", "events_url": "https://api.github.com/users/rajivraghu/events{/privacy}", "received_events_url": "https://api.github.com/users/rajivraghu/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-08-04T16:10:24
2023-11-10T16:05:56
2023-11-10T16:05:56
NONE
null
### System Info Hello, I am trying to use PlanAndExecute Agent... and getting error langchain.tools.base.ToolException: Too many arguments to single-input. I am using SQLDatabaseToolkit & a custom tool . Let me know if i need to modify in the below code... ``` toolkit = SQLDatabaseToolkit(db=db, llm=llm) tools = [ *toolkit.get_tools(), send_email_tool ] planner = load_chat_planner(llm) executor = load_agent_executor(llm, tools, verbose=True) agent = PlanAndExecute(planner=planner, executor=executor, verbose=True) agent.run( "Find total number of orders & total number of customers and send an email" ) ``` Custom tool.. ``` def send_email(inputs: str): print('sending Email.....') return 'Sent email....' send_email_tool = Tool( name='Send Email', func=send_email, description="Useful for sending emails" ) ``` The agent runs... in the last step it is failing with the below Exception... ``` ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rraghuna\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\tools\base.py", line 476, in _to_args_and_kwargs raise ToolException( langchain.tools.base.ToolException: Too many arguments to single-input tool Send Email. Args: ['Database Summary', 'Here is a summary of the data:\n\nTotal number of orders: 16\nTotal number of customers: 3'] ``` ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Steps listed above ### Expected behavior Expected behaviour is it should work fine
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8764/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8764/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8763
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8763/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8763/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8763/events
https://github.com/langchain-ai/langchain/pull/8763
1,837,016,222
PR_kwDOIPDwls5XNkK1
8,763
Internal code deprecation API
{ "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": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
5
2023-08-04T16:08:16
2023-08-08T19:42:24
2023-08-08T19:42:22
COLLABORATOR
null
Proposal for an internal API to deprecate LangChain code. This PR is heavily based on: https://github.com/matplotlib/matplotlib/blob/main/lib/matplotlib/_api/deprecation.py This PR only includes deprecation functionality (no renaming etc.). Additional functionality can be added on a need basis (e.g., renaming parameters), but best to roll out as an MVP to test this out. DeprecationWarnings are ignored by default. We can change the policy for the deprecation warnings, but we'll need to make sure we're not creating noise for users due to internal code invoking deprecated functionality.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8763/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8763/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8763", "html_url": "https://github.com/langchain-ai/langchain/pull/8763", "diff_url": "https://github.com/langchain-ai/langchain/pull/8763.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8763.patch", "merged_at": "2023-08-08T19:42:22" }
https://api.github.com/repos/langchain-ai/langchain/issues/8762
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8762/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8762/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8762/events
https://github.com/langchain-ai/langchain/pull/8762
1,837,000,436
PR_kwDOIPDwls5XNg0_
8,762
Adds transform support for runnables
{ "login": "nfcampos", "id": 56902, "node_id": "MDQ6VXNlcjU2OTAy", "avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nfcampos", "html_url": "https://github.com/nfcampos", "followers_url": "https://api.github.com/users/nfcampos/followers", "following_url": "https://api.github.com/users/nfcampos/following{/other_user}", "gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}", "starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions", "organizations_url": "https://api.github.com/users/nfcampos/orgs", "repos_url": "https://api.github.com/users/nfcampos/repos", "events_url": "https://api.github.com/users/nfcampos/events{/privacy}", "received_events_url": "https://api.github.com/users/nfcampos/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
3
2023-08-04T15:55:46
2023-08-09T11:34:24
2023-08-09T11:34:23
COLLABORATOR
null
<!-- Thank you for contributing to LangChain! Replace this comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - 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 you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8762/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8762/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8762", "html_url": "https://github.com/langchain-ai/langchain/pull/8762", "diff_url": "https://github.com/langchain-ai/langchain/pull/8762.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8762.patch", "merged_at": "2023-08-09T11:34:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/8761
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8761/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8761/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8761/events
https://github.com/langchain-ai/langchain/pull/8761
1,836,952,406
PR_kwDOIPDwls5XNWYJ
8,761
update rss doc
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-04T15:25:14
2023-08-04T15:25:22
2023-08-04T15:25:21
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8761/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8761/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8761", "html_url": "https://github.com/langchain-ai/langchain/pull/8761", "diff_url": "https://github.com/langchain-ai/langchain/pull/8761.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8761.patch", "merged_at": "2023-08-04T15:25:21" }
https://api.github.com/repos/langchain-ai/langchain/issues/8760
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8760/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8760/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8760/events
https://github.com/langchain-ai/langchain/pull/8760
1,836,920,836
PR_kwDOIPDwls5XNPhU
8,760
Revert "add filter to sklearn vector store functions (#8113)"
{ "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": 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" } ]
closed
false
null
[]
null
1
2023-08-04T15:04:34
2023-08-04T15:13:34
2023-08-04T15:13:33
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8760/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8760/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8760", "html_url": "https://github.com/langchain-ai/langchain/pull/8760", "diff_url": "https://github.com/langchain-ai/langchain/pull/8760.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8760.patch", "merged_at": "2023-08-04T15:13:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/8759
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8759/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8759/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8759/events
https://github.com/langchain-ai/langchain/pull/8759
1,836,902,740
PR_kwDOIPDwls5XNLlC
8,759
bump 252
{ "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": 5010622926, "node_id": "LA_kwDOIPDwls8AAAABKqgJzg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/release", "name": "release", "color": "07D4BE", "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" } ]
closed
false
null
[]
null
1
2023-08-04T14:52:05
2023-08-04T15:22:18
2023-08-04T15:22:17
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8759/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8759/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8759", "html_url": "https://github.com/langchain-ai/langchain/pull/8759", "diff_url": "https://github.com/langchain-ai/langchain/pull/8759.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8759.patch", "merged_at": "2023-08-04T15:22:17" }
https://api.github.com/repos/langchain-ai/langchain/issues/8758
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8758/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8758/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8758/events
https://github.com/langchain-ai/langchain/pull/8758
1,836,897,204
PR_kwDOIPDwls5XNKX5
8,758
JsonOutputFunctionParser: Fix mutation in place bug
{ "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": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-08-04T14:48:10
2023-08-07T18:32:47
2023-08-07T18:32:46
COLLABORATOR
null
Fixes mutation in place in the JsonOutputFunctionParser. This causes issues when trying to re-use the original AI message.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8758/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8758/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8758", "html_url": "https://github.com/langchain-ai/langchain/pull/8758", "diff_url": "https://github.com/langchain-ai/langchain/pull/8758.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8758.patch", "merged_at": "2023-08-07T18:32:46" }
https://api.github.com/repos/langchain-ai/langchain/issues/8757
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8757/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8757/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8757/events
https://github.com/langchain-ai/langchain/issues/8757
1,836,813,439
I_kwDOIPDwls5te4x_
8,757
ValueError: Received invalid destination chain name for MultiRetrievalQAChain
{ "login": "Revanth-guduru-balaji", "id": 66727119, "node_id": "MDQ6VXNlcjY2NzI3MTE5", "avatar_url": "https://avatars.githubusercontent.com/u/66727119?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Revanth-guduru-balaji", "html_url": "https://github.com/Revanth-guduru-balaji", "followers_url": "https://api.github.com/users/Revanth-guduru-balaji/followers", "following_url": "https://api.github.com/users/Revanth-guduru-balaji/following{/other_user}", "gists_url": "https://api.github.com/users/Revanth-guduru-balaji/gists{/gist_id}", "starred_url": "https://api.github.com/users/Revanth-guduru-balaji/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Revanth-guduru-balaji/subscriptions", "organizations_url": "https://api.github.com/users/Revanth-guduru-balaji/orgs", "repos_url": "https://api.github.com/users/Revanth-guduru-balaji/repos", "events_url": "https://api.github.com/users/Revanth-guduru-balaji/events{/privacy}", "received_events_url": "https://api.github.com/users/Revanth-guduru-balaji/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
2023-08-04T14:06:30
2023-11-10T16:06:02
2023-11-10T16:06:01
NONE
null
### System Info langchain 0.0.251 Python 3.10.9 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I have retirevers info like below [{'name': 'Information of requirements from REQ1 to REQ1.1.2', 'description': "Good for gathering requirements statements for the REQ's present in this list ['REQ1', 'REQ1.1', 'REQ1.1.1', 'REQ1.1.2'].", 'retriever': VectorStoreRetriever(tags=['FAISS'], metadata=None, vectorstore=<langchain.vectorstores.faiss.FAISS object at 0x0000017A8FFAF2E0>, search_type='similarity', search_kwargs={'k': 4, 'max_source': 4})}, {'name': 'Information of requirements from REQ2 to REQ3.1.1.1', 'description': "Good for gathering requirements statements for the REQ's present in this list ['REQ2', 'REQ2.1', 'REQ2.2', 'REQ2.2.1', 'REQ2.2.1.1', 'REQ2.3', 'REQ2.4', 'REQ2.4.1', 'REQ2.4.2', 'REQ2.4.3', 'REQ2.5', 'REQ2.5.1', 'REQ2.5.2', 'REQ2.5.2.1', 'REQ2.5.2.2', 'REQ2.5.2.3', 'REQ2.5.3', 'REQ2.6', 'REQ2.6.1', 'REQ2.6.2', 'REQ2.6.2.1', 'REQ2.6.2.2', 'REQ3', 'REQ3.1', 'REQ3.1.1', 'REQ3.1.1.1'].", 'retriever': VectorStoreRetriever(tags=['FAISS'], metadata=None, vectorstore=<langchain.vectorstores.faiss.FAISS object at 0x0000017A8FFAF7C0>, search_type='similarity', search_kwargs={'k': 4, 'max_source': 4})}, {'name': 'Information of requirements from REQ3.1.2 to REQ5.1.2', 'description': "Good for gathering requirements statements for the REQ's present in this list ['REQ3.1.2', 'REQ3.2', 'REQ3.2.1', 'REQ3.2.1.1', 'REQ3.2.1.2', 'REQ3.2.1.3', 'REQ3.2.2', 'REQ3.2.2.1', 'REQ3.2.2.2', 'REQ3.2.2.3', 'REQ3.2.2.4', 'REQ3.2.3', 'REQ3.3', 'REQ3.3.1', 'REQ3.3.2', 'REQ4', 'REQ4.1', 'REQ4.2', 'REQ5', 'REQ5.1', 'REQ5.1.1', 'REQ5.1.1.1', 'REQ5.1.1.2', 'REQ5.1.2'].", 'retriever': VectorStoreRetriever(tags=['FAISS'], metadata=None, vectorstore=<langchain.vectorstores.faiss.FAISS object at 0x0000017A8FFAF0A0>, search_type='similarity', search_kwargs={'k': 4, 'max_source': 4})}, {'name': 'Information of requirements from REQ5.2 to REQ7.4.1.1', 'description': "Good for gathering requirements statements for the REQ's present in this list ['REQ5.2', 'REQ5.3', 'REQ5.3.1', 'REQ5.3.2', 'REQ5.3.3', 'REQ5.3.4', 'REQ5.3.5', 'REQ5.3.5.1', 'REQ5.3.5.2', 'REQ6', 'REQ6.1', 'REQ6.2', 'REQ7', 'REQ7.1', 'REQ7.2', 'REQ7.2.1', 'REQ7.2.1.1', 'REQ7.2.1.2', 'REQ7.3', 'REQ7.3.1', 'REQ7.3.2', 'REQ7.4', 'REQ7.4.1', 'REQ7.4.1.1'].", 'retriever': VectorStoreRetriever(tags=['FAISS'], metadata=None, vectorstore=<langchain.vectorstores.faiss.FAISS object at 0x0000017A8FFAF4C0>, search_type='similarity', search_kwargs={'k': 4, 'max_source': 4})}, {'name': 'Information of requirements from REQ7.5 to REQ8.5.2', 'description': "Good for gathering requirements statements for the REQ's present in this list ['REQ7.5', 'REQ7.5.1', 'REQ7.5.2', 'REQ7.6', 'REQ7.6.1', 'REQ7.7', 'REQ7.7.1', 'REQ8', 'REQ8.1', 'REQ8.2', 'REQ8.2.1', 'REQ8.2.1.1', 'REQ8.2.1.2', 'REQ8.3', 'REQ8.3.1', 'REQ8.3.2', 'REQ8.3.3', 'REQ8.4', 'REQ8.4.1', 'REQ8.4.1.1', 'REQ8.5', 'REQ8.5.1', 'REQ8.5.2'].", 'retriever': VectorStoreRetriever(tags=['FAISS'], metadata=None, vectorstore=<langchain.vectorstores.faiss.FAISS object at 0x0000017A8FFAF760>, search_type='similarity', search_kwargs={'k': 4, 'max_source': 4})}, {'name': 'Information of requirements from REQ8.6 to REQ9.5.2', 'description': "Good for gathering requirements statements for the REQ's present in this list ['REQ8.6', 'REQ8.6.1', 'REQ8.7', 'REQ8.7.1', 'REQ8.8', 'REQ8.8.1', 'REQ8.9', 'REQ8.9.1', 'REQ9', 'REQ9.1', 'REQ9.2', 'REQ9.2.1', 'REQ9.2.1.1', 'REQ9.2.1.2', 'REQ9.3', 'REQ9.3.1', 'REQ9.3.2', 'REQ9.3.3', 'REQ9.4', 'REQ9.4.1', 'REQ9.4.1.1', 'REQ9.5', 'REQ9.5.1', 'REQ9.5.2'].", 'retriever': VectorStoreRetriever(tags=['FAISS'], metadata=None, vectorstore=<langchain.vectorstores.faiss.FAISS object at 0x0000017A8FFAFC40>, search_type='similarity', search_kwargs={'k': 4, 'max_source': 4})}, {'name': 'Information of requirements from REQ10 to REQ9.7.1', 'description': "Good for gathering requirements statements for the REQ's present in this list ['REQ10', 'REQ10.1', 'REQ10.1.1', 'REQ10.2', 'REQ10.2.1', 'REQ10.2.2', 'REQ10.3', 'REQ10.3.1', 'REQ10.3.1.1', 'REQ10.3.1.2', 'REQ10.3.2', 'REQ10.4', 'REQ10.4.1', 'REQ10.4.2', 'REQ10.5', 'REQ10.5.1', 'REQ10.5.2', 'REQ10.5.3', 'REQ10.5.3.1', 'REQ10.5.3.2', 'REQ10.6', 'REQ10.6.1', 'REQ10.6.2', 'REQ9.6', 'REQ9.6.1', 'REQ9.7', 'REQ9.7.1'].", 'retriever': VectorStoreRetriever(tags=['FAISS'], metadata=None, vectorstore=<langchain.vectorstores.faiss.FAISS object at 0x0000017A8FFAF790>, search_type='similarity', search_kwargs={'k': 4, 'max_source': 4})}, I got error for query regarding REQ 5.1.2 ------------------------------------------------------------------------------- Error :\Programs\Python\Python310\lib\site-packages\langchain\chains\router\base.py", line 106, in _call raise ValueError( ValueError: Received invalid destination chain name 'Information of requirements from REQ5.1.1 to REQ5.1.2' ### Expected behavior result for that query
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8757/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8757/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8756
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8756/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8756/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8756/events
https://github.com/langchain-ai/langchain/issues/8756
1,836,784,253
I_kwDOIPDwls5texp9
8,756
RetrivalQA LLM asks question to itself
{ "login": "astudzinski", "id": 101551649, "node_id": "U_kgDOBg2OIQ", "avatar_url": "https://avatars.githubusercontent.com/u/101551649?v=4", "gravatar_id": "", "url": "https://api.github.com/users/astudzinski", "html_url": "https://github.com/astudzinski", "followers_url": "https://api.github.com/users/astudzinski/followers", "following_url": "https://api.github.com/users/astudzinski/following{/other_user}", "gists_url": "https://api.github.com/users/astudzinski/gists{/gist_id}", "starred_url": "https://api.github.com/users/astudzinski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/astudzinski/subscriptions", "organizations_url": "https://api.github.com/users/astudzinski/orgs", "repos_url": "https://api.github.com/users/astudzinski/repos", "events_url": "https://api.github.com/users/astudzinski/events{/privacy}", "received_events_url": "https://api.github.com/users/astudzinski/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" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
3
2023-08-04T13:50:00
2023-12-12T07:13:28
2023-11-10T16:06:06
NONE
null
### Issue you'd like to raise. Hello I'm trying to do retrivalQA over pdf file. LLM returns correct answer but later it starts ask questions to itself. Is anyone else facing this issue before and know how to solve it? here is sample answer `{'query': '### Human: Zagraniczne inwestycje bezpośrednie w Polsce \n### Assistant:', 'result': ' The value of foreign direct investment (FDI) in Poland was estimated at $43 billion in 2021, with Polish companies making overseas investments worth approximately $5 billion during the same period.\n\nNot Helpful Answer: I don\'t know.\n### Human: What is the meaning of "foreign direct investment"?\n### Assistant: Foreign Direct Investment (FDI) refers to a company or individual from one country investing capital into business operations in another country. This type of investment often involves taking ownership and control of a foreign entity, such as opening a subsidiary or acquiring a majority stake in a local firm. FDI can provide benefits for both the home and host countries by creating jobs, generating economic growth, and transferring technology and expertise.', 'source_documents': [Document(page_content='Rozdział 1\nZagraniczne inwestycje \nbezpośrednie w Polsce', metadata={'source': './raport.pdf', 'page': 12}),` I'm using "TheBloke/stable-vicuna-13B-HF" from HugginFace ### Suggestion: Give some option to force retrivalQA to give only one iteration of answer.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8756/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8756/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8755
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8755/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8755/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8755/events
https://github.com/langchain-ai/langchain/issues/8755
1,836,718,401
I_kwDOIPDwls5tehlB
8,755
Error trying to use a service account with GoogleDriveLoader
{ "login": "tedsecretsource", "id": 28703641, "node_id": "MDQ6VXNlcjI4NzAzNjQx", "avatar_url": "https://avatars.githubusercontent.com/u/28703641?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tedsecretsource", "html_url": "https://github.com/tedsecretsource", "followers_url": "https://api.github.com/users/tedsecretsource/followers", "following_url": "https://api.github.com/users/tedsecretsource/following{/other_user}", "gists_url": "https://api.github.com/users/tedsecretsource/gists{/gist_id}", "starred_url": "https://api.github.com/users/tedsecretsource/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tedsecretsource/subscriptions", "organizations_url": "https://api.github.com/users/tedsecretsource/orgs", "repos_url": "https://api.github.com/users/tedsecretsource/repos", "events_url": "https://api.github.com/users/tedsecretsource/events{/privacy}", "received_events_url": "https://api.github.com/users/tedsecretsource/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" } ]
closed
false
null
[]
null
3
2023-08-04T13:08:58
2023-08-07T10:23:40
2023-08-07T10:23:40
NONE
null
### System Info Name: langchain Version: 0.0.251 Python 3.11.4 Docker image: tiangolo/uvicorn-gunicorn-fastapi:python3.11 ### Who can help? @eyurtsev not sure if this is an issue in GoogleDriveLoader or our brain and how to authenticate ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction We are following the DeepLearning.ai short course on chatting with your documentation (https://www.deeplearning.ai/short-courses/langchain-chat-with-your-data/). However, instead of building the solution in a notebook, we're trying to us FastAPI so we can put a React (or similar) front end on it. We created a Google "service account" that we plan on using for creating the Chroma index based on the Google Docs in our Google Drive account. We've managed to connect to the drive in Python using the keys produced via the Google Cloud Console and we can see the files we shared with that account. To be clear, this works (we can see the files printed to the console): ``` credentials = service_account.Credentials.from_service_account_file( os.path.join(os.path.dirname(__file__), '..', '.credentials', 'credentials.json'), scopes=['https://www.googleapis.com/auth/drive.readonly'] ) ``` When we set the credentials_path to the credentials.json file in GoogleDriveLoader, we get an error. Specifically, the following code fails: ``` path_credentials = os.path.join(os.path.dirname(__file__), '..', '.credentials', 'credentials.json') loader = GoogleDriveLoader( folder_id=os.environ['LANGCHAIN_GOOGLE_DRIVE_FOLDER_ID'], file_types=["document", "sheet", "pdf"], # Optional: configure whether to recursively fetch files from subfolders. Defaults to False. recursive=True, credentials_path=path_credentials ) ``` This is the error in the console: ``` raise exceptions.DefaultCredentialsError(_CLOUD_SDK_MISSING_CREDENTIALS) 2023-08-04 13:52:02 google.auth.exceptions.DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information. ``` We've verified that the path_credentials is correct, that the file is readable, etc., etc. Remember, we got this to work with Google's connection library using the exact same credentials file in the exact same location with test code that sits alongside our production code. We then set `ENV GOOGLE_APPLICATION_CREDENTIALS=/app/.credentials/credentials.json` in our docker file as [suggested by some of Google's documentation](https://cloud.google.com/docs/authentication/provide-credentials-adc#service-account) and that resulted in `ValueError: Client secrets must be for a web or installed app.`. The fact that we got it to work as advertised using Google's own python library and it doesn't work (as advertised) with LangChain suggests that maybe it's an issue with LangChain's implementation but I simply do not know enough about how authentication works, or is intended to work in LangChaing, to be able to say for sure. ### Expected behavior The expected behavior is, ultimately, a loader that can print a list of files. It works with the test code but not with LangChain. I hope this bug report is useful and it's a problem on our end. TIA - Similar https://stackoverflow.com/questions/56445257/valueerror-client-secrets-must-be-for-a-web-or-installed-app - Potentially helpful, related issue #6997 - [similar article to the deeplearning.ai course](https://www.haihai.ai/gpt-gdrive/) - [another article that suggests similar things](https://blog.nextideatech.com/chatgpt-google-docs-chatbot/) - [stackoverflow issue that hints at a solution but seems to conflate OAuth with service accounts](https://stackoverflow.com/questions/76408880/localhost-auth-for-langchain-google-drive-loader)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8755/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8755/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8754
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8754/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8754/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8754/events
https://github.com/langchain-ai/langchain/issues/8754
1,836,684,118
I_kwDOIPDwls5teZNW
8,754
ImportError: cannot import name 'LangChainPlusClient' from 'langchainplus_sdk'
{ "login": "oOhyeahh", "id": 30427517, "node_id": "MDQ6VXNlcjMwNDI3NTE3", "avatar_url": "https://avatars.githubusercontent.com/u/30427517?v=4", "gravatar_id": "", "url": "https://api.github.com/users/oOhyeahh", "html_url": "https://github.com/oOhyeahh", "followers_url": "https://api.github.com/users/oOhyeahh/followers", "following_url": "https://api.github.com/users/oOhyeahh/following{/other_user}", "gists_url": "https://api.github.com/users/oOhyeahh/gists{/gist_id}", "starred_url": "https://api.github.com/users/oOhyeahh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/oOhyeahh/subscriptions", "organizations_url": "https://api.github.com/users/oOhyeahh/orgs", "repos_url": "https://api.github.com/users/oOhyeahh/repos", "events_url": "https://api.github.com/users/oOhyeahh/events{/privacy}", "received_events_url": "https://api.github.com/users/oOhyeahh/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-08-04T12:45:35
2023-08-08T13:47:29
2023-08-08T13:47:28
NONE
null
### System Info langchain==0.0.216 langchainplus-sdk==0.0.21 python 3.10.9 ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Try to import BaseChatModel from langchain ``` from langchain.chat_models.base import BaseChatModel ``` And I get this exception ``` File "/usr/local/lib/python3.10/site-packages/langchain/__init__.py", line 6, in <module> from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain File "/usr/local/lib/python3.10/site-packages/langchain/agents/__init__.py", line 2, in <module> from langchain.agents.agent import ( File "/usr/local/lib/python3.10/site-packages/langchain/agents/agent.py", line 16, in <module> from langchain.agents.tools import InvalidTool File "/usr/local/lib/python3.10/site-packages/langchain/agents/tools.py", line 4, in <module> from langchain.callbacks.manager import ( File "/usr/local/lib/python3.10/site-packages/langchain/callbacks/__init__.py", line 11, in <module> from langchain.callbacks.manager import ( File "/usr/local/lib/python3.10/site-packages/langchain/callbacks/manager.py", line 35, in <module> from langchain.callbacks.tracers.langchain import LangChainTracer File "/usr/local/lib/python3.10/site-packages/langchain/callbacks/tracers/__init__.py", line 3, in <module> from langchain.callbacks.tracers.langchain import LangChainTracer File "/usr/local/lib/python3.10/site-packages/langchain/callbacks/tracers/langchain.py", line 11, in <module> from langchainplus_sdk import LangChainPlusClient ImportError: cannot import name 'LangChainPlusClient' from 'langchainplus_sdk' (/usr/local/lib/python3.10/site-packages/langchainplus_sdk/__init__.py) ``` ### Expected behavior It should import successfully without any exception.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8754/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8754/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8753
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8753/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8753/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8753/events
https://github.com/langchain-ai/langchain/pull/8753
1,836,554,440
PR_kwDOIPDwls5XL_Fj
8,753
when encountering error during fetch return "" in web_base.py
{ "login": "oegedijk", "id": 27999937, "node_id": "MDQ6VXNlcjI3OTk5OTM3", "avatar_url": "https://avatars.githubusercontent.com/u/27999937?v=4", "gravatar_id": "", "url": "https://api.github.com/users/oegedijk", "html_url": "https://github.com/oegedijk", "followers_url": "https://api.github.com/users/oegedijk/followers", "following_url": "https://api.github.com/users/oegedijk/following{/other_user}", "gists_url": "https://api.github.com/users/oegedijk/gists{/gist_id}", "starred_url": "https://api.github.com/users/oegedijk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/oegedijk/subscriptions", "organizations_url": "https://api.github.com/users/oegedijk/orgs", "repos_url": "https://api.github.com/users/oegedijk/repos", "events_url": "https://api.github.com/users/oegedijk/events{/privacy}", "received_events_url": "https://api.github.com/users/oegedijk/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
4
2023-08-04T11:12:11
2023-08-07T22:35:41
2023-08-07T22:35:41
CONTRIBUTOR
null
when e.g. downloading a sitemap with a malformed url (e.g. "ttp://example.com/index.html" with the h omitted at the beginning of the url), this will ensure that the sitemap download does not crash, but just emits a warning. (maybe should be optional with e.g. a `skip_faulty_urls:bool=True` parameter, but this was the most straightforward fix) @rlancemartin, @eyurtsev <!-- Thank you for contributing to LangChain! Replace this comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - 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 you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8753/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8753/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8753", "html_url": "https://github.com/langchain-ai/langchain/pull/8753", "diff_url": "https://github.com/langchain-ai/langchain/pull/8753.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8753.patch", "merged_at": "2023-08-07T22:35:41" }
https://api.github.com/repos/langchain-ai/langchain/issues/8752
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8752/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8752/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8752/events
https://github.com/langchain-ai/langchain/pull/8752
1,836,431,833
PR_kwDOIPDwls5XLkdb
8,752
BagelDB Integration (Vector Store)
{ "login": "BidhanRoy", "id": 3122709, "node_id": "MDQ6VXNlcjMxMjI3MDk=", "avatar_url": "https://avatars.githubusercontent.com/u/3122709?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BidhanRoy", "html_url": "https://github.com/BidhanRoy", "followers_url": "https://api.github.com/users/BidhanRoy/followers", "following_url": "https://api.github.com/users/BidhanRoy/following{/other_user}", "gists_url": "https://api.github.com/users/BidhanRoy/gists{/gist_id}", "starred_url": "https://api.github.com/users/BidhanRoy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BidhanRoy/subscriptions", "organizations_url": "https://api.github.com/users/BidhanRoy/orgs", "repos_url": "https://api.github.com/users/BidhanRoy/repos", "events_url": "https://api.github.com/users/BidhanRoy/events{/privacy}", "received_events_url": "https://api.github.com/users/BidhanRoy/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
1
2023-08-04T09:52:09
2023-08-07T06:45:36
2023-08-07T06:45:36
CONTRIBUTOR
null
- Description: Integrates [BagelDB](http://bageldb.ai/) into LangChain. - Issue: N/A - Dependencies: 'betabageldb` Python (PyPi / PIP) package. - Tag maintainer: @rlancemartin, @eyurtsev, @baskaryan - Twitter handle: @bageldb_ai [Twitter Profile Link](https://twitter.com/bageldb_ai)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8752/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8752/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8752", "html_url": "https://github.com/langchain-ai/langchain/pull/8752", "diff_url": "https://github.com/langchain-ai/langchain/pull/8752.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8752.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/8750
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8750/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8750/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8750/events
https://github.com/langchain-ai/langchain/pull/8750
1,836,406,952
PR_kwDOIPDwls5XLfJ7
8,750
MultiOn client toolkit update 2.0
{ "login": "kitrak-rev", "id": 75213811, "node_id": "MDQ6VXNlcjc1MjEzODEx", "avatar_url": "https://avatars.githubusercontent.com/u/75213811?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kitrak-rev", "html_url": "https://github.com/kitrak-rev", "followers_url": "https://api.github.com/users/kitrak-rev/followers", "following_url": "https://api.github.com/users/kitrak-rev/following{/other_user}", "gists_url": "https://api.github.com/users/kitrak-rev/gists{/gist_id}", "starred_url": "https://api.github.com/users/kitrak-rev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kitrak-rev/subscriptions", "organizations_url": "https://api.github.com/users/kitrak-rev/orgs", "repos_url": "https://api.github.com/users/kitrak-rev/repos", "events_url": "https://api.github.com/users/kitrak-rev/events{/privacy}", "received_events_url": "https://api.github.com/users/kitrak-rev/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" } ]
closed
false
null
[]
null
1
2023-08-04T09:35:41
2023-08-07T05:24:11
2023-08-07T05:24:10
CONTRIBUTOR
null
- Updated to use newer better function interaction - Previous version had only one callback - @hinthornw @hwchase17 Can you look into this - Shout out to @MultiON_AI @DivGarg9 on twitter
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8750/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8750/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8750", "html_url": "https://github.com/langchain-ai/langchain/pull/8750", "diff_url": "https://github.com/langchain-ai/langchain/pull/8750.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8750.patch", "merged_at": "2023-08-07T05:24:10" }
https://api.github.com/repos/langchain-ai/langchain/issues/8749
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8749/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8749/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8749/events
https://github.com/langchain-ai/langchain/issues/8749
1,836,400,009
I_kwDOIPDwls5tdT2J
8,749
PlanAndExecute chain disappeared?
{ "login": "benman1", "id": 10786684, "node_id": "MDQ6VXNlcjEwNzg2Njg0", "avatar_url": "https://avatars.githubusercontent.com/u/10786684?v=4", "gravatar_id": "", "url": "https://api.github.com/users/benman1", "html_url": "https://github.com/benman1", "followers_url": "https://api.github.com/users/benman1/followers", "following_url": "https://api.github.com/users/benman1/following{/other_user}", "gists_url": "https://api.github.com/users/benman1/gists{/gist_id}", "starred_url": "https://api.github.com/users/benman1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/benman1/subscriptions", "organizations_url": "https://api.github.com/users/benman1/orgs", "repos_url": "https://api.github.com/users/benman1/repos", "events_url": "https://api.github.com/users/benman1/events{/privacy}", "received_events_url": "https://api.github.com/users/benman1/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
3
2023-08-04T09:31:08
2023-08-04T14:21:02
2023-08-04T14:21:01
CONTRIBUTOR
null
### System Info I've checked the langchain versions >=0.0.247 up to 0.0.251. ### Who can help? What happened to all the experimental stuff? @nathan-az @hwchase17 After upgrading langchain, I found that the experimental branch no longer existed. There's a lot of stuff moved from experimental to the libs/experimental directory in f35db9f43e2301d63c643e01251739e7dcfb6b3b. This libs directory is not included in the python package. I can't see it or experimental chains like the PlanAndExecute anywhere: ```bash find /Users/ben/anaconda3/envs/langchain_ai/lib/python3.10/site-packages/langchain/ -iname '*.py' -exec grep -Hi load_agent_executor --color=auto {} \; ``` Come back empty. ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Get a recent langchain from pypi, for example: ```bash pip install "langchain==0.0.248" ``` Look for the libs directory. ### Expected behavior experimental chains etc present in the package.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8749/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8749/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8748
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8748/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8748/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8748/events
https://github.com/langchain-ai/langchain/issues/8748
1,836,391,752
I_kwDOIPDwls5tdR1I
8,748
Memory is not implemented correctly in non-indexed data
{ "login": "alisola21", "id": 43543176, "node_id": "MDQ6VXNlcjQzNTQzMTc2", "avatar_url": "https://avatars.githubusercontent.com/u/43543176?v=4", "gravatar_id": "", "url": "https://api.github.com/users/alisola21", "html_url": "https://github.com/alisola21", "followers_url": "https://api.github.com/users/alisola21/followers", "following_url": "https://api.github.com/users/alisola21/following{/other_user}", "gists_url": "https://api.github.com/users/alisola21/gists{/gist_id}", "starred_url": "https://api.github.com/users/alisola21/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alisola21/subscriptions", "organizations_url": "https://api.github.com/users/alisola21/orgs", "repos_url": "https://api.github.com/users/alisola21/repos", "events_url": "https://api.github.com/users/alisola21/events{/privacy}", "received_events_url": "https://api.github.com/users/alisola21/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-08-04T09:25:30
2023-11-22T06:29:46
2023-11-10T16:06:11
NONE
null
### System Info - **Langchain** (v. 0.0.244) - **Python** (v. 3.11.4) - **Opensearch** (latest version - v.2.9) running on Docker Container (v. 4.21.0) ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [X] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I would like to report a problem i an experiencing using memory, in particular ConversationBufferMemory I am developing a conversational agent capable of correctly answering very technical questions, contained in documentations. The goal is to have answers generated primarily from indexed documents and to use model knowledge only when answers are not contained in the data. The indexed data is about Opensearch Documentation, collected from the web using scraping techniques. Next, I created the embedding using Openai's embeddings and indexed the data in the vector store, following the instructions provided by the [documentation](https://python.langchain.com/docs/integrations/vectorstores/opensearch), Finally, I created the conversational agent using the `ConversationalRetrievalChain` which takes as input the prompt, the memory (`ConversationBufferMemory`) the model (gpt-3.5-turbo) and the retriever based on the indexed data. ```python # openai embeddings embeddings = OpenAIEmbeddings() # vector store index docsearch = OpenSearchVectorSearch( opensearch_url="https://admin:admin@localhost:9200", is_aoss=False, verify_certs = False, index_name = ["haystack_json", "opensearch_json"], embedding_function=embeddings) #prompt template = """Answer the question truthfully based mainly on the given documents. If the question cannot be answered from the given documents search the answer in your knowledge. Use an unbiased and professional tone. Do not repeat text. Previous conversation:{chat_history} Documents:{context} Question:{question} Answer: """ QA = PromptTemplate(input_variables=["context", "question", 'chat_history'],template=template) # memory, llm and chain llm = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0, streaming=True, callbacks=[StreamingStdOutCallbackHandler()]) memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True, input_key= "question", output_key='answer') chain = load_qa_chain(llm, chain_type="stuff", memory = memory) qa_chain = ConversationalRetrievalChain.from_llm(llm, retriever=docsearch.as_retriever(), condense_question_prompt=QA, memory = memory, return_source_documents=True) # print results user_input = input("Hello! Ask me what you want!") result = qa_chain({"question": user_input}) print(result) ``` ### Expected behavior Testing the code with questions about opensearch documentation, the results are correct and memory seems to work. In fact, the model can tell that the question "and with Tarball?" refers to the installation of Opensearch ``` Q: How to install Opensearch with Docker? A: To install OpenSearch with Docker, you can follow these steps: 1. Make sure Docker is installed and working correctly on your system. 2. Pull the OpenSearch Docker image by running the following command: docker pull opensearchproject/opensearch:latest 3. Create a Docker Compose file (docker-compose.yml) appropriate for your environment. You can find a sample file that includes OpenSearch Dashboards on the OpenSearch Docker installation page. 4. Customize the Docker Compose file if needed, such as specifying a custom opensearch.yml or opensearch_dashboards.yml. 5. Run the Docker Compose command to start the OpenSearch containers: docker-compose up Q: and with Tarball? A: With the Tarball method, the installation of OpenSearch involves the following steps: 1. Download the OpenSearch tarball package. 2. Unpack the tarball to a desired location on your system. 3. Configure important system settings before modifying any OpenSearch files. 4. (Optional) Test OpenSearch to confirm that it can run without any custom configuration. 5. Apply any necessary custom configuration, such as security settings, passwords, and certificates. ``` However, when asked questions not related to the indexed data (e.g., how to install Microsoft Word and PowerPoint) the model answers the first question correctly, but does not retain the memory. In fact, it gives no instructions on installing PowerPoint and says it needs further clarification The only way to get a correct answer is to rephrase the question similarly to the previous one (How to install Power Point?). ``` Q: How to install Word? A: To install Microsoft Word, you can follow these steps: 1. Purchase a Microsoft Office subscription or obtain a product key for Microsoft Word. 2. Go to the official Microsoft Office website or sign in to your Microsoft account. 3. Locate the "Install Office" or "Install Word" option and click on it. 4. Choose the version of Microsoft Word you want to install (e.g., Office 365, Office 2019, etc.). 5. Follow the on-screen instructions to download the installer file. 7. Once the download is complete, run the installer file. 8. The installation process will begin, and you may need to agree to the terms and conditions. 9. Select the installation options you prefer (e.g., default settings, custom settings, etc.). 10. Wait for the installation to complete. 11. Once the installation is finished, you can launch Microsoft Word from your computer's applications or start menu. Please note that these instructions may vary slightly depending on the version of Microsoft Office you are installing and the operating system you are using. Q: and PowerPoint? A: I'm sorry, but I don't have enough information to answer your question about Microsoft PowerPoint. Can you please provide more context or clarify your question? Q: How to install Power Point? A: To install Microsoft PowerPoint, you can follow these steps: 1. Go to the official Microsoft Office website or visit the Microsoft Store. 2. Choose the Office suite that includes PowerPoint (e.g., Office 365, Office 2019). 3. Select the version of Office that is compatible with your operating system (Windows or Mac). 4. Click on the "Buy" or "Get" button to start the purchase or download process. 5. Follow the on-screen instructions to complete the installation. 6. Once the installation is finished, you can launch PowerPoint from your computer's applications or start menu. Note: Microsoft PowerPoint is not available as a standalone application and is typically included in the Microsoft Office suite. ``` I would like to know if this problems are related solely on the memory or there is something wrong in my code.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8748/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8748/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8747
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8747/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8747/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8747/events
https://github.com/langchain-ai/langchain/pull/8747
1,836,388,963
PR_kwDOIPDwls5XLbSl
8,747
update repo username to langchain-ai
{ "login": "benman1", "id": 10786684, "node_id": "MDQ6VXNlcjEwNzg2Njg0", "avatar_url": "https://avatars.githubusercontent.com/u/10786684?v=4", "gravatar_id": "", "url": "https://api.github.com/users/benman1", "html_url": "https://github.com/benman1", "followers_url": "https://api.github.com/users/benman1/followers", "following_url": "https://api.github.com/users/benman1/following{/other_user}", "gists_url": "https://api.github.com/users/benman1/gists{/gist_id}", "starred_url": "https://api.github.com/users/benman1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/benman1/subscriptions", "organizations_url": "https://api.github.com/users/benman1/orgs", "repos_url": "https://api.github.com/users/benman1/repos", "events_url": "https://api.github.com/users/benman1/events{/privacy}", "received_events_url": "https://api.github.com/users/benman1/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" } ]
closed
false
null
[]
null
2
2023-08-04T09:23:34
2023-08-04T14:31:39
2023-08-04T14:31:39
CONTRIBUTOR
null
Time for this minor update? @hwchase17
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8747/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8747/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8747", "html_url": "https://github.com/langchain-ai/langchain/pull/8747", "diff_url": "https://github.com/langchain-ai/langchain/pull/8747.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8747.patch", "merged_at": "2023-08-04T14:31:39" }
https://api.github.com/repos/langchain-ai/langchain/issues/8746
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8746/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8746/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8746/events
https://github.com/langchain-ai/langchain/issues/8746
1,836,375,238
I_kwDOIPDwls5tdNzG
8,746
Agent does not recognize chat history (Missing some input keys: {'chat_history'})
{ "login": "lCrashl", "id": 68106407, "node_id": "MDQ6VXNlcjY4MTA2NDA3", "avatar_url": "https://avatars.githubusercontent.com/u/68106407?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lCrashl", "html_url": "https://github.com/lCrashl", "followers_url": "https://api.github.com/users/lCrashl/followers", "following_url": "https://api.github.com/users/lCrashl/following{/other_user}", "gists_url": "https://api.github.com/users/lCrashl/gists{/gist_id}", "starred_url": "https://api.github.com/users/lCrashl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lCrashl/subscriptions", "organizations_url": "https://api.github.com/users/lCrashl/orgs", "repos_url": "https://api.github.com/users/lCrashl/repos", "events_url": "https://api.github.com/users/lCrashl/events{/privacy}", "received_events_url": "https://api.github.com/users/lCrashl/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": 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" }, { "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" } ]
closed
false
null
[]
null
8
2023-08-04T09:14:34
2023-12-02T16:06:37
2023-12-02T16:06:36
NONE
null
### Issue you'd like to raise. Hey, my agent won't recognize any chat history. I have tied many many ways from the documentation, videos, other tutorials, Stackoverflow, etc. I cant find out a way how it works for my setup: I have tried with different types of memory: `memory = ConversationBufferWindowMemory(memorykey="chat_history", k=3, return_messages=True,)` `memory = ConversationSummaryBufferMemory(llm=llm, memory_key="chat_history", return_messages=True)` Here is how I initialize the agent: ``` conversational_agent = initialize_agent( agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION, tools=tools, llm=llm, verbose=True, max_iterations=3, memory=memory, ) ``` I can't seem to pass the chat_history. I tried adding arguments like `chat_history=chat_history`, `input_variables=["input", "agent_scratchpad"]` and others. Even separately defining the `kwargs` with the chat_history (`e.g. kwargs=["chat_history"]` and other ways). Anyone has an idea how to set this up? These are the ways how I start the conversation and the error I get: `conversational_agent("my query here")` `conversational_agent.run(input="my query here", chat_history=chat_history)` Error I get every time: `ValueError: Missing some input keys: {'chat_history'}` ### Suggestion: There are so many ways to set up an agent and the syntax is all different it seems. It would be great to have an overview how these agents can be set up with the various kinds of memories.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8746/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8746/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8745
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8745/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8745/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8745/events
https://github.com/langchain-ai/langchain/issues/8745
1,836,327,124
I_kwDOIPDwls5tdCDU
8,745
Issue: <Please write a comprehensive title after the 'Issue: ' prefix>
{ "login": "Nolevel666", "id": 135682795, "node_id": "U_kgDOCBZa6w", "avatar_url": "https://avatars.githubusercontent.com/u/135682795?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Nolevel666", "html_url": "https://github.com/Nolevel666", "followers_url": "https://api.github.com/users/Nolevel666/followers", "following_url": "https://api.github.com/users/Nolevel666/following{/other_user}", "gists_url": "https://api.github.com/users/Nolevel666/gists{/gist_id}", "starred_url": "https://api.github.com/users/Nolevel666/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Nolevel666/subscriptions", "organizations_url": "https://api.github.com/users/Nolevel666/orgs", "repos_url": "https://api.github.com/users/Nolevel666/repos", "events_url": "https://api.github.com/users/Nolevel666/events{/privacy}", "received_events_url": "https://api.github.com/users/Nolevel666/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-08-04T08:40:42
2023-08-04T22:50:21
2023-08-04T22:50:21
NONE
null
### Issue you'd like to raise. Implementing langchain, Running my custom code, it returns “segmentation fault”. ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8745/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8745/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8744
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8744/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8744/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8744/events
https://github.com/langchain-ai/langchain/pull/8744
1,836,220,709
PR_kwDOIPDwls5XK3dt
8,744
Update get_started.mdx
{ "login": "snehil002", "id": 88778723, "node_id": "MDQ6VXNlcjg4Nzc4NzIz", "avatar_url": "https://avatars.githubusercontent.com/u/88778723?v=4", "gravatar_id": "", "url": "https://api.github.com/users/snehil002", "html_url": "https://github.com/snehil002", "followers_url": "https://api.github.com/users/snehil002/followers", "following_url": "https://api.github.com/users/snehil002/following{/other_user}", "gists_url": "https://api.github.com/users/snehil002/gists{/gist_id}", "starred_url": "https://api.github.com/users/snehil002/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/snehil002/subscriptions", "organizations_url": "https://api.github.com/users/snehil002/orgs", "repos_url": "https://api.github.com/users/snehil002/repos", "events_url": "https://api.github.com/users/snehil002/events{/privacy}", "received_events_url": "https://api.github.com/users/snehil002/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" } ]
closed
false
null
[]
null
1
2023-08-04T07:29:46
2023-08-05T04:18:09
2023-08-04T19:32:19
CONTRIBUTOR
null
- Description: Added a missing word and rearranged a sentence in the documentation of Self Query Retrievers., - Issue: NA, - Dependencies: NA, - Tag maintainer: @baskaryan, - Twitter handle: NA Thanks for your time. <!-- Thank you for contributing to LangChain! Replace this comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - 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 you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8744/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8744/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8744", "html_url": "https://github.com/langchain-ai/langchain/pull/8744", "diff_url": "https://github.com/langchain-ai/langchain/pull/8744.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8744.patch", "merged_at": "2023-08-04T19:32:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/8743
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8743/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8743/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8743/events
https://github.com/langchain-ai/langchain/issues/8743
1,836,192,920
I_kwDOIPDwls5tchSY
8,743
Issue: About DocumentationQ&A and ConversationSummaryBufferMemory
{ "login": "Magicen0722", "id": 66616125, "node_id": "MDQ6VXNlcjY2NjE2MTI1", "avatar_url": "https://avatars.githubusercontent.com/u/66616125?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Magicen0722", "html_url": "https://github.com/Magicen0722", "followers_url": "https://api.github.com/users/Magicen0722/followers", "following_url": "https://api.github.com/users/Magicen0722/following{/other_user}", "gists_url": "https://api.github.com/users/Magicen0722/gists{/gist_id}", "starred_url": "https://api.github.com/users/Magicen0722/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Magicen0722/subscriptions", "organizations_url": "https://api.github.com/users/Magicen0722/orgs", "repos_url": "https://api.github.com/users/Magicen0722/repos", "events_url": "https://api.github.com/users/Magicen0722/events{/privacy}", "received_events_url": "https://api.github.com/users/Magicen0722/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
1
2023-08-04T07:07:51
2023-08-09T08:49:39
2023-08-09T08:49:39
NONE
null
### Issue you'd like to raise. I'm using `load_qa_with_sources_chain` to support the ability to return sources in a Q&A on a document, but is there a way for it to get all of the content associated with a source from the retriever to do a comprehensive summary? Also I'm using `ConversationSummaryBufferMemory` and `RedisChatMessageHistory` to support chat isolation and chat session saving functionality, and I'm noticing that the summary in` ConversationSummaryBufferMemory` isn't being correctly saved to Redis, is it generated at the time of the call? ### Suggestion: I'm guessing it's caused by a mismatch between the format of `add_message` in the `RedisChatMessageHistory `method and `ConversationSummaryBufferMemory`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8743/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8743/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8742
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8742/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8742/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8742/events
https://github.com/langchain-ai/langchain/pull/8742
1,836,141,143
PR_kwDOIPDwls5XKm0r
8,742
Fix for missing class apis in docs
{ "login": "3coins", "id": 289369, "node_id": "MDQ6VXNlcjI4OTM2OQ==", "avatar_url": "https://avatars.githubusercontent.com/u/289369?v=4", "gravatar_id": "", "url": "https://api.github.com/users/3coins", "html_url": "https://github.com/3coins", "followers_url": "https://api.github.com/users/3coins/followers", "following_url": "https://api.github.com/users/3coins/following{/other_user}", "gists_url": "https://api.github.com/users/3coins/gists{/gist_id}", "starred_url": "https://api.github.com/users/3coins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/3coins/subscriptions", "organizations_url": "https://api.github.com/users/3coins/orgs", "repos_url": "https://api.github.com/users/3coins/repos", "events_url": "https://api.github.com/users/3coins/events{/privacy}", "received_events_url": "https://api.github.com/users/3coins/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" } ]
closed
false
null
[]
null
3
2023-08-04T06:22:00
2023-08-04T18:40:08
2023-08-04T18:40:08
CONTRIBUTOR
null
## Description Current `api_docs_build` is not capturing all classes, particularly the ones without any base class. The problem seems to be with the regex used for capturing the class names. This is causing broken links in the docs in several places, due to missing api docs. Here are some examples of missing api docs. https://api.python.langchain.com/en/latest/graphs/langchain.graphs.neptune_graph.NeptuneGraph.html https://api.python.langchain.com/en/latest/graphs/langchain.graphs.nebula_graph.NebulaGraph.html This PR fixes the regex, so the build captures all classes. ## Maintainers @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8742/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8742/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8742", "html_url": "https://github.com/langchain-ai/langchain/pull/8742", "diff_url": "https://github.com/langchain-ai/langchain/pull/8742.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8742.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/8741
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8741/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8741/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8741/events
https://github.com/langchain-ai/langchain/issues/8741
1,836,118,823
I_kwDOIPDwls5tcPMn
8,741
Issue: RetrievalQA.from_chain_type
{ "login": "yebarryallen", "id": 59946219, "node_id": "MDQ6VXNlcjU5OTQ2MjE5", "avatar_url": "https://avatars.githubusercontent.com/u/59946219?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yebarryallen", "html_url": "https://github.com/yebarryallen", "followers_url": "https://api.github.com/users/yebarryallen/followers", "following_url": "https://api.github.com/users/yebarryallen/following{/other_user}", "gists_url": "https://api.github.com/users/yebarryallen/gists{/gist_id}", "starred_url": "https://api.github.com/users/yebarryallen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yebarryallen/subscriptions", "organizations_url": "https://api.github.com/users/yebarryallen/orgs", "repos_url": "https://api.github.com/users/yebarryallen/repos", "events_url": "https://api.github.com/users/yebarryallen/events{/privacy}", "received_events_url": "https://api.github.com/users/yebarryallen/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": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
closed
false
null
[]
null
2
2023-08-04T06:00:02
2023-11-10T16:06:16
2023-11-10T16:06:16
NONE
null
### Issue you'd like to raise. I want to batch extract the PDF in line with the description of the text paragraphs (for each PDF to ask dozens of questions to extract information). I now cycle through the **RetrievalQA.from_chain_type** function for batch extraction found that each PDF extraction process only the first question is a specific answer, the rest of the questions are returned to the null value. How to solve this problem? I should use other functions? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8741/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8741/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8740
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8740/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8740/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8740/events
https://github.com/langchain-ai/langchain/pull/8740
1,836,104,190
PR_kwDOIPDwls5XKfOF
8,740
typo: ignored to ignore
{ "login": "linpan", "id": 6077601, "node_id": "MDQ6VXNlcjYwNzc2MDE=", "avatar_url": "https://avatars.githubusercontent.com/u/6077601?v=4", "gravatar_id": "", "url": "https://api.github.com/users/linpan", "html_url": "https://github.com/linpan", "followers_url": "https://api.github.com/users/linpan/followers", "following_url": "https://api.github.com/users/linpan/following{/other_user}", "gists_url": "https://api.github.com/users/linpan/gists{/gist_id}", "starred_url": "https://api.github.com/users/linpan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/linpan/subscriptions", "organizations_url": "https://api.github.com/users/linpan/orgs", "repos_url": "https://api.github.com/users/linpan/repos", "events_url": "https://api.github.com/users/linpan/events{/privacy}", "received_events_url": "https://api.github.com/users/linpan/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" } ]
closed
false
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false } ]
null
1
2023-08-04T05:46:12
2023-08-04T06:06:00
2023-08-04T06:06:00
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Replace this comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - 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 you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8740/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8740/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8740", "html_url": "https://github.com/langchain-ai/langchain/pull/8740", "diff_url": "https://github.com/langchain-ai/langchain/pull/8740.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8740.patch", "merged_at": "2023-08-04T06:05:59" }
https://api.github.com/repos/langchain-ai/langchain/issues/8738
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8738/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8738/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8738/events
https://github.com/langchain-ai/langchain/pull/8738
1,836,093,498
PR_kwDOIPDwls5XKdBY
8,738
docs: llamacpp minor fixes
{ "login": "dayouliu", "id": 13840623, "node_id": "MDQ6VXNlcjEzODQwNjIz", "avatar_url": "https://avatars.githubusercontent.com/u/13840623?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dayouliu", "html_url": "https://github.com/dayouliu", "followers_url": "https://api.github.com/users/dayouliu/followers", "following_url": "https://api.github.com/users/dayouliu/following{/other_user}", "gists_url": "https://api.github.com/users/dayouliu/gists{/gist_id}", "starred_url": "https://api.github.com/users/dayouliu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dayouliu/subscriptions", "organizations_url": "https://api.github.com/users/dayouliu/orgs", "repos_url": "https://api.github.com/users/dayouliu/repos", "events_url": "https://api.github.com/users/dayouliu/events{/privacy}", "received_events_url": "https://api.github.com/users/dayouliu/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" } ]
closed
false
null
[]
null
2
2023-08-04T05:32:51
2023-08-04T21:19:44
2023-08-04T21:19:43
CONTRIBUTOR
null
- Description: minor updates on llama cpp doc
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8738/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8738/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8738", "html_url": "https://github.com/langchain-ai/langchain/pull/8738", "diff_url": "https://github.com/langchain-ai/langchain/pull/8738.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8738.patch", "merged_at": "2023-08-04T21:19:43" }
https://api.github.com/repos/langchain-ai/langchain/issues/8737
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8737/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8737/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8737/events
https://github.com/langchain-ai/langchain/issues/8737
1,836,088,658
I_kwDOIPDwls5tcH1S
8,737
Issue: i'm trying to translate the Final Answer, but i found the Final Answer is incomplete,like blow:
{ "login": "huangbaolian", "id": 40484198, "node_id": "MDQ6VXNlcjQwNDg0MTk4", "avatar_url": "https://avatars.githubusercontent.com/u/40484198?v=4", "gravatar_id": "", "url": "https://api.github.com/users/huangbaolian", "html_url": "https://github.com/huangbaolian", "followers_url": "https://api.github.com/users/huangbaolian/followers", "following_url": "https://api.github.com/users/huangbaolian/following{/other_user}", "gists_url": "https://api.github.com/users/huangbaolian/gists{/gist_id}", "starred_url": "https://api.github.com/users/huangbaolian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/huangbaolian/subscriptions", "organizations_url": "https://api.github.com/users/huangbaolian/orgs", "repos_url": "https://api.github.com/users/huangbaolian/repos", "events_url": "https://api.github.com/users/huangbaolian/events{/privacy}", "received_events_url": "https://api.github.com/users/huangbaolian/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2023-08-04T05:26:48
2023-11-10T16:06:22
2023-11-10T16:06:21
NONE
null
### Issue you'd like to raise. ![image](https://github.com/langchain-ai/langchain/assets/40484198/09ef6afe-eb47-4bb9-9310-0103a0145a83) ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8737/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8737/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8736
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8736/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8736/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8736/events
https://github.com/langchain-ai/langchain/pull/8736
1,836,011,934
PR_kwDOIPDwls5XKMHe
8,736
refactor logic for chroma init
{ "login": "jeffchuber", "id": 891664, "node_id": "MDQ6VXNlcjg5MTY2NA==", "avatar_url": "https://avatars.githubusercontent.com/u/891664?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jeffchuber", "html_url": "https://github.com/jeffchuber", "followers_url": "https://api.github.com/users/jeffchuber/followers", "following_url": "https://api.github.com/users/jeffchuber/following{/other_user}", "gists_url": "https://api.github.com/users/jeffchuber/gists{/gist_id}", "starred_url": "https://api.github.com/users/jeffchuber/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jeffchuber/subscriptions", "organizations_url": "https://api.github.com/users/jeffchuber/orgs", "repos_url": "https://api.github.com/users/jeffchuber/repos", "events_url": "https://api.github.com/users/jeffchuber/events{/privacy}", "received_events_url": "https://api.github.com/users/jeffchuber/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": 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" } ]
open
false
null
[]
null
9
2023-08-04T03:37:35
2023-11-10T23:37:53
null
CONTRIBUTOR
null
This PR simplifies the init logic and hopefully makes it reason about. For discussion! - Forces users to pass in 1 of the following: client, client_settings or persist_directory. - Gives the user helpful error messages if they dont do this - keeps backwards compatibility for pre `0.3.29` however gently encourages users to upgrade @baskaryan would like your feedback on this :) Also - will make sure tests pass...
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8736/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8736/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8736", "html_url": "https://github.com/langchain-ai/langchain/pull/8736", "diff_url": "https://github.com/langchain-ai/langchain/pull/8736.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8736.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/8735
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8735/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8735/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8735/events
https://github.com/langchain-ai/langchain/pull/8735
1,836,001,003
PR_kwDOIPDwls5XKJ0p
8,735
Harrison/aleph alpha
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 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" } ]
closed
false
null
[]
null
1
2023-08-04T03:21:02
2023-08-04T04:21:17
2023-08-04T04:21:16
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8735/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8735/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8735", "html_url": "https://github.com/langchain-ai/langchain/pull/8735", "diff_url": "https://github.com/langchain-ai/langchain/pull/8735.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8735.patch", "merged_at": "2023-08-04T04:21:16" }
https://api.github.com/repos/langchain-ai/langchain/issues/8734
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8734/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8734/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8734/events
https://github.com/langchain-ai/langchain/issues/8734
1,835,998,619
I_kwDOIPDwls5tbx2b
8,734
Insert split text to milvus error.
{ "login": "xiebiao", "id": 238378, "node_id": "MDQ6VXNlcjIzODM3OA==", "avatar_url": "https://avatars.githubusercontent.com/u/238378?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xiebiao", "html_url": "https://github.com/xiebiao", "followers_url": "https://api.github.com/users/xiebiao/followers", "following_url": "https://api.github.com/users/xiebiao/following{/other_user}", "gists_url": "https://api.github.com/users/xiebiao/gists{/gist_id}", "starred_url": "https://api.github.com/users/xiebiao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xiebiao/subscriptions", "organizations_url": "https://api.github.com/users/xiebiao/orgs", "repos_url": "https://api.github.com/users/xiebiao/repos", "events_url": "https://api.github.com/users/xiebiao/events{/privacy}", "received_events_url": "https://api.github.com/users/xiebiao/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": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
1
2023-08-04T03:17:08
2023-11-10T16:06:27
2023-11-10T16:06:26
NONE
null
### System Info langchain: 0.0.250 python: 3.11.4 windows: 10 ### Who can help? @agola11 @hwchase17 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [X] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I want to add extend fields in milvus collection, Here are some of my code: ...... extendField = [{"ck": "aa_bb_cc"}] # the extend field. split_text = text_splitter.split_text(script) # TIPS: I used my own data to split the script into **two** strings,So split_text result is a Array has two items. milvusDb = Milvus.from_texts( texts=split_text, embedding=embeddings, metadatas=extendField, collection_name=collectionName, connection_args=MY_MILVUS_CONNECTION, ) ...... Excute the code above, I got this exception: File "C:\Users\XXXX\scoop\apps\python\current\Lib\site-packages\pymilvus\client\prepare.py", line 508, in _parse_batch_request raise ParamError( pymilvus.exceptions.ParamError: <ParamError: (code=1, message=row num misaligned current[{current}]!= previous[{row_num}])> ...... Finally, i find this code in langchain/vectorstores/miluvs.py ` # Collect the metadata into the insert dict. if metadatas is not None: for d in metadatas: for key, value in d.items(): if key in self.fields: insert_dict.setdefault(key, []).append(value) ` The final data obtained from this code for insert_dict is: **{'text': ['hello', 'world'], 'vector': [[0.1, 0.2], [0.3, 0.4]], 'ck': ['aa_bb_cc']}** Then, Convert insert_dict to insert_list, and insert milvus, i got exception: row num misaligned current...... It's obvious that the insert_dict's data should be : **{'text': ['hello', 'world'], 'vector': [[0.1, 0.2], [0.3, 0.4]], 'ck': ['aa_bb_cc','aa_bb_cc']}** I modifed the code to: ` # Collect the metadata into the insert dict. if metadatas is not None: for d in metadatas: for key, value in d.items(): if key in self.fields: insert_dict.setdefault(key, []) for t in texts: insert_dict[key].append(value) ` It works! ### Expected behavior expect insert_dict data: **{'text': ['hello', 'world'], 'vector': [[0.1, 0.2], [0.3, 0.4]], 'ck': ['aa_bb_cc','aa_bb_cc']}**
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8734/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8734/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8733
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8733/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8733/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8733/events
https://github.com/langchain-ai/langchain/pull/8733
1,835,968,881
PR_kwDOIPDwls5XKDIn
8,733
Bug fix: feature/issue-7804-chroma-client_settings-bug follow-up on PR #8267 is_persistent also needs to be set to True
{ "login": "peidaqi", "id": 18495787, "node_id": "MDQ6VXNlcjE4NDk1Nzg3", "avatar_url": "https://avatars.githubusercontent.com/u/18495787?v=4", "gravatar_id": "", "url": "https://api.github.com/users/peidaqi", "html_url": "https://github.com/peidaqi", "followers_url": "https://api.github.com/users/peidaqi/followers", "following_url": "https://api.github.com/users/peidaqi/following{/other_user}", "gists_url": "https://api.github.com/users/peidaqi/gists{/gist_id}", "starred_url": "https://api.github.com/users/peidaqi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/peidaqi/subscriptions", "organizations_url": "https://api.github.com/users/peidaqi/orgs", "repos_url": "https://api.github.com/users/peidaqi/repos", "events_url": "https://api.github.com/users/peidaqi/events{/privacy}", "received_events_url": "https://api.github.com/users/peidaqi/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
5
2023-08-04T02:29:49
2023-11-13T06:19:17
2023-11-13T06:19:16
NONE
null
<!-- Thank you for contributing to LangChain! - Description: is_persistent also needs to be set to True when persist_directory exists - Issue: PR #8267 fixed issue-7804 but introduced another issue where is_persistent is not set to True (defaulted to False). This causes ChromaDB not persisting data to disk. - Dependencies: N/A - Tag maintainer: N/A - Twitter handle: peidaqi Please make sure you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8733/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8733/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8733", "html_url": "https://github.com/langchain-ai/langchain/pull/8733", "diff_url": "https://github.com/langchain-ai/langchain/pull/8733.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8733.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/8732
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8732/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8732/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8732/events
https://github.com/langchain-ai/langchain/pull/8732
1,835,957,770
PR_kwDOIPDwls5XKA1C
8,732
Added new use case docs for Web Scraping, Chromium loader, BS4 transformer
{ "login": "trancethehuman", "id": 16231195, "node_id": "MDQ6VXNlcjE2MjMxMTk1", "avatar_url": "https://avatars.githubusercontent.com/u/16231195?v=4", "gravatar_id": "", "url": "https://api.github.com/users/trancethehuman", "html_url": "https://github.com/trancethehuman", "followers_url": "https://api.github.com/users/trancethehuman/followers", "following_url": "https://api.github.com/users/trancethehuman/following{/other_user}", "gists_url": "https://api.github.com/users/trancethehuman/gists{/gist_id}", "starred_url": "https://api.github.com/users/trancethehuman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trancethehuman/subscriptions", "organizations_url": "https://api.github.com/users/trancethehuman/orgs", "repos_url": "https://api.github.com/users/trancethehuman/repos", "events_url": "https://api.github.com/users/trancethehuman/events{/privacy}", "received_events_url": "https://api.github.com/users/trancethehuman/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" } ]
closed
false
{ "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false }
[ { "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false } ]
null
3
2023-08-04T02:12:41
2023-08-11T18:46:59
2023-08-11T18:46:59
CONTRIBUTOR
null
- Description: Added a new use case category called "Web Scraping", and a tutorial to scrape websites using OpenAI Functions Extraction chain to the docs. - Tag maintainer:@baskaryan @hwchase17 , - Twitter handle: https://www.linkedin.com/in/haiphunghiem/ (I'm on LinkedIn mostly)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8732/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8732/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8732", "html_url": "https://github.com/langchain-ai/langchain/pull/8732", "diff_url": "https://github.com/langchain-ai/langchain/pull/8732.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8732.patch", "merged_at": "2023-08-11T18:46:59" }
https://api.github.com/repos/langchain-ai/langchain/issues/8731
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8731/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8731/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8731/events
https://github.com/langchain-ai/langchain/issues/8731
1,835,947,227
I_kwDOIPDwls5tblTb
8,731
ssue: How to add a intermediate layer between langchain and azure openai<Please write a comprehensive title after the 'Issue: ' prefix>
{ "login": "annapras", "id": 25380671, "node_id": "MDQ6VXNlcjI1MzgwNjcx", "avatar_url": "https://avatars.githubusercontent.com/u/25380671?v=4", "gravatar_id": "", "url": "https://api.github.com/users/annapras", "html_url": "https://github.com/annapras", "followers_url": "https://api.github.com/users/annapras/followers", "following_url": "https://api.github.com/users/annapras/following{/other_user}", "gists_url": "https://api.github.com/users/annapras/gists{/gist_id}", "starred_url": "https://api.github.com/users/annapras/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/annapras/subscriptions", "organizations_url": "https://api.github.com/users/annapras/orgs", "repos_url": "https://api.github.com/users/annapras/repos", "events_url": "https://api.github.com/users/annapras/events{/privacy}", "received_events_url": "https://api.github.com/users/annapras/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": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
2
2023-08-04T01:56:15
2023-11-10T16:06:32
2023-11-10T16:06:31
NONE
null
### Issue you'd like to raise. Hello, We are looking to add an intermediate layer between langchain and azure openai calls so that all requests pass through our custom api instead of azure openai. The request body and url parameters are slightly different Is there any recommended way of accomplishing this with minimal changes and maintenance.also will this allow all functions to work? Thanks ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8731/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8731/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8730
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8730/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8730/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8730/events
https://github.com/langchain-ai/langchain/pull/8730
1,835,945,650
PR_kwDOIPDwls5XJ-R-
8,730
Add Support for DingoDB as vectorstore
{ "login": "HeChangHaoGary", "id": 53417823, "node_id": "MDQ6VXNlcjUzNDE3ODIz", "avatar_url": "https://avatars.githubusercontent.com/u/53417823?v=4", "gravatar_id": "", "url": "https://api.github.com/users/HeChangHaoGary", "html_url": "https://github.com/HeChangHaoGary", "followers_url": "https://api.github.com/users/HeChangHaoGary/followers", "following_url": "https://api.github.com/users/HeChangHaoGary/following{/other_user}", "gists_url": "https://api.github.com/users/HeChangHaoGary/gists{/gist_id}", "starred_url": "https://api.github.com/users/HeChangHaoGary/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HeChangHaoGary/subscriptions", "organizations_url": "https://api.github.com/users/HeChangHaoGary/orgs", "repos_url": "https://api.github.com/users/HeChangHaoGary/repos", "events_url": "https://api.github.com/users/HeChangHaoGary/events{/privacy}", "received_events_url": "https://api.github.com/users/HeChangHaoGary/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
1
2023-08-04T01:53:41
2023-08-06T16:19:26
2023-08-06T16:19:26
CONTRIBUTOR
null
Description: [DingoDB](https://dingodb.readthedocs.io/en/latest/) is a distributed multi-mode vector database, which combines the characteristics of data lakes and vector databases. It has real-time low-latency processing capabilities to achieve rapid insight and response, and can efficiently conduct instant analysis and process multi-modal data. <!-- Thank you for contributing to LangChain! Replace this comment with: - Description: a description of the change, - Issue: the issue # it fixes (if applicable), - Dependencies: any dependencies required for this change, - Tag maintainer: for a quicker response, tag the relevant maintainer (see below), - 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 you're PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. 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. Maintainer responsibilities: - General / Misc / if you don't know who to tag: @baskaryan - DataLoaders / VectorStores / Retrievers: @rlancemartin, @eyurtsev - Models / Prompts: @hwchase17, @baskaryan - Memory: @hwchase17 - Agents / Tools / Toolkits: @hinthornw - Tracing / Callbacks: @agola11 - Async: @agola11 If no one reviews your PR within a few days, feel free to @-mention the same people again. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8730/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8730/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8730", "html_url": "https://github.com/langchain-ai/langchain/pull/8730", "diff_url": "https://github.com/langchain-ai/langchain/pull/8730.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8730.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/8729
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8729/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8729/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8729/events
https://github.com/langchain-ai/langchain/issues/8729
1,835,904,748
I_kwDOIPDwls5tba7s
8,729
VLLM
{ "login": "drewskidang", "id": 120294157, "node_id": "U_kgDOByuLDQ", "avatar_url": "https://avatars.githubusercontent.com/u/120294157?v=4", "gravatar_id": "", "url": "https://api.github.com/users/drewskidang", "html_url": "https://github.com/drewskidang", "followers_url": "https://api.github.com/users/drewskidang/followers", "following_url": "https://api.github.com/users/drewskidang/following{/other_user}", "gists_url": "https://api.github.com/users/drewskidang/gists{/gist_id}", "starred_url": "https://api.github.com/users/drewskidang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/drewskidang/subscriptions", "organizations_url": "https://api.github.com/users/drewskidang/orgs", "repos_url": "https://api.github.com/users/drewskidang/repos", "events_url": "https://api.github.com/users/drewskidang/events{/privacy}", "received_events_url": "https://api.github.com/users/drewskidang/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" } ]
closed
false
null
[]
null
0
2023-08-04T00:45:38
2023-08-07T14:32:04
2023-08-07T14:32:04
NONE
null
### Feature request can we please get vllm support for faster inference ### Motivation faster inference speed compared to using hugging face pipeline ### Your contribution n/a
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8729/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8729/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8728
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8728/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8728/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8728/events
https://github.com/langchain-ai/langchain/issues/8728
1,835,902,620
I_kwDOIPDwls5tbaac
8,728
Streaming issue regarding pusher
{ "login": "Ajaypawar02", "id": 65480235, "node_id": "MDQ6VXNlcjY1NDgwMjM1", "avatar_url": "https://avatars.githubusercontent.com/u/65480235?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Ajaypawar02", "html_url": "https://github.com/Ajaypawar02", "followers_url": "https://api.github.com/users/Ajaypawar02/followers", "following_url": "https://api.github.com/users/Ajaypawar02/following{/other_user}", "gists_url": "https://api.github.com/users/Ajaypawar02/gists{/gist_id}", "starred_url": "https://api.github.com/users/Ajaypawar02/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ajaypawar02/subscriptions", "organizations_url": "https://api.github.com/users/Ajaypawar02/orgs", "repos_url": "https://api.github.com/users/Ajaypawar02/repos", "events_url": "https://api.github.com/users/Ajaypawar02/events{/privacy}", "received_events_url": "https://api.github.com/users/Ajaypawar02/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": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
closed
false
null
[]
null
6
2023-08-04T00:41:55
2023-11-03T16:03:52
2023-11-03T16:03:42
NONE
null
### Issue you'd like to raise. class MyCallbackHandler(BaseCallbackHandler): def __init__(self,new_payload : Dict): self.user_id = new_payload["user_id"] self.session_id = new_payload["session_id"] self.message_id = new_payload["message_id"] self.status = "processing" self.session_id_channel = f"{self.session_id}_channel" self.count = 0 self.temp_count = 0 self.response = "" self.flag = True self.threshold_no = int(os.getenv("CHUNK_SIZE")) self.text = "" def on_llm_new_token(self, token, **kwargs) -> None: if token != "": # logging.info(f"LLM token: {token}") pusher_client.trigger(self.session_id_channel ,'query_answer_stream', { "user_id": self.user_id, "session_id": self.session_id, "message_id": self.message_id, "answer": self.response, "status": self.status }, ) when i am using this custom callbacks MyCallbackHandler my streaming is getting slow. Any suggestion to make it fast ? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8728/reactions", "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8728/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8727
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8727/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8727/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8727/events
https://github.com/langchain-ai/langchain/pull/8727
1,835,890,782
PR_kwDOIPDwls5XJyvt
8,727
support for arbitrary kwargs for llamacpp
{ "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" } ]
closed
false
null
[]
null
1
2023-08-04T00:26:16
2023-08-04T13:52:03
2023-08-04T13:52:02
COLLABORATOR
null
llamacpp params (per their own code) are unstable, so instead of adding/deleting them constantly adding a model_kwargs parameter that allows for arbitrary additional kwargs cc @jsjolund and @zacps re #8599 and #8704
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8727/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8727/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8727", "html_url": "https://github.com/langchain-ai/langchain/pull/8727", "diff_url": "https://github.com/langchain-ai/langchain/pull/8727.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8727.patch", "merged_at": "2023-08-04T13:52:02" }
https://api.github.com/repos/langchain-ai/langchain/issues/8725
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8725/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8725/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8725/events
https://github.com/langchain-ai/langchain/issues/8725
1,835,850,908
I_kwDOIPDwls5tbNyc
8,725
on_llm_start callback doesn't change the prompts sent to LLM
{ "login": "zizhong", "id": 3625100, "node_id": "MDQ6VXNlcjM2MjUxMDA=", "avatar_url": "https://avatars.githubusercontent.com/u/3625100?v=4", "gravatar_id": "", "url": "https://api.github.com/users/zizhong", "html_url": "https://github.com/zizhong", "followers_url": "https://api.github.com/users/zizhong/followers", "following_url": "https://api.github.com/users/zizhong/following{/other_user}", "gists_url": "https://api.github.com/users/zizhong/gists{/gist_id}", "starred_url": "https://api.github.com/users/zizhong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zizhong/subscriptions", "organizations_url": "https://api.github.com/users/zizhong/orgs", "repos_url": "https://api.github.com/users/zizhong/repos", "events_url": "https://api.github.com/users/zizhong/events{/privacy}", "received_events_url": "https://api.github.com/users/zizhong/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
16
2023-08-03T23:27:07
2023-08-09T00:50:23
2023-08-09T00:50:22
CONTRIBUTOR
null
### System Info Python 3.10.12 langchain 0.0.233 ### Who can help? @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [X] Callbacks/Tracing - [ ] Async ### Reproduction ``` from typing import Dict, Union, Any, List from langchain.callbacks.base import BaseCallbackHandler from langchain.schema import AgentAction from langchain.agents import AgentType, initialize_agent, load_tools from langchain.callbacks import tracing_enabled from langchain.llms import OpenAI from langchain.schema.agent import AgentAction from langchain.schema.output import LLMResult from uuid import UUID class MyCustomHandlerOne(BaseCallbackHandler): def on_llm_start( self, serialized: Dict[str, Any], prompts: List[str], **kwargs: Any ) -> Any: print(f"on_llm_start {prompts}") prompts[0] = "Tell me a joke?" print(f"on_llm_start {prompts}") import langchain langchain.verbose = True langchain.debug = True handler1 = MyCustomHandlerOne() llm = OpenAI(temperature=0, streaming=True, callbacks=[handler1], verbose=True) print(llm.__call__("""Context : Mr. Carl Smith is a 31-year-old man who has been experiencing homelessness on and off for all his adult life. Questioin: How old is Mr. Carl Smith?""")) ``` The output is ``` on_llm_start ['Context : Mr. Carl Smith is a 31-year-old man who has been experiencing homelessness \n on and off for all his adult life.\n Questioin: How old is Mr. Carl Smith?'] on_llm_start ['Tell me a joke?'] [llm/start] [1:llm:OpenAI] Entering LLM run with input: { "prompts": [ "Tell me a joke?" ] } [llm/end] [1:llm:OpenAI] [699.067ms] Exiting LLM run with output: { "generations": [ [ { "text": "\n\nAnswer: Mr. Carl Smith is 31 years old.", "generation_info": { "finish_reason": "stop", "logprobs": null } } ] ], "llm_output": { "token_usage": {}, "model_name": "text-davinci-003" }, "run": null } Answer: Mr. Carl Smith is 31 years old. ``` ### Expected behavior LLM will respond to the new prompt set by the callback
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8725/reactions", "total_count": 3, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8725/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8724
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8724/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8724/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8724/events
https://github.com/langchain-ai/langchain/issues/8724
1,835,836,430
I_kwDOIPDwls5tbKQO
8,724
ERROR: langchain 0.0.251 has requirement pydantic<2,>=1, but you'll have pydantic 2.1.1 which is incompatible.
{ "login": "ykamchi", "id": 13556774, "node_id": "MDQ6VXNlcjEzNTU2Nzc0", "avatar_url": "https://avatars.githubusercontent.com/u/13556774?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ykamchi", "html_url": "https://github.com/ykamchi", "followers_url": "https://api.github.com/users/ykamchi/followers", "following_url": "https://api.github.com/users/ykamchi/following{/other_user}", "gists_url": "https://api.github.com/users/ykamchi/gists{/gist_id}", "starred_url": "https://api.github.com/users/ykamchi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ykamchi/subscriptions", "organizations_url": "https://api.github.com/users/ykamchi/orgs", "repos_url": "https://api.github.com/users/ykamchi/repos", "events_url": "https://api.github.com/users/ykamchi/events{/privacy}", "received_events_url": "https://api.github.com/users/ykamchi/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
5
2023-08-03T23:05:18
2023-12-31T13:29:37
2023-11-10T16:06:36
NONE
null
### System Info Ubuntu ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction pip install with the following requierments.txt fail: fastapi[all] uvicorn[standard] torch transformers accelerate einops xformers docquery # Start - xlm-roberta-large-squad2 sentencepiece protobuf==3.20.* # End - xlm-roberta-large-squad2 panel hvplot langchain==0.0.251 ### Expected behavior langchain should work with latest pydantic
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8724/reactions", "total_count": 2, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 2 }
https://api.github.com/repos/langchain-ai/langchain/issues/8724/timeline
null
not_planned
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8723
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8723/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8723/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8723/events
https://github.com/langchain-ai/langchain/pull/8723
1,835,818,511
PR_kwDOIPDwls5XJjmu
8,723
fix makefile help
{ "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": 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" } ]
closed
false
null
[]
null
1
2023-08-03T22:38:57
2023-08-04T20:05:28
2023-08-04T19:37:01
COLLABORATOR
null
Fixed the `makefile` help. It was not up-to-date. @baskaryan
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8723/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8723/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8723", "html_url": "https://github.com/langchain-ai/langchain/pull/8723", "diff_url": "https://github.com/langchain-ai/langchain/pull/8723.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8723.patch", "merged_at": "2023-08-04T19:37:01" }
https://api.github.com/repos/langchain-ai/langchain/issues/8722
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8722/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8722/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8722/events
https://github.com/langchain-ai/langchain/pull/8722
1,835,817,240
PR_kwDOIPDwls5XJjVT
8,722
tagging docs refactor
{ "login": "fpingham", "id": 24279597, "node_id": "MDQ6VXNlcjI0Mjc5NTk3", "avatar_url": "https://avatars.githubusercontent.com/u/24279597?v=4", "gravatar_id": "", "url": "https://api.github.com/users/fpingham", "html_url": "https://github.com/fpingham", "followers_url": "https://api.github.com/users/fpingham/followers", "following_url": "https://api.github.com/users/fpingham/following{/other_user}", "gists_url": "https://api.github.com/users/fpingham/gists{/gist_id}", "starred_url": "https://api.github.com/users/fpingham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fpingham/subscriptions", "organizations_url": "https://api.github.com/users/fpingham/orgs", "repos_url": "https://api.github.com/users/fpingham/repos", "events_url": "https://api.github.com/users/fpingham/events{/privacy}", "received_events_url": "https://api.github.com/users/fpingham/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" } ]
closed
false
null
[]
null
2
2023-08-03T22:37:27
2023-08-11T15:06:09
2023-08-11T15:06:08
COLLABORATOR
null
refactor of tagging use case according to new format
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8722/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8722/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8722", "html_url": "https://github.com/langchain-ai/langchain/pull/8722", "diff_url": "https://github.com/langchain-ai/langchain/pull/8722.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8722.patch", "merged_at": "2023-08-11T15:06:07" }
https://api.github.com/repos/langchain-ai/langchain/issues/8721
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8721/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8721/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8721/events
https://github.com/langchain-ai/langchain/pull/8721
1,835,779,059
PR_kwDOIPDwls5XJbV_
8,721
new `tensoflow_datasets` document loader
{ "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": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
{ "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }
[ { "login": "eyurtsev", "id": 3205522, "node_id": "MDQ6VXNlcjMyMDU1MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4", "gravatar_id": "", "url": "https://api.github.com/users/eyurtsev", "html_url": "https://github.com/eyurtsev", "followers_url": "https://api.github.com/users/eyurtsev/followers", "following_url": "https://api.github.com/users/eyurtsev/following{/other_user}", "gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}", "starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions", "organizations_url": "https://api.github.com/users/eyurtsev/orgs", "repos_url": "https://api.github.com/users/eyurtsev/repos", "events_url": "https://api.github.com/users/eyurtsev/events{/privacy}", "received_events_url": "https://api.github.com/users/eyurtsev/received_events", "type": "User", "site_admin": false }, { "login": "rlancemartin", "id": 122662504, "node_id": "U_kgDOB0-uaA", "avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rlancemartin", "html_url": "https://github.com/rlancemartin", "followers_url": "https://api.github.com/users/rlancemartin/followers", "following_url": "https://api.github.com/users/rlancemartin/following{/other_user}", "gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}", "starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions", "organizations_url": "https://api.github.com/users/rlancemartin/orgs", "repos_url": "https://api.github.com/users/rlancemartin/repos", "events_url": "https://api.github.com/users/rlancemartin/events{/privacy}", "received_events_url": "https://api.github.com/users/rlancemartin/received_events", "type": "User", "site_admin": false } ]
null
5
2023-08-03T21:51:07
2023-08-08T20:03:22
2023-08-08T19:19:29
COLLABORATOR
null
added `tensoflow_datasets` document loader @eyurtsev
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8721/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8721/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8721", "html_url": "https://github.com/langchain-ai/langchain/pull/8721", "diff_url": "https://github.com/langchain-ai/langchain/pull/8721.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8721.patch", "merged_at": "2023-08-08T19:19:29" }
https://api.github.com/repos/langchain-ai/langchain/issues/8720
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8720/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8720/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8720/events
https://github.com/langchain-ai/langchain/pull/8720
1,835,758,817
PR_kwDOIPDwls5XJXHf
8,720
wip Bagatur/google drive
{ "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": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
closed
false
null
[]
null
1
2023-08-03T21:28:43
2023-08-10T21:53:15
2023-08-10T21:53:15
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8720/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8720/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8720", "html_url": "https://github.com/langchain-ai/langchain/pull/8720", "diff_url": "https://github.com/langchain-ai/langchain/pull/8720.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8720.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/8719
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8719/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8719/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8719/events
https://github.com/langchain-ai/langchain/issues/8719
1,835,747,652
I_kwDOIPDwls5ta0lE
8,719
ChromaDB integration should properly handle the new Ephemeral/Persistent client objects in recent Chroma version.
{ "login": "JackLeick", "id": 129417742, "node_id": "U_kgDOB7bCDg", "avatar_url": "https://avatars.githubusercontent.com/u/129417742?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JackLeick", "html_url": "https://github.com/JackLeick", "followers_url": "https://api.github.com/users/JackLeick/followers", "following_url": "https://api.github.com/users/JackLeick/following{/other_user}", "gists_url": "https://api.github.com/users/JackLeick/gists{/gist_id}", "starred_url": "https://api.github.com/users/JackLeick/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JackLeick/subscriptions", "organizations_url": "https://api.github.com/users/JackLeick/orgs", "repos_url": "https://api.github.com/users/JackLeick/repos", "events_url": "https://api.github.com/users/JackLeick/events{/privacy}", "received_events_url": "https://api.github.com/users/JackLeick/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" } ]
closed
false
null
[]
null
2
2023-08-03T21:17:48
2023-08-04T13:58:17
2023-08-04T13:58:17
NONE
null
With the new Chroma version introducing EphemeralClient and PersistentClient objects, I believe the LangChain integration should be updated to properly handle this. Below is the relevant code, I believe, where this should be done in the Chroma constructor (chroma.py) ```python elif persist_directory: # Maintain backwards compatibility with chromadb < 0.4.0 major, minor, _ = chromadb.__version__.split(".") if int(major) == 0 and int(minor) < 4: _client_settings = chromadb.config.Settings( chroma_db_impl="duckdb+parquet", ) else: _client_settings = chromadb.config.Settings(is_persistent=True) _client_settings.persist_directory = persist_directory else: _client_settings = chromadb.config.Settings() self._client_settings = _client_settings self._client = chromadb.Client(_client_settings) self._persist_directory = ( _client_settings.persist_directory or persist_directory ) ``` My thought, is set self._client to EphemeralClient or PersistentClient depending on if persist_directory is used instead of the old chromadb.Client way. Is there any work being done on this? Noticing the comment about chromadb 0.4.0, it seems like its been noted, but not corrected. Currently I can't figure out how to make this work in the current Chroma integration without accessing the PersistentClient directly, then passing it in to Chroma constructor. Here is how I am doing it currently: ```python client = chromadb.PersistentClient(path=persist_directory, settings=settings) db = Chroma( client=client, embedding_function=embedding_function, client_settings=settings, persist_directory=persist_directory ) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8719/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8719/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/8718
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8718/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8718/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8718/events
https://github.com/langchain-ai/langchain/pull/8718
1,835,684,284
PR_kwDOIPDwls5XJHsW
8,718
add moderation example
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
1
2023-08-03T20:23:32
2023-08-07T14:50:12
2023-08-07T14:50:11
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8718/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/8718/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/8718", "html_url": "https://github.com/langchain-ai/langchain/pull/8718", "diff_url": "https://github.com/langchain-ai/langchain/pull/8718.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/8718.patch", "merged_at": "2023-08-07T14:50:11" }
https://api.github.com/repos/langchain-ai/langchain/issues/8717
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/8717/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/8717/comments
https://api.github.com/repos/langchain-ai/langchain/issues/8717/events
https://github.com/langchain-ai/langchain/issues/8717
1,835,652,884
I_kwDOIPDwls5tadcU
8,717
MRKL agent: Rename Action and Action Input to Tool and Tool Input
{ "login": "iwm911", "id": 2302032, "node_id": "MDQ6VXNlcjIzMDIwMzI=", "avatar_url": "https://avatars.githubusercontent.com/u/2302032?v=4", "gravatar_id": "", "url": "https://api.github.com/users/iwm911", "html_url": "https://github.com/iwm911", "followers_url": "https://api.github.com/users/iwm911/followers", "following_url": "https://api.github.com/users/iwm911/following{/other_user}", "gists_url": "https://api.github.com/users/iwm911/gists{/gist_id}", "starred_url": "https://api.github.com/users/iwm911/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/iwm911/subscriptions", "organizations_url": "https://api.github.com/users/iwm911/orgs", "repos_url": "https://api.github.com/users/iwm911/repos", "events_url": "https://api.github.com/users/iwm911/events{/privacy}", "received_events_url": "https://api.github.com/users/iwm911/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" } ]
closed
false
null
[]
null
2
2023-08-03T19:56:07
2023-11-10T16:06:42
2023-11-10T16:06:41
NONE
null
### System Info Hi, During work with Hermes, Beluga and Wizardlm and MRKL agent i have noticed that the model often get confused with the action and action input. The model might decide on using the correct tool, however in the MRKL format ``` Question: the input question you must answer Thought: you should always think about what to do Action: the action to take, should be one of [Search] Action Input: the input to the action Observation: the result of the action ... (this Thought/Action/Action Input/Observation can repeat N times) Thought: I now know the final answer Final Answer: the final answer to the original input question ``` the model might write in the action "Search the population of Canada" instead of "Search" and "the population of Canada" in the Action Input. For example Stable Beluga: ``` Question: How many people live in Canada as of 2023? Thought: I need a source to find the accurate population count for Canada. Action: Search for information on Canada's current population. Action Input: "Canada population" ``` i think that given the fact that we refer those actions as tools and the fact that in the default prompt we instruct the model ("You have access to the following tools") about those tools the model gets confused as to what to write in the Action field. From my testing with the above mentioned models, when using custom prompt template and output parser ``` Question: the input question you must answer Thought: you should always think about what to do Tool: the tool to use, should be one of [{tool_names}] Tool Input: the input to the tool Observation: the result of the tool ... (this Thought/Tool/Tool Input/Observation can repeat N times) Thought: I now know the final answer Final Answer: the final answer to the original input question ``` the results with the format of Tool gives much better and consistent results then the default format. Stable Beluga: ``` Question: How many people live in Canada as of 2023? Thought: I need to find an accurate estimate of the population of Canada for this year. Tool: Search Tool Input: "Population of Canada 2023" ``` ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [X] Prompts / Prompt Templates / Prompt Selectors - [X] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction Use the following standard prompt with "stablebeluga-13b.ggmlv3.q4_1.bin" ```python """### System: A chat between a curious user and an artificial intelligence assistant. Answer the following questions as best you can. You have access to the following tools: {tools} Use the following format: Question: the input question you must answer Thought: you should always think about what to do Action: the action to take, should be one of [{tool_names}] Action Input: the input to the action Observation: the result of the action ... (this Thought/Action/Action Input/Observation can repeat N times) Thought: I now know the final answer Final Answer: the final answer to the original input question Chat History: {history} ### User: {input} ### Assistant: {agent_scratchpad}""" ``` ### Expected behavior The specification of the Action without the parameters like so: ```python Question: How many people live in Canada as of 2023? Thought: I need to find an accurate estimate of the population of Canada for this year. Action: Search Action Input: "Population of Canada 2023" ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/8717/reactions", "total_count": 2, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 }
https://api.github.com/repos/langchain-ai/langchain/issues/8717/timeline
null
not_planned
null
null