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/15458
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15458/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15458/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15458/events
https://github.com/langchain-ai/langchain/issues/15458
2,063,465,461
I_kwDOIPDwls56_fv1
15,458
Issue: Passing list of index while retreiver in opensearch vectorstore
{ "login": "akash97715", "id": 34799343, "node_id": "MDQ6VXNlcjM0Nzk5MzQz", "avatar_url": "https://avatars.githubusercontent.com/u/34799343?v=4", "gravatar_id": "", "url": "https://api.github.com/users/akash97715", "html_url": "https://github.com/akash97715", "followers_url": "https://api.github.com/users/akash97715/followers", "following_url": "https://api.github.com/users/akash97715/following{/other_user}", "gists_url": "https://api.github.com/users/akash97715/gists{/gist_id}", "starred_url": "https://api.github.com/users/akash97715/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/akash97715/subscriptions", "organizations_url": "https://api.github.com/users/akash97715/orgs", "repos_url": "https://api.github.com/users/akash97715/repos", "events_url": "https://api.github.com/users/akash97715/events{/privacy}", "received_events_url": "https://api.github.com/users/akash97715/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 6077048506, "node_id": "LA_kwDOIPDwls8AAAABajhmug", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20elasticsearch", "name": "integration: elasticsearch", "color": "DAB5EC", "default": false, "description": "Related to elastic/elasticsearch integrations" } ]
open
false
null
[]
null
1
2024-01-03T08:12:56
2024-01-03T08:21:03
null
NONE
null
### Issue you'd like to raise. Hello Team, let me clearify the issue below: we are using vectordb conversational retriever. we can look into the attached code for more clarity. My issue is i have 4 documents stored in 2 different index. **End-user can select multiple document lets say 3 or 4 document, and ask questions related to any of the selected 4 document, he dont care whatever the document he selects its there on same index.** As a backend logic we can create something index document map by some logic which will give a map of documents existing in different index. **Now the problem here is i need to pass all the index at once where this 3-4 documents are there, there may be possibility we get more than 2 index where the selected document exist.** is there a way to pass multi-index while search into below function. i see index accept string argument. let me know if you suggest any workaround for this. we need solution on some better workaround then we are using. **Below workaround we are using:** we are creating one temp index on the go and get all the embeddings and text from all the index where the selected document exist, then use that index with query and in the same request we delete that temp index. Let me know in case you need any other additional details ![multi_index](https://github.com/langchain-ai/langchain/assets/34799343/a059803b-7fd9-4b37-a70e-9ed67d2665f9) ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15458/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15458/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15457
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15457/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15457/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15457/events
https://github.com/langchain-ai/langchain/issues/15457
2,063,449,745
I_kwDOIPDwls56_b6R
15,457
Langchain SQL Database Agent failed to find the view name in the MS SQL database.
{ "login": "vishalpatidar00789", "id": 20840419, "node_id": "MDQ6VXNlcjIwODQwNDE5", "avatar_url": "https://avatars.githubusercontent.com/u/20840419?v=4", "gravatar_id": "", "url": "https://api.github.com/users/vishalpatidar00789", "html_url": "https://github.com/vishalpatidar00789", "followers_url": "https://api.github.com/users/vishalpatidar00789/followers", "following_url": "https://api.github.com/users/vishalpatidar00789/following{/other_user}", "gists_url": "https://api.github.com/users/vishalpatidar00789/gists{/gist_id}", "starred_url": "https://api.github.com/users/vishalpatidar00789/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vishalpatidar00789/subscriptions", "organizations_url": "https://api.github.com/users/vishalpatidar00789/orgs", "repos_url": "https://api.github.com/users/vishalpatidar00789/repos", "events_url": "https://api.github.com/users/vishalpatidar00789/events{/privacy}", "received_events_url": "https://api.github.com/users/vishalpatidar00789/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
5
2024-01-03T08:03:31
2024-01-03T13:03:15
null
NONE
null
I am trying to build a langchain SQL database agent where I want to query only one view for now. I have mentioned the view name in the System Prompt and I have passed view_support=True to the SQLDatabase constructor. When I run the query agent is trying to find out the tables instead views. I am sensing that agent has no method that can fetch the view names of the database, it is trying to call 'sql_db_list_tables' and then sql_db_schema. look at the code below: ``` import os from dotenv import load_dotenv load_dotenv() from sqlalchemy import create_engine odbc_str = 'mssql+pyodbc:///?odbc_connect=' \ 'Driver={ODBC Driver 18 for SQL Server}' \ ';Server=tcp:' + os.getenv("DB_SERVER")+';PORT=1453' + \ ';Authentication=ActiveDirectoryPassword' + \ ';DATABASE=' + os.getenv("DB_NAME") + \ ';Uid='+os.getenv("UID")'+ \ ';Pwd='+os.getenv("PWD")'+ \ ';Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;' print(odbc_str) db_engine = create_engine(odbc_str) ``` ``` from langchain.chat_models import AzureChatOpenAI llm = AzureChatOpenAI( openai_api_type=os.getenv("OPENAI_API_TYPE"), api_version=os.getenv("OPENAI_API_VERSION"), azure_deployment=os.getenv("DEPLOYMENT_NAME"), model=os.getenv("OPENAI_CHAT_MODEL"), azure_endpoint=os.getenv("AZURE_OPENAI_ENDPOINT"), api_key=os.getenv("AZURE_OPENAI_API_KEY"), temperature=0, verbose= True) ``` ``` from langchain.prompts.chat import ChatPromptTemplate final_prompt = ChatPromptTemplate.from_messages( [ ("system", """ You are a helpful AI assistant expert in querying SQL Database to find answers to user's question about database view: XXXXXXXXXX.vw_YYYYYYYYY where XXXXXXXXXX is the schema and vw_YYYYYYYYY is the view. You need to directly query this view: XXXXXXXXXX.vw_YYYYYYYYY for all user's questions. Note: DO NOT EXECUTE DROP, DELETE or UPDATE SQL QUERIES. """ ), ("user", "{question}\n ai: "), ] ) ``` ``` from langchain.agents import AgentType, create_sql_agent from langchain.sql_database import SQLDatabase from langchain.agents.agent_toolkits.sql.toolkit import SQLDatabaseToolkit db = SQLDatabase(db_engine, view_support=True) sql_toolkit = SQLDatabaseToolkit(db=db, llm=llm) sql_toolkit.get_tools() sqldb_agent = create_sql_agent( llm=llm, toolkit=sql_toolkit, agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True, ) sqldb_agent.run(final_prompt.format( question="What is the Exposure for id: 574182 by type ?" )) ``` AGENT ANSWER: > Entering new AgentExecutor chain... Action: sql_db_list_tables Action Input: "" Observation: xyz, abc, pqr Thought:The table I need to query, XXXXXXXXXX.vw_YYYYYYYYY, is not listed in the database tables. I need to check the schema of the view to understand its structure and the fields it contains. Action: sql_db_schema Action Input: "XXXXXXXXXX.vw_YYYYYYYYY" Observation: Error: table_names {'XXXXXXXXXX.vw_YYYYYYYYY'} not found in database Thought:It seems like there is an error in finding the view XXXXXXXXXX.vw_YYYYYYYYY in the database. I need to inform the user about this. Final Answer: I'm sorry, but it seems like the view 'XXXXXXXXXX.vw_YYYYYYYYY' does not exist in the database. Please check the view name and try again. > Finished chain. One option is to override the sql agent action methods or add new methods, but I dont want to do do that as per prompt instructions it should successfully find the view in the schema and query. Please help anyone has achieved this. Thanks in advance.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15457/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15457/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15456
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15456/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15456/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15456/events
https://github.com/langchain-ai/langchain/issues/15456
2,063,398,062
I_kwDOIPDwls56_PSu
15,456
Issues using Nemo rails with ConversationChains and Agents.
{ "login": "markwealthio", "id": 141135321, "node_id": "U_kgDOCGmN2Q", "avatar_url": "https://avatars.githubusercontent.com/u/141135321?v=4", "gravatar_id": "", "url": "https://api.github.com/users/markwealthio", "html_url": "https://github.com/markwealthio", "followers_url": "https://api.github.com/users/markwealthio/followers", "following_url": "https://api.github.com/users/markwealthio/following{/other_user}", "gists_url": "https://api.github.com/users/markwealthio/gists{/gist_id}", "starred_url": "https://api.github.com/users/markwealthio/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/markwealthio/subscriptions", "organizations_url": "https://api.github.com/users/markwealthio/orgs", "repos_url": "https://api.github.com/users/markwealthio/repos", "events_url": "https://api.github.com/users/markwealthio/events{/privacy}", "received_events_url": "https://api.github.com/users/markwealthio/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
1
2024-01-03T07:30:33
2024-01-03T07:44:13
null
NONE
null
### Issue you'd like to raise. Hi, I want to know if there is an implementation to use ConversationChains, Agents with NVIDIA's Nemo Rails. Thanks ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15456/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15456/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15454
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15454/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15454/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15454/events
https://github.com/langchain-ai/langchain/pull/15454
2,063,385,054
PR_kwDOIPDwls5jGmSr
15,454
Patch: Remove duplicate code
{ "login": "chyroc", "id": 15604894, "node_id": "MDQ6VXNlcjE1NjA0ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chyroc", "html_url": "https://github.com/chyroc", "followers_url": "https://api.github.com/users/chyroc/followers", "following_url": "https://api.github.com/users/chyroc/following{/other_user}", "gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}", "starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chyroc/subscriptions", "organizations_url": "https://api.github.com/users/chyroc/orgs", "repos_url": "https://api.github.com/users/chyroc/repos", "events_url": "https://api.github.com/users/chyroc/events{/privacy}", "received_events_url": "https://api.github.com/users/chyroc/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
open
false
null
[]
null
1
2024-01-03T07:22:33
2024-01-03T07:23:45
null
CONTRIBUTOR
null
fix https://github.com/langchain-ai/langchain/issues/15203 Or maybe can delete the render.py file directly
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15454/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15454/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15454", "html_url": "https://github.com/langchain-ai/langchain/pull/15454", "diff_url": "https://github.com/langchain-ai/langchain/pull/15454.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15454.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15453
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15453/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15453/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15453/events
https://github.com/langchain-ai/langchain/pull/15453
2,063,377,676
PR_kwDOIPDwls5jGknw
15,453
community: allow SQLDatabase to run queries with parameters
{ "login": "danb27", "id": 42096328, "node_id": "MDQ6VXNlcjQyMDk2MzI4", "avatar_url": "https://avatars.githubusercontent.com/u/42096328?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danb27", "html_url": "https://github.com/danb27", "followers_url": "https://api.github.com/users/danb27/followers", "following_url": "https://api.github.com/users/danb27/following{/other_user}", "gists_url": "https://api.github.com/users/danb27/gists{/gist_id}", "starred_url": "https://api.github.com/users/danb27/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danb27/subscriptions", "organizations_url": "https://api.github.com/users/danb27/orgs", "repos_url": "https://api.github.com/users/danb27/repos", "events_url": "https://api.github.com/users/danb27/events{/privacy}", "received_events_url": "https://api.github.com/users/danb27/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
open
false
null
[]
null
2
2024-01-03T07:17:37
2024-01-08T19:53:07
null
CONTRIBUTOR
null
**Description:** Allow binding parameters in queries run by SQLDatabase **Issue:** https://github.com/langchain-ai/langchain/issues/15449 **Dependencies:** N/A **Twitter handle:** N/A Let me know if you need me to write tests, it looks like this class doesn't have any tests.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15453/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15453/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15453", "html_url": "https://github.com/langchain-ai/langchain/pull/15453", "diff_url": "https://github.com/langchain-ai/langchain/pull/15453.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15453.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15452
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15452/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15452/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15452/events
https://github.com/langchain-ai/langchain/pull/15452
2,063,356,278
PR_kwDOIPDwls5jGfy5
15,452
Fix: fix top_p type hint
{ "login": "chyroc", "id": 15604894, "node_id": "MDQ6VXNlcjE1NjA0ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chyroc", "html_url": "https://github.com/chyroc", "followers_url": "https://api.github.com/users/chyroc/followers", "following_url": "https://api.github.com/users/chyroc/following{/other_user}", "gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}", "starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chyroc/subscriptions", "organizations_url": "https://api.github.com/users/chyroc/orgs", "repos_url": "https://api.github.com/users/chyroc/repos", "events_url": "https://api.github.com/users/chyroc/events{/privacy}", "received_events_url": "https://api.github.com/users/chyroc/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 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": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." }, { "id": 6348691034, "node_id": "LA_kwDOIPDwls8AAAABemlWWg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner", "name": "partner", "color": "ededed", "default": false, "description": null } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
2
2024-01-03T07:03:41
2024-01-15T19:59:40
2024-01-15T19:59:39
CONTRIBUTOR
null
fix: https://github.com/langchain-ai/langchain/issues/15341 @efriis
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15452/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15452/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15452", "html_url": "https://github.com/langchain-ai/langchain/pull/15452", "diff_url": "https://github.com/langchain-ai/langchain/pull/15452.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15452.patch", "merged_at": "2024-01-15T19:59:39" }
https://api.github.com/repos/langchain-ai/langchain/issues/15451
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15451/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15451/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15451/events
https://github.com/langchain-ai/langchain/pull/15451
2,063,317,188
PR_kwDOIPDwls5jGXDe
15,451
Patch: improve type hint
{ "login": "chyroc", "id": 15604894, "node_id": "MDQ6VXNlcjE1NjA0ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chyroc", "html_url": "https://github.com/chyroc", "followers_url": "https://api.github.com/users/chyroc/followers", "following_url": "https://api.github.com/users/chyroc/following{/other_user}", "gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}", "starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chyroc/subscriptions", "organizations_url": "https://api.github.com/users/chyroc/orgs", "repos_url": "https://api.github.com/users/chyroc/repos", "events_url": "https://api.github.com/users/chyroc/events{/privacy}", "received_events_url": "https://api.github.com/users/chyroc/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-03T06:31:40
2024-01-03T06:44:01
2024-01-03T06:39:28
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15451/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15451/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15451", "html_url": "https://github.com/langchain-ai/langchain/pull/15451", "diff_url": "https://github.com/langchain-ai/langchain/pull/15451.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15451.patch", "merged_at": "2024-01-03T06:39:28" }
https://api.github.com/repos/langchain-ai/langchain/issues/15450
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15450/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15450/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15450/events
https://github.com/langchain-ai/langchain/pull/15450
2,063,273,243
PR_kwDOIPDwls5jGNiM
15,450
cleanup getting started
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-03T05:37:05
2024-01-03T06:26:36
2024-01-03T06:26:36
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15450/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15450/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15450", "html_url": "https://github.com/langchain-ai/langchain/pull/15450", "diff_url": "https://github.com/langchain-ai/langchain/pull/15450.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15450.patch", "merged_at": "2024-01-03T06:26:36" }
https://api.github.com/repos/langchain-ai/langchain/issues/15449
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15449/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15449/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15449/events
https://github.com/langchain-ai/langchain/issues/15449
2,063,266,287
I_kwDOIPDwls56-vHv
15,449
Allow bind variables in SQLDatabase queries
{ "login": "danb27", "id": 42096328, "node_id": "MDQ6VXNlcjQyMDk2MzI4", "avatar_url": "https://avatars.githubusercontent.com/u/42096328?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danb27", "html_url": "https://github.com/danb27", "followers_url": "https://api.github.com/users/danb27/followers", "following_url": "https://api.github.com/users/danb27/following{/other_user}", "gists_url": "https://api.github.com/users/danb27/gists{/gist_id}", "starred_url": "https://api.github.com/users/danb27/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danb27/subscriptions", "organizations_url": "https://api.github.com/users/danb27/orgs", "repos_url": "https://api.github.com/users/danb27/repos", "events_url": "https://api.github.com/users/danb27/events{/privacy}", "received_events_url": "https://api.github.com/users/danb27/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
1
2024-01-03T05:26:19
2024-01-03T05:28:36
null
CONTRIBUTOR
null
### Feature request Allow using [bind parameters](https://docs.sqlalchemy.org/en/20/core/connections.html#sqlalchemy.engine.Connection.execute.params.parameters) in SQLDatabase's [run method](https://github.com/langchain-ai/langchain/blob/65afc13b8b53a1ca41a1a3998dad9eb8d83ca917/libs/community/langchain_community/utilities/sql_database.py#L426). ### Motivation I don't see a way to use bind params in SQLDatabase queries. ### Your contribution Happy to help out with a PR if needed (and if confirmed that this functionality doesn't exist and is wanted :) )
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15449/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15449/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15448
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15448/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15448/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15448/events
https://github.com/langchain-ai/langchain/issues/15448
2,063,217,500
I_kwDOIPDwls56-jNc
15,448
KeyError: 'usage'
{ "login": "pydaxing", "id": 129026999, "node_id": "U_kgDOB7DLtw", "avatar_url": "https://avatars.githubusercontent.com/u/129026999?v=4", "gravatar_id": "", "url": "https://api.github.com/users/pydaxing", "html_url": "https://github.com/pydaxing", "followers_url": "https://api.github.com/users/pydaxing/followers", "following_url": "https://api.github.com/users/pydaxing/following{/other_user}", "gists_url": "https://api.github.com/users/pydaxing/gists{/gist_id}", "starred_url": "https://api.github.com/users/pydaxing/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pydaxing/subscriptions", "organizations_url": "https://api.github.com/users/pydaxing/orgs", "repos_url": "https://api.github.com/users/pydaxing/repos", "events_url": "https://api.github.com/users/pydaxing/events{/privacy}", "received_events_url": "https://api.github.com/users/pydaxing/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
3
2024-01-03T04:03:31
2024-01-03T06:10:14
null
NONE
null
### System Info langchain 0.0.353 langchain-community 0.0.7 langchain-core 0.1.4 langchain-experimental 0.0.47 Python 3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0] on linuxd openai 0.28.0 ### 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 ```python import os from langchain.llms import AzureOpenAI from langchain.agents import initialize_agent, AgentType, AgentExecutor from langchain.chat_models import ChatOpenAI from langchain.prompts import PromptTemplate, ChatPromptTemplate, MessagesPlaceholder from langchain.tools import tool import openai os.environ["OPENAI_API_TYPE"] = "azure" os.environ["OPENAI_API_VERSION"] = "2023-06-01-preview" os.environ["OPENAI_API_BASE"] = "xxx" os.environ["OPENAI_API_KEY"] = "xxx" prompt_template = ChatPromptTemplate.from_messages([ ("system", "You are a powerful assistant. But you do not know how to calculate the length of a word"), ("user", "{input}"), ]) llm = AzureOpenAI( model_name="gpt-4", engine="gpt-4" ) @tool def get_word_length(word): """get the length of a word""" return len(word) tools = [get_word_length] agent = initialize_agent( tools, llm, agent=AgentType.OPENAI_FUNCTIONS, verbose=True ) agent.run("how many letters are there in Oslo and Beijing?") ``` ``` > Entering new AgentExecutor chain... Traceback (most recent call last): File "/mnt/workspace/workgroup/lengmou/Tars-Code-Agent/pages/5.py", line 115, in <module> agent.run("how many letters are there in Oslo and Beijing?") File "/mnt/workspace/workgroup/shared/miniconda3/envs/code-agent/lib/python3.10/site-packages/langchain/chains/base.py", line 507, in run return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[ File "/mnt/workspace/workgroup/shared/miniconda3/envs/code-agent/lib/python3.10/site-packages/langchain/chains/base.py", line 312, in __call__ raise e File "/mnt/workspace/workgroup/shared/miniconda3/envs/code-agent/lib/python3.10/site-packages/langchain/chains/base.py", line 306, in __call__ self._call(inputs, run_manager=run_manager) File "/mnt/workspace/workgroup/shared/miniconda3/envs/code-agent/lib/python3.10/site-packages/langchain/agents/agent.py", line 1312, in _call next_step_output = self._take_next_step( File "/mnt/workspace/workgroup/shared/miniconda3/envs/code-agent/lib/python3.10/site-packages/langchain/agents/agent.py", line 1038, in _take_next_step [ File "/mnt/workspace/workgroup/shared/miniconda3/envs/code-agent/lib/python3.10/site-packages/langchain/agents/agent.py", line 1038, in <listcomp> [ File "/mnt/workspace/workgroup/shared/miniconda3/envs/code-agent/lib/python3.10/site-packages/langchain/agents/agent.py", line 1066, in _iter_next_step output = self.agent.plan( File "/mnt/workspace/workgroup/shared/miniconda3/envs/code-agent/lib/python3.10/site-packages/langchain/agents/openai_functions_agent/base.py", line 96, in plan predicted_message = self.llm.predict_messages( File "/mnt/workspace/workgroup/shared/miniconda3/envs/code-agent/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 946, in predict_messages content = self(text, stop=_stop, **kwargs) File "/mnt/workspace/workgroup/shared/miniconda3/envs/code-agent/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 892, in __call__ self.generate( File "/mnt/workspace/workgroup/shared/miniconda3/envs/code-agent/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 666, in generate output = self._generate_helper( File "/mnt/workspace/workgroup/shared/miniconda3/envs/code-agent/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 553, in _generate_helper raise e File "/mnt/workspace/workgroup/shared/miniconda3/envs/code-agent/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 540, in _generate_helper self._generate( File "/mnt/workspace/workgroup/shared/miniconda3/envs/code-agent/lib/python3.10/site-packages/langchain_community/llms/openai.py", line 1152, in _generate "token_usage": full_response["usage"], KeyError: 'usage' ``` ### Expected behavior Please look at this issue, thanks!
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15448/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15448/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15447
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15447/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15447/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15447/events
https://github.com/langchain-ai/langchain/pull/15447
2,063,210,345
PR_kwDOIPDwls5jGARe
15,447
Feat: support Milvus more params
{ "login": "chyroc", "id": 15604894, "node_id": "MDQ6VXNlcjE1NjA0ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chyroc", "html_url": "https://github.com/chyroc", "followers_url": "https://api.github.com/users/chyroc/followers", "following_url": "https://api.github.com/users/chyroc/following{/other_user}", "gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}", "starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chyroc/subscriptions", "organizations_url": "https://api.github.com/users/chyroc/orgs", "repos_url": "https://api.github.com/users/chyroc/repos", "events_url": "https://api.github.com/users/chyroc/events{/privacy}", "received_events_url": "https://api.github.com/users/chyroc/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
3
2024-01-03T03:50:14
2024-01-05T04:32:22
2024-01-05T04:07:24
CONTRIBUTOR
null
fix https://github.com/langchain-ai/langchain/issues/15442
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15447/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15447/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15447", "html_url": "https://github.com/langchain-ai/langchain/pull/15447", "diff_url": "https://github.com/langchain-ai/langchain/pull/15447.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15447.patch", "merged_at": "2024-01-05T04:07:24" }
https://api.github.com/repos/langchain-ai/langchain/issues/15446
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15446/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15446/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15446/events
https://github.com/langchain-ai/langchain/pull/15446
2,063,206,940
PR_kwDOIPDwls5jF_k2
15,446
[Improvement] Evals: Add git info
{ "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" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-03T03:43:37
2024-01-03T04:08:51
2024-01-03T04:08:50
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15446/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15446/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15446", "html_url": "https://github.com/langchain-ai/langchain/pull/15446", "diff_url": "https://github.com/langchain-ai/langchain/pull/15446.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15446.patch", "merged_at": "2024-01-03T04:08:50" }
https://api.github.com/repos/langchain-ai/langchain/issues/15445
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15445/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15445/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15445/events
https://github.com/langchain-ai/langchain/issues/15445
2,063,195,674
I_kwDOIPDwls56-d4a
15,445
Issue: streaming output.
{ "login": "xasxin", "id": 113810081, "node_id": "U_kgDOBsiaoQ", "avatar_url": "https://avatars.githubusercontent.com/u/113810081?v=4", "gravatar_id": "", "url": "https://api.github.com/users/xasxin", "html_url": "https://github.com/xasxin", "followers_url": "https://api.github.com/users/xasxin/followers", "following_url": "https://api.github.com/users/xasxin/following{/other_user}", "gists_url": "https://api.github.com/users/xasxin/gists{/gist_id}", "starred_url": "https://api.github.com/users/xasxin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xasxin/subscriptions", "organizations_url": "https://api.github.com/users/xasxin/orgs", "repos_url": "https://api.github.com/users/xasxin/repos", "events_url": "https://api.github.com/users/xasxin/events{/privacy}", "received_events_url": "https://api.github.com/users/xasxin/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2024-01-03T03:29:06
2024-01-03T03:36:40
null
NONE
null
### Issue you'd like to raise. Hi, I'm using an llm chain and would like to stream its output. I'm writing a function that takes it's token. I can get the tokens one by one, but how can I know if this token is the last token of the response? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15445/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15445/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15444
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15444/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15444/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15444/events
https://github.com/langchain-ai/langchain/pull/15444
2,063,180,792
PR_kwDOIPDwls5jF6An
15,444
fixed a dependency duplicate
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-03T03:03:00
2024-01-03T16:54:54
2024-01-03T05:40:04
COLLABORATOR
null
BaseModel is derived twice. Left only one.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15444/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15444/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15444", "html_url": "https://github.com/langchain-ai/langchain/pull/15444", "diff_url": "https://github.com/langchain-ai/langchain/pull/15444.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15444.patch", "merged_at": "2024-01-03T05:40:04" }
https://api.github.com/repos/langchain-ai/langchain/issues/15443
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15443/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15443/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15443/events
https://github.com/langchain-ai/langchain/pull/15443
2,063,180,722
PR_kwDOIPDwls5jF5_v
15,443
langchain: convert json to minified json to save prompt token cost
{ "login": "mengjincn", "id": 29910729, "node_id": "MDQ6VXNlcjI5OTEwNzI5", "avatar_url": "https://avatars.githubusercontent.com/u/29910729?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mengjincn", "html_url": "https://github.com/mengjincn", "followers_url": "https://api.github.com/users/mengjincn/followers", "following_url": "https://api.github.com/users/mengjincn/following{/other_user}", "gists_url": "https://api.github.com/users/mengjincn/gists{/gist_id}", "starred_url": "https://api.github.com/users/mengjincn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mengjincn/subscriptions", "organizations_url": "https://api.github.com/users/mengjincn/orgs", "repos_url": "https://api.github.com/users/mengjincn/repos", "events_url": "https://api.github.com/users/mengjincn/events{/privacy}", "received_events_url": "https://api.github.com/users/mengjincn/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
open
false
null
[]
null
1
2024-01-03T03:02:53
2024-01-03T03:21:16
null
CONTRIBUTOR
null
- **Description:** convert json to minified json to save prompt token cost,, - **Issue:** no issue, - **Dependencies:** not change any dependencies
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15443/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15443/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15443", "html_url": "https://github.com/langchain-ai/langchain/pull/15443", "diff_url": "https://github.com/langchain-ai/langchain/pull/15443.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15443.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15442
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15442/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15442/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15442/events
https://github.com/langchain-ai/langchain/issues/15442
2,063,178,107
I_kwDOIPDwls56-Zl7
15,442
milvus replica number factorization
{ "login": "rere950303", "id": 78265252, "node_id": "MDQ6VXNlcjc4MjY1MjUy", "avatar_url": "https://avatars.githubusercontent.com/u/78265252?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rere950303", "html_url": "https://github.com/rere950303", "followers_url": "https://api.github.com/users/rere950303/followers", "following_url": "https://api.github.com/users/rere950303/following{/other_user}", "gists_url": "https://api.github.com/users/rere950303/gists{/gist_id}", "starred_url": "https://api.github.com/users/rere950303/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rere950303/subscriptions", "organizations_url": "https://api.github.com/users/rere950303/orgs", "repos_url": "https://api.github.com/users/rere950303/repos", "events_url": "https://api.github.com/users/rere950303/events{/privacy}", "received_events_url": "https://api.github.com/users/rere950303/received_events", "type": "User", "site_admin": false }
[ { "id": 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
2024-01-03T02:58:01
2024-01-05T04:07:25
2024-01-05T04:07:25
CONTRIBUTOR
null
### Feature request If in-memory replica is increased in milvus, `replica_number` should be set when loading collection in langchain, but the default setting is 1 and cannot be changed. > pymilvus.exceptions.MilvusException: <MilvusException: (code=1100, message=failed to load collection: can't change the replica number for loaded collection: expected=3, actual=1: invalid parameter)> When creating the Milvus object, please change it so that `replica_number` can be passed over to the argument ### Motivation There is no way to change `replica_number` in langchain when in-memory replica is increased in milvus. ### Your contribution - `milvus.py` ```python3 def __init__( self, embedding_function: Embeddings, collection_name: str = "LangChainCollection", connection_args: Optional[dict[str, Any]] = None, consistency_level: str = "Session", index_params: Optional[dict] = None, search_params: Optional[dict] = None, drop_old: Optional[bool] = False, *, primary_field: str = "pk", text_field: str = "text", vector_field: str = "vector", replica_number : int = 1 // added factor ): """Initialize the Milvus vector store.""" try: from pymilvus import Collection, utility except ImportError: raise ValueError( "Could not import pymilvus python package. " "Please install it with `pip install pymilvus`." ) # Default search params when one is not provided. self.default_search_params = { "IVF_FLAT": {"metric_type": "L2", "params": {"nprobe": 10}}, "IVF_SQ8": {"metric_type": "L2", "params": {"nprobe": 10}}, "IVF_PQ": {"metric_type": "L2", "params": {"nprobe": 10}}, "HNSW": {"metric_type": "L2", "params": {"ef": 10}}, "RHNSW_FLAT": {"metric_type": "L2", "params": {"ef": 10}}, "RHNSW_SQ": {"metric_type": "L2", "params": {"ef": 10}}, "RHNSW_PQ": {"metric_type": "L2", "params": {"ef": 10}}, "IVF_HNSW": {"metric_type": "L2", "params": {"nprobe": 10, "ef": 10}}, "ANNOY": {"metric_type": "L2", "params": {"search_k": 10}}, "AUTOINDEX": {"metric_type": "L2", "params": {}}, } self.embedding_func = embedding_function self.collection_name = collection_name self.index_params = index_params self.search_params = search_params self.consistency_level = consistency_level # In order for a collection to be compatible, pk needs to be auto'id and int self._primary_field = primary_field # In order for compatibility, the text field will need to be called "text" self._text_field = text_field # In order for compatibility, the vector field needs to be called "vector" self._vector_field = vector_field self.fields: list[str] = [] # Create the connection to the server if connection_args is None: connection_args = DEFAULT_MILVUS_CONNECTION self.alias = self._create_connection_alias(connection_args) self.col: Optional[Collection] = None # Grab the existing collection if it exists if utility.has_collection(self.collection_name, using=self.alias): self.col = Collection( self.collection_name, using=self.alias, ) # If need to drop old, drop it if drop_old and isinstance(self.col, Collection): self.col.drop() self.col = None # Initialize the vector store self._init(replica_number=replica_number) ``` Please let me take the `replica_number` as an argument in the same way as above
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15442/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15442/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15441
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15441/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15441/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15441/events
https://github.com/langchain-ai/langchain/pull/15441
2,063,173,561
PR_kwDOIPDwls5jF4iM
15,441
community:To adapt more parameters related to MemorySearchPayload for the search method of ZepChatMessageHistory
{ "login": "ElliotChina", "id": 21995807, "node_id": "MDQ6VXNlcjIxOTk1ODA3", "avatar_url": "https://avatars.githubusercontent.com/u/21995807?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ElliotChina", "html_url": "https://github.com/ElliotChina", "followers_url": "https://api.github.com/users/ElliotChina/followers", "following_url": "https://api.github.com/users/ElliotChina/following{/other_user}", "gists_url": "https://api.github.com/users/ElliotChina/gists{/gist_id}", "starred_url": "https://api.github.com/users/ElliotChina/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ElliotChina/subscriptions", "organizations_url": "https://api.github.com/users/ElliotChina/orgs", "repos_url": "https://api.github.com/users/ElliotChina/repos", "events_url": "https://api.github.com/users/ElliotChina/events{/privacy}", "received_events_url": "https://api.github.com/users/ElliotChina/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
open
false
null
[]
null
2
2024-01-03T02:50:47
2024-01-15T23:46:40
null
NONE
null
- **Description:** To adapt more parameters related to MemorySearchPayload for the search method of ZepChatMessageHistory, - **Issue:** None, - **Dependencies:** None, - **Twitter handle:** None
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15441/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15441/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15441", "html_url": "https://github.com/langchain-ai/langchain/pull/15441", "diff_url": "https://github.com/langchain-ai/langchain/pull/15441.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15441.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15440
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15440/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15440/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15440/events
https://github.com/langchain-ai/langchain/pull/15440
2,063,167,123
PR_kwDOIPDwls5jF3O0
15,440
Fix `conn` field definition in SQLiteEntityStore
{ "login": "169", "id": 10000925, "node_id": "MDQ6VXNlcjEwMDAwOTI1", "avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4", "gravatar_id": "", "url": "https://api.github.com/users/169", "html_url": "https://github.com/169", "followers_url": "https://api.github.com/users/169/followers", "following_url": "https://api.github.com/users/169/following{/other_user}", "gists_url": "https://api.github.com/users/169/gists{/gist_id}", "starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/169/subscriptions", "organizations_url": "https://api.github.com/users/169/orgs", "repos_url": "https://api.github.com/users/169/repos", "events_url": "https://api.github.com/users/169/events{/privacy}", "received_events_url": "https://api.github.com/users/169/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
open
false
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false } ]
null
3
2024-01-03T02:38:13
2024-01-15T20:02:02
null
CONTRIBUTOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15440/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15440/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15440", "html_url": "https://github.com/langchain-ai/langchain/pull/15440", "diff_url": "https://github.com/langchain-ai/langchain/pull/15440.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15440.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15439
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15439/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15439/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15439/events
https://github.com/langchain-ai/langchain/pull/15439
2,063,123,188
PR_kwDOIPDwls5jFuRi
15,439
templates: fix deps
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
1
2024-01-03T01:10:36
2024-01-03T21:28:06
2024-01-03T21:28:05
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15439/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15439/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15439", "html_url": "https://github.com/langchain-ai/langchain/pull/15439", "diff_url": "https://github.com/langchain-ai/langchain/pull/15439.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15439.patch", "merged_at": "2024-01-03T21:28:05" }
https://api.github.com/repos/langchain-ai/langchain/issues/15438
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15438/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15438/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15438/events
https://github.com/langchain-ai/langchain/pull/15438
2,063,098,355
PR_kwDOIPDwls5jFpBu
15,438
langchain[patch], experimental[patch]: update utilities imports
{ "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": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
1
2024-01-03T00:24:04
2024-01-03T07:18:16
2024-01-03T07:18:15
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15438/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15438/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15438", "html_url": "https://github.com/langchain-ai/langchain/pull/15438", "diff_url": "https://github.com/langchain-ai/langchain/pull/15438.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15438.patch", "merged_at": "2024-01-03T07:18:15" }
https://api.github.com/repos/langchain-ai/langchain/issues/15437
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15437/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15437/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15437/events
https://github.com/langchain-ai/langchain/pull/15437
2,063,088,998
PR_kwDOIPDwls5jFnCk
15,437
refactored `memory`
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 6232714130, "node_id": "LA_kwDOIPDwls8AAAABc3-rkg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL", "name": "size:XL", "color": "D4C5F9", "default": false, "description": "This PR changes 500-999 lines, ignoring generated files." } ]
open
false
null
[]
null
2
2024-01-03T00:07:53
2024-01-17T19:01:05
null
COLLABORATOR
null
Created `langchain_community.memory`. Moved there two classes from `langchain.memory` This movement triggered another changes: 1. There is a lint rule that `langchain_community` code should not depend on `langchain`. Below, I show these dependencies: ``` `ZepMemory` --> langchain.memory.buffer.`ConversationBufferMemory` --> langchain.memory.chat_memory.`BaseChatMemory` --> langchain_community.chat_message_histories.in_memory.`ChatMessageHistory` --> langchain.memory.utils.`get_prompt_input_key` # the same as in MotorheadMemory `MotorheadMemory` --> langchain.memory.chat_memory.BaseChatMemory # then the same dependency as in ZepMemory --> langchain_community.chat_message_histories.in_memory.ChatMessageHistory --> langchain.memory.utils.get_prompt_input_key So, these classes and a function were moved into `core` because of the above dependencies: - `ConversationBufferMemory` - `BaseChatMemory` - `ChatMessageHistory` - `get_prompt_input_key` ``` 2. Then the next lint error forced a change in `experimental`: mkdir -p .mypy_cache; poetry run mypy langchain_experimental --cache-dir .mypy_cache langchain_experimental/autonomous_agents/autogpt/memory.py:3: error: Module "langchain.memory.chat_memory" has no attribute "get_prompt_input_key" [attr-defined] -- this was a bug in langchain_experimental/autonomous_agents/autogpt/memory.py:3 (wrong import)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15437/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15437/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15437", "html_url": "https://github.com/langchain-ai/langchain/pull/15437", "diff_url": "https://github.com/langchain-ai/langchain/pull/15437.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15437.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15436
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15436/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15436/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15436/events
https://github.com/langchain-ai/langchain/pull/15436
2,063,085,826
PR_kwDOIPDwls5jFmZH
15,436
docs: broken link in contributor docs
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-03T00:03:05
2024-01-03T21:45:35
2024-01-03T21:45:34
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15436/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15436/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15436", "html_url": "https://github.com/langchain-ai/langchain/pull/15436", "diff_url": "https://github.com/langchain-ai/langchain/pull/15436.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15436.patch", "merged_at": "2024-01-03T21:45:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/15435
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15435/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15435/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15435/events
https://github.com/langchain-ai/langchain/pull/15435
2,063,080,467
PR_kwDOIPDwls5jFlRi
15,435
docs: together ai updates
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T23:52:56
2024-01-03T00:05:54
2024-01-03T00:05:53
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15435/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15435/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15435", "html_url": "https://github.com/langchain-ai/langchain/pull/15435", "diff_url": "https://github.com/langchain-ai/langchain/pull/15435.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15435.patch", "merged_at": "2024-01-03T00:05:53" }
https://api.github.com/repos/langchain-ai/langchain/issues/15434
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15434/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15434/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15434/events
https://github.com/langchain-ai/langchain/pull/15434
2,063,070,410
PR_kwDOIPDwls5jFjFW
15,434
langchain[patch], docs: update agent toolkit imports
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T23:37:28
2024-01-02T23:58:51
2024-01-02T23:58:50
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15434/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15434/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15434", "html_url": "https://github.com/langchain-ai/langchain/pull/15434", "diff_url": "https://github.com/langchain-ai/langchain/pull/15434.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15434.patch", "merged_at": "2024-01-02T23:58:50" }
https://api.github.com/repos/langchain-ai/langchain/issues/15433
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15433/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15433/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15433/events
https://github.com/langchain-ai/langchain/pull/15433
2,063,051,592
PR_kwDOIPDwls5jFfLp
15,433
langchain[patch], experimental[patch], docs: update tools imports
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
1
2024-01-02T23:04:47
2024-01-02T23:23:35
2024-01-02T23:23:34
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15433/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15433/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15433", "html_url": "https://github.com/langchain-ai/langchain/pull/15433", "diff_url": "https://github.com/langchain-ai/langchain/pull/15433.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15433.patch", "merged_at": "2024-01-02T23:23:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/15432
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15432/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15432/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15432/events
https://github.com/langchain-ai/langchain/pull/15432
2,063,011,706
PR_kwDOIPDwls5jFW6a
15,432
refactor `utils`
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T22:08:31
2024-01-02T23:11:32
2024-01-02T22:56:39
COLLABORATOR
null
The `langchain` [still holds several artifacts](https://api.python.langchain.com/en/latest/langchain_api_reference.html#module-langchain.utils) that belongs to `community`. If they moved then `langchain.utils` namespace would be removed completely. - moved `ernie_functions` artifacts to `community`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15432/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15432/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15432", "html_url": "https://github.com/langchain-ai/langchain/pull/15432", "diff_url": "https://github.com/langchain-ai/langchain/pull/15432.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15432.patch", "merged_at": "2024-01-02T22:56:39" }
https://api.github.com/repos/langchain-ai/langchain/issues/15431
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15431/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15431/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15431/events
https://github.com/langchain-ai/langchain/issues/15431
2,062,998,345
I_kwDOIPDwls569ttJ
15,431
Accessing Gemini though Vertex AI SDK
{ "login": "jaymon0703", "id": 4340156, "node_id": "MDQ6VXNlcjQzNDAxNTY=", "avatar_url": "https://avatars.githubusercontent.com/u/4340156?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jaymon0703", "html_url": "https://github.com/jaymon0703", "followers_url": "https://api.github.com/users/jaymon0703/followers", "following_url": "https://api.github.com/users/jaymon0703/following{/other_user}", "gists_url": "https://api.github.com/users/jaymon0703/gists{/gist_id}", "starred_url": "https://api.github.com/users/jaymon0703/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jaymon0703/subscriptions", "organizations_url": "https://api.github.com/users/jaymon0703/orgs", "repos_url": "https://api.github.com/users/jaymon0703/repos", "events_url": "https://api.github.com/users/jaymon0703/events{/privacy}", "received_events_url": "https://api.github.com/users/jaymon0703/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
3
2024-01-02T21:52:47
2024-01-03T17:20:09
2024-01-03T17:20:09
NONE
null
### Feature request Gemini API is not available in Canada, but i believe it is available through `vertexai.preview.generative_models` in pre-GA mode. Would it be possible to add a feature using the Vertex AI SDK instead of Gemini API, which i assume is what it is using? ### Motivation Canada access to Gemini through Langchain ### Your contribution I could test?
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15431/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15431/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15430
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15430/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15430/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15430/events
https://github.com/langchain-ai/langchain/pull/15430
2,062,982,778
PR_kwDOIPDwls5jFQzT
15,430
add new chain howtos
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T21:35:12
2024-01-04T05:19:59
2024-01-04T05:19:58
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15430/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15430/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15430", "html_url": "https://github.com/langchain-ai/langchain/pull/15430", "diff_url": "https://github.com/langchain-ai/langchain/pull/15430.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15430.patch", "merged_at": "2024-01-04T05:19:58" }
https://api.github.com/repos/langchain-ai/langchain/issues/15429
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15429/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15429/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15429/events
https://github.com/langchain-ai/langchain/pull/15429
2,062,979,107
PR_kwDOIPDwls5jFQBc
15,429
docs, experimenta[patch], langchain[patch], community[patch]: update storage imports
{ "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": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
1
2024-01-02T21:31:11
2024-01-02T21:47:12
2024-01-02T21:47:11
COLLABORATOR
null
ran ```bash g grep -l "langchain.vectorstores" | xargs -L 1 sed -i '' "s/langchain\.vectorstores/langchain_community.vectorstores/g" g grep -l "langchain.document_loaders" | xargs -L 1 sed -i '' "s/langchain\.document_loaders/langchain_community.document_loaders/g" g grep -l "langchain.chat_loaders" | xargs -L 1 sed -i '' "s/langchain\.chat_loaders/langchain_community.chat_loaders/g" g grep -l "langchain.document_transformers" | xargs -L 1 sed -i '' "s/langchain\.document_transformers/langchain_community.document_transformers/g" g grep -l "langchain\.graphs" | xargs -L 1 sed -i '' "s/langchain\.graphs/langchain_community.graphs/g" g grep -l "langchain\.memory\.chat_message_histories" | xargs -L 1 sed -i '' "s/langchain\.memory\.chat_message_histories/langchain_community.chat_message_histories/g" gco master libs/langchain/tests/unit_tests/*/test_imports.py gco master libs/langchain/tests/unit_tests/**/test_public_api.py ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15429/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15429/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15429", "html_url": "https://github.com/langchain-ai/langchain/pull/15429", "diff_url": "https://github.com/langchain-ai/langchain/pull/15429.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15429.patch", "merged_at": "2024-01-02T21:47:11" }
https://api.github.com/repos/langchain-ai/langchain/issues/15428
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15428/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15428/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15428/events
https://github.com/langchain-ai/langchain/pull/15428
2,062,970,911
PR_kwDOIPDwls5jFORS
15,428
added fix for key error: doc_id
{ "login": "suhas-kotaki", "id": 136513875, "node_id": "U_kgDOCCMJUw", "avatar_url": "https://avatars.githubusercontent.com/u/136513875?v=4", "gravatar_id": "", "url": "https://api.github.com/users/suhas-kotaki", "html_url": "https://github.com/suhas-kotaki", "followers_url": "https://api.github.com/users/suhas-kotaki/followers", "following_url": "https://api.github.com/users/suhas-kotaki/following{/other_user}", "gists_url": "https://api.github.com/users/suhas-kotaki/gists{/gist_id}", "starred_url": "https://api.github.com/users/suhas-kotaki/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/suhas-kotaki/subscriptions", "organizations_url": "https://api.github.com/users/suhas-kotaki/orgs", "repos_url": "https://api.github.com/users/suhas-kotaki/repos", "events_url": "https://api.github.com/users/suhas-kotaki/events{/privacy}", "received_events_url": "https://api.github.com/users/suhas-kotaki/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T21:22:35
2024-01-02T22:59:54
2024-01-02T22:59:54
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15428/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15428/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15428", "html_url": "https://github.com/langchain-ai/langchain/pull/15428", "diff_url": "https://github.com/langchain-ai/langchain/pull/15428.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15428.patch", "merged_at": "2024-01-02T22:59:54" }
https://api.github.com/repos/langchain-ai/langchain/issues/15427
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15427/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15427/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15427/events
https://github.com/langchain-ai/langchain/pull/15427
2,062,921,492
PR_kwDOIPDwls5jFDUs
15,427
core:adds tests for partial_variables
{ "login": "dkajtoch", "id": 32985207, "node_id": "MDQ6VXNlcjMyOTg1MjA3", "avatar_url": "https://avatars.githubusercontent.com/u/32985207?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dkajtoch", "html_url": "https://github.com/dkajtoch", "followers_url": "https://api.github.com/users/dkajtoch/followers", "following_url": "https://api.github.com/users/dkajtoch/following{/other_user}", "gists_url": "https://api.github.com/users/dkajtoch/gists{/gist_id}", "starred_url": "https://api.github.com/users/dkajtoch/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dkajtoch/subscriptions", "organizations_url": "https://api.github.com/users/dkajtoch/orgs", "repos_url": "https://api.github.com/users/dkajtoch/repos", "events_url": "https://api.github.com/users/dkajtoch/events{/privacy}", "received_events_url": "https://api.github.com/users/dkajtoch/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T20:44:16
2024-01-02T23:00:07
2024-01-02T23:00:07
CONTRIBUTOR
null
**Description:** Added small tests to test partial_variables in PromptTemplate. It was missing.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15427/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15427/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15427", "html_url": "https://github.com/langchain-ai/langchain/pull/15427", "diff_url": "https://github.com/langchain-ai/langchain/pull/15427.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15427.patch", "merged_at": "2024-01-02T23:00:07" }
https://api.github.com/repos/langchain-ai/langchain/issues/15426
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15426/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15426/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15426/events
https://github.com/langchain-ai/langchain/issues/15426
2,062,806,705
I_kwDOIPDwls568-6x
15,426
FakeStreamingListLLM.astream() yields strings while ChatOpenAI yields AIMessageChunk
{ "login": "manuelmorales", "id": 116038, "node_id": "MDQ6VXNlcjExNjAzOA==", "avatar_url": "https://avatars.githubusercontent.com/u/116038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/manuelmorales", "html_url": "https://github.com/manuelmorales", "followers_url": "https://api.github.com/users/manuelmorales/followers", "following_url": "https://api.github.com/users/manuelmorales/following{/other_user}", "gists_url": "https://api.github.com/users/manuelmorales/gists{/gist_id}", "starred_url": "https://api.github.com/users/manuelmorales/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/manuelmorales/subscriptions", "organizations_url": "https://api.github.com/users/manuelmorales/orgs", "repos_url": "https://api.github.com/users/manuelmorales/repos", "events_url": "https://api.github.com/users/manuelmorales/events{/privacy}", "received_events_url": "https://api.github.com/users/manuelmorales/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
3
2024-01-02T18:44:18
2024-01-03T08:54:07
null
NONE
null
### System Info ``` langchain==0.0.352 langchain-community==0.0.6 langchain-core==0.1.3 ``` Python `3.12.1` running inside Docker from `python:3.12-bookworm` on Linux. ### Who can help? I have a FastAPI app that streams the output of an LLM. The app uses `langchain.chat_models.ChatOpenAI` at runtime, but during test I mock the LLM with `langchain.llms.fake.FakeStreamingListLLM`. However, when my app calls `.astream()` on each of them I'm getting different results: - While `ChatOpenAI` yields instances of `AIMessageChunk`... - `FakeStreamingListLLM` yields instances of strings. This mismatch between the fake and the real class makes the fake unsuitable for some mocking purposes as the interface of `AIMessageChunk` is different from a `str`. @baskaryan @agola11 ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [X] Async ### Reproduction See an snippet below on how to reproduce the output of strings within `ipython`: ```python from langchain.llms.fake import FakeStreamingListLLM import asyncio async def pp(llm): async for chunk in llm.astream('some input'): yield(f"{type(chunk)}: {chunk}") async def consume(): results = [] async for item in pp(FakeStreamingListLLM(responses=['a'])): results.append(item) return results asyncio.run(consume()) # OUTPUT: ["<class 'str'>: a"] ``` ### Expected behavior I'd expect `FakeStreamingListLLM` to return instances of `AIMessageChunk` as the real chat model.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15426/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15426/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15425
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15425/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15425/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15425/events
https://github.com/langchain-ai/langchain/pull/15425
2,062,806,182
PR_kwDOIPDwls5jEq4T
15,425
add get prompts method
{ "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": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T18:43:46
2024-01-02T20:44:16
2024-01-02T20:44:15
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15425/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15425/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15425", "html_url": "https://github.com/langchain-ai/langchain/pull/15425", "diff_url": "https://github.com/langchain-ai/langchain/pull/15425.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15425.patch", "merged_at": "2024-01-02T20:44:15" }
https://api.github.com/repos/langchain-ai/langchain/issues/15424
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15424/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15424/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15424/events
https://github.com/langchain-ai/langchain/pull/15424
2,062,804,495
PR_kwDOIPDwls5jEqhI
15,424
ci test - do not merge
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
1
2024-01-02T18:41:59
2024-01-02T19:03:59
2024-01-02T18:52:21
COLLABORATOR
null
- docs, community[patch], experimental[patch], langchain[patch], cli[patch]: import models from community - infra: fail check_diffs if too many files changed
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15424/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15424/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15424", "html_url": "https://github.com/langchain-ai/langchain/pull/15424", "diff_url": "https://github.com/langchain-ai/langchain/pull/15424.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15424.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15423
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15423/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15423/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15423/events
https://github.com/langchain-ai/langchain/pull/15423
2,062,800,691
PR_kwDOIPDwls5jEpsL
15,423
infra: fail check_diffs if too many files changed
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
2024-01-02T18:38:42
2024-01-03T21:30:17
2024-01-03T21:30:16
COLLABORATOR
null
Jobs like https://github.com/langchain-ai/langchain/actions/runs/7389187843/job/20101494206 only receive the first 300 changed files. Because of the opportunity to miss packages, better to auto-fail and manually run. Checking that it does what I expect in #15424
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15423/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15423/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15423", "html_url": "https://github.com/langchain-ai/langchain/pull/15423", "diff_url": "https://github.com/langchain-ai/langchain/pull/15423.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15423.patch", "merged_at": "2024-01-03T21:30:16" }
https://api.github.com/repos/langchain-ai/langchain/issues/15422
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15422/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15422/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15422/events
https://github.com/langchain-ai/langchain/pull/15422
2,062,794,052
PR_kwDOIPDwls5jEoSF
15,422
langchain: Fix for issue #14663
{ "login": "gitchrisqueen", "id": 10469301, "node_id": "MDQ6VXNlcjEwNDY5MzAx", "avatar_url": "https://avatars.githubusercontent.com/u/10469301?v=4", "gravatar_id": "", "url": "https://api.github.com/users/gitchrisqueen", "html_url": "https://github.com/gitchrisqueen", "followers_url": "https://api.github.com/users/gitchrisqueen/followers", "following_url": "https://api.github.com/users/gitchrisqueen/following{/other_user}", "gists_url": "https://api.github.com/users/gitchrisqueen/gists{/gist_id}", "starred_url": "https://api.github.com/users/gitchrisqueen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gitchrisqueen/subscriptions", "organizations_url": "https://api.github.com/users/gitchrisqueen/orgs", "repos_url": "https://api.github.com/users/gitchrisqueen/repos", "events_url": "https://api.github.com/users/gitchrisqueen/events{/privacy}", "received_events_url": "https://api.github.com/users/gitchrisqueen/received_events", "type": "User", "site_admin": false }
[ { "id": 5463330795, "node_id": "LA_kwDOIPDwls8AAAABRaPP6w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20test", "name": "needs test", "color": "E99695", "default": false, "description": "PR needs to be updated with tests" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
open
false
null
[]
null
1
2024-01-02T18:31:40
2024-01-15T20:02:08
null
CONTRIBUTOR
null
- **Description:** Update to tools.py to allow aliased tool inputs to be included in the _parse_input function output - **Issue:** This fixes [Issue #14663](https://github.com/langchain-ai/langchain/issues/14663) - **Twitter handle:** [@consultchrisq ](https://twitter.com/consultchrisq?lang=en)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15422/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15422/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15422", "html_url": "https://github.com/langchain-ai/langchain/pull/15422", "diff_url": "https://github.com/langchain-ai/langchain/pull/15422.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15422.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15421
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15421/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15421/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15421/events
https://github.com/langchain-ai/langchain/pull/15421
2,062,784,275
PR_kwDOIPDwls5jEmMU
15,421
docs: fix modelio index 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" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T18:21:45
2024-01-02T18:38:06
2024-01-02T18:38:05
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15421/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15421/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15421", "html_url": "https://github.com/langchain-ai/langchain/pull/15421", "diff_url": "https://github.com/langchain-ai/langchain/pull/15421.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15421.patch", "merged_at": "2024-01-02T18:38:05" }
https://api.github.com/repos/langchain-ai/langchain/issues/15420
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15420/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15420/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15420/events
https://github.com/langchain-ai/langchain/pull/15420
2,062,775,725
PR_kwDOIPDwls5jEkZS
15,420
docs `Microsoft` platform page update
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T18:13:26
2024-01-02T23:11:46
2024-01-02T22:59:41
COLLABORATOR
null
Added two new document_loader references. Improved the format consistency of the example pages
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15420/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15420/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15420", "html_url": "https://github.com/langchain-ai/langchain/pull/15420", "diff_url": "https://github.com/langchain-ai/langchain/pull/15420.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15420.patch", "merged_at": "2024-01-02T22:59:41" }
https://api.github.com/repos/langchain-ai/langchain/issues/15419
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15419/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15419/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15419/events
https://github.com/langchain-ai/langchain/pull/15419
2,062,771,070
PR_kwDOIPDwls5jEjaK
15,419
docs: fix agents index 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": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T18:08:28
2024-01-02T18:15:02
2024-01-02T18:15:01
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15419/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15419/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15419", "html_url": "https://github.com/langchain-ai/langchain/pull/15419", "diff_url": "https://github.com/langchain-ai/langchain/pull/15419.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15419.patch", "merged_at": "2024-01-02T18:15:01" }
https://api.github.com/repos/langchain-ai/langchain/issues/15418
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15418/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15418/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15418/events
https://github.com/langchain-ai/langchain/pull/15418
2,062,755,818
PR_kwDOIPDwls5jEgLO
15,418
infra: remove path filter on check_diffs
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T17:54:18
2024-01-02T19:40:18
2024-01-02T18:10:48
COLLABORATOR
null
CI should run on https://github.com/langchain-ai/langchain/pull/15412 But github only checks first 300 files: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#git-diff-comparisons > Diffs are limited to 300 files. If there are files changed that aren't matched in the first 300 files returned by the filter, the workflow will not run. You may need to create more specific filters so that the workflow will run automatically.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15418/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15418/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15418", "html_url": "https://github.com/langchain-ai/langchain/pull/15418", "diff_url": "https://github.com/langchain-ai/langchain/pull/15418.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15418.patch", "merged_at": "2024-01-02T18:10:48" }
https://api.github.com/repos/langchain-ai/langchain/issues/15417
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15417/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15417/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15417/events
https://github.com/langchain-ai/langchain/issues/15417
2,062,736,735
I_kwDOIPDwls568t1f
15,417
Filter conditions are discarded when using multiple filter conditions in similarity_search_with_relevance_scores
{ "login": "Lue-C", "id": 91912071, "node_id": "U_kgDOBXp3hw", "avatar_url": "https://avatars.githubusercontent.com/u/91912071?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Lue-C", "html_url": "https://github.com/Lue-C", "followers_url": "https://api.github.com/users/Lue-C/followers", "following_url": "https://api.github.com/users/Lue-C/following{/other_user}", "gists_url": "https://api.github.com/users/Lue-C/gists{/gist_id}", "starred_url": "https://api.github.com/users/Lue-C/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lue-C/subscriptions", "organizations_url": "https://api.github.com/users/Lue-C/orgs", "repos_url": "https://api.github.com/users/Lue-C/repos", "events_url": "https://api.github.com/users/Lue-C/events{/privacy}", "received_events_url": "https://api.github.com/users/Lue-C/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5924999838, "node_id": "LA_kwDOIPDwls8AAAABYShSng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma", "name": "integration: chroma", "color": "B78AF8", "default": false, "description": "Related to ChromaDB" } ]
closed
false
null
[]
null
1
2024-01-02T17:35:24
2024-01-04T15:22:37
2024-01-04T15:22:37
NONE
null
### System Info Windows 10 Python 3.11.5 langchain==0.0.331 ### 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 I want to do a similarity search on a vectorstore created beforehand and use multiple filtering conditions. The relevant part of the code is as follows: ``` from langchain.vectorstores import Chroma from langchain.embeddings import SentenceTransformerEmbeddings import chromadb db_path = "my_db" embeddings = SentenceTransformerEmbeddings(cache_folder='intfloat/multilingual-e5-large') chroma_client = chromadb.PersistentClient(path=db_path) db= Chroma(persist_directory=db_path, embedding_function=embeddings, client=chroma_client) query = "My query" filtered = db.similarity_search_with_relevance_scores(k=5, query=query, filter={"key1":value1, "key2":value2}) ``` When using one filtering condition like ``` filtered = db.similarity_search_with_relevance_scores(k=5, query=query, filter={"key1":value1}) ``` the filtering condtion is applied and it works fine. But when using multiple conditions, neither of the conditions is applied. How can I use multiple filtering conditions? ### Expected behavior I would expect, that both conditions are applied either connected by an "and" or an "or".
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15417/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15417/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15416
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15416/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15416/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15416/events
https://github.com/langchain-ai/langchain/pull/15416
2,062,736,395
PR_kwDOIPDwls5jEcEQ
15,416
infra: add manual dispatch check_diffs
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T17:35:02
2024-01-02T18:03:40
2024-01-02T18:03:40
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15416/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15416/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15416", "html_url": "https://github.com/langchain-ai/langchain/pull/15416", "diff_url": "https://github.com/langchain-ai/langchain/pull/15416.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15416.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15412
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15412/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15412/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15412/events
https://github.com/langchain-ai/langchain/pull/15412
2,062,655,902
PR_kwDOIPDwls5jEKpO
15,412
docs, community[patch], experimental[patch], langchain[patch], cli[pa…
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
1
2024-01-02T16:29:11
2024-01-02T20:32:18
2024-01-02T20:32:17
COLLABORATOR
null
…tch]: import models from community ran ```bash git grep -l 'from langchain\.chat_models' | xargs -L 1 sed -i '' "s/from\ langchain\.chat_models/from\ langchain_community.chat_models/g" git grep -l 'from langchain\.llms' | xargs -L 1 sed -i '' "s/from\ langchain\.llms/from\ langchain_community.llms/g" git grep -l 'from langchain\.embeddings' | xargs -L 1 sed -i '' "s/from\ langchain\.embeddings/from\ langchain_community.embeddings/g" git checkout master libs/langchain/tests/unit_tests/llms git checkout master libs/langchain/tests/unit_tests/chat_models git checkout master libs/langchain/tests/unit_tests/embeddings/test_imports.py make format cd libs/langchain; make format cd ../experimental; make format cd ../core; make format ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15412/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15412/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15412", "html_url": "https://github.com/langchain-ai/langchain/pull/15412", "diff_url": "https://github.com/langchain-ai/langchain/pull/15412.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15412.patch", "merged_at": "2024-01-02T20:32:17" }
https://api.github.com/repos/langchain-ai/langchain/issues/15411
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15411/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15411/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15411/events
https://github.com/langchain-ai/langchain/pull/15411
2,062,655,660
PR_kwDOIPDwls5jEKl-
15,411
community: integrate with model Yuan2.0
{ "login": "cauwulixuan", "id": 26039352, "node_id": "MDQ6VXNlcjI2MDM5MzUy", "avatar_url": "https://avatars.githubusercontent.com/u/26039352?v=4", "gravatar_id": "", "url": "https://api.github.com/users/cauwulixuan", "html_url": "https://github.com/cauwulixuan", "followers_url": "https://api.github.com/users/cauwulixuan/followers", "following_url": "https://api.github.com/users/cauwulixuan/following{/other_user}", "gists_url": "https://api.github.com/users/cauwulixuan/gists{/gist_id}", "starred_url": "https://api.github.com/users/cauwulixuan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cauwulixuan/subscriptions", "organizations_url": "https://api.github.com/users/cauwulixuan/orgs", "repos_url": "https://api.github.com/users/cauwulixuan/repos", "events_url": "https://api.github.com/users/cauwulixuan/events{/privacy}", "received_events_url": "https://api.github.com/users/cauwulixuan/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
6
2024-01-02T16:28:57
2024-01-16T06:37:26
null
NONE
null
1. integrate with [`Yuan2.0`](https://github.com/IEIT-Yuan/Yuan-2.0/blob/main/README-EN.md) 2. update `langchain.llms` 3. add a new doc for [Yuan2.0 integration](docs/docs/integrations/llms/yuan2.ipynb)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15411/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15411/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15411", "html_url": "https://github.com/langchain-ai/langchain/pull/15411", "diff_url": "https://github.com/langchain-ai/langchain/pull/15411.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15411.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15410
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15410/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15410/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15410/events
https://github.com/langchain-ai/langchain/pull/15410
2,062,621,162
PR_kwDOIPDwls5jEDIk
15,410
langchain[patch], experimental[patch]: replace langchain.schema imports
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T16:02:54
2024-01-02T20:09:46
2024-01-02T20:09:46
COLLABORATOR
null
Import from core instead. Ran: ```bash git grep -l 'from langchain.schema\.output_parser' | xargs -L 1 sed -i '' "s/from\ langchain\.schema\.output_parser/from\ langchain_core.output_parsers/g" git grep -l 'from langchain.schema\.messages' | xargs -L 1 sed -i '' "s/from\ langchain\.schema\.messages/from\ langchain_core.messages/g" git grep -l 'from langchain.schema\.document' | xargs -L 1 sed -i '' "s/from\ langchain\.schema\.document/from\ langchain_core.documents/g" git grep -l 'from langchain.schema\.runnable' | xargs -L 1 sed -i '' "s/from\ langchain\.schema\.runnable/from\ langchain_core.runnables/g" git grep -l 'from langchain.schema\.vectorstore' | xargs -L 1 sed -i '' "s/from\ langchain\.schema\.vectorstore/from\ langchain_core.vectorstores/g" git grep -l 'from langchain.schema\.language_model' | xargs -L 1 sed -i '' "s/from\ langchain\.schema\.language_model/from\ langchain_core.language_models/g" git grep -l 'from langchain.schema\.embeddings' | xargs -L 1 sed -i '' "s/from\ langchain\.schema\.embeddings/from\ langchain_core.embeddings/g" git grep -l 'from langchain.schema\.storage' | xargs -L 1 sed -i '' "s/from\ langchain\.schema\.storage/from\ langchain_core.stores/g" git checkout master libs/langchain/tests/unit_tests/schema/ make format cd libs/experimental make format cd ../langchain make format ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15410/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15410/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15410", "html_url": "https://github.com/langchain-ai/langchain/pull/15410", "diff_url": "https://github.com/langchain-ai/langchain/pull/15410.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15410.patch", "merged_at": "2024-01-02T20:09:45" }
https://api.github.com/repos/langchain-ai/langchain/issues/15408
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15408/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15408/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15408/events
https://github.com/langchain-ai/langchain/pull/15408
2,062,597,518
PR_kwDOIPDwls5jD-D_
15,408
Community: BedrockChat -> Support Titan express as chat model
{ "login": "Guillem96", "id": 21279306, "node_id": "MDQ6VXNlcjIxMjc5MzA2", "avatar_url": "https://avatars.githubusercontent.com/u/21279306?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Guillem96", "html_url": "https://github.com/Guillem96", "followers_url": "https://api.github.com/users/Guillem96/followers", "following_url": "https://api.github.com/users/Guillem96/following{/other_user}", "gists_url": "https://api.github.com/users/Guillem96/gists{/gist_id}", "starred_url": "https://api.github.com/users/Guillem96/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Guillem96/subscriptions", "organizations_url": "https://api.github.com/users/Guillem96/orgs", "repos_url": "https://api.github.com/users/Guillem96/repos", "events_url": "https://api.github.com/users/Guillem96/events{/privacy}", "received_events_url": "https://api.github.com/users/Guillem96/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
open
false
null
[]
null
2
2024-01-02T15:43:33
2024-01-15T20:03:15
null
CONTRIBUTOR
null
Titan Express model was not supported as a chat model because LangChain messages were not "translated" to a text prompt.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15408/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15408/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15408", "html_url": "https://github.com/langchain-ai/langchain/pull/15408", "diff_url": "https://github.com/langchain-ai/langchain/pull/15408.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15408.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15407
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15407/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15407/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15407/events
https://github.com/langchain-ai/langchain/issues/15407
2,062,584,661
I_kwDOIPDwls568ItV
15,407
Issue: Pinecone Embeddings - Error
{ "login": "ZinanYang1995", "id": 149815088, "node_id": "U_kgDOCO3_MA", "avatar_url": "https://avatars.githubusercontent.com/u/149815088?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ZinanYang1995", "html_url": "https://github.com/ZinanYang1995", "followers_url": "https://api.github.com/users/ZinanYang1995/followers", "following_url": "https://api.github.com/users/ZinanYang1995/following{/other_user}", "gists_url": "https://api.github.com/users/ZinanYang1995/gists{/gist_id}", "starred_url": "https://api.github.com/users/ZinanYang1995/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ZinanYang1995/subscriptions", "organizations_url": "https://api.github.com/users/ZinanYang1995/orgs", "repos_url": "https://api.github.com/users/ZinanYang1995/repos", "events_url": "https://api.github.com/users/ZinanYang1995/events{/privacy}", "received_events_url": "https://api.github.com/users/ZinanYang1995/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5932474361, "node_id": "LA_kwDOIPDwls8AAAABYZpf-Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone", "name": "integration: pinecone", "color": "BC53BE", "default": false, "description": "Related to Pinecone vector store integration" } ]
closed
false
null
[]
null
7
2024-01-02T15:33:53
2024-01-03T19:31:42
2024-01-03T19:31:42
NONE
null
### Issue you'd like to raise. Hi there, I am creating a simple PDF reading application where I want to push my embeddings into Pinecone. Here is my code: ## Imports import streamlit as st import os from apikey import apikey import pickle from PyPDF2 import PdfReader # Streamlit - user interface from streamlit_extras.add_vertical_space import add_vertical_space # Langchain from langchain.text_splitter import RecursiveCharacterTextSplitter from langchain.embeddings.openai import OpenAIEmbeddings from langchain.vectorstores import FAISS from langchain.llms import OpenAI from langchain.chains.question_answering import load_qa_chain from langchain.callbacks import get_openai_callback from langchain.chat_models.openai import ChatOpenAI from langchain.schema import (SystemMessage, HumanMessage, AIMessage) from langchain.document_loaders import UnstructuredPDFLoader # Pinecone from langchain.vectorstores import Pinecone import pinecone from apikey import pinecone_api_key import uuid os.environ['OPENAI_API_KEY'] = apikey ## User Interface # Side Bar with st.sidebar: st.title('🚀 Zi-GPT Version 2.0') st.markdown(''' ## About This app is an LLM-powered chatbot built using: - [Streamlit](https://streamlit.io/) - [LangChain](https://python.langchain.com/) - [OpenAI](https://platform.openai.com/docs/models) LLM model ''') add_vertical_space(5) st.write('Made with ❤️ by Zi') # Main Page def main(): st.header("Zi's PDF Helper: Chat with PDF") # upload a PDF file pdf = st.file_uploader("Please upload your PDF here", type='pdf') # st.write(pdf) # read PDF if pdf is not None: pdf_reader = PdfReader(pdf) # data = pdf_reader.load() # split document into chunks # also can use text split: good for PDFs that do not contains charts and visuals sections = [] for page in pdf_reader.pages: # Split the page text by paragraphs (assuming two newlines indicate a new paragraph) page_sections = page.extract_text().split('\n\n') sections.extend(page_sections) chunks = sections # st.write(chunks) # text_splitter = RecursiveCharacterTextSplitter( # chunk_size = 500, # chunk_overlap = 20 # ) # chunks = text_splitter.split_documents(data) ## embeddings # Set up embeddings embeddings = OpenAIEmbeddings( model="text-embedding-ada-002") # Set up Pinecone pinecone.init(api_key=pinecone_api_key, environment='gcp-starter') index_name = 'langchainresearch' if index_name not in pinecone.list_indexes(): pinecone.create_index(index_name, dimension=1536, metric="cosine") # Adjust the dimension as per your embeddings index = pinecone.Index(index_name) docsearch = Pinecone.from_documents(chunks, embeddings, index_name = index_name) # Create or Load Chat History if pdf: # generate chat history chat_history_file = f"{pdf.name}_chat_history.pkl" # load history if exist if os.path.exists(chat_history_file): with open(chat_history_file, "rb") as f: chat_history = pickle.load(f) else: chat_history = [] # Initialize chat_history in session_state if not present if 'chat_history' not in st.session_state: st.session_state.chat_history = [] # Check if 'prompt' is in session state if 'last_input' not in st.session_state: st.session_state.last_input = '' # User Input current_prompt = st.session_state.get('user_input', '') prompt_placeholder = st.empty() prompt = prompt_placeholder.text_area("Ask questions about your PDF:", value=current_prompt, placeholder="Send a message", key="user_input") submit_button = st.button("Submit") if submit_button and prompt: # Update the last input in session state st.session_state.last_input = prompt docs = docsearch.similarity_search(query=prompt, k=3) #llm = OpenAI(temperature=0.9, model_name='gpt-3.5-turbo') chat = ChatOpenAI(model='gpt-4', temperature=0.7, max_tokens=3000) message = [ SystemMessage(content="You are a helpful assistant"), HumanMessage(content=prompt) ] chain = load_qa_chain(llm=chat, chain_type="stuff") with get_openai_callback() as cb: response = chain.run(input_documents=docs, question=message) print(cb) # st.write(response) # st.write(docs) # Process the response using AIMessage schema # ai_message = AIMessage(content="AI message content") # ai_message.content = response.generations[0].message.content # Add to chat history st.session_state.chat_history.append((prompt, response)) # Save chat history with open(chat_history_file, "wb") as f: pickle.dump(st.session_state.chat_history, f) # Clear the input after processing prompt_placeholder.text_area("Ask questions about your PDF:", value='', placeholder="Send a message", key="pdf_prompt") # Display the entire chat chat_content = "" for user_msg, bot_resp in st.session_state.chat_history: chat_content += f"<div style='background-color: #222222; color: white; padding: 10px;'>**You:** {user_msg}</div>" chat_content += f"<div style='background-color: #333333; color: white; padding: 10px;'>**Zi GPT:** {bot_resp}</div>" st.markdown(chat_content, unsafe_allow_html=True) if __name__ == '__main__': main() After running the code I got this error message that I cannot find a solution. AttributeError: 'str' object has no attribute 'page_content' Traceback: File "C:\Users\zy73\AppData\Roaming\Python\Python311\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script exec(code, module.__dict__) File "C:\Users\zy73\OneDrive\Desktop\AI Research\langchain\pdf.py", line 159, in <module> main() File "C:\Users\zy73\OneDrive\Desktop\AI Research\langchain\pdf.py", line 88, in main docsearch = Pinecone.from_documents(chunks, embeddings, index_name = index_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\zy73\AppData\Roaming\Python\Python311\site-packages\langchain\schema\vectorstore.py", line 508, in from_documents texts = [d.page_content for d in documents] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\zy73\AppData\Roaming\Python\Python311\site-packages\langchain\schema\vectorstore.py", line 508, in <listcomp> texts = [d.page_content for d in documents] Please help me debug this. Thank you ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15407/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15407/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15406
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15406/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15406/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15406/events
https://github.com/langchain-ai/langchain/pull/15406
2,062,545,582
PR_kwDOIPDwls5jDy4J
15,406
Feature request: Provide exception objects in fallback
{ "login": "joliss", "id": 524783, "node_id": "MDQ6VXNlcjUyNDc4Mw==", "avatar_url": "https://avatars.githubusercontent.com/u/524783?v=4", "gravatar_id": "", "url": "https://api.github.com/users/joliss", "html_url": "https://github.com/joliss", "followers_url": "https://api.github.com/users/joliss/followers", "following_url": "https://api.github.com/users/joliss/following{/other_user}", "gists_url": "https://api.github.com/users/joliss/gists{/gist_id}", "starred_url": "https://api.github.com/users/joliss/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/joliss/subscriptions", "organizations_url": "https://api.github.com/users/joliss/orgs", "repos_url": "https://api.github.com/users/joliss/repos", "events_url": "https://api.github.com/users/joliss/events{/privacy}", "received_events_url": "https://api.github.com/users/joliss/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
3
2024-01-02T15:03:32
2024-01-17T14:43:43
2024-01-17T14:43:43
NONE
null
## Motivation I have an increasingly complex chain of LLM calls, and I would like to be able to continue it even if some intermediate requests fail. For example, if a prompt requires 10 requests as input and 1 of them fails, I might just use an empty string for it and continue with the remaining 9 as input. The [fallbacks](https://python.langchain.com/docs/guides/fallbacks) mechanism seems to work well for this: ```python chain.with_fallbacks([RunnableLambda(lambda input: "")]) ``` However, currently the exception objects are not exposed to the fallback runnable. You can only specify the exception *types* to catch by using the `exceptions_to_handle=` option. For example, say one of the requests produces the following error: ```python BadRequestError('Error code: 400 - {\'error\': {\'message\': "This model\'s maximum context length is 16385 tokens. However, your messages resulted in 17351 tokens. Please reduce the length of the messages.", \'type\': \'invalid_request_error\', \'param\': \'messages\', \'code\': \'context_length_exceeded\'}}') ``` I'd like to be able to surface this in the UI, so that I know *why* the request is failing, and that it's not just a transient server error – even though I want the chain to continue executing with missing data. ## Suggested implementation One solution I can see is changing `RunnableWithFallbacks` so that it passes the exception object into the `configurable` dictionary in the [config](https://python.langchain.com/docs/expression_language/how_to/configure) of the fallback runnables. This way you can obtain the exception like this: ```python from langchain_core.runnables import RunnableLambda, RunnableConfig def handle_error(input, config: RunnableConfig): exception = config['configurable']['exception'] # Store the `exception` object somewhere so it can be surfaced to the user return '' chain = chain.with_fallbacks([RunnableLambda(handle_error)]) ``` I'm attaching a patch that implements this in the Python library. I've only tested the `ainvoke` change in my code. In particular, I don't know if code for the `batch`/`abatch` case is correct.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15406/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15406/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15406", "html_url": "https://github.com/langchain-ai/langchain/pull/15406", "diff_url": "https://github.com/langchain-ai/langchain/pull/15406.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15406.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15404
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15404/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15404/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15404/events
https://github.com/langchain-ai/langchain/issues/15404
2,062,463,881
I_kwDOIPDwls567rOJ
15,404
How to get the complete output as answer
{ "login": "jyoti194", "id": 109470153, "node_id": "U_kgDOBoZhyQ", "avatar_url": "https://avatars.githubusercontent.com/u/109470153?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jyoti194", "html_url": "https://github.com/jyoti194", "followers_url": "https://api.github.com/users/jyoti194/followers", "following_url": "https://api.github.com/users/jyoti194/following{/other_user}", "gists_url": "https://api.github.com/users/jyoti194/gists{/gist_id}", "starred_url": "https://api.github.com/users/jyoti194/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jyoti194/subscriptions", "organizations_url": "https://api.github.com/users/jyoti194/orgs", "repos_url": "https://api.github.com/users/jyoti194/repos", "events_url": "https://api.github.com/users/jyoti194/events{/privacy}", "received_events_url": "https://api.github.com/users/jyoti194/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
3
2024-01-02T14:01:51
2024-01-03T10:21:19
null
NONE
null
### System Info python: 3.11 langchain:latest ### Who can help? in an chatbot after running a query it will return the SQLResult, but while giving an output answer complete result is not displayed code: import pandas as pd import sqlalchemy as sal import os, sys, openai import constants from langchain.sql_database import SQLDatabase from langchain.llms.openai import OpenAI from langchain_experimental.sql import SQLDatabaseChain from sqlalchemy import create_engine # import ChatOpenAI from langchain.chat_models import ChatOpenAI from typing import List, Optional from langchain.agents.agent_toolkits import SQLDatabaseToolkit from langchain.callbacks.manager import CallbackManagerForToolRun from langchain.chat_models import ChatOpenAI from langchain_experimental.plan_and_execute import ( PlanAndExecute, load_agent_executor, load_chat_planner, ) from langchain.sql_database import SQLDatabase from langchain.text_splitter import TokenTextSplitter from langchain.tools import BaseTool from langchain.tools.sql_database.tool import QuerySQLDataBaseTool from secret_key import openapi_key from langchain import PromptTemplate # from langchain.prompts.PromptTemplate import PromptTemplate # from langchain.models import ChatGPTClient # from langchain.utils import save_conversation os.environ['OPENAI_API_KEY'] = openapi_key def chat(question): from urllib.parse import quote_plus server_name = constants.server_name database_name = constants.database_name username = constants.username password = constants.password encoded_password = quote_plus(password) connection_uri = f"mssql+pyodbc://{username}:{encoded_password}@{server_name}/{database_name}?driver=ODBC+Driver+17+for+SQL+Server" # custom_suffix = """"" # If the SQLResult is empty, the Answer should be "No results found". DO NOT hallucinate an answer if there is no result.""" engine = create_engine(connection_uri) model_name="gpt-3.5-turbo-16k" db = SQLDatabase(engine, view_support=True, include_tables=['EGV_emp_departments_ChatGPT']) # db = SQLDatabase(engine, view_support=True, include_tables=['EGV_emp_departments']) llm = ChatOpenAI(temperature=0, verbose=False, model=model_name) db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True) from langchain.prompts import PromptTemplate PROMPT = """ Given an input question, first create a syntactically correct mssql query to run, then look at the results of the query and return the SQLResult as answer. The question: {db_chain.run} """ prompt_template = """" Use the following pieces of context to answer the question at the end. If you don't know the answer, please think rationally and answer from your own knowledge base. Don't consider the table which are not mentioned, if no result is matching with the keyword Please return the answer as invalid question {context} Question: {questions} """ PROMPT = PromptTemplate( template=prompt_template, input_variables=["context", "questions"] ) def split_text(text, chunk_size, chunk_overlap=0): text_splitter = TokenTextSplitter( chunk_size=chunk_size, chunk_overlap=chunk_overlap ) yield from text_splitter.split_text(text) class QuerySQLDatabaseTool2(QuerySQLDataBaseTool): def _run( self, query: str, run_manager: Optional[CallbackManagerForToolRun] = None, ) -> str: result = self.db.run_no_throw(query) return next(split_text(result, chunk_size=14_000)) class SQLDatabaseToolkit2(SQLDatabaseToolkit): def get_tools(self) -> List[BaseTool]: tools = super().get_tools() original_query_tool_description = tools[0].description new_query_tool = QuerySQLDatabaseTool2( db=self.db, description=original_query_tool_description ) tools[0] = new_query_tool return tools return db_chain.run(question) answer= chat("Aadhaar number of B#########") print(answer) result: > Entering new SQLDatabaseChain chain... Aadhaar number of Bhuvaneshwari SQLQuery:SELECT [Aadhaar Number] FROM [EGV_emp_departments_ChatGPT] WHERE [EmployeeName] = 'B##########' SQLResult: [('91#######',), ('71#########',)] Answer:91###### > Finished chain. 9######## ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction in an chatbot after running a query it will return the SQLResult, but while giving an output answer complete result is not displayed code: import pandas as pd import sqlalchemy as sal import os, sys, openai import constants from langchain.sql_database import SQLDatabase from langchain.llms.openai import OpenAI from langchain_experimental.sql import SQLDatabaseChain from sqlalchemy import create_engine # import ChatOpenAI from langchain.chat_models import ChatOpenAI from typing import List, Optional from langchain.agents.agent_toolkits import SQLDatabaseToolkit from langchain.callbacks.manager import CallbackManagerForToolRun from langchain.chat_models import ChatOpenAI from langchain_experimental.plan_and_execute import ( PlanAndExecute, load_agent_executor, load_chat_planner, ) from langchain.sql_database import SQLDatabase from langchain.text_splitter import TokenTextSplitter from langchain.tools import BaseTool from langchain.tools.sql_database.tool import QuerySQLDataBaseTool from secret_key import openapi_key from langchain import PromptTemplate # from langchain.prompts.PromptTemplate import PromptTemplate # from langchain.models import ChatGPTClient # from langchain.utils import save_conversation os.environ['OPENAI_API_KEY'] = openapi_key def chat(question): from urllib.parse import quote_plus server_name = constants.server_name database_name = constants.database_name username = constants.username password = constants.password encoded_password = quote_plus(password) connection_uri = f"mssql+pyodbc://{username}:{encoded_password}@{server_name}/{database_name}?driver=ODBC+Driver+17+for+SQL+Server" # custom_suffix = """"" # If the SQLResult is empty, the Answer should be "No results found". DO NOT hallucinate an answer if there is no result.""" engine = create_engine(connection_uri) model_name="gpt-3.5-turbo-16k" db = SQLDatabase(engine, view_support=True, include_tables=['EGV_emp_departments_ChatGPT']) # db = SQLDatabase(engine, view_support=True, include_tables=['EGV_emp_departments']) llm = ChatOpenAI(temperature=0, verbose=False, model=model_name) db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True) from langchain.prompts import PromptTemplate PROMPT = """ Given an input question, first create a syntactically correct mssql query to run, then look at the results of the query and return the SQLResult as answer. The question: {db_chain.run} """ prompt_template = """" Use the following pieces of context to answer the question at the end. If you don't know the answer, please think rationally and answer from your own knowledge base. Don't consider the table which are not mentioned, if no result is matching with the keyword Please return the answer as invalid question {context} Question: {questions} """ PROMPT = PromptTemplate( template=prompt_template, input_variables=["context", "questions"] ) def split_text(text, chunk_size, chunk_overlap=0): text_splitter = TokenTextSplitter( chunk_size=chunk_size, chunk_overlap=chunk_overlap ) yield from text_splitter.split_text(text) class QuerySQLDatabaseTool2(QuerySQLDataBaseTool): def _run( self, query: str, run_manager: Optional[CallbackManagerForToolRun] = None, ) -> str: result = self.db.run_no_throw(query) return next(split_text(result, chunk_size=14_000)) class SQLDatabaseToolkit2(SQLDatabaseToolkit): def get_tools(self) -> List[BaseTool]: tools = super().get_tools() original_query_tool_description = tools[0].description new_query_tool = QuerySQLDatabaseTool2( db=self.db, description=original_query_tool_description ) tools[0] = new_query_tool return tools return db_chain.run(question) answer= chat("Aadhaar number of B#########") print(answer) result: > Entering new SQLDatabaseChain chain... Aadhaar number of Bhuvaneshwari SQLQuery:SELECT [Aadhaar Number] FROM [EGV_emp_departments_ChatGPT] WHERE [EmployeeName] = 'B##########' SQLResult: [('91#######',), ('71#########',)] Answer:91###### > Finished chain. 9######## ### Expected behavior in an chatbot after running a query it will return the SQLResult, but while giving an output answer complete result is not displayed code: import pandas as pd import sqlalchemy as sal import os, sys, openai import constants from langchain.sql_database import SQLDatabase from langchain.llms.openai import OpenAI from langchain_experimental.sql import SQLDatabaseChain from sqlalchemy import create_engine # import ChatOpenAI from langchain.chat_models import ChatOpenAI from typing import List, Optional from langchain.agents.agent_toolkits import SQLDatabaseToolkit from langchain.callbacks.manager import CallbackManagerForToolRun from langchain.chat_models import ChatOpenAI from langchain_experimental.plan_and_execute import ( PlanAndExecute, load_agent_executor, load_chat_planner, ) from langchain.sql_database import SQLDatabase from langchain.text_splitter import TokenTextSplitter from langchain.tools import BaseTool from langchain.tools.sql_database.tool import QuerySQLDataBaseTool from secret_key import openapi_key from langchain import PromptTemplate # from langchain.prompts.PromptTemplate import PromptTemplate # from langchain.models import ChatGPTClient # from langchain.utils import save_conversation os.environ['OPENAI_API_KEY'] = openapi_key def chat(question): from urllib.parse import quote_plus server_name = constants.server_name database_name = constants.database_name username = constants.username password = constants.password encoded_password = quote_plus(password) connection_uri = f"mssql+pyodbc://{username}:{encoded_password}@{server_name}/{database_name}?driver=ODBC+Driver+17+for+SQL+Server" # custom_suffix = """"" # If the SQLResult is empty, the Answer should be "No results found". DO NOT hallucinate an answer if there is no result.""" engine = create_engine(connection_uri) model_name="gpt-3.5-turbo-16k" db = SQLDatabase(engine, view_support=True, include_tables=['EGV_emp_departments_ChatGPT']) # db = SQLDatabase(engine, view_support=True, include_tables=['EGV_emp_departments']) llm = ChatOpenAI(temperature=0, verbose=False, model=model_name) db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True) from langchain.prompts import PromptTemplate PROMPT = """ Given an input question, first create a syntactically correct mssql query to run, then look at the results of the query and return the SQLResult as answer. The question: {db_chain.run} """ prompt_template = """" Use the following pieces of context to answer the question at the end. If you don't know the answer, please think rationally and answer from your own knowledge base. Don't consider the table which are not mentioned, if no result is matching with the keyword Please return the answer as invalid question {context} Question: {questions} """ PROMPT = PromptTemplate( template=prompt_template, input_variables=["context", "questions"] ) def split_text(text, chunk_size, chunk_overlap=0): text_splitter = TokenTextSplitter( chunk_size=chunk_size, chunk_overlap=chunk_overlap ) yield from text_splitter.split_text(text) class QuerySQLDatabaseTool2(QuerySQLDataBaseTool): def _run( self, query: str, run_manager: Optional[CallbackManagerForToolRun] = None, ) -> str: result = self.db.run_no_throw(query) return next(split_text(result, chunk_size=14_000)) class SQLDatabaseToolkit2(SQLDatabaseToolkit): def get_tools(self) -> List[BaseTool]: tools = super().get_tools() original_query_tool_description = tools[0].description new_query_tool = QuerySQLDatabaseTool2( db=self.db, description=original_query_tool_description ) tools[0] = new_query_tool return tools return db_chain.run(question) answer= chat("Aadhaar number of B#########") print(answer) result: > Entering new SQLDatabaseChain chain... Aadhaar number of Bhuvaneshwari SQLQuery:SELECT [Aadhaar Number] FROM [EGV_emp_departments_ChatGPT] WHERE [EmployeeName] = 'B##########' SQLResult: [('91#######',), ('71#########',)] Answer:91###### > Finished chain. 9######## instead of a single output or top5 output, need the complete result from SQLResults as answe.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15404/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15404/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15403
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15403/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15403/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15403/events
https://github.com/langchain-ai/langchain/issues/15403
2,062,455,269
I_kwDOIPDwls567pHl
15,403
Issue: not able to replicate documentation results
{ "login": "AlessandroGussoni", "id": 55053260, "node_id": "MDQ6VXNlcjU1MDUzMjYw", "avatar_url": "https://avatars.githubusercontent.com/u/55053260?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AlessandroGussoni", "html_url": "https://github.com/AlessandroGussoni", "followers_url": "https://api.github.com/users/AlessandroGussoni/followers", "following_url": "https://api.github.com/users/AlessandroGussoni/following{/other_user}", "gists_url": "https://api.github.com/users/AlessandroGussoni/gists{/gist_id}", "starred_url": "https://api.github.com/users/AlessandroGussoni/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AlessandroGussoni/subscriptions", "organizations_url": "https://api.github.com/users/AlessandroGussoni/orgs", "repos_url": "https://api.github.com/users/AlessandroGussoni/repos", "events_url": "https://api.github.com/users/AlessandroGussoni/events{/privacy}", "received_events_url": "https://api.github.com/users/AlessandroGussoni/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
1
2024-01-02T13:55:08
2024-01-02T14:04:43
null
NONE
null
### Issue you'd like to raise. Hi! I am trying to replicate this tutorial https://python.langchain.com/docs/integrations/toolkits/playwright on Colab using the same code, only difference is i am using `ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0)` instead of `ChatAnthropic(temperature=0)`. When i run the agent (`result = await agent_chain.arun("What are the headers on langchain.com?")`) instead of obtaining the full output showed in the documentation, i get: > Entering new AgentExecutor chain... I'll need to extract the headers from the langchain.com website. Let me do that for you. Action:```navigate_browser``` > Finished chain. I'll need to extract the headers from the langchain.com website. Let me do that for you. Action:```navigate_browser```. It seems the agent stops before returning the final answer, any guess on why this is happening? Thanks a lot ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15403/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15403/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15402
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15402/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15402/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15402/events
https://github.com/langchain-ai/langchain/pull/15402
2,062,433,191
PR_kwDOIPDwls5jDaqc
15,402
docs: show last update time
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T13:37:10
2024-01-04T20:45:39
2024-01-04T20:45:39
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15402/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15402/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15402", "html_url": "https://github.com/langchain-ai/langchain/pull/15402", "diff_url": "https://github.com/langchain-ai/langchain/pull/15402.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15402.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15400
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15400/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15400/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15400/events
https://github.com/langchain-ai/langchain/issues/15400
2,062,195,571
I_kwDOIPDwls566ptz
15,400
Warning message- No embedding_function provided, using default embedding function: SentenceTransformerEmbeddingFunction || Chroma db
{ "login": "Jp-369", "id": 127432471, "node_id": "U_kgDOB5h3Fw", "avatar_url": "https://avatars.githubusercontent.com/u/127432471?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Jp-369", "html_url": "https://github.com/Jp-369", "followers_url": "https://api.github.com/users/Jp-369/followers", "following_url": "https://api.github.com/users/Jp-369/following{/other_user}", "gists_url": "https://api.github.com/users/Jp-369/gists{/gist_id}", "starred_url": "https://api.github.com/users/Jp-369/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Jp-369/subscriptions", "organizations_url": "https://api.github.com/users/Jp-369/orgs", "repos_url": "https://api.github.com/users/Jp-369/repos", "events_url": "https://api.github.com/users/Jp-369/events{/privacy}", "received_events_url": "https://api.github.com/users/Jp-369/received_events", "type": "User", "site_admin": false }
[ { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5924999838, "node_id": "LA_kwDOIPDwls8AAAABYShSng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma", "name": "integration: chroma", "color": "B78AF8", "default": false, "description": "Related to ChromaDB" } ]
open
false
null
[]
null
1
2024-01-02T10:09:11
2024-01-02T10:11:29
null
NONE
null
### System Info langchain - 0.0.350 Python - 3.11 chromadb - 0.3.23 OS - Win 10 ### Who can help? @hwchase17 @eyur ### 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 just updated the version from 0.0.330 to 350 used the same code to create a chromadb class - and when using Chroma.from_docs(docs, embeddings) get this in output - No embedding_function provided, using default embedding function: SentenceTransformerEmbeddingFunction ### Expected behavior The expected behavior shall be that the embedding function provided should be used to create the embeddings, The following is the fix for the issue - line 129 should have a embedding_function passed instead of None
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15400/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15400/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15399
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15399/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15399/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15399/events
https://github.com/langchain-ai/langchain/issues/15399
2,062,178,490
I_kwDOIPDwls566li6
15,399
DOC: Resolve URL Navigation Issues - Trailing Slash Discrepancy
{ "login": "Sonali-Behera-TRT", "id": 131662185, "node_id": "U_kgDOB9kBaQ", "avatar_url": "https://avatars.githubusercontent.com/u/131662185?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Sonali-Behera-TRT", "html_url": "https://github.com/Sonali-Behera-TRT", "followers_url": "https://api.github.com/users/Sonali-Behera-TRT/followers", "following_url": "https://api.github.com/users/Sonali-Behera-TRT/following{/other_user}", "gists_url": "https://api.github.com/users/Sonali-Behera-TRT/gists{/gist_id}", "starred_url": "https://api.github.com/users/Sonali-Behera-TRT/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Sonali-Behera-TRT/subscriptions", "organizations_url": "https://api.github.com/users/Sonali-Behera-TRT/orgs", "repos_url": "https://api.github.com/users/Sonali-Behera-TRT/repos", "events_url": "https://api.github.com/users/Sonali-Behera-TRT/events{/privacy}", "received_events_url": "https://api.github.com/users/Sonali-Behera-TRT/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
1
2024-01-02T09:54:31
2024-01-02T09:56:46
null
NONE
null
### Issue with current documentation: Links within the documentation fail to open when the URL lacks a trailing '/'. Notably, the links on the page indicated in the example URL below and other links across various pages result in `page not found` errors when the URL lacks a trailing '/'. It's crucial to clarify that both URLs below, with and without a trailing '/', point to the same page. The issue lies in the fact that links on the version without '/' do not open, giving a `page not found` error, whereas the version with '/' functions correctly without any error. Example URL (without '/' at the end of the URL): [https://python.langchain.com/docs/modules/agents](https://python.langchain.com/docs/modules/agents) Example URL (with '/' at the end of the URL): [https://python.langchain.com/docs/modules/agents/](https://python.langchain.com/docs/modules/agents/) ### Idea or request for content: - **Suggested Changes:** 1. Investigate and address the issue causing links to fail when the URL lacks a trailing '/'. 2. Implement a fix to ensure all links across the documentation open successfully, regardless of the presence or absence of a trailing '/' in the URL. - **Steps to Reproduce:** 1. Navigate to [Example URL without '/'](https://python.langchain.com/docs/modules/agents) in a web browser. 2. Attempt to click on various links within the documentation, especially those that navigate to other pages. 3. Observe the page not found errors when the URL lacks a trailing '/'. - **Additional Context:** - This issue is consistent across multiple pages in the documentation. - The problem is observed on Chrome, Brave, Firefox, and Bing browsers. - Other browsers may also have this issue, but I haven't tested in them.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15399/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15399/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15398
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15398/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15398/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15398/events
https://github.com/langchain-ai/langchain/pull/15398
2,062,152,350
PR_kwDOIPDwls5jCeK4
15,398
langchain: convert json to minified json to save prompt token cost
{ "login": "mengjincn", "id": 29910729, "node_id": "MDQ6VXNlcjI5OTEwNzI5", "avatar_url": "https://avatars.githubusercontent.com/u/29910729?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mengjincn", "html_url": "https://github.com/mengjincn", "followers_url": "https://api.github.com/users/mengjincn/followers", "following_url": "https://api.github.com/users/mengjincn/following{/other_user}", "gists_url": "https://api.github.com/users/mengjincn/gists{/gist_id}", "starred_url": "https://api.github.com/users/mengjincn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mengjincn/subscriptions", "organizations_url": "https://api.github.com/users/mengjincn/orgs", "repos_url": "https://api.github.com/users/mengjincn/repos", "events_url": "https://api.github.com/users/mengjincn/events{/privacy}", "received_events_url": "https://api.github.com/users/mengjincn/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": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T09:31:14
2024-01-03T03:02:39
2024-01-03T03:02:39
CONTRIBUTOR
null
- **Description:** convert json to minified json to save prompt token cost, - **Issue:** no issue, - **Dependencies:** not change any dependencies,
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15398/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15398/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15398", "html_url": "https://github.com/langchain-ai/langchain/pull/15398", "diff_url": "https://github.com/langchain-ai/langchain/pull/15398.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15398.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15397
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15397/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15397/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15397/events
https://github.com/langchain-ai/langchain/pull/15397
2,062,126,192
PR_kwDOIPDwls5jCYhd
15,397
Skypoint v0.0.351
{ "login": "arunraja1", "id": 103998125, "node_id": "U_kgDOBjLirQ", "avatar_url": "https://avatars.githubusercontent.com/u/103998125?v=4", "gravatar_id": "", "url": "https://api.github.com/users/arunraja1", "html_url": "https://github.com/arunraja1", "followers_url": "https://api.github.com/users/arunraja1/followers", "following_url": "https://api.github.com/users/arunraja1/following{/other_user}", "gists_url": "https://api.github.com/users/arunraja1/gists{/gist_id}", "starred_url": "https://api.github.com/users/arunraja1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arunraja1/subscriptions", "organizations_url": "https://api.github.com/users/arunraja1/orgs", "repos_url": "https://api.github.com/users/arunraja1/repos", "events_url": "https://api.github.com/users/arunraja1/events{/privacy}", "received_events_url": "https://api.github.com/users/arunraja1/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 6232714130, "node_id": "LA_kwDOIPDwls8AAAABc3-rkg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL", "name": "size:XL", "color": "D4C5F9", "default": false, "description": "This PR changes 500-999 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T09:07:04
2024-01-02T09:13:20
2024-01-02T09:07:23
NONE
null
Merge version 0.0.351 to skypoint-langchain
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15397/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15397/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15397", "html_url": "https://github.com/langchain-ai/langchain/pull/15397", "diff_url": "https://github.com/langchain-ai/langchain/pull/15397.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15397.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15396
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15396/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15396/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15396/events
https://github.com/langchain-ai/langchain/issues/15396
2,062,114,468
I_kwDOIPDwls566V6k
15,396
这个貌似是一个bug, 修改之后就好了
{ "login": "Mr1994", "id": 15978040, "node_id": "MDQ6VXNlcjE1OTc4MDQw", "avatar_url": "https://avatars.githubusercontent.com/u/15978040?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Mr1994", "html_url": "https://github.com/Mr1994", "followers_url": "https://api.github.com/users/Mr1994/followers", "following_url": "https://api.github.com/users/Mr1994/following{/other_user}", "gists_url": "https://api.github.com/users/Mr1994/gists{/gist_id}", "starred_url": "https://api.github.com/users/Mr1994/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Mr1994/subscriptions", "organizations_url": "https://api.github.com/users/Mr1994/orgs", "repos_url": "https://api.github.com/users/Mr1994/repos", "events_url": "https://api.github.com/users/Mr1994/events{/privacy}", "received_events_url": "https://api.github.com/users/Mr1994/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
1
2024-01-02T08:55:07
2024-01-03T02:51:03
null
NONE
null
### System Info /Users/sunwenke/miniconda3/envs/langchain/bin/python /Users/sunwenke/workspace/yongxinApi/langchain/localopenai/sql.py Traceback (most recent call last): File "/Users/sunwenke/workspace/yongxinApi/langchain/localopenai/sql.py", line 8, in <module> entity_store = SQLiteEntityStore(db_file="/Users/sunwenke/workspace/yongxinApi/langchain/Chinook.db") File "/Users/sunwenke/miniconda3/envs/langchain/lib/python3.10/site-packages/langchain/memory/entity.py", line 256, in __init__ self.conn = sqlite3.connect(db_file) File "/Users/sunwenke/miniconda3/envs/langchain/lib/python3.10/site-packages/pydantic/v1/main.py", line 357, in __setattr__ raise ValueError(f'"{self.__class__.__name__}" object has no field "{name}"') ValueError: "SQLiteEntityStore" object has no field "conn" ### 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 - [x] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction from langchain.chains import ConversationChain from langchain.llms import OpenAI from langchain.memory import ConversationEntityMemory from langchain.memory.entity import SQLiteEntityStore from langchain.memory.prompt import ENTITY_MEMORY_CONVERSATION_TEMPLATE from localopenai import llm entity_store = SQLiteEntityStore(db_file="/Users/sunwenke/workspace/yongxinApi/langchain/Chinook.db") memory = ConversationEntityMemory(llm=llm, entity_store=entity_store) conversation = ConversationChain( llm=llm, prompt=ENTITY_MEMORY_CONVERSATION_TEMPLATE, memory=memory, verbose=True, ) conversation.run("有多少员工") ### Expected behavior class SQLiteEntityStore(BaseEntityStore): """SQLite-backed Entity store""" session_id: str = "default" table_name: str = "memory_store" def __init__( self, session_id: str = "default", db_file: str = "entities.db", table_name: str = "memory_store", *args: Any, **kwargs: Any, ): try: import sqlite3 except ImportError: raise ImportError( "Could not import sqlite3 python package. " "Please install it with `pip install sqlite3`." ) super().__init__(*args, **kwargs) self.conn = sqlite3.connect(db_file) self.session_id = session_id self.table_name = table_name self._create_table_if_not_exists() self.conn = sqlite3.connect(db_file) 属性不存在 需要 在当前类 添加conn属性
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15396/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15396/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15395
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15395/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15395/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15395/events
https://github.com/langchain-ai/langchain/issues/15395
2,062,113,700
I_kwDOIPDwls566Vuk
15,395
Issue: Unable to use SQLDatabaseChain with Falcon 7b Instruct for quering the postgresql database.
{ "login": "hitesh95reddy", "id": 33710615, "node_id": "MDQ6VXNlcjMzNzEwNjE1", "avatar_url": "https://avatars.githubusercontent.com/u/33710615?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hitesh95reddy", "html_url": "https://github.com/hitesh95reddy", "followers_url": "https://api.github.com/users/hitesh95reddy/followers", "following_url": "https://api.github.com/users/hitesh95reddy/following{/other_user}", "gists_url": "https://api.github.com/users/hitesh95reddy/gists{/gist_id}", "starred_url": "https://api.github.com/users/hitesh95reddy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hitesh95reddy/subscriptions", "organizations_url": "https://api.github.com/users/hitesh95reddy/orgs", "repos_url": "https://api.github.com/users/hitesh95reddy/repos", "events_url": "https://api.github.com/users/hitesh95reddy/events{/privacy}", "received_events_url": "https://api.github.com/users/hitesh95reddy/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2024-01-02T08:54:23
2024-01-02T09:03:53
null
NONE
null
### Issue you'd like to raise. Hi Langchain Gurus, I am trying to use SQLDatabaseChain to query and answer questions on postgresql table. so far the code that I have written uses following hugging face pipeline ``` model_name ='tiiuae/falcon-7b-instruct' tokenizer = AutoTokenizer.from_pretrained(model_name) pipe = pipeline("question-answering", model=model_name, tokenizer=tokenizer, torch_dtype=bfloat16) llm = HuggingFacePipeline(pipeline=pipe) ``` the prompt template looks like following ``` default_prompt = """You are a postgresql expert. Given an input question, first create a syntactically correct postgresql query to run, then look at the results of the query and return the answer to the input question. Unless the user specifies in the question a specific number of examples to obtain, query for at most {top_k} results using the LIMIT clause as per postgresql. You can order the results to return the most informative data in the database. Never query for all columns from a table. You must query only the columns that are needed to answer the question. Wrap each column name in double quotes (") to denote them as delimited identifiers. Pay attention to use only the column names you can see in the tables below. Be careful to not query for columns that do not exist. Also, pay attention to which column is in which table. Pay attention to use date('now') function to get the current date, if the question involves "today". Use the following format: Question: Question here SQLQuery: SQL Query to run SQLResult: Result of the SQLQuery Answer: Final answer here Only use the following tables: {table_info} Question: {question} """ ``` post that I am using the SQLDatabaseChain like this ``` database = SQLDatabase.from_uri(f"postgresql+psycopg2://{db_user}:{db_password}@{db_host}:5432/{db_name}") prompt_template = PromptTemplate.from_template(prompt_template) print("SQLDatabase loaded.") db_chain = SQLDatabaseChain.from_llm(llm, self.database, verbose=True) db_chain.run('How many records are available in flightData table') ``` running this throws error ``` `` Use the following format: Question: Question here SQLQuery: SQL Query to run SQLResult: Result of the SQLQuery Answer: Final answer here Only use the following tables: CREATE TABLE "FlightData" ( year BIGINT, month BIGINT, day BIGINT, dep_time DOUBLE PRECISION, sched_dep_time BIGINT, dep_delay DOUBLE PRECISION, arr_time DOUBLE PRECISION, sched_arr_time BIGINT, arr_delay DOUBLE PRECISION, carrier TEXT, flight BIGINT, tailnum TEXT, origin TEXT, dest TEXT, air_time DOUBLE PRECISION, distance BIGINT, hour BIGINT, minute BIGINT, time_hour TEXT ) /* 3 rows from FlightData table: year month day dep_time sched_dep_time dep_delay arr_time sched_arr_time arr_delay carrier flight tailnum origin dest air_time distance hour minute time_hour 2013 1 1 517.0 515 2.0 830.0 819 11.0 UA 1545 N14228 EWR IAH 227.0 1400 5 15 1/1/2013 5:00 2013 1 1 533.0 529 4.0 850.0 830 20.0 UA 1714 N24211 LGA IAH 227.0 1416 5 29 1/1/2013 5:00 2013 1 1 542.0 540 2.0 923.0 850 33.0 AA 1141 N619AA JFK MIA 160.0 1089 5 40 1/1/2013 5:00 */ Question: How many records are available in flightData table SQLQuery: argument needs to be of type (SquadExample, dict) ``` Requesting help /pointer on how I can I run this code without error and generate the correct answer? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15395/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15395/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15394
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15394/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15394/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15394/events
https://github.com/langchain-ai/langchain/issues/15394
2,062,050,508
I_kwDOIPDwls566GTM
15,394
similarity_search get 2 validation errors for DocArrayDoc
{ "login": "dove-young", "id": 606882, "node_id": "MDQ6VXNlcjYwNjg4Mg==", "avatar_url": "https://avatars.githubusercontent.com/u/606882?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dove-young", "html_url": "https://github.com/dove-young", "followers_url": "https://api.github.com/users/dove-young/followers", "following_url": "https://api.github.com/users/dove-young/following{/other_user}", "gists_url": "https://api.github.com/users/dove-young/gists{/gist_id}", "starred_url": "https://api.github.com/users/dove-young/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dove-young/subscriptions", "organizations_url": "https://api.github.com/users/dove-young/orgs", "repos_url": "https://api.github.com/users/dove-young/repos", "events_url": "https://api.github.com/users/dove-young/events{/privacy}", "received_events_url": "https://api.github.com/users/dove-young/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
2
2024-01-02T07:44:12
2024-01-04T03:16:55
null
NONE
null
### System Info ``` pip show langchain_community Name: langchain-community Version: 0.0.3 ``` ``` python --version Python 3.10.12 ``` ``` pip show langchain_core Name: langchain-core Version: 0.1.1 ``` ``` pip show pydantic Name: pydantic Version: 2.5.1 ``` ### Who can help? _No response_ ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [X] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ``` /root/jupyter/pydantic/pydantic/_migration.py:283: UserWarning: `pydantic.error_wrappers:ValidationError` has been moved to `pydantic:ValidationError`. warnings.warn(f'`{import_path}` has been moved to `{new_location}`.') Traceback (most recent call last): File "/root/jupyter/GitHub-Issues/david/langC-rag-lcel.py", line 86, in <module> chain.invoke("where did harrison work?") File "/root/jupyter/virtualenv/slack-dev-3.10/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 1514, in invoke input = step.invoke( File "/root/jupyter/virtualenv/slack-dev-3.10/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 2040, in invoke output = {key: future.result() for key, future in zip(steps, futures)} File "/root/jupyter/virtualenv/slack-dev-3.10/lib/python3.10/site-packages/langchain_core/runnables/base.py", line 2040, in <dictcomp> output = {key: future.result() for key, future in zip(steps, futures)} File "/opt/python-3.10.12/lib/python3.10/concurrent/futures/_base.py", line 458, in result return self.__get_result() File "/opt/python-3.10.12/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result raise self._exception File "/opt/python-3.10.12/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/root/jupyter/virtualenv/slack-dev-3.10/lib/python3.10/site-packages/langchain_core/retrievers.py", line 112, in invoke return self.get_relevant_documents( File "/root/jupyter/virtualenv/slack-dev-3.10/lib/python3.10/site-packages/langchain_core/retrievers.py", line 211, in get_relevant_documents raise e File "/root/jupyter/virtualenv/slack-dev-3.10/lib/python3.10/site-packages/langchain_core/retrievers.py", line 204, in get_relevant_documents result = self._get_relevant_documents( File "/root/jupyter/virtualenv/slack-dev-3.10/lib/python3.10/site-packages/langchain_core/vectorstores.py", line 656, in _get_relevant_documents docs = self.vectorstore.similarity_search(query, **self.search_kwargs) File "/root/jupyter/virtualenv/slack-dev-3.10/lib/python3.10/site-packages/langchain_community/vectorstores/docarray/base.py", line 127, in similarity_search results = self.similarity_search_with_score(query, k=k, **kwargs) File "/root/jupyter/virtualenv/slack-dev-3.10/lib/python3.10/site-packages/langchain_community/vectorstores/docarray/base.py", line 106, in similarity_search_with_score query_doc = self.doc_cls(embedding=query_embedding) # type: ignore File "/root/jupyter/pydantic/pydantic/main.py", line 166, in __init__ __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__) pydantic_core._pydantic_core.ValidationError: 2 validation errors for DocArrayDoc text Field required [type=missing, input_value={'embedding': [0.00177018... -0.018160881474614143]}, input_type=dict] For further information visit https://errors.pydantic.dev/2.4/v/missing metadata Field required [type=missing, input_value={'embedding': [0.00177018... -0.018160881474614143]}, input_type=dict] For further information visit https://errors.pydantic.dev/2.4/v/missing ``` ### Expected behavior it should run successfully
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15394/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15394/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15392
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15392/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15392/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15392/events
https://github.com/langchain-ai/langchain/pull/15392
2,062,024,949
PR_kwDOIPDwls5jCC3-
15,392
Update `gpt4all.mdx` doc
{ "login": "169", "id": 10000925, "node_id": "MDQ6VXNlcjEwMDAwOTI1", "avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4", "gravatar_id": "", "url": "https://api.github.com/users/169", "html_url": "https://github.com/169", "followers_url": "https://api.github.com/users/169/followers", "following_url": "https://api.github.com/users/169/following{/other_user}", "gists_url": "https://api.github.com/users/169/gists{/gist_id}", "starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/169/subscriptions", "organizations_url": "https://api.github.com/users/169/orgs", "repos_url": "https://api.github.com/users/169/repos", "events_url": "https://api.github.com/users/169/events{/privacy}", "received_events_url": "https://api.github.com/users/169/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T07:13:50
2024-01-02T19:39:42
2024-01-02T16:57:57
CONTRIBUTOR
null
The [pyllamacpp](https://github.com/nomic-ai/pyllamacpp) repository has been archived and the model name and usage need to be changed.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15392/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15392/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15392", "html_url": "https://github.com/langchain-ai/langchain/pull/15392", "diff_url": "https://github.com/langchain-ai/langchain/pull/15392.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15392.patch", "merged_at": "2024-01-02T16:57:57" }
https://api.github.com/repos/langchain-ai/langchain/issues/15391
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15391/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15391/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15391/events
https://github.com/langchain-ai/langchain/issues/15391
2,062,017,256
I_kwDOIPDwls565-Lo
15,391
[Filter] Unable to filter dates with MongoDB
{ "login": "mahimairaja", "id": 81288263, "node_id": "MDQ6VXNlcjgxMjg4MjYz", "avatar_url": "https://avatars.githubusercontent.com/u/81288263?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mahimairaja", "html_url": "https://github.com/mahimairaja", "followers_url": "https://api.github.com/users/mahimairaja/followers", "following_url": "https://api.github.com/users/mahimairaja/following{/other_user}", "gists_url": "https://api.github.com/users/mahimairaja/gists{/gist_id}", "starred_url": "https://api.github.com/users/mahimairaja/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mahimairaja/subscriptions", "organizations_url": "https://api.github.com/users/mahimairaja/orgs", "repos_url": "https://api.github.com/users/mahimairaja/repos", "events_url": "https://api.github.com/users/mahimairaja/events{/privacy}", "received_events_url": "https://api.github.com/users/mahimairaja/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
5
2024-01-02T07:03:26
2024-01-02T10:06:59
null
NONE
null
### System Info Platform: `Mac M1` Python: `3.8.18` Lanchain: `0.0.350` ### 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 1. Install Lanchain 2. Execute the code: ``` python from datetime import datetime from datetime import timedelta from langchain.vectorstores.mongodb_atlas import MongoDBAtlasVectorSearch from langchain.embeddings import OpenAIEmbeddings from langchain.chat_models.openai import ChatOpenAI from langchain.chains import RetrievalQA db_name = 'YOUR_DB_NAME' collection_name = 'YOUR_COLLECTION_NAME' db_connection_string = 'YOUR_STRING' def perform_retrieval_qa( query: str, from_date: str = (datetime.now() - timedelta(days=6)).strftime("%Y-%m-%d"), to_date: str = datetime.now().strftime("%Y-%m-%d"), ): print(from_date, to_date) vector_search = MongoDBAtlasVectorSearch.from_connection_string( db_connection_string, f"{db_name}.{collection_name}", OpenAIEmbeddings(), index_name="default" ) llm = ChatOpenAI( model="gpt-3.5-turbo", temperature=0) retrieval_qa_chain = RetrievalQA.from_chain_type( llm, retriever=vector_search.as_retriever( search_kwargs={ 'k': 70, 'filter':{ 'date': { '$gte': from_date, '$lte': to_date } } }, ) ) result = retrieval_qa_chain( {"query": query}, return_only_outputs=True ) return result["result"] ``` ### Expected behavior I wish the RAG should be performed with the records from the filtered dates ranges, but it is not happening. The filter is not applied and the RAG is performed with the entire data.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15391/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15391/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15390
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15390/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15390/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15390/events
https://github.com/langchain-ai/langchain/issues/15390
2,062,006,876
I_kwDOIPDwls5657pc
15,390
Issue: milvus collectoin load replica number
{ "login": "rere950303", "id": 78265252, "node_id": "MDQ6VXNlcjc4MjY1MjUy", "avatar_url": "https://avatars.githubusercontent.com/u/78265252?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rere950303", "html_url": "https://github.com/rere950303", "followers_url": "https://api.github.com/users/rere950303/followers", "following_url": "https://api.github.com/users/rere950303/following{/other_user}", "gists_url": "https://api.github.com/users/rere950303/gists{/gist_id}", "starred_url": "https://api.github.com/users/rere950303/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rere950303/subscriptions", "organizations_url": "https://api.github.com/users/rere950303/orgs", "repos_url": "https://api.github.com/users/rere950303/repos", "events_url": "https://api.github.com/users/rere950303/events{/privacy}", "received_events_url": "https://api.github.com/users/rere950303/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" } ]
open
false
null
[]
null
2
2024-01-02T06:49:44
2024-01-02T07:01:04
null
CONTRIBUTOR
null
### Issue you'd like to raise. If i set the in-memory replica of milvus to 3 and then run the following code on langchain, the following error occurs. ```python3 vector_db = Milvus.from_documents( docs, embeddings, collection_name=collection, ) ``` > pymilvus.exceptions.MilvusException: <MilvusException: (code=1100, message=failed to load collection: can't change the replica number for loaded collection: expected=3, actual=1: invalid parameter)> when i look at the langchain code, the `replica_number` is 1 as the default and cannot be handed over as a factor, can you improve this? ```python3 def _load(self) -> None: """Load the collection if available.""" from pymilvus import Collection if isinstance(self.col, Collection) and self._get_index() is not None: self.col.load() ``` ```python3 def load( self, partition_names: Optional[list] = None, replica_number: int = 1, timeout: Optional[float] = None, **kwargs, ): ``` ### Suggestion: Please modify the langchain so that the `replica_number` of the milvus load collection can be handed over as an argument
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15390/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15390/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15389
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15389/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15389/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15389/events
https://github.com/langchain-ai/langchain/pull/15389
2,061,998,201
PR_kwDOIPDwls5jB9PH
15,389
Remove unused `_get_python_repl`
{ "login": "169", "id": 10000925, "node_id": "MDQ6VXNlcjEwMDAwOTI1", "avatar_url": "https://avatars.githubusercontent.com/u/10000925?v=4", "gravatar_id": "", "url": "https://api.github.com/users/169", "html_url": "https://github.com/169", "followers_url": "https://api.github.com/users/169/followers", "following_url": "https://api.github.com/users/169/following{/other_user}", "gists_url": "https://api.github.com/users/169/gists{/gist_id}", "starred_url": "https://api.github.com/users/169/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/169/subscriptions", "organizations_url": "https://api.github.com/users/169/orgs", "repos_url": "https://api.github.com/users/169/repos", "events_url": "https://api.github.com/users/169/events{/privacy}", "received_events_url": "https://api.github.com/users/169/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700883, "node_id": "LA_kwDOIPDwls8AAAABUpid0w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit", "name": "auto:nit", "color": "FEF2C0", "default": false, "description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T06:37:30
2024-01-02T23:21:00
2024-01-02T23:21:00
CONTRIBUTOR
null
This part of the code can also be safely cleaned up.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15389/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15389/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15389", "html_url": "https://github.com/langchain-ai/langchain/pull/15389", "diff_url": "https://github.com/langchain-ai/langchain/pull/15389.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15389.patch", "merged_at": "2024-01-02T23:21:00" }
https://api.github.com/repos/langchain-ai/langchain/issues/15388
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15388/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15388/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15388/events
https://github.com/langchain-ai/langchain/issues/15388
2,061,996,098
I_kwDOIPDwls5655BC
15,388
Issue:Issue regarding Memory implementation
{ "login": "deepak-habilelabs", "id": 137885024, "node_id": "U_kgDOCDf1YA", "avatar_url": "https://avatars.githubusercontent.com/u/137885024?v=4", "gravatar_id": "", "url": "https://api.github.com/users/deepak-habilelabs", "html_url": "https://github.com/deepak-habilelabs", "followers_url": "https://api.github.com/users/deepak-habilelabs/followers", "following_url": "https://api.github.com/users/deepak-habilelabs/following{/other_user}", "gists_url": "https://api.github.com/users/deepak-habilelabs/gists{/gist_id}", "starred_url": "https://api.github.com/users/deepak-habilelabs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/deepak-habilelabs/subscriptions", "organizations_url": "https://api.github.com/users/deepak-habilelabs/orgs", "repos_url": "https://api.github.com/users/deepak-habilelabs/repos", "events_url": "https://api.github.com/users/deepak-habilelabs/events{/privacy}", "received_events_url": "https://api.github.com/users/deepak-habilelabs/received_events", "type": "User", "site_admin": false }
[ { "id": 4899126096, "node_id": "LA_kwDOIPDwls8AAAABJAK7UA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory", "name": "area: memory", "color": "BFDADC", "default": false, "description": "Related to memory module" }, { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" } ]
open
false
null
[]
null
3
2024-01-02T06:34:26
2024-01-02T07:59:00
null
NONE
null
### Issue you'd like to raise. `from langchain.chains.question_answering import load_qa_chain template = """ {Your_Prompt} CONTEXT: {context} QUESTION: {query} CHAT HISTORY: {chat_history} ANSWER: """ prompt = PromptTemplate(input_variables=["chat_history", "query", "context"], template=template) memory = ConversationBufferMemory(memory_key="chat_history", input_key="query") chain = load_qa_chain(ChatOpenAI(temperature=0), chain_type="stuff", memory=memory, prompt=prompt)` is the above code is correct? if correct then please let me know from where i will get chat_history variable? ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15388/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15388/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15387
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15387/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15387/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15387/events
https://github.com/langchain-ai/langchain/pull/15387
2,061,902,012
PR_kwDOIPDwls5jBpIS
15,387
Fix: fix Bing Search empty result exception, fix #15384
{ "login": "chyroc", "id": 15604894, "node_id": "MDQ6VXNlcjE1NjA0ODk0", "avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4", "gravatar_id": "", "url": "https://api.github.com/users/chyroc", "html_url": "https://github.com/chyroc", "followers_url": "https://api.github.com/users/chyroc/followers", "following_url": "https://api.github.com/users/chyroc/following{/other_user}", "gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}", "starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chyroc/subscriptions", "organizations_url": "https://api.github.com/users/chyroc/orgs", "repos_url": "https://api.github.com/users/chyroc/repos", "events_url": "https://api.github.com/users/chyroc/events{/privacy}", "received_events_url": "https://api.github.com/users/chyroc/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-02T03:20:21
2024-01-03T02:19:34
2024-01-02T23:25:01
CONTRIBUTOR
null
fix https://github.com/langchain-ai/langchain/issues/15384
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15387/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15387/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15387", "html_url": "https://github.com/langchain-ai/langchain/pull/15387", "diff_url": "https://github.com/langchain-ai/langchain/pull/15387.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15387.patch", "merged_at": "2024-01-02T23:25:01" }
https://api.github.com/repos/langchain-ai/langchain/issues/15386
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15386/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15386/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15386/events
https://github.com/langchain-ai/langchain/issues/15386
2,061,900,973
I_kwDOIPDwls565hyt
15,386
langchain is not `pyinstaller` friendly due to dependency on external files, e.g. `llm_summarization_checker`
{ "login": "tigerinus", "id": 7172560, "node_id": "MDQ6VXNlcjcxNzI1NjA=", "avatar_url": "https://avatars.githubusercontent.com/u/7172560?v=4", "gravatar_id": "", "url": "https://api.github.com/users/tigerinus", "html_url": "https://github.com/tigerinus", "followers_url": "https://api.github.com/users/tigerinus/followers", "following_url": "https://api.github.com/users/tigerinus/following{/other_user}", "gists_url": "https://api.github.com/users/tigerinus/gists{/gist_id}", "starred_url": "https://api.github.com/users/tigerinus/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tigerinus/subscriptions", "organizations_url": "https://api.github.com/users/tigerinus/orgs", "repos_url": "https://api.github.com/users/tigerinus/repos", "events_url": "https://api.github.com/users/tigerinus/events{/privacy}", "received_events_url": "https://api.github.com/users/tigerinus/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
closed
false
null
[]
null
2
2024-01-02T03:17:26
2024-01-02T04:09:36
2024-01-02T04:09:35
NONE
null
### System Info ``` langchain==0.0.335 ``` ``` python 3.11 ``` ### Who can help? @hwchase17 ### Information - [ ] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. Create simple `test.py`: ```python from langchain.chains.llm_summarization_checker.base import LLMSummarizationCheckerChain from langchain.llms.fake import FakeListLLM llm = FakeListLLM(responses=[]) chain = LLMSummarizationCheckerChain.from_llm(llm) ``` 2. Install `pyinstaller` via `pip install -U pyinstaller` 3. Run ``` pyinstaller test.py` ``` 4. Wait until it's done. 5. Run ``` $ ./dist/test/test Traceback (most recent call last): File "test.py", line 1, in <module> from langchain.chains.llm_summarization_checker.base import LLMSummarizationCheckerChain File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module File "langchain/chains/__init__.py", line 51, in <module> File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module File "langchain/chains/llm_summarization_checker/base.py", line 20, in <module> File "langchain_core/prompts/prompt.py", line 202, in from_file FileNotFoundError: [Errno 2] No such file or directory: '/home/tiger/junk/tt/dist/test/_internal/langchain/chains/llm_summarization_checker/prompts/create_facts.txt' [789522] Failed to execute script 'test' due to unhandled exception! ``` ### Expected behavior ``` CREATE_ASSERTIONS_PROMPT = PromptTemplate.from_file(PROMPTS_DIR / "create_facts.txt") CHECK_ASSERTIONS_PROMPT = PromptTemplate.from_file(PROMPTS_DIR / "check_facts.txt") REVISED_SUMMARY_PROMPT = PromptTemplate.from_file(PROMPTS_DIR / "revise_summary.txt") ARE_ALL_TRUE_PROMPT = PromptTemplate.from_file(PROMPTS_DIR / "are_all_true_prompt.txt") ``` These lines from https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/chains/llm_summarization_checker/base.py should be changed to something like lazy loading, or just hard code the `.txt` files. PS - I'm using `llama2` so these prompts do not work anyway.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15386/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15386/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15385
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15385/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15385/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15385/events
https://github.com/langchain-ai/langchain/issues/15385
2,061,894,643
I_kwDOIPDwls565gPz
15,385
DynamoDBChatMessageHistory saved Human Message duplicate
{ "login": "JiaTingYefei", "id": 13569268, "node_id": "MDQ6VXNlcjEzNTY5MjY4", "avatar_url": "https://avatars.githubusercontent.com/u/13569268?v=4", "gravatar_id": "", "url": "https://api.github.com/users/JiaTingYefei", "html_url": "https://github.com/JiaTingYefei", "followers_url": "https://api.github.com/users/JiaTingYefei/followers", "following_url": "https://api.github.com/users/JiaTingYefei/following{/other_user}", "gists_url": "https://api.github.com/users/JiaTingYefei/gists{/gist_id}", "starred_url": "https://api.github.com/users/JiaTingYefei/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JiaTingYefei/subscriptions", "organizations_url": "https://api.github.com/users/JiaTingYefei/orgs", "repos_url": "https://api.github.com/users/JiaTingYefei/repos", "events_url": "https://api.github.com/users/JiaTingYefei/events{/privacy}", "received_events_url": "https://api.github.com/users/JiaTingYefei/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": 5959659008, "node_id": "LA_kwDOIPDwls8AAAABYzkuAA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws", "name": "integration: aws", "color": "C5DEF5", "default": false, "description": "Related to Amazon Web Services (AWS) integrations" } ]
closed
false
null
[]
null
2
2024-01-02T03:00:50
2024-01-02T08:41:53
2024-01-02T08:41:53
NONE
null
### System Info Langchain version: 0.0.351 boto3==1.34.3 Python version: 3.11.7 ### Who can help? I use DynamoDBChatMessageHistory as the conversation_history, seems duplicate Human messages saved to DynamoDB table every time, AI message saved once. Here is the duplicate messages: ![image](https://github.com/langchain-ai/langchain/assets/13569268/a395a097-47b8-429a-8d6e-3d8eaa9e5d0a) Below is my code: ` def ask_stream( self, input_text: str, conversation_history: ConversationBufferMemory = ConversationBufferMemory( ai_prefix="Assistant" ), verbose: bool = False, **kwargs, ): """Processes a stream of input by invoking the engine. Parameters ---------- conversation_history: ConversationBufferMemory The conversation history input_text: str The input prompt or message. verbose: boolean if the langchain shall show the detailed logging kwargs: dict Additional keyword arguments to pass to the engine. For example, you can pass in temperature to control the model's creativity. Returns ------- str The response generated by the engine. Raises ------ Any exceptions raised by the engine. """ temp_stop = kwargs.get("stop", self.stop) template = """The following is a friendly conversation between a human and an AI.""" PROMPT = PromptTemplate(input_variables=["history", "input"], template=template) chain = ConversationChain( llm=self.engine, memory=conversation_history, verbose=verbose, prompt=PROMPT, ) return chain.predict(input=input_text, stop=temp_stop) ` ### Information - [ ] The official example notebooks/scripts - [X] My own modified scripts ### Related Components - [X] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [X] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [X] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. Start a new conversation with DynamoDBChatMessageHistory as memory. ### Expected behavior Each HumanMessage should be saved once in DynamoDB table.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15385/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15385/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15384
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15384/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15384/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15384/events
https://github.com/langchain-ai/langchain/issues/15384
2,061,856,348
I_kwDOIPDwls565W5c
15,384
Bing Search Tool has key value error
{ "login": "nacartwright", "id": 21059281, "node_id": "MDQ6VXNlcjIxMDU5Mjgx", "avatar_url": "https://avatars.githubusercontent.com/u/21059281?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nacartwright", "html_url": "https://github.com/nacartwright", "followers_url": "https://api.github.com/users/nacartwright/followers", "following_url": "https://api.github.com/users/nacartwright/following{/other_user}", "gists_url": "https://api.github.com/users/nacartwright/gists{/gist_id}", "starred_url": "https://api.github.com/users/nacartwright/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nacartwright/subscriptions", "organizations_url": "https://api.github.com/users/nacartwright/orgs", "repos_url": "https://api.github.com/users/nacartwright/repos", "events_url": "https://api.github.com/users/nacartwright/events{/privacy}", "received_events_url": "https://api.github.com/users/nacartwright/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
2024-01-02T01:05:50
2024-01-02T23:25:02
2024-01-02T23:25:02
NONE
null
### System Info Python=3.10 Langchain=0.0.352 langchain-community==0.0.6 I'm using a custom Bing search engine. When I asked something that my Bing search was not able to return results "Webpages" does not exist. I had to change this: search_results["webPages"]["value"] (line 47) to if "webPages" in search_results: return search_results["webPages"]["value"] else: return [] ### 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 - [X] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. Create an OpenAI Functions agent with Bing 2. Have a custom bing search 3. Search for something that will not return results from Bing ### Expected behavior Expect the tool to return "No bing results found" and then a response from an agent
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15384/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15384/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15383
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15383/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15383/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15383/events
https://github.com/langchain-ai/langchain/issues/15383
2,061,806,618
I_kwDOIPDwls565Kwa
15,383
ModuleNotFoundError: No module named 'langchain.vectorstores.neo4j_vector'
{ "login": "casrhub", "id": 115209085, "node_id": "U_kgDOBt3zfQ", "avatar_url": "https://avatars.githubusercontent.com/u/115209085?v=4", "gravatar_id": "", "url": "https://api.github.com/users/casrhub", "html_url": "https://github.com/casrhub", "followers_url": "https://api.github.com/users/casrhub/followers", "following_url": "https://api.github.com/users/casrhub/following{/other_user}", "gists_url": "https://api.github.com/users/casrhub/gists{/gist_id}", "starred_url": "https://api.github.com/users/casrhub/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/casrhub/subscriptions", "organizations_url": "https://api.github.com/users/casrhub/orgs", "repos_url": "https://api.github.com/users/casrhub/repos", "events_url": "https://api.github.com/users/casrhub/events{/privacy}", "received_events_url": "https://api.github.com/users/casrhub/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" } ]
closed
false
null
[]
null
2
2024-01-01T22:32:24
2024-01-02T03:25:12
2024-01-02T03:25:12
NONE
null
### Issue with current documentation: from langchain.vectorstores.neo4j_vector import Neo4jVector ModuleNotFoundError: No module named 'langchain.vectorstores.neo4j_vector' ### Idea or request for content: The existing documentation for the Neo4J Vector Index incorrectly indicates the use of "Neo4jVector" from the "langchain.vectorstores" module. However, it appears that there is no implementation of "Neo4jVector" within the Vector stores.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15383/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15383/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15381
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15381/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15381/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15381/events
https://github.com/langchain-ai/langchain/pull/15381
2,061,677,595
PR_kwDOIPDwls5jA6pN
15,381
community:qianfan endpoint support init params & remove useless params definition
{ "login": "danielhjz", "id": 5894042, "node_id": "MDQ6VXNlcjU4OTQwNDI=", "avatar_url": "https://avatars.githubusercontent.com/u/5894042?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danielhjz", "html_url": "https://github.com/danielhjz", "followers_url": "https://api.github.com/users/danielhjz/followers", "following_url": "https://api.github.com/users/danielhjz/following{/other_user}", "gists_url": "https://api.github.com/users/danielhjz/gists{/gist_id}", "starred_url": "https://api.github.com/users/danielhjz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danielhjz/subscriptions", "organizations_url": "https://api.github.com/users/danielhjz/orgs", "repos_url": "https://api.github.com/users/danielhjz/repos", "events_url": "https://api.github.com/users/danielhjz/events{/privacy}", "received_events_url": "https://api.github.com/users/danielhjz/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541141061, "node_id": "LA_kwDOIPDwls8AAAABSkcaRQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings", "name": "area: embeddings", "color": "C5DEF5", "default": false, "description": "Related to text embedding models module" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-01T17:28:48
2024-01-02T19:39:06
2024-01-01T21:12:31
CONTRIBUTOR
null
- **Description:** - support custom kwargs in object initialization. For instantance, QPS differs from multiple object(chat/completion/embedding with diverse models), for which global env is not a good choice for configuration. - **Issue:** no - **Dependencies:** no - **Twitter handle:** no @baskaryan PTAL
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15381/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15381/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15381", "html_url": "https://github.com/langchain-ai/langchain/pull/15381", "diff_url": "https://github.com/langchain-ai/langchain/pull/15381.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15381.patch", "merged_at": "2024-01-01T21:12:31" }
https://api.github.com/repos/langchain-ai/langchain/issues/15380
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15380/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15380/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15380/events
https://github.com/langchain-ai/langchain/pull/15380
2,061,648,914
PR_kwDOIPDwls5jA0q8
15,380
docs(ollama): Fix Documentation in `CallbackManager`, missing `])`
{ "login": "yhzhu99", "id": 45136233, "node_id": "MDQ6VXNlcjQ1MTM2MjMz", "avatar_url": "https://avatars.githubusercontent.com/u/45136233?v=4", "gravatar_id": "", "url": "https://api.github.com/users/yhzhu99", "html_url": "https://github.com/yhzhu99", "followers_url": "https://api.github.com/users/yhzhu99/followers", "following_url": "https://api.github.com/users/yhzhu99/following{/other_user}", "gists_url": "https://api.github.com/users/yhzhu99/gists{/gist_id}", "starred_url": "https://api.github.com/users/yhzhu99/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yhzhu99/subscriptions", "organizations_url": "https://api.github.com/users/yhzhu99/orgs", "repos_url": "https://api.github.com/users/yhzhu99/repos", "events_url": "https://api.github.com/users/yhzhu99/events{/privacy}", "received_events_url": "https://api.github.com/users/yhzhu99/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-01T16:24:36
2024-01-02T19:39:38
2024-01-01T21:17:32
CONTRIBUTOR
null
- **Description:** This PR corrects a documentation error in the `ollama` usage tutorial. Specifically, it fixes a missing `])` in the `CallbackManager()` example, ensuring that the code snippet is syntactically correct and can be successfully executed. - **Issue:** N/A - **Dependencies:** No additional dependencies are required for this change. - **Twitter handle:** My twitter is @yhzhu99
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15380/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15380/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15380", "html_url": "https://github.com/langchain-ai/langchain/pull/15380", "diff_url": "https://github.com/langchain-ai/langchain/pull/15380.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15380.patch", "merged_at": "2024-01-01T21:17:32" }
https://api.github.com/repos/langchain-ai/langchain/issues/15379
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15379/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15379/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15379/events
https://github.com/langchain-ai/langchain/pull/15379
2,061,613,236
PR_kwDOIPDwls5jAtCo
15,379
Update LLaMA2_sql_chat.ipynb
{ "login": "naveentnj", "id": 57190478, "node_id": "MDQ6VXNlcjU3MTkwNDc4", "avatar_url": "https://avatars.githubusercontent.com/u/57190478?v=4", "gravatar_id": "", "url": "https://api.github.com/users/naveentnj", "html_url": "https://github.com/naveentnj", "followers_url": "https://api.github.com/users/naveentnj/followers", "following_url": "https://api.github.com/users/naveentnj/following{/other_user}", "gists_url": "https://api.github.com/users/naveentnj/gists{/gist_id}", "starred_url": "https://api.github.com/users/naveentnj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/naveentnj/subscriptions", "organizations_url": "https://api.github.com/users/naveentnj/orgs", "repos_url": "https://api.github.com/users/naveentnj/repos", "events_url": "https://api.github.com/users/naveentnj/events{/privacy}", "received_events_url": "https://api.github.com/users/naveentnj/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-01T15:09:31
2024-01-02T19:39:53
2024-01-01T22:17:37
CONTRIBUTOR
null
Updated prompt input suggestions <!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15379/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15379/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15379", "html_url": "https://github.com/langchain-ai/langchain/pull/15379", "diff_url": "https://github.com/langchain-ai/langchain/pull/15379.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15379.patch", "merged_at": "2024-01-01T22:17:37" }
https://api.github.com/repos/langchain-ai/langchain/issues/15378
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15378/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15378/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15378/events
https://github.com/langchain-ai/langchain/pull/15378
2,061,611,207
PR_kwDOIPDwls5jAsmw
15,378
Update Multi_modal_RAG.ipynb
{ "login": "naveentnj", "id": 57190478, "node_id": "MDQ6VXNlcjU3MTkwNDc4", "avatar_url": "https://avatars.githubusercontent.com/u/57190478?v=4", "gravatar_id": "", "url": "https://api.github.com/users/naveentnj", "html_url": "https://github.com/naveentnj", "followers_url": "https://api.github.com/users/naveentnj/followers", "following_url": "https://api.github.com/users/naveentnj/following{/other_user}", "gists_url": "https://api.github.com/users/naveentnj/gists{/gist_id}", "starred_url": "https://api.github.com/users/naveentnj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/naveentnj/subscriptions", "organizations_url": "https://api.github.com/users/naveentnj/orgs", "repos_url": "https://api.github.com/users/naveentnj/repos", "events_url": "https://api.github.com/users/naveentnj/events{/privacy}", "received_events_url": "https://api.github.com/users/naveentnj/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2024-01-01T15:05:17
2024-01-02T19:40:37
2024-01-01T21:17:23
CONTRIBUTOR
null
Updated comment for better understanding <!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15378/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15378/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15378", "html_url": "https://github.com/langchain-ai/langchain/pull/15378", "diff_url": "https://github.com/langchain-ai/langchain/pull/15378.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15378.patch", "merged_at": "2024-01-01T21:17:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/15377
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15377/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15377/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15377/events
https://github.com/langchain-ai/langchain/issues/15377
2,061,541,643
I_kwDOIPDwls564KEL
15,377
[MongoDB] Async Support for Vector Store
{ "login": "mahimairaja", "id": 81288263, "node_id": "MDQ6VXNlcjgxMjg4MjYz", "avatar_url": "https://avatars.githubusercontent.com/u/81288263?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mahimairaja", "html_url": "https://github.com/mahimairaja", "followers_url": "https://api.github.com/users/mahimairaja/followers", "following_url": "https://api.github.com/users/mahimairaja/following{/other_user}", "gists_url": "https://api.github.com/users/mahimairaja/gists{/gist_id}", "starred_url": "https://api.github.com/users/mahimairaja/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mahimairaja/subscriptions", "organizations_url": "https://api.github.com/users/mahimairaja/orgs", "repos_url": "https://api.github.com/users/mahimairaja/repos", "events_url": "https://api.github.com/users/mahimairaja/events{/privacy}", "received_events_url": "https://api.github.com/users/mahimairaja/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" } ]
open
false
null
[]
null
3
2024-01-01T12:48:06
2024-01-02T06:07:07
null
NONE
null
### Feature request To add Async Client support to MongoDB Vector Stores ### Motivation Currently, Langhain works very well with the PyMongo Client but not with the Async Clients like Motor it throws error, probably I hope it may not be implemented yet? Reference: PyMongo Working Docs - https://python.langchain.com/docs/integrations/vectorstores/mongodb_atlas Async Error in Colab - https://colab.research.google.com/drive/1uBfiqoRH6rfiCCXhbxYlNxfc9ILizecl?usp=sharing ### Your contribution I am not sure.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15377/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15377/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15375
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15375/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15375/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15375/events
https://github.com/langchain-ai/langchain/pull/15375
2,061,405,948
PR_kwDOIPDwls5jAABv
15,375
mistralai[patch]: warn on stop token, fix on_llm_new_token
{ "login": "niels-garve", "id": 1102082, "node_id": "MDQ6VXNlcjExMDIwODI=", "avatar_url": "https://avatars.githubusercontent.com/u/1102082?v=4", "gravatar_id": "", "url": "https://api.github.com/users/niels-garve", "html_url": "https://github.com/niels-garve", "followers_url": "https://api.github.com/users/niels-garve/followers", "following_url": "https://api.github.com/users/niels-garve/following{/other_user}", "gists_url": "https://api.github.com/users/niels-garve/gists{/gist_id}", "starred_url": "https://api.github.com/users/niels-garve/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/niels-garve/subscriptions", "organizations_url": "https://api.github.com/users/niels-garve/orgs", "repos_url": "https://api.github.com/users/niels-garve/repos", "events_url": "https://api.github.com/users/niels-garve/events{/privacy}", "received_events_url": "https://api.github.com/users/niels-garve/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." }, { "id": 6348691034, "node_id": "LA_kwDOIPDwls8AAAABemlWWg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner", "name": "partner", "color": "ededed", "default": false, "description": null } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
6
2024-01-01T08:16:12
2024-01-10T16:52:55
2024-01-10T00:21:41
CONTRIBUTOR
null
## Description First, thanks for adding Mistral AI support to LangChain. I started to use it in my application and found that async LLM calls — both for streaming and generation — led to `Unclosed connector` warnings when executed twice or more. In `acompletion_with_retry` the Mistral AI client gets instantiated over and over again without being closed. To achieve this for both generation and streaming, I've introduced a client manager. The `ClientManager` class inherits from `AsyncCallbackHabdler` and is therefore ready to detect the end of a stream to close the client. And it's a container for client handling in case of not streamed generation. Besides this feature, I fixed two little bugs: 1. The `stop` parameter is not yet implemented in the API, or am I missing something? I thought it makes sense to keep `_create_message_dicts` and log a warning because support may be added in the future? 2. I completed the call to `on_llm_new_token`, since the library I am currently using relies on it. What do you think? Looking forward to your feedback. ## Issue * https://github.com/langchain-ai/langchain/issues/15269 ## Dependencies No dependencies required for this change ## Integration Tests Executing integration tests on the `master` branch shows multiple `Unclosed connector` warnings. **These are gone when integration tests are executed on this feature branch**. So, IMHO, there is no need to add extra tests here. ✅ `MISTRAL_API_KEY=XYZ make integration_tests` passes ## Misc **Twitter handle:** @aisneaks ✅ `make format` passes ✅ `make lint` passes ✅ `make test` passes
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15375/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15375/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15375", "html_url": "https://github.com/langchain-ai/langchain/pull/15375", "diff_url": "https://github.com/langchain-ai/langchain/pull/15375.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15375.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15374
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15374/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15374/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15374/events
https://github.com/langchain-ai/langchain/pull/15374
2,061,393,794
PR_kwDOIPDwls5i_9Tv
15,374
community: JsonRequestsWrapper
{ "login": "hanzhichao2000", "id": 230746, "node_id": "MDQ6VXNlcjIzMDc0Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/230746?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hanzhichao2000", "html_url": "https://github.com/hanzhichao2000", "followers_url": "https://api.github.com/users/hanzhichao2000/followers", "following_url": "https://api.github.com/users/hanzhichao2000/following{/other_user}", "gists_url": "https://api.github.com/users/hanzhichao2000/gists{/gist_id}", "starred_url": "https://api.github.com/users/hanzhichao2000/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hanzhichao2000/subscriptions", "organizations_url": "https://api.github.com/users/hanzhichao2000/orgs", "repos_url": "https://api.github.com/users/hanzhichao2000/repos", "events_url": "https://api.github.com/users/hanzhichao2000/events{/privacy}", "received_events_url": "https://api.github.com/users/hanzhichao2000/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
null
[]
null
2
2024-01-01T07:51:09
2024-01-15T20:27:19
2024-01-15T20:27:19
CONTRIBUTOR
null
**Description:** This new feature enhances the flexibility of pipeline integration, particularly when working with RESTful APIs. ``JsonRequestsWrapper`` allows for the decoding of JSON output, instead of the only option for text output.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15374/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15374/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15374", "html_url": "https://github.com/langchain-ai/langchain/pull/15374", "diff_url": "https://github.com/langchain-ai/langchain/pull/15374.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15374.patch", "merged_at": "2024-01-15T20:27:19" }
https://api.github.com/repos/langchain-ai/langchain/issues/15373
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15373/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15373/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15373/events
https://github.com/langchain-ai/langchain/pull/15373
2,061,357,314
PR_kwDOIPDwls5i_1RK
15,373
community: added jq tool
{ "login": "hanzhichao2000", "id": 230746, "node_id": "MDQ6VXNlcjIzMDc0Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/230746?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hanzhichao2000", "html_url": "https://github.com/hanzhichao2000", "followers_url": "https://api.github.com/users/hanzhichao2000/followers", "following_url": "https://api.github.com/users/hanzhichao2000/following{/other_user}", "gists_url": "https://api.github.com/users/hanzhichao2000/gists{/gist_id}", "starred_url": "https://api.github.com/users/hanzhichao2000/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hanzhichao2000/subscriptions", "organizations_url": "https://api.github.com/users/hanzhichao2000/orgs", "repos_url": "https://api.github.com/users/hanzhichao2000/repos", "events_url": "https://api.github.com/users/hanzhichao2000/events{/privacy}", "received_events_url": "https://api.github.com/users/hanzhichao2000/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
{ "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
2024-01-01T06:29:54
2024-01-15T20:27:34
null
CONTRIBUTOR
null
- **Description:** The JQ Integration Tool is a powerful utility that allows for advanced manipulation of JSON data within the `langchain_core` framework. By leveraging the capabilities of the JQ tool, this integration allows for complex transformations and filtering of JSON data.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15373/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15373/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15373", "html_url": "https://github.com/langchain-ai/langchain/pull/15373", "diff_url": "https://github.com/langchain-ai/langchain/pull/15373.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15373.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15372
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15372/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15372/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15372/events
https://github.com/langchain-ai/langchain/issues/15372
2,061,256,601
I_kwDOIPDwls563EeZ
15,372
Playwright Utilities Removed In 0.0.353, Documentation Not Updated
{ "login": "dbmanifest", "id": 116924774, "node_id": "U_kgDOBvghZg", "avatar_url": "https://avatars.githubusercontent.com/u/116924774?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dbmanifest", "html_url": "https://github.com/dbmanifest", "followers_url": "https://api.github.com/users/dbmanifest/followers", "following_url": "https://api.github.com/users/dbmanifest/following{/other_user}", "gists_url": "https://api.github.com/users/dbmanifest/gists{/gist_id}", "starred_url": "https://api.github.com/users/dbmanifest/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dbmanifest/subscriptions", "organizations_url": "https://api.github.com/users/dbmanifest/orgs", "repos_url": "https://api.github.com/users/dbmanifest/repos", "events_url": "https://api.github.com/users/dbmanifest/events{/privacy}", "received_events_url": "https://api.github.com/users/dbmanifest/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" } ]
open
false
null
[]
null
2
2024-01-01T02:18:08
2024-01-01T02:34:24
null
NONE
null
### System Info Langchain Version: 0.0.353 ### Who can help? _No response_ ### Information - [X] The official example notebooks/scripts - [ ] My own modified scripts ### Related Components - [ ] LLMs/Chat Models - [ ] Embedding Models - [ ] Prompts / Prompt Templates / Prompt Selectors - [ ] Output Parsers - [ ] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. Update to 0.0.353 2. Try to import create_async_playwright_browser 3. Get error ### Expected behavior 1. No Error ;D I can tell that the import was supported as recently as 0.0.350
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15372/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15372/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15371
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15371/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15371/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15371/events
https://github.com/langchain-ai/langchain/issues/15371
2,061,243,335
I_kwDOIPDwls563BPH
15,371
RAG crash: TypeError: Type is not JSON serializable: numpy.ndarray
{ "login": "allquixotic", "id": 322644, "node_id": "MDQ6VXNlcjMyMjY0NA==", "avatar_url": "https://avatars.githubusercontent.com/u/322644?v=4", "gravatar_id": "", "url": "https://api.github.com/users/allquixotic", "html_url": "https://github.com/allquixotic", "followers_url": "https://api.github.com/users/allquixotic/followers", "following_url": "https://api.github.com/users/allquixotic/following{/other_user}", "gists_url": "https://api.github.com/users/allquixotic/gists{/gist_id}", "starred_url": "https://api.github.com/users/allquixotic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/allquixotic/subscriptions", "organizations_url": "https://api.github.com/users/allquixotic/orgs", "repos_url": "https://api.github.com/users/allquixotic/repos", "events_url": "https://api.github.com/users/allquixotic/events{/privacy}", "received_events_url": "https://api.github.com/users/allquixotic/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": 5924999838, "node_id": "LA_kwDOIPDwls8AAAABYShSng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma", "name": "integration: chroma", "color": "B78AF8", "default": false, "description": "Related to ChromaDB" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" } ]
open
false
null
[]
null
6
2024-01-01T01:46:45
2024-01-04T14:47:43
null
NONE
null
### System Info - Python 3.12.1 - MacOS 14.2.1 - langchain-cli 0.0.20 from pip OR langchain-* from git master branch (commit-ish [26f84b7](https://github.com/langchain-ai/langchain/commit/26f84b74d0f7dc4d2211a1a62d47eec36cb1d726)) -- can reproduce with latest code: langchain 0.0.353, langchain-cli 0.0.20, langchain-community 0.0.7, langchain-core 0.1.4 - pandas 2.1.4 - lancedb 0.4.3 - numpy 1.26.2 ### 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 - [X] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I started with the rag-chroma-private quickstart, then modified it to my needs. I got rid of Chroma due to errors and now use a persistent LanceDB file. When I try to enter a prompt on the playground, I get a crash (see the bottom of this message). server.py: ``` from fastapi import FastAPI from fastapi.responses import RedirectResponse from langserve import add_routes from app.chain import chain as rag_private_chain app = FastAPI() @app.get("/") async def redirect_root_to_docs(): return RedirectResponse("/docs") add_routes(app, rag_private_chain, path="/rag-lancedb-private") if __name__ == "__main__": import uvicorn uvicorn.run(app, host="0.0.0.0", port=8000) ``` chain.py: ``` # Load from typing import List from langchain.chat_models import ChatOllama from langchain.document_loaders import UnstructuredMarkdownLoader from langchain.embeddings import OllamaEmbeddings from langchain.prompts import ChatPromptTemplate from langchain.text_splitter import RecursiveCharacterTextSplitter from langchain_core.output_parsers import StrOutputParser from langchain_core.pydantic_v1 import BaseModel from langchain_core.runnables import RunnableParallel, RunnablePassthrough from langchain_core.documents.base import Document import os, sys #DB import lancedb from langchain.vectorstores.lancedb import LanceDB #Chroma #from langchain.vectorstores.chroma import Chroma #from langchain.vectorstores.utils import filter_complex_metadata files_directory = "/Users/sean/Downloads/posts" all_splits = None my_emb = OllamaEmbeddings(model="llama2:70b-chat") table = None db = lancedb.connect("./lance.db") vectorstore = None #Generating the vectors only has to be done when the data changes def do_loader(): #List each file in files_directory and loop through them creating an UnstructuredMarkdownLoader for each file all_splits = [] for filename in os.listdir(files_directory): full_path = os.path.join(files_directory, filename) loader = UnstructuredMarkdownLoader(full_path, mode="elements", strategy="hi_res") data: List[Document] = loader.load() all_splits.extend(data) continue print(f"Got {len(all_splits)} documents") table = db.create_table( "rag", data=[ { "vector": my_emb.embed_query("Hello World"), "text": "Hello World", "id": "1", } ], mode="overwrite", ) #New vectorstore = LanceDB.from_documents(all_splits, my_emb, connection=table) print("Added docs to vector store") #Not calling do_loader() because I have already populated LanceDB with the vectors. table = db.open_table("rag") vectorstore = LanceDB(connection=table, embedding=my_emb) retriever = vectorstore.as_retriever() print("Loaded DB") # Prompt # Optionally, pull from the Hub # from langchain import hub # prompt = hub.pull("rlm/rag-prompt") # Or, define your own: template = """Answer the question based only on the following context: {context} Question: {question} """ prompt = ChatPromptTemplate.from_template(template) # LLM ollama_llm = "llama2:70b-chat" model = ChatOllama(model=ollama_llm) print("Created Ollama model") # RAG chain chain = ( RunnableParallel({"context": retriever, "question": RunnablePassthrough()}) | prompt | model | StrOutputParser() ) # Add typing for input class Question(BaseModel): __root__: str chain = chain.with_types(input_type=Question) print("Done with chain.py") ``` Error: ``` INFO: Application startup complete. INFO: 127.0.0.1:64594 - "GET /rag-chroma-private/playground/ HTTP/1.1" 200 OK INFO: 127.0.0.1:64594 - "GET /rag-chroma-private/playground/assets/index-52e8ab2f.css HTTP/1.1" 200 OK INFO: 127.0.0.1:64595 - "GET /rag-chroma-private/playground/assets/index-6a0f524c.js HTTP/1.1" 200 OK INFO: 127.0.0.1:64595 - "GET /rag-chroma-private/playground/favicon.ico HTTP/1.1" 200 OK INFO: 127.0.0.1:64594 - "POST /rag-chroma-private/stream_log HTTP/1.1" 200 OK ERROR: Exception in ASGI application Traceback (most recent call last): File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/sse_starlette/sse.py", line 269, in __call__ await wrap(partial(self.listen_for_disconnect, receive)) File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/sse_starlette/sse.py", line 258, in wrap await func() File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/sse_starlette/sse.py", line 215, in listen_for_disconnect message = await receive() ^^^^^^^^^^^^^^^ File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/uvicorn/protocols/http/h11_impl.py", line 538, in receive await self.message_event.wait() File "/opt/homebrew/Cellar/python@3.12/3.12.1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/locks.py", line 212, in wait await fut asyncio.exceptions.CancelledError: Cancelled by cancel scope 15bc21f40 During handling of the above exception, another exception occurred: + Exception Group Traceback (most recent call last): | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi | result = await app( # type: ignore[func-returns-value] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__ | return await self.app(scope, receive, send) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__ | await super().__call__(scope, receive, send) | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/starlette/applications.py", line 116, in __call__ | await self.middleware_stack(scope, receive, send) | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 186, in __call__ | raise exc | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 164, in __call__ | await self.app(scope, receive, _send) | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app | raise exc | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app | await app(scope, receive, sender) | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/starlette/routing.py", line 754, in __call__ | await self.middleware_stack(scope, receive, send) | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/starlette/routing.py", line 774, in app | await route.handle(scope, receive, send) | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/starlette/routing.py", line 296, in handle | await self.app(scope, receive, send) | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/starlette/routing.py", line 75, in app | await wrap_app_handling_exceptions(app, request)(scope, receive, send) | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app | raise exc | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app | await app(scope, receive, sender) | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/starlette/routing.py", line 73, in app | await response(scope, receive, send) | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/sse_starlette/sse.py", line 255, in __call__ | async with anyio.create_task_group() as task_group: | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 678, in __aexit__ | raise BaseExceptionGroup( | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/langserve/serialization.py", line 90, in default | return super().default(obj) | ^^^^^^^ | RuntimeError: super(): __class__ cell not found | | The above exception was the direct cause of the following exception: | | Traceback (most recent call last): | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/sse_starlette/sse.py", line 258, in wrap | await func() | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/sse_starlette/sse.py", line 245, in stream_response | async for data in self.body_iterator: | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/langserve/api_handler.py", line 1049, in _stream_log | "data": self._serializer.dumps(data).decode("utf-8"), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/Users/sean/dev/cc/cc/ccvenv/lib/python3.12/site-packages/langserve/serialization.py", line 168, in dumps | return orjson.dumps(obj, default=default) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | TypeError: Type is not JSON serializable: numpy.ndarray +------------------------------------ ``` ### Expected behavior It's not clear to me which part of the stack is failing, but the expected behavior is that the LLM should generate some output rather than crashing.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15371/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15371/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15370
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15370/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15370/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15370/events
https://github.com/langchain-ai/langchain/issues/15370
2,061,236,158
I_kwDOIPDwls562_e-
15,370
ValueError: 'lib/python3.11/site-packages/langchain/agents/agent_toolkits' is not in the subpath of 'lib/python3.11/site-packages/langchain_core' OR one path is relative and the other is absolute.
{ "login": "BrodyChung", "id": 4272220, "node_id": "MDQ6VXNlcjQyNzIyMjA=", "avatar_url": "https://avatars.githubusercontent.com/u/4272220?v=4", "gravatar_id": "", "url": "https://api.github.com/users/BrodyChung", "html_url": "https://github.com/BrodyChung", "followers_url": "https://api.github.com/users/BrodyChung/followers", "following_url": "https://api.github.com/users/BrodyChung/following{/other_user}", "gists_url": "https://api.github.com/users/BrodyChung/gists{/gist_id}", "starred_url": "https://api.github.com/users/BrodyChung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BrodyChung/subscriptions", "organizations_url": "https://api.github.com/users/BrodyChung/orgs", "repos_url": "https://api.github.com/users/BrodyChung/repos", "events_url": "https://api.github.com/users/BrodyChung/events{/privacy}", "received_events_url": "https://api.github.com/users/BrodyChung/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
closed
false
null
[]
null
2
2024-01-01T01:32:47
2024-01-01T02:26:06
2024-01-01T02:26:06
NONE
null
### System Info MacOS 14.0, Jupiter with Python 3.11.6 (base) ➜ llm-env pip show langchain Name: langchain Version: 0.0.353 Summary: Building applications with LLMs through composability Home-page: https://github.com/langchain-ai/langchain Author: Author-email: License: MIT Location: /lib/python3.11/site-packages Requires: aiohttp, dataclasses-json, jsonpatch, langchain-community, langchain-core, langsmith, numpy, pydantic, PyYAML, requests, SQLAlchemy, tenacity ### 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 - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction when try to execute, from langchain.agents.agent_toolkits import create_python_agent from langchain.agents import load_tools, initialize_agent from langchain.agents import AgentType from langchain.tools.python.tool import PythonREPLTool from langchain.python import PythonREPL Jupiter gave an error: ValueError: 'lib/python3.11/site-packages/langchain/agents/agent_toolkits' is not in the subpath of 'lib/python3.11/site-packages/langchain_core' OR one path is relative and the other is absolute. ### Expected behavior Import agent related thing correctly.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15370/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15370/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15369
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15369/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15369/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15369/events
https://github.com/langchain-ai/langchain/pull/15369
2,061,195,535
PR_kwDOIPDwls5i_ReI
15,369
refactor `langchain.prompts.example_selector`
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
3
2024-01-01T00:04:18
2024-01-17T19:01:24
null
COLLABORATOR
null
The `langchain.prompts.example_selector` [still holds several artifacts](https://api.python.langchain.com/en/latest/langchain_api_reference.html#module-langchain.prompts) that belongs to `community`. If they moved to `langchain_community.example_selectors`, the `langchain.prompts` namespace would be effectively removed which is great. - moved a class and afunction to `langchain_community` Note: - Previously, the `langchain.prompts.example_selector` artifacts were moved into the `langchain_core.exampe_selectors`. See the flattened namespace (`.prompts` was removed)! Similar flattening was implemented for the `langchain_core` as the `langchain_core.exampe_selectors`.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15369/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15369/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15369", "html_url": "https://github.com/langchain-ai/langchain/pull/15369", "diff_url": "https://github.com/langchain-ai/langchain/pull/15369.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15369.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15368
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15368/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15368/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15368/events
https://github.com/langchain-ai/langchain/pull/15368
2,061,189,586
PR_kwDOIPDwls5i_QYx
15,368
refactor `tools`
{ "login": "leo-gan", "id": 2256422, "node_id": "MDQ6VXNlcjIyNTY0MjI=", "avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4", "gravatar_id": "", "url": "https://api.github.com/users/leo-gan", "html_url": "https://github.com/leo-gan", "followers_url": "https://api.github.com/users/leo-gan/followers", "following_url": "https://api.github.com/users/leo-gan/following{/other_user}", "gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}", "starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions", "organizations_url": "https://api.github.com/users/leo-gan/orgs", "repos_url": "https://api.github.com/users/leo-gan/repos", "events_url": "https://api.github.com/users/leo-gan/events{/privacy}", "received_events_url": "https://api.github.com/users/leo-gan/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
open
false
null
[]
null
3
2023-12-31T23:26:43
2024-01-17T19:02:55
null
COLLABORATOR
null
The `langchain` [still holds several artifacts](https://api.python.langchain.com/en/latest/langchain_api_reference.html#module-langchain.tools) that belongs to `core`. If they moved then `langchain.tools` would be split between `core` and `community` (no `langchain` artifacts), which is nice. It effectively removes the `langchain.tools` namespace. - moved a class and functions to `core`
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15368/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15368/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15368", "html_url": "https://github.com/langchain-ai/langchain/pull/15368", "diff_url": "https://github.com/langchain-ai/langchain/pull/15368.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15368.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15366
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15366/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15366/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15366/events
https://github.com/langchain-ai/langchain/pull/15366
2,061,165,478
PR_kwDOIPDwls5i_L0k
15,366
docs: revamp redirects
{ "login": "baskaryan", "id": 22008038, "node_id": "MDQ6VXNlcjIyMDA4MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/baskaryan", "html_url": "https://github.com/baskaryan", "followers_url": "https://api.github.com/users/baskaryan/followers", "following_url": "https://api.github.com/users/baskaryan/following{/other_user}", "gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}", "starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions", "organizations_url": "https://api.github.com/users/baskaryan/orgs", "repos_url": "https://api.github.com/users/baskaryan/repos", "events_url": "https://api.github.com/users/baskaryan/events{/privacy}", "received_events_url": "https://api.github.com/users/baskaryan/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714126, "node_id": "LA_kwDOIPDwls8AAAABc3-rjg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L", "name": "size:L", "color": "BFD4F2", "default": false, "description": "This PR changes 100-499 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-31T20:48:57
2023-12-31T21:26:50
2023-12-31T21:26:49
COLLABORATOR
null
<!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15366/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15366/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15366", "html_url": "https://github.com/langchain-ai/langchain/pull/15366", "diff_url": "https://github.com/langchain-ai/langchain/pull/15366.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15366.patch", "merged_at": "2023-12-31T21:26:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/15365
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15365/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15365/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15365/events
https://github.com/langchain-ai/langchain/issues/15365
2,061,158,064
I_kwDOIPDwls562saw
15,365
Ability to set ollama serve url
{ "login": "thawkins", "id": 14537, "node_id": "MDQ6VXNlcjE0NTM3", "avatar_url": "https://avatars.githubusercontent.com/u/14537?v=4", "gravatar_id": "", "url": "https://api.github.com/users/thawkins", "html_url": "https://github.com/thawkins", "followers_url": "https://api.github.com/users/thawkins/followers", "following_url": "https://api.github.com/users/thawkins/following{/other_user}", "gists_url": "https://api.github.com/users/thawkins/gists{/gist_id}", "starred_url": "https://api.github.com/users/thawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/thawkins/subscriptions", "organizations_url": "https://api.github.com/users/thawkins/orgs", "repos_url": "https://api.github.com/users/thawkins/repos", "events_url": "https://api.github.com/users/thawkins/events{/privacy}", "received_events_url": "https://api.github.com/users/thawkins/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" } ]
open
false
null
[]
null
2
2023-12-31T20:05:56
2024-01-02T03:47:55
null
NONE
null
### Feature request The ollama integration assumes that all models are served on "localhost:11434", if the ollama service is hosted on a different machine, the integration will fail. Can we add an environment variable that if present overrides this url, so the correct url for the ollama server can be set. ### Motivation In My setup ollama sits on a separate machine that is resourced for serving LLMs. ### Your contribution I'm afraid I don't have any knowledge of python, go, cpp and rust only.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15365/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15365/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15364
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15364/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15364/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15364/events
https://github.com/langchain-ai/langchain/pull/15364
2,061,154,461
PR_kwDOIPDwls5i_Jum
15,364
Docs: Fix spelling and grammar on Concepts page
{ "login": "donovanmuller", "id": 1175891, "node_id": "MDQ6VXNlcjExNzU4OTE=", "avatar_url": "https://avatars.githubusercontent.com/u/1175891?v=4", "gravatar_id": "", "url": "https://api.github.com/users/donovanmuller", "html_url": "https://github.com/donovanmuller", "followers_url": "https://api.github.com/users/donovanmuller/followers", "following_url": "https://api.github.com/users/donovanmuller/following{/other_user}", "gists_url": "https://api.github.com/users/donovanmuller/gists{/gist_id}", "starred_url": "https://api.github.com/users/donovanmuller/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/donovanmuller/subscriptions", "organizations_url": "https://api.github.com/users/donovanmuller/orgs", "repos_url": "https://api.github.com/users/donovanmuller/repos", "events_url": "https://api.github.com/users/donovanmuller/events{/privacy}", "received_events_url": "https://api.github.com/users/donovanmuller/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-31T19:46:50
2024-01-02T19:39:55
2024-01-01T21:38:14
CONTRIBUTOR
null
- **Description:** Fix a few spelling and grammar issues - **Issue:** NA - **Dependencies:** NA - **Twitter handle:** @donovancmuller <!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15364/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15364/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15364", "html_url": "https://github.com/langchain-ai/langchain/pull/15364", "diff_url": "https://github.com/langchain-ai/langchain/pull/15364.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15364.patch", "merged_at": "2024-01-01T21:38:14" }
https://api.github.com/repos/langchain-ai/langchain/issues/15363
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15363/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15363/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15363/events
https://github.com/langchain-ai/langchain/pull/15363
2,061,152,273
PR_kwDOIPDwls5i_JSy
15,363
Langchain: Update Vectara templates
{ "login": "ofermend", "id": 1823547, "node_id": "MDQ6VXNlcjE4MjM1NDc=", "avatar_url": "https://avatars.githubusercontent.com/u/1823547?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ofermend", "html_url": "https://github.com/ofermend", "followers_url": "https://api.github.com/users/ofermend/followers", "following_url": "https://api.github.com/users/ofermend/following{/other_user}", "gists_url": "https://api.github.com/users/ofermend/gists{/gist_id}", "starred_url": "https://api.github.com/users/ofermend/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ofermend/subscriptions", "organizations_url": "https://api.github.com/users/ofermend/orgs", "repos_url": "https://api.github.com/users/ofermend/repos", "events_url": "https://api.github.com/users/ofermend/events{/privacy}", "received_events_url": "https://api.github.com/users/ofermend/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700863, "node_id": "LA_kwDOIPDwls8AAAABUpidvw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement", "name": "auto:enhancement", "color": "C2E0C6", "default": false, "description": "A large net-new component, integration, or chain. Use sparingly. The largest features" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" }, { "id": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
open
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
3
2023-12-31T19:34:41
2024-01-13T05:49:30
null
CONTRIBUTOR
null
fixed multi-query template for Vectara added self-query template for Vectara Also added prompt_name parameter to summarization CC @efriis **Twitter handle:** @ofermend
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15363/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15363/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15363", "html_url": "https://github.com/langchain-ai/langchain/pull/15363", "diff_url": "https://github.com/langchain-ai/langchain/pull/15363.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15363.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15362
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15362/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15362/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15362/events
https://github.com/langchain-ai/langchain/issues/15362
2,061,148,468
I_kwDOIPDwls562qE0
15,362
ImportError: cannot import name 'GPT4ALL' from 'langchain.llms'
{ "login": "rkuo2000", "id": 3485732, "node_id": "MDQ6VXNlcjM0ODU3MzI=", "avatar_url": "https://avatars.githubusercontent.com/u/3485732?v=4", "gravatar_id": "", "url": "https://api.github.com/users/rkuo2000", "html_url": "https://github.com/rkuo2000", "followers_url": "https://api.github.com/users/rkuo2000/followers", "following_url": "https://api.github.com/users/rkuo2000/following{/other_user}", "gists_url": "https://api.github.com/users/rkuo2000/gists{/gist_id}", "starred_url": "https://api.github.com/users/rkuo2000/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rkuo2000/subscriptions", "organizations_url": "https://api.github.com/users/rkuo2000/orgs", "repos_url": "https://api.github.com/users/rkuo2000/repos", "events_url": "https://api.github.com/users/rkuo2000/events{/privacy}", "received_events_url": "https://api.github.com/users/rkuo2000/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
3
2023-12-31T19:14:23
2024-01-02T00:54:07
null
NONE
null
### System Info langchain 0.0.353 pygpt4all 1.1.0 ### 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 from langchain.llms import GPT4ALL, LlamaCpp ### Expected behavior ImportError: cannot import name 'GPT4ALL' from 'langchain.llms' (/home/rkuo/.local/lib/python3.10/site-packages/langchain/llms/__init__.py)
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15362/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15362/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15361
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15361/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15361/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15361/events
https://github.com/langchain-ai/langchain/pull/15361
2,061,133,315
PR_kwDOIPDwls5i_Fwa
15,361
SQLDatabase drop the column names in the result.
{ "login": "dudub12", "id": 70527423, "node_id": "MDQ6VXNlcjcwNTI3NDIz", "avatar_url": "https://avatars.githubusercontent.com/u/70527423?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dudub12", "html_url": "https://github.com/dudub12", "followers_url": "https://api.github.com/users/dudub12/followers", "following_url": "https://api.github.com/users/dudub12/following{/other_user}", "gists_url": "https://api.github.com/users/dudub12/gists{/gist_id}", "starred_url": "https://api.github.com/users/dudub12/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dudub12/subscriptions", "organizations_url": "https://api.github.com/users/dudub12/orgs", "repos_url": "https://api.github.com/users/dudub12/repos", "events_url": "https://api.github.com/users/dudub12/events{/privacy}", "received_events_url": "https://api.github.com/users/dudub12/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
4
2023-12-31T18:02:32
2024-01-02T23:29:25
2024-01-02T23:29:25
CONTRIBUTOR
null
Fix for the following bug: https://github.com/langchain-ai/langchain/issues/15360
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15361/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15361/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15361", "html_url": "https://github.com/langchain-ai/langchain/pull/15361", "diff_url": "https://github.com/langchain-ai/langchain/pull/15361.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15361.patch", "merged_at": "2024-01-02T23:29:25" }
https://api.github.com/repos/langchain-ai/langchain/issues/15360
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15360/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15360/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15360/events
https://github.com/langchain-ai/langchain/issues/15360
2,061,123,042
I_kwDOIPDwls562j3i
15,360
SQLDatabase returns result without column names.
{ "login": "dudu-upstream", "id": 100126964, "node_id": "U_kgDOBffQ9A", "avatar_url": "https://avatars.githubusercontent.com/u/100126964?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dudu-upstream", "html_url": "https://github.com/dudu-upstream", "followers_url": "https://api.github.com/users/dudu-upstream/followers", "following_url": "https://api.github.com/users/dudu-upstream/following{/other_user}", "gists_url": "https://api.github.com/users/dudu-upstream/gists{/gist_id}", "starred_url": "https://api.github.com/users/dudu-upstream/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dudu-upstream/subscriptions", "organizations_url": "https://api.github.com/users/dudu-upstream/orgs", "repos_url": "https://api.github.com/users/dudu-upstream/repos", "events_url": "https://api.github.com/users/dudu-upstream/events{/privacy}", "received_events_url": "https://api.github.com/users/dudu-upstream/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" } ]
open
false
null
[]
null
1
2023-12-31T17:17:04
2023-12-31T17:19:18
null
CONTRIBUTOR
null
### System Info Python 3.9 LangChain 0.0.339 ### 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 - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction I created new instance of SQLDatabase and executed SQL queries using the 'run' method. The problem is that when I execute a simple SELECT query the result returns without the column names, only the values, and therefore I can't tell which value relates to which column. I saw in the implementation the following code in the 'run' method: ``` result = self._execute(command, fetch) # Convert columns values to string to avoid issues with sqlalchemy # truncating text res = [ tuple(truncate_word(c, length=self._max_string_length) for c in r.values()) for r in result ] ``` and I'm wondering if this data manipulation is done by intention or maybe it's a bug. ### Expected behavior For example: executes the following SQL: select id, count(*) as num_count from some_table expected result: [{'id': 383, 'num_count': 10}] actual result: [(383, 10)]
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15360/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15360/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15359
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15359/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15359/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15359/events
https://github.com/langchain-ai/langchain/issues/15359
2,061,090,976
I_kwDOIPDwls562cCg
15,359
AttributeError: 'VectorStoreRetriever' object has no attribute 'args_schema'
{ "login": "lemingshen", "id": 52651662, "node_id": "MDQ6VXNlcjUyNjUxNjYy", "avatar_url": "https://avatars.githubusercontent.com/u/52651662?v=4", "gravatar_id": "", "url": "https://api.github.com/users/lemingshen", "html_url": "https://github.com/lemingshen", "followers_url": "https://api.github.com/users/lemingshen/followers", "following_url": "https://api.github.com/users/lemingshen/following{/other_user}", "gists_url": "https://api.github.com/users/lemingshen/gists{/gist_id}", "starred_url": "https://api.github.com/users/lemingshen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lemingshen/subscriptions", "organizations_url": "https://api.github.com/users/lemingshen/orgs", "repos_url": "https://api.github.com/users/lemingshen/repos", "events_url": "https://api.github.com/users/lemingshen/events{/privacy}", "received_events_url": "https://api.github.com/users/lemingshen/received_events", "type": "User", "site_admin": false }
[ { "id": 4899412369, "node_id": "LA_kwDOIPDwls8AAAABJAcZkQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent", "name": "area: agent", "color": "BFD4F2", "default": false, "description": "Related to agents module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
2
2023-12-31T15:17:25
2024-01-03T06:53:39
null
NONE
null
### System Info - LangChain: 0.0.353 - System: Ubuntu 22.04 - Python: 3.10.12 ### Information I run the code in the quickstart part of the [document](https://python.langchain.com/docs/get_started/quickstart#agent), code: ```python from langchain.chat_models import ChatOpenAI from langchain import hub from langchain.agents import create_openai_functions_agent from langchain.agents import AgentExecutor # Get the prompt to use - you can modify this! prompt = hub.pull("hwchase17/openai-functions-agent") llm = ChatOpenAI(model="gpt-3.5-turbo", temperature=0) agent = create_openai_functions_agent(llm, tools, prompt) agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True) ``` However, the Python interpreter told me: ``` --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /tmp/ipykernel_665358/3241410387.py in <module> 7 prompt = hub.pull("hwchase17/openai-functions-agent") 8 llm = ChatOpenAI(openai_api_key=openai_api_key, model="gpt-3.5-turbo", temperature=0) ----> 9 agent = create_openai_functions_agent(llm=llm, tools=tools, prompt=prompt) 10 agent_executor = AgentExecutor(agent, tools, verbose=True) [~/.local/lib/python3.10/site-packages/langchain/agents/openai_functions_agent/base.py](https://vscode-remote+ssh-002dremote-002b158-002e132-002e9-002e210.vscode-resource.vscode-cdn.net/home/iot/Documents/langchain/~/.local/lib/python3.10/site-packages/langchain/agents/openai_functions_agent/base.py) in create_openai_functions_agent(llm, tools, prompt) 285 ) 286 llm_with_tools = llm.bind( --> 287 functions=[format_tool_to_openai_function(t) for t in tools] 288 ) 289 agent = ( [~/.local/lib/python3.10/site-packages/langchain/agents/openai_functions_agent/base.py](https://vscode-remote+ssh-002dremote-002b158-002e132-002e9-002e210.vscode-resource.vscode-cdn.net/home/iot/Documents/langchain/~/.local/lib/python3.10/site-packages/langchain/agents/openai_functions_agent/base.py) in <listcomp>(.0) 285 ) 286 llm_with_tools = llm.bind( --> 287 functions=[format_tool_to_openai_function(t) for t in tools] 288 ) 289 agent = ( [~/.local/lib/python3.10/site-packages/langchain_community/tools/convert_to_openai.py](https://vscode-remote+ssh-002dremote-002b158-002e132-002e9-002e210.vscode-resource.vscode-cdn.net/home/iot/Documents/langchain/~/.local/lib/python3.10/site-packages/langchain_community/tools/convert_to_openai.py) in format_tool_to_openai_function(tool) 10 def format_tool_to_openai_function(tool: BaseTool) -> FunctionDescription: 11 """Format tool into the OpenAI function API.""" ---> 12 if tool.args_schema: 13 return convert_pydantic_to_openai_function( 14 tool.args_schema, name=tool.name, description=tool.description AttributeError: 'VectorStoreRetriever' object has no attribute 'args_schema' ``` It seems that some packages have version incompatibility. - [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 - [X] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction 1. Directly run the following code: ``` from langchain.chat_models import ChatOpenAI from langchain import hub from langchain.agents import create_openai_functions_agent from langchain.agents import AgentExecutor # Get the prompt to use - you can modify this! prompt = hub.pull("hwchase17/openai-functions-agent") llm = ChatOpenAI(model="gpt-3.5-turbo", temperature=0) agent = create_openai_functions_agent(llm, tools, prompt) agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True) ``` ### Expected behavior It should run successfully without any error report.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15359/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15359/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15358
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15358/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15358/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15358/events
https://github.com/langchain-ai/langchain/pull/15358
2,061,084,185
PR_kwDOIPDwls5i-80r
15,358
Langchain_community: Small Fix when loading facebook messages
{ "login": "keenborder786", "id": 45242107, "node_id": "MDQ6VXNlcjQ1MjQyMTA3", "avatar_url": "https://avatars.githubusercontent.com/u/45242107?v=4", "gravatar_id": "", "url": "https://api.github.com/users/keenborder786", "html_url": "https://github.com/keenborder786", "followers_url": "https://api.github.com/users/keenborder786/followers", "following_url": "https://api.github.com/users/keenborder786/following{/other_user}", "gists_url": "https://api.github.com/users/keenborder786/gists{/gist_id}", "starred_url": "https://api.github.com/users/keenborder786/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/keenborder786/subscriptions", "organizations_url": "https://api.github.com/users/keenborder786/orgs", "repos_url": "https://api.github.com/users/keenborder786/repos", "events_url": "https://api.github.com/users/keenborder786/events{/privacy}", "received_events_url": "https://api.github.com/users/keenborder786/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 6232714104, "node_id": "LA_kwDOIPDwls8AAAABc3-reA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS", "name": "size:XS", "color": "C2E0C6", "default": false, "description": "This PR changes 0-9 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-31T14:52:58
2024-01-15T19:22:41
2024-01-02T02:52:23
CONTRIBUTOR
null
- **Description:** SingleFileFacebookMessengerChatLoader did not handle the case for when messages had stickers and/or photos so fixed that. - **Issue:** #15356
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15358/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15358/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15358", "html_url": "https://github.com/langchain-ai/langchain/pull/15358", "diff_url": "https://github.com/langchain-ai/langchain/pull/15358.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15358.patch", "merged_at": "2024-01-02T02:52:23" }
https://api.github.com/repos/langchain-ai/langchain/issues/15357
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15357/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15357/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15357/events
https://github.com/langchain-ai/langchain/pull/15357
2,061,030,736
PR_kwDOIPDwls5i-zBO
15,357
Batch update of alt text and title attributes for images in md/mdx files across repo
{ "login": "jonathanalgar", "id": 93204286, "node_id": "U_kgDOBY4vPg", "avatar_url": "https://avatars.githubusercontent.com/u/93204286?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jonathanalgar", "html_url": "https://github.com/jonathanalgar", "followers_url": "https://api.github.com/users/jonathanalgar/followers", "following_url": "https://api.github.com/users/jonathanalgar/following{/other_user}", "gists_url": "https://api.github.com/users/jonathanalgar/gists{/gist_id}", "starred_url": "https://api.github.com/users/jonathanalgar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jonathanalgar/subscriptions", "organizations_url": "https://api.github.com/users/jonathanalgar/orgs", "repos_url": "https://api.github.com/users/jonathanalgar/repos", "events_url": "https://api.github.com/users/jonathanalgar/events{/privacy}", "received_events_url": "https://api.github.com/users/jonathanalgar/received_events", "type": "User", "site_admin": false }
[ { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6154420538, "node_id": "LA_kwDOIPDwls8AAAABbtUBOg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/template", "name": "template", "color": "145FB1", "default": false, "description": "" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
{ "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false }
[ { "login": "efriis", "id": 9557659, "node_id": "MDQ6VXNlcjk1NTc2NTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4", "gravatar_id": "", "url": "https://api.github.com/users/efriis", "html_url": "https://github.com/efriis", "followers_url": "https://api.github.com/users/efriis/followers", "following_url": "https://api.github.com/users/efriis/following{/other_user}", "gists_url": "https://api.github.com/users/efriis/gists{/gist_id}", "starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/efriis/subscriptions", "organizations_url": "https://api.github.com/users/efriis/orgs", "repos_url": "https://api.github.com/users/efriis/repos", "events_url": "https://api.github.com/users/efriis/events{/privacy}", "received_events_url": "https://api.github.com/users/efriis/received_events", "type": "User", "site_admin": false } ]
null
4
2023-12-31T11:33:26
2024-01-12T22:37:49
2024-01-12T22:37:49
CONTRIBUTOR
null
**Description:** Batch update of alt text and title attributes for images in `md` & `mdx` files across the repo using [alttexter](https://github.com/jonathanalgar/alttexter)/[alttexter-ghclient](https://github.com/jonathanalgar/alttexter-ghclient) (built using LangChain/LangSmith). **Limitation:** cannot update `ipynb` files because of [this issue](https://github.com/langchain-ai/langchain/pull/15357#issuecomment-1885037250). Can revisit when Docusaurus is bumped to v3. I checked all the generated alt texts and titles and didn't find any technical inaccuracies. That's not to say they're _perfect_, but a lot better than what's there currently. [Deployed](https://langchain-819yf1tbk-langchain.vercel.app/docs/modules/model_io/) image example: ![chrome_yZQ7BF2GTj](https://github.com/langchain-ai/langchain/assets/93204286/43a9a4d4-70fd-41c4-8978-b6240ff63ffa) You can see LangSmith traces for all the calls out to the LLM in the PRs merged into this one: * https://github.com/jonathanalgar/langchain/pull/6 * https://github.com/jonathanalgar/langchain/pull/4 * https://github.com/jonathanalgar/langchain/pull/3 I didn't add the following files to the PR as the images already have OK alt texts: * https://github.com/langchain-ai/langchain/blob/27dca2d92fbd9c956a1eac7cf885a0ed060ca9ff/docs/docs/integrations/providers/argilla.mdx#L3 * https://github.com/langchain-ai/langchain/blob/27dca2d92fbd9c956a1eac7cf885a0ed060ca9ff/docs/docs/integrations/providers/apify.mdx#L11
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15357/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15357/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15357", "html_url": "https://github.com/langchain-ai/langchain/pull/15357", "diff_url": "https://github.com/langchain-ai/langchain/pull/15357.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15357.patch", "merged_at": "2024-01-12T22:37:49" }
https://api.github.com/repos/langchain-ai/langchain/issues/15356
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15356/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15356/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15356/events
https://github.com/langchain-ai/langchain/issues/15356
2,061,000,149
I_kwDOIPDwls562F3V
15,356
SingleFileFacebookMessengerChatLoader fails when the chat contains non-text contents such as stickers and photos.
{ "login": "th4tkh13m", "id": 29520244, "node_id": "MDQ6VXNlcjI5NTIwMjQ0", "avatar_url": "https://avatars.githubusercontent.com/u/29520244?v=4", "gravatar_id": "", "url": "https://api.github.com/users/th4tkh13m", "html_url": "https://github.com/th4tkh13m", "followers_url": "https://api.github.com/users/th4tkh13m/followers", "following_url": "https://api.github.com/users/th4tkh13m/following{/other_user}", "gists_url": "https://api.github.com/users/th4tkh13m/gists{/gist_id}", "starred_url": "https://api.github.com/users/th4tkh13m/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/th4tkh13m/subscriptions", "organizations_url": "https://api.github.com/users/th4tkh13m/orgs", "repos_url": "https://api.github.com/users/th4tkh13m/repos", "events_url": "https://api.github.com/users/th4tkh13m/events{/privacy}", "received_events_url": "https://api.github.com/users/th4tkh13m/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-12-31T09:31:07
2024-01-02T14:36:02
2024-01-02T14:36:01
NONE
null
### System Info langchain 0.0.353 Python 3.10.13 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:24:38) [MSC v.1916 64 bit (AMD64)] Windows 11 ### 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 - [X] Document Loaders - [ ] Vector Stores / Retrievers - [ ] Memory - [ ] Agents / Agent Executors - [ ] Tools / Toolkits - [ ] Chains - [ ] Callbacks/Tracing - [ ] Async ### Reproduction ```python from langchain.chat_models.openai import ChatOpenAI from langchain_community.chat_loaders.facebook_messenger import FolderFacebookMessengerChatLoader, SingleFileFacebookMessengerChatLoader from pathlib import Path import os chat_file = Path("data/my-fb-folder/messages/inbox/message-dir/message_1.json") loader = SingleFileFacebookMessengerChatLoader(chat_file) loader.load() ``` Stacktrace: ``` --------------------------------------------------------------------------- KeyError Traceback (most recent call last) Cell In[11], [line 8](vscode-notebook-cell:?execution_count=11&line=8) [6](vscode-notebook-cell:?execution_count=11&line=6) chat_file = Path("data/my-fb-folder/your_activity_across_facebook/messages/inbox/message-dir/message_1.json") [7](vscode-notebook-cell:?execution_count=11&line=7) loader = SingleFileFacebookMessengerChatLoader(chat_file) ----> [8](vscode-notebook-cell:?execution_count=11&line=8) loader.load() File [c:\Users\th4tkh13m\miniconda3\envs\rag\lib\site-packages\langchain_community\chat_loaders\base.py:16](file:///C:/Users/th4tkh13m/miniconda3/envs/rag/lib/site-packages/langchain_community/chat_loaders/base.py:16), in BaseChatLoader.load(self) [14](file:///C:/Users/th4tkh13m/miniconda3/envs/rag/lib/site-packages/langchain_community/chat_loaders/base.py:14) def load(self) -> List[ChatSession]: [15](file:///C:/Users/th4tkh13m/miniconda3/envs/rag/lib/site-packages/langchain_community/chat_loaders/base.py:15) """Eagerly load the chat sessions into memory.""" ---> [16](file:///C:/Users/th4tkh13m/miniconda3/envs/rag/lib/site-packages/langchain_community/chat_loaders/base.py:16) return list(self.lazy_load()) File [c:\Users\th4tkh13m\miniconda3\envs\rag\lib\site-packages\langchain_community\chat_loaders\facebook_messenger.py:43](file:///C:/Users/th4tkh13m/miniconda3/envs/rag/lib/site-packages/langchain_community/chat_loaders/facebook_messenger.py:43), in SingleFileFacebookMessengerChatLoader.lazy_load(self) [39](file:///C:/Users/th4tkh13m/miniconda3/envs/rag/lib/site-packages/langchain_community/chat_loaders/facebook_messenger.py:39) messages = [] [40](file:///C:/Users/th4tkh13m/miniconda3/envs/rag/lib/site-packages/langchain_community/chat_loaders/facebook_messenger.py:40) for m in sorted_data: [41](file:///C:/Users/th4tkh13m/miniconda3/envs/rag/lib/site-packages/langchain_community/chat_loaders/facebook_messenger.py:41) messages.append( [42](file:///C:/Users/th4tkh13m/miniconda3/envs/rag/lib/site-packages/langchain_community/chat_loaders/facebook_messenger.py:42) HumanMessage( ---> [43](file:///C:/Users/th4tkh13m/miniconda3/envs/rag/lib/site-packages/langchain_community/chat_loaders/facebook_messenger.py:43) content=m["content"], additional_kwargs={"sender": m["sender_name"]} [44](file:///C:/Users/th4tkh13m/miniconda3/envs/rag/lib/site-packages/langchain_community/chat_loaders/facebook_messenger.py:44) ) [45](file:///C:/Users/th4tkh13m/miniconda3/envs/rag/lib/site-packages/langchain_community/chat_loaders/facebook_messenger.py:45) ) [46](file:///C:/Users/th4tkh13m/miniconda3/envs/rag/lib/site-packages/langchain_community/chat_loaders/facebook_messenger.py:46) yield ChatSession(messages=messages) KeyError: 'content' ``` ### Expected behavior The chat message should be loaded normally.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15356/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15356/timeline
null
completed
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15355
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15355/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15355/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15355/events
https://github.com/langchain-ai/langchain/issues/15355
2,060,988,370
I_kwDOIPDwls562C_S
15,355
AzureSearch semantic_hybrid_search fails due to hardcoding of metadata fields
{ "login": "nohanaga", "id": 62050060, "node_id": "MDQ6VXNlcjYyMDUwMDYw", "avatar_url": "https://avatars.githubusercontent.com/u/62050060?v=4", "gravatar_id": "", "url": "https://api.github.com/users/nohanaga", "html_url": "https://github.com/nohanaga", "followers_url": "https://api.github.com/users/nohanaga/followers", "following_url": "https://api.github.com/users/nohanaga/following{/other_user}", "gists_url": "https://api.github.com/users/nohanaga/gists{/gist_id}", "starred_url": "https://api.github.com/users/nohanaga/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nohanaga/subscriptions", "organizations_url": "https://api.github.com/users/nohanaga/orgs", "repos_url": "https://api.github.com/users/nohanaga/repos", "events_url": "https://api.github.com/users/nohanaga/events{/privacy}", "received_events_url": "https://api.github.com/users/nohanaga/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" } ]
open
false
null
[]
null
1
2023-12-31T08:43:04
2023-12-31T08:48:30
null
NONE
null
### System Info azure-search-documents==11.4.0b8 langchain==0.0.352 ### 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 I have my own search index with no `metadata` field. #### Code ```python from langchain.vectorstores.azuresearch import AzureSearch vector_store: AzureSearch = AzureSearch( azure_search_endpoint=vector_store_address, azure_search_key=vector_store_password, index_name=index_name, embedding_function=embeddings.embed_query, semantic_configuration_name="default" ) query = "How many employees does Contoso Electronics have?" docs = vector_store.semantic_hybrid_search( query=query, search_type="semantic_hybrid", ) print(docs[0]) ``` #### Stack trace ``` --------------------------------------------------------------------------- KeyError Traceback (most recent call last) File \lib\site-packages\langchain_community\vectorstores\azuresearch.py:656, in <listcomp>(.0) 622 semantic_answers_dict[semantic_answer.key] = { 623 "text": semantic_answer.text, 624 "highlights": semantic_answer.highlights, 625 } 626 # Convert results to Document objects 627 docs = [ 628 ( 629 Document( 630 page_content=result.pop(FIELDS_CONTENT), 631 metadata={ 632 **( 633 {FIELDS_ID: result.pop(FIELDS_ID)} 634 if FIELDS_ID in result 635 else {} 636 ), 637 **( 638 json.loads(result[FIELDS_METADATA]) 639 if FIELDS_METADATA in result 640 else { 641 k: v 642 for k, v in result.items() 643 if k != FIELDS_CONTENT_VECTOR 644 } 645 ), 646 **{ 647 "captions": { 648 "text": result.get("@search.captions", [{}])[0].text, 649 "highlights": result.get("@search.captions", [{}])[ 650 0 651 ].highlights, 652 } 653 if result.get("@search.captions") 654 else {}, 655 "answers": semantic_answers_dict.get( --> 656 json.loads(result["metadata"]).get("key"), "" 657 ), 658 }, 659 }, 660 ), 661 float(result["@search.score"]), 662 float(result["@search.reranker_score"]), 663 ) 664 for result in results 665 ] 666 return docs KeyError: 'metadata' ``` ### Expected behavior I get search results from Azure AI Search. This error is caused by the hardcoding of `metadata` field name, such as `result["metadata"]` in line 656 of `langchain\libs\community\langchain_community\vectorstores\azuresearch.py`. Therefore, performing a search on an Azure AI Search index that does not have this field will fail.
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15355/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15355/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15354
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15354/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15354/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15354/events
https://github.com/langchain-ai/langchain/pull/15354
2,060,944,143
PR_kwDOIPDwls5i-j9M
15,354
Batch update of alt text and title attributes across documentation
{ "login": "jonathanalgar", "id": 93204286, "node_id": "U_kgDOBY4vPg", "avatar_url": "https://avatars.githubusercontent.com/u/93204286?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jonathanalgar", "html_url": "https://github.com/jonathanalgar", "followers_url": "https://api.github.com/users/jonathanalgar/followers", "following_url": "https://api.github.com/users/jonathanalgar/following{/other_user}", "gists_url": "https://api.github.com/users/jonathanalgar/gists{/gist_id}", "starred_url": "https://api.github.com/users/jonathanalgar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jonathanalgar/subscriptions", "organizations_url": "https://api.github.com/users/jonathanalgar/orgs", "repos_url": "https://api.github.com/users/jonathanalgar/repos", "events_url": "https://api.github.com/users/jonathanalgar/events{/privacy}", "received_events_url": "https://api.github.com/users/jonathanalgar/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-31T05:13:29
2023-12-31T05:13:46
2023-12-31T05:13:44
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15354/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15354/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15354", "html_url": "https://github.com/langchain-ai/langchain/pull/15354", "diff_url": "https://github.com/langchain-ai/langchain/pull/15354.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15354.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15353
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15353/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15353/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15353/events
https://github.com/langchain-ai/langchain/pull/15353
2,060,934,960
PR_kwDOIPDwls5i-idr
15,353
Batch update of alt text and title attributes across documentation
{ "login": "jonathanalgar", "id": 93204286, "node_id": "U_kgDOBY4vPg", "avatar_url": "https://avatars.githubusercontent.com/u/93204286?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jonathanalgar", "html_url": "https://github.com/jonathanalgar", "followers_url": "https://api.github.com/users/jonathanalgar/followers", "following_url": "https://api.github.com/users/jonathanalgar/following{/other_user}", "gists_url": "https://api.github.com/users/jonathanalgar/gists{/gist_id}", "starred_url": "https://api.github.com/users/jonathanalgar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jonathanalgar/subscriptions", "organizations_url": "https://api.github.com/users/jonathanalgar/orgs", "repos_url": "https://api.github.com/users/jonathanalgar/repos", "events_url": "https://api.github.com/users/jonathanalgar/events{/privacy}", "received_events_url": "https://api.github.com/users/jonathanalgar/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700892, "node_id": "LA_kwDOIPDwls8AAAABUpid3A", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor", "name": "auto:refactor", "color": "D4C5F9", "default": false, "description": "A large refactor of a feature(s) or restructuring of many files" }, { "id": 6232714144, "node_id": "LA_kwDOIPDwls8AAAABc3-roA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL", "name": "size:XXL", "color": "5319E7", "default": false, "description": "This PR changes 1000+ lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-31T04:23:42
2023-12-31T04:39:11
2023-12-31T04:35:07
CONTRIBUTOR
null
<!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15353/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15353/timeline
null
null
true
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15353", "html_url": "https://github.com/langchain-ai/langchain/pull/15353", "diff_url": "https://github.com/langchain-ai/langchain/pull/15353.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15353.patch", "merged_at": null }
https://api.github.com/repos/langchain-ai/langchain/issues/15352
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15352/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15352/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15352/events
https://github.com/langchain-ai/langchain/pull/15352
2,060,919,650
PR_kwDOIPDwls5i-f7y
15,352
Langchain: Fix quickstart doc code not working
{ "login": "AhmedHathout", "id": 25286493, "node_id": "MDQ6VXNlcjI1Mjg2NDkz", "avatar_url": "https://avatars.githubusercontent.com/u/25286493?v=4", "gravatar_id": "", "url": "https://api.github.com/users/AhmedHathout", "html_url": "https://github.com/AhmedHathout", "followers_url": "https://api.github.com/users/AhmedHathout/followers", "following_url": "https://api.github.com/users/AhmedHathout/following{/other_user}", "gists_url": "https://api.github.com/users/AhmedHathout/gists{/gist_id}", "starred_url": "https://api.github.com/users/AhmedHathout/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AhmedHathout/subscriptions", "organizations_url": "https://api.github.com/users/AhmedHathout/orgs", "repos_url": "https://api.github.com/users/AhmedHathout/repos", "events_url": "https://api.github.com/users/AhmedHathout/events{/privacy}", "received_events_url": "https://api.github.com/users/AhmedHathout/received_events", "type": "User", "site_admin": false }
[ { "id": 5454193895, "node_id": "LA_kwDOIPDwls8AAAABRRhk5w", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm", "name": "lgtm", "color": "0E8A16", "default": false, "description": "" }, { "id": 5541144676, "node_id": "LA_kwDOIPDwls8AAAABSkcoZA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader", "name": "area: doc loader", "color": "D4C5F9", "default": false, "description": "Related to document loader module (not documentation)" }, { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6232714108, "node_id": "LA_kwDOIPDwls8AAAABc3-rfA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S", "name": "size:S", "color": "BFDADC", "default": false, "description": "This PR changes 10-29 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-31T02:58:53
2024-01-02T19:41:26
2024-01-01T21:38:33
CONTRIBUTOR
null
The quickstart doc is missing a few but very simple things that without them, the code does not work. This PR fixes that by - Adding commands to install `tiktoken` and `langchainhub` - Adds a comma between 2 parameters for one of the methods
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15352/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15352/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15352", "html_url": "https://github.com/langchain-ai/langchain/pull/15352", "diff_url": "https://github.com/langchain-ai/langchain/pull/15352.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15352.patch", "merged_at": "2024-01-01T21:38:33" }
https://api.github.com/repos/langchain-ai/langchain/issues/15351
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15351/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15351/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15351/events
https://github.com/langchain-ai/langchain/pull/15351
2,060,898,528
PR_kwDOIPDwls5i-cGf
15,351
Calculate trace_id and dotted_order client side
{ "login": "agola11", "id": 9536492, "node_id": "MDQ6VXNlcjk1MzY0OTI=", "avatar_url": "https://avatars.githubusercontent.com/u/9536492?v=4", "gravatar_id": "", "url": "https://api.github.com/users/agola11", "html_url": "https://github.com/agola11", "followers_url": "https://api.github.com/users/agola11/followers", "following_url": "https://api.github.com/users/agola11/following{/other_user}", "gists_url": "https://api.github.com/users/agola11/gists{/gist_id}", "starred_url": "https://api.github.com/users/agola11/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/agola11/subscriptions", "organizations_url": "https://api.github.com/users/agola11/orgs", "repos_url": "https://api.github.com/users/agola11/repos", "events_url": "https://api.github.com/users/agola11/events{/privacy}", "received_events_url": "https://api.github.com/users/agola11/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700873, "node_id": "LA_kwDOIPDwls8AAAABUpidyQ", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement", "name": "auto:improvement", "color": "FBCA04", "default": false, "description": "Medium size change to existing code to handle new use-cases" }, { "id": 6221234145, "node_id": "LA_kwDOIPDwls8AAAABctB_4Q", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve", "name": "area: langserve", "color": "0FA0C8", "default": false, "description": "" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-31T00:49:41
2024-01-02T18:13:35
2024-01-02T18:13:34
COLLABORATOR
null
<!-- Thank you for contributing to LangChain! Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified. Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes if applicable, - **Dependencies:** any dependencies required for this change, - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/ If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15351/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15351/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15351", "html_url": "https://github.com/langchain-ai/langchain/pull/15351", "diff_url": "https://github.com/langchain-ai/langchain/pull/15351.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15351.patch", "merged_at": "2024-01-02T18:13:34" }
https://api.github.com/repos/langchain-ai/langchain/issues/15350
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15350/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15350/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15350/events
https://github.com/langchain-ai/langchain/issues/15350
2,060,892,236
I_kwDOIPDwls561rhM
15,350
Issue: output templates in langchain
{ "login": "hherpa", "id": 146547175, "node_id": "U_kgDOCLwh5w", "avatar_url": "https://avatars.githubusercontent.com/u/146547175?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hherpa", "html_url": "https://github.com/hherpa", "followers_url": "https://api.github.com/users/hherpa/followers", "following_url": "https://api.github.com/users/hherpa/following{/other_user}", "gists_url": "https://api.github.com/users/hherpa/gists{/gist_id}", "starred_url": "https://api.github.com/users/hherpa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hherpa/subscriptions", "organizations_url": "https://api.github.com/users/hherpa/orgs", "repos_url": "https://api.github.com/users/hherpa/repos", "events_url": "https://api.github.com/users/hherpa/events{/privacy}", "received_events_url": "https://api.github.com/users/hherpa/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700848, "node_id": "LA_kwDOIPDwls8AAAABUpidsA", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question", "name": "auto:question", "color": "BFD4F2", "default": false, "description": "A specific question about the codebase, product, project, or how to use a feature" }, { "id": 5820539098, "node_id": "LA_kwDOIPDwls8AAAABWu5g2g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models", "name": "area: models", "color": "bfdadc", "default": false, "description": "Related to LLMs or chat model modules" } ]
open
false
null
[]
null
1
2023-12-31T00:18:00
2023-12-31T00:24:06
null
NONE
null
### Issue you'd like to raise. How can I make output templates in langchain? That is, for example, I throw a request for AI to write a joke, but with strict adherence to the template [set-up, punchline] and therefore get as a result: ``` Set-up: ... Punchline: ... ``` and nothing more ### Suggestion: _No response_
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15350/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15350/timeline
null
null
null
null
https://api.github.com/repos/langchain-ai/langchain/issues/15349
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15349/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15349/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15349/events
https://github.com/langchain-ai/langchain/pull/15349
2,060,871,215
PR_kwDOIPDwls5i-XHU
15,349
[docs] update agent cookbook lcel
{ "login": "hwchase17", "id": 11986836, "node_id": "MDQ6VXNlcjExOTg2ODM2", "avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hwchase17", "html_url": "https://github.com/hwchase17", "followers_url": "https://api.github.com/users/hwchase17/followers", "following_url": "https://api.github.com/users/hwchase17/following{/other_user}", "gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}", "starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions", "organizations_url": "https://api.github.com/users/hwchase17/orgs", "repos_url": "https://api.github.com/users/hwchase17/repos", "events_url": "https://api.github.com/users/hwchase17/events{/privacy}", "received_events_url": "https://api.github.com/users/hwchase17/received_events", "type": "User", "site_admin": false }
[ { "id": 5680700918, "node_id": "LA_kwDOIPDwls8AAAABUpid9g", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation", "name": "auto:documentation", "color": "C5DEF5", "default": false, "description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder" }, { "id": 6134259614, "node_id": "LA_kwDOIPDwls8AAAABbaFfng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20lcel", "name": "area: lcel", "color": "38B1E8", "default": false, "description": "" }, { "id": 6232714119, "node_id": "LA_kwDOIPDwls8AAAABc3-rhw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M", "name": "size:M", "color": "C5DEF5", "default": false, "description": "This PR changes 30-99 lines, ignoring generated files." } ]
closed
false
null
[]
null
1
2023-12-30T22:18:47
2024-01-01T21:31:42
2024-01-01T21:31:41
COLLABORATOR
null
null
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15349/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15349/timeline
null
null
false
{ "url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15349", "html_url": "https://github.com/langchain-ai/langchain/pull/15349", "diff_url": "https://github.com/langchain-ai/langchain/pull/15349.diff", "patch_url": "https://github.com/langchain-ai/langchain/pull/15349.patch", "merged_at": "2024-01-01T21:31:41" }
https://api.github.com/repos/langchain-ai/langchain/issues/15348
https://api.github.com/repos/langchain-ai/langchain
https://api.github.com/repos/langchain-ai/langchain/issues/15348/labels{/name}
https://api.github.com/repos/langchain-ai/langchain/issues/15348/comments
https://api.github.com/repos/langchain-ai/langchain/issues/15348/events
https://github.com/langchain-ai/langchain/issues/15348
2,060,823,804
I_kwDOIPDwls561az8
15,348
Chromadb connection error
{ "login": "ahron1", "id": 85363537, "node_id": "MDQ6VXNlcjg1MzYzNTM3", "avatar_url": "https://avatars.githubusercontent.com/u/85363537?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ahron1", "html_url": "https://github.com/ahron1", "followers_url": "https://api.github.com/users/ahron1/followers", "following_url": "https://api.github.com/users/ahron1/following{/other_user}", "gists_url": "https://api.github.com/users/ahron1/gists{/gist_id}", "starred_url": "https://api.github.com/users/ahron1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ahron1/subscriptions", "organizations_url": "https://api.github.com/users/ahron1/orgs", "repos_url": "https://api.github.com/users/ahron1/repos", "events_url": "https://api.github.com/users/ahron1/events{/privacy}", "received_events_url": "https://api.github.com/users/ahron1/received_events", "type": "User", "site_admin": false }
[ { "id": 5541432778, "node_id": "LA_kwDOIPDwls8AAAABSkuNyg", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store", "name": "area: vector store", "color": "D4C5F9", "default": false, "description": "Related to vector store module" }, { "id": 5680700839, "node_id": "LA_kwDOIPDwls8AAAABUpidpw", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug", "name": "auto:bug", "color": "E99695", "default": false, "description": "Related to a bug, vulnerability, unexpected error with an existing feature" }, { "id": 5924999838, "node_id": "LA_kwDOIPDwls8AAAABYShSng", "url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma", "name": "integration: chroma", "color": "B78AF8", "default": false, "description": "Related to ChromaDB" } ]
closed
false
null
[]
null
3
2023-12-30T18:38:19
2023-12-31T12:17:59
2023-12-31T12:17:59
NONE
null
### System Info Langchain 0.0.353 Python 3.10.12 System Ubuntu 22.04 ### 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 I am trying to modify and run the example on [this page](https://python.langchain.com/docs/use_cases/question_answering/). I am modifying it slightly to use a different embedding tool from the Ollama model. The last line, which should create the vector store, in the below snippet crashes. ``` import bs4 from langchain import hub from langchain.chat_models import ChatOpenAI from langchain.document_loaders import WebBaseLoader from langchain.embeddings import OllamaEmbeddings from langchain.schema import StrOutputParser from langchain.text_splitter import RecursiveCharacterTextSplitter from langchain.vectorstores import Chroma from langchain_core.runnables import RunnablePassthrough embeddings_open = OllamaEmbeddings(model="mistral") loader = WebBaseLoader( web_paths=("https://lilianweng.github.io/posts/2023-06-23-agent/",), bs_kwargs=dict( parse_only=bs4.SoupStrainer( class_=("post-content", "post-title", "post-header") ) ), ) docs = loader.load() text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200) splits = text_splitter.split_documents(docs) vectorstore = Chroma.from_documents(documents=splits, embedding=embeddings_open) ``` ### Expected behavior I would expect the code to work, unless I'm missing something important. Instead, I get this error. Any clues are most appreciated. I'm sure it is something simple I overlooked. ``` >>> vectorstore = Chroma.from_documents(documents=splits, embedding = embeddings_open) Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 169, in _new_conn conn = connection.create_connection( File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 96, in create_connection raise err File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 86, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 756, in urlopen retries = retries.increment( File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 574, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=11434): Max retries exceeded with url: /api/embeddings (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d11256bc0>: Failed to establish a new connection: [Errno 111] Connection refused')) ```
{ "url": "https://api.github.com/repos/langchain-ai/langchain/issues/15348/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }
https://api.github.com/repos/langchain-ai/langchain/issues/15348/timeline
null
completed
null
null