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/14236 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14236/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14236/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14236/events | https://github.com/langchain-ai/langchain/pull/14236 | 2,024,242,477 | PR_kwDOIPDwls5hEzax | 14,236 | Fixed OpenAIFunctionsAgent not returning when receiving AgentFinish | {
"login": "lh0x00",
"id": 9839768,
"node_id": "MDQ6VXNlcjk4Mzk3Njg=",
"avatar_url": "https://avatars.githubusercontent.com/u/9839768?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lh0x00",
"html_url": "https://github.com/lh0x00",
"followers_url": "https://api.github.com/users/lh0x00/followers",
"following_url": "https://api.github.com/users/lh0x00/following{/other_user}",
"gists_url": "https://api.github.com/users/lh0x00/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lh0x00/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lh0x00/subscriptions",
"organizations_url": "https://api.github.com/users/lh0x00/orgs",
"repos_url": "https://api.github.com/users/lh0x00/repos",
"events_url": "https://api.github.com/users/lh0x00/events{/privacy}",
"received_events_url": "https://api.github.com/users/lh0x00/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-04T16:23:18 | 2023-12-04T19:43:05 | 2023-12-04T19:43:05 | CONTRIBUTOR | null | **Description:** The way the condition is checked in the `return_stopped_response` function of `OpenAIAgent` may not be correct, when the value returned is `AgentFinish` from the tools it does not work properly.
Thanks for review, @baskaryan, @eyurtsev, @hwchase17. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14236/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14236/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14236",
"html_url": "https://github.com/langchain-ai/langchain/pull/14236",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14236.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14236.patch",
"merged_at": "2023-12-04T19:43:05"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14234 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14234/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14234/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14234/events | https://github.com/langchain-ai/langchain/pull/14234 | 2,024,219,747 | PR_kwDOIPDwls5hEudl | 14,234 | deepinfra support for chat_models | {
"login": "ichernev",
"id": 757060,
"node_id": "MDQ6VXNlcjc1NzA2MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/757060?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ichernev",
"html_url": "https://github.com/ichernev",
"followers_url": "https://api.github.com/users/ichernev/followers",
"following_url": "https://api.github.com/users/ichernev/following{/other_user}",
"gists_url": "https://api.github.com/users/ichernev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ichernev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ichernev/subscriptions",
"organizations_url": "https://api.github.com/users/ichernev/orgs",
"repos_url": "https://api.github.com/users/ichernev/repos",
"events_url": "https://api.github.com/users/ichernev/events{/privacy}",
"received_events_url": "https://api.github.com/users/ichernev/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 6 | 2023-12-04T16:11:34 | 2024-01-09T23:50:57 | 2024-01-09T23:50:56 | CONTRIBUTOR | null | Add deepinfra chat models support.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14234/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14234/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14234",
"html_url": "https://github.com/langchain-ai/langchain/pull/14234",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14234.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14234.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14233 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14233/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14233/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14233/events | https://github.com/langchain-ai/langchain/issues/14233 | 2,024,212,346 | I_kwDOIPDwls54pwd6 | 14,233 | Issue: Recently, the DuckduckGo search tool seems not working. VQDExtractionException: Could not extract vqd. keywords="keywords" | {
"login": "Suroras",
"id": 151824155,
"node_id": "U_kgDOCQynGw",
"avatar_url": "https://avatars.githubusercontent.com/u/151824155?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Suroras",
"html_url": "https://github.com/Suroras",
"followers_url": "https://api.github.com/users/Suroras/followers",
"following_url": "https://api.github.com/users/Suroras/following{/other_user}",
"gists_url": "https://api.github.com/users/Suroras/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Suroras/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Suroras/subscriptions",
"organizations_url": "https://api.github.com/users/Suroras/orgs",
"repos_url": "https://api.github.com/users/Suroras/repos",
"events_url": "https://api.github.com/users/Suroras/events{/privacy}",
"received_events_url": "https://api.github.com/users/Suroras/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 | 6 | 2023-12-04T16:08:09 | 2023-12-27T15:30:49 | null | NONE | null | ### Issue you'd like to raise.
from langchain.agents import AgentType, initialize_agent
from langchain.chat_models import ChatOpenAI
from langchain.tools import DuckDuckGoSearchRun
llm = ChatOpenAI(temperature=0, model_name="gpt-3.5-turbo-16k")
web_search = DuckDuckGoSearchRun()
tools = [
web_search,
# other tools
]
agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True)
agent.run("<Some question>")
VQDExtractionException: Could not extract vqd. keywords="blah blah blah"
---
The code above worked fine several weeks ago, but it is not working any more. I tried every version of LangChain released after September.
Maybe there is a change in DuckDuckGo's API. Please help me, thanks.
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14233/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14233/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14232 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14232/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14232/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14232/events | https://github.com/langchain-ai/langchain/issues/14232 | 2,024,210,192 | I_kwDOIPDwls54pv8Q | 14,232 | similarity_search_with_score does not accept "!" in the query | {
"login": "meaningfool",
"id": 2862331,
"node_id": "MDQ6VXNlcjI4NjIzMzE=",
"avatar_url": "https://avatars.githubusercontent.com/u/2862331?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/meaningfool",
"html_url": "https://github.com/meaningfool",
"followers_url": "https://api.github.com/users/meaningfool/followers",
"following_url": "https://api.github.com/users/meaningfool/following{/other_user}",
"gists_url": "https://api.github.com/users/meaningfool/gists{/gist_id}",
"starred_url": "https://api.github.com/users/meaningfool/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meaningfool/subscriptions",
"organizations_url": "https://api.github.com/users/meaningfool/orgs",
"repos_url": "https://api.github.com/users/meaningfool/repos",
"events_url": "https://api.github.com/users/meaningfool/events{/privacy}",
"received_events_url": "https://api.github.com/users/meaningfool/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | closed | false | null | [] | null | 1 | 2023-12-04T16:07:02 | 2023-12-13T17:09:52 | 2023-12-13T17:09:52 | NONE | null | ### System Info
python 3.11.6
langchain==0.0.345
langchain-core==0.0.9
jupyter_client==8.6.0
jupyter_core==5.5.0
ipykernel==6.27.0
ipython==8.17.2
on mac M2
### Who can help?
@baskaryan @tomasonjo @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
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
1. The setup is the same as in https://github.com/langchain-ai/langchain/issues/14231, although I don't think it matters.
2. Run `existing_graph.similarity_search_with_score("It is the end of the world. Take shelter!")`
3. It returns the following error
---------------------------------------------------------------------------
ClientError Traceback (most recent call last)
[/Users/josselinperrus/Projects/streetpress/neo4j.ipynb](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/neo4j.ipynb) Cell 17 line 1
----> [1](vscode-notebook-cell:/Users/josselinperrus/Projects/streetpress/neo4j.ipynb#X21sZmlsZQ%3D%3D?line=0) existing_graph.similarity_search_with_score("It is the end of the world. Take shelter !")
File [~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:550](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:550), in Neo4jVector.similarity_search_with_score(self, query, k)
[540](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:540) """Return docs most similar to query.
[541](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:541)
[542](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:542) Args:
(...)
[547](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:547) List of Documents most similar to the query and score for each
[548](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:548) """
[549](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:549) embedding = self.embedding.embed_query(query)
--> [550](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:550) docs = self.similarity_search_with_score_by_vector(
[551](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:551) embedding=embedding, k=k, query=query
[552](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:552) )
[553](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:553) return docs
File [~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:595](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:595), in Neo4jVector.similarity_search_with_score_by_vector(self, embedding, k, **kwargs)
[586](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:586) read_query = _get_search_index_query(self.search_type) + retrieval_query
[587](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:587) parameters = {
[588](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:588) "index": self.index_name,
[589](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:589) "k": k,
(...)
[592](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:592) "query": kwargs["query"],
[593](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:593) }
--> [595](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:595) results = self.query(read_query, params=parameters)
[597](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:597) docs = [
[598](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:598) (
[599](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:599) Document(
(...)
[607](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:607) for result in results
[608](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:608) ]
[609](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:609) return docs
File [~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:242](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:242), in Neo4jVector.query(self, query, params)
[240](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:240) try:
[241](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:241) data = session.run(query, params)
--> [242](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:242) return [r.data() for r in data]
[243](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:243) except CypherSyntaxError as e:
[244](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:244) raise ValueError(f"Cypher Statement is not valid\n{e}")
File [~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:242](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:242), in <listcomp>(.0)
[240](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:240) try:
[241](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:241) data = session.run(query, params)
--> [242](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:242) return [r.data() for r in data]
[243](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:243) except CypherSyntaxError as e:
[244](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/langchain/vectorstores/neo4j_vector.py:244) raise ValueError(f"Cypher Statement is not valid\n{e}")
File [~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/work/result.py:270](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/work/result.py:270), in Result.__iter__(self)
[268](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/work/result.py:268) yield self._record_buffer.popleft()
[269](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/work/result.py:269) elif self._streaming:
--> [270](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/work/result.py:270) self._connection.fetch_message()
[271](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/work/result.py:271) elif self._discarding:
[272](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/work/result.py:272) self._discard()
File [~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_common.py:178](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_common.py:178), in ConnectionErrorHandler.__getattr__.<locals>.outer.<locals>.inner(*args, **kwargs)
[176](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_common.py:176) def inner(*args, **kwargs):
[177](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_common.py:177) try:
--> [178](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_common.py:178) func(*args, **kwargs)
[179](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_common.py:179) except (Neo4jError, ServiceUnavailable, SessionExpired) as exc:
[180](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_common.py:180) assert not asyncio.iscoroutinefunction(self.__on_error)
File [~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt.py:849](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt.py:849), in Bolt.fetch_message(self)
[845](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt.py:845) # Receive exactly one message
[846](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt.py:846) tag, fields = self.inbox.pop(
[847](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt.py:847) hydration_hooks=self.responses[0].hydration_hooks
[848](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt.py:848) )
--> [849](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt.py:849) res = self._process_message(tag, fields)
[850](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt.py:850) self.idle_since = perf_counter()
[851](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt.py:851) return res
File [~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt5.py:374](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt5.py:374), in Bolt5x0._process_message(self, tag, fields)
[372](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt5.py:372) self._server_state_manager.state = self.bolt_states.FAILED
[373](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt5.py:373) try:
--> [374](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt5.py:374) response.on_failure(summary_metadata or {})
[375](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt5.py:375) except (ServiceUnavailable, DatabaseUnavailable):
[376](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_bolt5.py:376) if self.pool:
File [~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_common.py:245](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_common.py:245), in Response.on_failure(self, metadata)
[243](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_common.py:243) handler = self.handlers.get("on_summary")
[244](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_common.py:244) Util.callback(handler)
--> [245](https://file+.vscode-resource.vscode-cdn.net/Users/josselinperrus/Projects/streetpress/~/Projects/streetpress/venv/lib/python3.11/site-packages/neo4j/_sync/io/_common.py:245) raise Neo4jError.hydrate(**metadata)
ClientError: {code: Neo.ClientError.Procedure.ProcedureCallFailed} {message: Failed to invoke procedure `db.index.fulltext.queryNodes`: Caused by: org.apache.lucene.queryparser.classic.ParseException: Encountered "<EOF>" at line 1, column 42.
Was expecting one of:
<BAREOPER> ...
"(" ...
"*" ...
<QUOTED> ...
<TERM> ...
<PREFIXTERM> ...
<WILDTERM> ...
<REGEXPTERM> ...
"[" ...
"{" ...
<NUMBER> ...
<TERM> ...
"*" ...
}
### Expected behavior
No error | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14232/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14232/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14231 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14231/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14231/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14231/events | https://github.com/langchain-ai/langchain/issues/14231 | 2,024,195,747 | I_kwDOIPDwls54psaj | 14,231 | similarity_search_with_relevance_scores returns incoherent relevance scores with Neo4jVector | {
"login": "meaningfool",
"id": 2862331,
"node_id": "MDQ6VXNlcjI4NjIzMzE=",
"avatar_url": "https://avatars.githubusercontent.com/u/2862331?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/meaningfool",
"html_url": "https://github.com/meaningfool",
"followers_url": "https://api.github.com/users/meaningfool/followers",
"following_url": "https://api.github.com/users/meaningfool/following{/other_user}",
"gists_url": "https://api.github.com/users/meaningfool/gists{/gist_id}",
"starred_url": "https://api.github.com/users/meaningfool/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meaningfool/subscriptions",
"organizations_url": "https://api.github.com/users/meaningfool/orgs",
"repos_url": "https://api.github.com/users/meaningfool/repos",
"events_url": "https://api.github.com/users/meaningfool/events{/privacy}",
"received_events_url": "https://api.github.com/users/meaningfool/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 3 | 2023-12-04T16:00:03 | 2023-12-05T10:43:22 | null | NONE | null | ### System Info
python 3.11.6
langchain==0.0.345
langchain-core==0.0.9
jupyter_client==8.6.0
jupyter_core==5.5.0
ipykernel==6.27.0
ipython==8.17.2
on mac M2
### Who can help?
@baskaryan @tomasonjo @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
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
1. Add a first node to the graph
`first_node = Node(
id="1",
type="Sentence",
properties={
"description": "This is my first node"
}
)
graph_document = GraphDocument(
nodes= [first_node],
relationships= [],
source= Document(page_content="my first document")
)
graph.add_graph_documents([graph_document])`
2. Add a second node to the graph
`second_node = Node(
id="2",
type="Sentence",
properties={
"description": "I love eating spinach"
}
)
graph_document = GraphDocument(
nodes= [second_node],
relationships= [],
source= Document(page_content="second doc")
)
graph.add_graph_documents([graph_document])`
3. Create a hybrid index
`existing_graph = Neo4jVector.from_existing_graph(
embedding=OpenAIEmbeddings(),
url=url,
username=username,
password=password,
index_name="sentence_index",
keyword_index_name="sentence_kindex",
node_label="Sentence",
text_node_properties=["description"],
embedding_node_property="embedding",
search_type="hybrid"
)`
4. Do a similarity search
`existing_graph.similarity_search_with_score("It is the end of the world. Take shelter")`
5. This yields a relevance score of 1 for the 1st result
`[(Document(page_content='\ndescription: This is my first node'), 1.0),
(Document(page_content='\ndescription: I love eating spinach'),
0.8576263189315796)]`
6. Test the strategy in use:
`existing_graph._distance_strategy`
which returns `<DistanceStrategy.COSINE: 'COSINE'>`
### Expected behavior
The relevance score should return the cosine similarity score.
In this particular case the cosine similarity score is 0.747
`def get_embedding(text):
response = openai.embeddings.create(input=text, model="text-embedding-ada-002")
return response.data[0].embedding
def cosine_similarity(vec1, vec2):
return dot(vec1, vec2) / (norm(vec1) * norm(vec2))
embedding1 = get_embedding("This is my first node")
embedding2 = get_embedding("It is the end of the world. Take shelter")
similarity = cosine_similarity(embedding1, embedding2)
print(f"Cosine Similarity: {similarity}")`
returns
`Cosine Similarity: 0.7475260325549817` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14231/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14231/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14230 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14230/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14230/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14230/events | https://github.com/langchain-ai/langchain/pull/14230 | 2,024,180,853 | PR_kwDOIPDwls5hEmEv | 14,230 | Fix `config` arg detection for wrapped lambdarunnable | {
"login": "Vinno97",
"id": 9059378,
"node_id": "MDQ6VXNlcjkwNTkzNzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/9059378?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vinno97",
"html_url": "https://github.com/Vinno97",
"followers_url": "https://api.github.com/users/Vinno97/followers",
"following_url": "https://api.github.com/users/Vinno97/following{/other_user}",
"gists_url": "https://api.github.com/users/Vinno97/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vinno97/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vinno97/subscriptions",
"organizations_url": "https://api.github.com/users/Vinno97/orgs",
"repos_url": "https://api.github.com/users/Vinno97/repos",
"events_url": "https://api.github.com/users/Vinno97/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vinno97/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": 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 | {
"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 | 2023-12-04T15:52:57 | 2023-12-04T22:18:30 | 2023-12-04T22:18:30 | CONTRIBUTOR | null | **Description:**
When a RunnableLambda only receives a synchronous callback, this callback is wrapped into an async one since #13408. However, this wrapping with `(*args, **kwargs)` causes the `accepts_config` check at [/libs/core/langchain_core/runnables/config.py#L342](https://github.com/langchain-ai/langchain/blob/ee94ef55ee6ab064da08340817955f821dfa6261/libs/core/langchain_core/runnables/config.py#L342) to fail, as this checks for the presence of a "config" argument in the method signature.
Adding a `functools.wraps` around it, resolves it.
**Issue:**
None, writing this PR already took longer than the fix ;)
**Tag maintainer:**
@nbondoux @efriis (participants of the original PR)
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14230/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14230/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14230",
"html_url": "https://github.com/langchain-ai/langchain/pull/14230",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14230.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14230.patch",
"merged_at": "2023-12-04T22:18:30"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14229 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14229/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14229/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14229/events | https://github.com/langchain-ai/langchain/issues/14229 | 2,024,080,225 | I_kwDOIPDwls54pQNh | 14,229 | DOC: How to create a custom filtered retriever | {
"login": "levalencia",
"id": 6962857,
"node_id": "MDQ6VXNlcjY5NjI4NTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/6962857?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/levalencia",
"html_url": "https://github.com/levalencia",
"followers_url": "https://api.github.com/users/levalencia/followers",
"following_url": "https://api.github.com/users/levalencia/following{/other_user}",
"gists_url": "https://api.github.com/users/levalencia/gists{/gist_id}",
"starred_url": "https://api.github.com/users/levalencia/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/levalencia/subscriptions",
"organizations_url": "https://api.github.com/users/levalencia/orgs",
"repos_url": "https://api.github.com/users/levalencia/repos",
"events_url": "https://api.github.com/users/levalencia/events{/privacy}",
"received_events_url": "https://api.github.com/users/levalencia/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] | open | false | null | [] | null | 3 | 2023-12-04T15:07:02 | 2023-12-05T13:39:52 | null | CONTRIBUTOR | null | ### Issue with current documentation:
I cant find documentattion about filtered retrievers, basically I want to fix this issue: https://github.com/langchain-ai/langchain/issues/14227
### Idea or request for content:
And according to other github issues, the way to fix it is with custom filtered retrievers.
So I tried the following:
```
class FilteredRetriever:
def __init__(self, retriever, title):
self.retriever = retriever
self.title = title
def retrieve(self, *args, **kwargs):
results = self.retriever.retrieve(*args, **kwargs)
return [doc for doc in results if doc['title'].startswith(self.title)]
filtered_retriever = FilteredRetriever(vector_store.as_retriever(), '25_1_0.pdf')
llm = AzureChatOpenAI(
azure_deployment="chat",
openai_api_version="2023-05-15",
)
retriever = vector_store.as_retriever(search_type="similarity", kwargs={"k": 3})
chain = RetrievalQA.from_chain_type(llm=llm,
chain_type="stuff",
retriever=filtered_retriever,
return_source_documents=True)
result = chain({"query": 'Can Colleagues contact their managers??'})
for res in result['source_documents']:
print(res.metadata['title'])
```
However I get this error:
```
ValidationError: 1 validation error for RetrievalQA
retriever
value is not a valid dict (type=type_error.dict)
```
but as I cant find documentation about it, I am not sure how to solve it | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14229/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14229/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14228 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14228/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14228/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14228/events | https://github.com/langchain-ai/langchain/pull/14228 | 2,024,077,529 | PR_kwDOIPDwls5hEPec | 14,228 | Clarifying descriptions in `GuardrailsOutputParser` | {
"login": "jamesbraza",
"id": 8990777,
"node_id": "MDQ6VXNlcjg5OTA3Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesbraza",
"html_url": "https://github.com/jamesbraza",
"followers_url": "https://api.github.com/users/jamesbraza/followers",
"following_url": "https://api.github.com/users/jamesbraza/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions",
"organizations_url": "https://api.github.com/users/jamesbraza/orgs",
"repos_url": "https://api.github.com/users/jamesbraza/repos",
"events_url": "https://api.github.com/users/jamesbraza/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesbraza/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": 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-04T15:05:45 | 2023-12-04T19:43:07 | 2023-12-04T19:33:22 | CONTRIBUTOR | null | Upstreaming knowledge from https://github.com/guardrails-ai/guardrails/discussions/473 to LangChain | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14228/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14228/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14228",
"html_url": "https://github.com/langchain-ai/langchain/pull/14228",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14228.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14228.patch",
"merged_at": "2023-12-04T19:33:22"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14227 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14227/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14227/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14227/events | https://github.com/langchain-ai/langchain/issues/14227 | 2,024,062,849 | I_kwDOIPDwls54pL-B | 14,227 | Filters dont work with Azure Search Vector Store retriever | {
"login": "levalencia",
"id": 6962857,
"node_id": "MDQ6VXNlcjY5NjI4NTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/6962857?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/levalencia",
"html_url": "https://github.com/levalencia",
"followers_url": "https://api.github.com/users/levalencia/followers",
"following_url": "https://api.github.com/users/levalencia/following{/other_user}",
"gists_url": "https://api.github.com/users/levalencia/gists{/gist_id}",
"starred_url": "https://api.github.com/users/levalencia/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/levalencia/subscriptions",
"organizations_url": "https://api.github.com/users/levalencia/orgs",
"repos_url": "https://api.github.com/users/levalencia/repos",
"events_url": "https://api.github.com/users/levalencia/events{/privacy}",
"received_events_url": "https://api.github.com/users/levalencia/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-04T14:58:48 | 2023-12-04T15:09:12 | null | CONTRIBUTOR | null | ### System Info
langchain 0.0.342
langchain-core 0.0.7
azure-search-documents 11.4.0b8
Python: 3.10
### Who can help?
@hw
### 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
The following code works fine:
```
from langchain_core.vectorstores import VectorStore, VectorStoreRetriever
index_name: str = "langchain-vector-demo"
vector_store: AzureSearch = AzureSearch(
azure_search_endpoint=vector_store_address,
azure_search_key=vector_store_password,
index_name="vector-1701341754619",
embedding_function=embeddings.embed_query
)
res = vector_store.similarity_search(
query="Can Colleagues contact their managers?", k=20, search_type="hybrid", filters="title eq '25_1_0.pdf'")
The res object contains the chunkcs where title is 25_1_0.pdf' ONLY
```
However when using it with an LLM:
```
llm = AzureChatOpenAI(
azure_deployment="chat",
openai_api_version="2023-05-15",
)
retriever = vector_store.as_retriever(search_type="similarity", filters="title eq '25_1_0.pdf'", kwargs={"k": 3})
chain = RetrievalQA.from_chain_type(llm=llm,
chain_type="stuff",
retriever=retriever,
return_source_documents=True)
result = chain({"query": 'Can Colleagues contact their managers??'})
for res in result['source_documents']:
print(res.metadata['title'])
```
My output has chunks which dont respect the filter:
142_2_0.pdf
99_9_0.docx
99_9_0.docx
142_2_0.pdf
### Expected behavior
The answer generated with source_documents, should contain chunks which respects the given filters. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14227/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14227/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14226 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14226/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14226/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14226/events | https://github.com/langchain-ai/langchain/issues/14226 | 2,023,977,308 | I_kwDOIPDwls54o3Fc | 14,226 | partially initialized module 'requests' has no attribute 'Response' | {
"login": "mspronesti",
"id": 44113430,
"node_id": "MDQ6VXNlcjQ0MTEzNDMw",
"avatar_url": "https://avatars.githubusercontent.com/u/44113430?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mspronesti",
"html_url": "https://github.com/mspronesti",
"followers_url": "https://api.github.com/users/mspronesti/followers",
"following_url": "https://api.github.com/users/mspronesti/following{/other_user}",
"gists_url": "https://api.github.com/users/mspronesti/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mspronesti/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mspronesti/subscriptions",
"organizations_url": "https://api.github.com/users/mspronesti/orgs",
"repos_url": "https://api.github.com/users/mspronesti/repos",
"events_url": "https://api.github.com/users/mspronesti/events{/privacy}",
"received_events_url": "https://api.github.com/users/mspronesti/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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"
}
] | open | false | null | [] | null | 1 | 2023-12-04T14:24:15 | 2023-12-04T14:33:55 | null | CONTRIBUTOR | null | ### System Info
ml.g5.48xlarge EC2 instance on AWS with:
- Langchain 0.0.305
- Python 3.10
### Who can help?
@hwchase17 @agola11
### Information
- [x] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I run into the above error when importing `HuggingFaceEmbeddings`.
```py
from langchain.embeddings import HuggingFaceEmbeddings
```
I believe this is due to the fact that we have a file named `requests.py` in the root folder of the project, which conflicts with the `requests` package.
```
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[19], line 1
----> 1 from langchain.embeddings import HuggingFaceEmbeddings
File ~/anaconda3/envs/python3/lib/python3.10/site-packages/langchain/embeddings/__init__.py:17
14 import logging
15 from typing import Any
---> 17 from langchain.embeddings.aleph_alpha import (
18 AlephAlphaAsymmetricSemanticEmbedding,
19 AlephAlphaSymmetricSemanticEmbedding,
20 )
21 from langchain.embeddings.awa import AwaEmbeddings
22 from langchain.embeddings.azure_openai import AzureOpenAIEmbeddings
File ~/anaconda3/envs/python3/lib/python3.10/site-packages/langchain/embeddings/aleph_alpha.py:6
3 from langchain_core.embeddings import Embeddings
4 from langchain_core.pydantic_v1 import BaseModel, root_validator
----> 6 from langchain.utils import get_from_dict_or_env
9 class AlephAlphaAsymmetricSemanticEmbedding(BaseModel, Embeddings):
10 """Aleph Alpha's asymmetric semantic embedding.
11
12 AA provides you with an endpoint to embed a document and a query.
(...)
30
31 """
File ~/anaconda3/envs/python3/lib/python3.10/site-packages/langchain/utils/__init__.py:14
7 from langchain_core.utils.formatting import StrictFormatter, formatter
8 from langchain_core.utils.input import (
9 get_bolded_text,
10 get_color_mapping,
11 get_colored_text,
12 print_text,
13 )
---> 14 from langchain_core.utils.utils import (
15 check_package_version,
16 convert_to_secret_str,
17 get_pydantic_field_names,
18 guard_import,
19 mock_now,
20 raise_for_status_with_text,
21 xor_args,
22 )
24 from langchain.utils.env import get_from_dict_or_env, get_from_env
25 from langchain.utils.math import cosine_similarity, cosine_similarity_top_k
File ~/anaconda3/envs/python3/lib/python3.10/site-packages/langchain_core/utils/__init__.py:14
7 from langchain_core.utils.formatting import StrictFormatter, formatter
8 from langchain_core.utils.input import (
9 get_bolded_text,
10 get_color_mapping,
11 get_colored_text,
12 print_text,
13 )
---> 14 from langchain_core.utils.loading import try_load_from_hub
15 from langchain_core.utils.utils import (
16 build_extra_kwargs,
17 check_package_version,
(...)
23 xor_args,
24 )
26 __all__ = [
27 "StrictFormatter",
28 "check_package_version",
(...)
41 "build_extra_kwargs",
42 ]
File ~/anaconda3/envs/python3/lib/python3.10/site-packages/langchain_core/utils/loading.py:10
7 from typing import Any, Callable, Optional, Set, TypeVar, Union
8 from urllib.parse import urljoin
---> 10 import requests
12 DEFAULT_REF = os.environ.get("LANGCHAIN_HUB_DEFAULT_REF", "master")
13 URL_BASE = os.environ.get(
14 "LANGCHAIN_HUB_URL_BASE",
15 "[https://raw.githubusercontent.com/hwchase17/langchain-hub/{ref}/](https://raw.githubusercontent.com/hwchase17/langchain-hub/%7Bref%7D/)",
16 )
File ~/SageMaker/langchain/libs/langchain/langchain/requests.py:2
1 """DEPRECATED: Kept for backwards compatibility."""
----> 2 from langchain.utilities import Requests, RequestsWrapper, TextRequestsWrapper
4 __all__ = [
5 "Requests",
6 "RequestsWrapper",
7 "TextRequestsWrapper",
8 ]
File ~/anaconda3/envs/python3/lib/python3.10/site-packages/langchain/utilities/__init__.py:8
1 """**Utilities** are the integrations with third-part systems and packages.
2
3 Other LangChain classes use **Utilities** to interact with third-part systems
4 and packages.
5 """
6 from typing import Any
----> 8 from langchain.utilities.requests import Requests, RequestsWrapper, TextRequestsWrapper
11 def _import_alpha_vantage() -> Any:
12 from langchain.utilities.alpha_vantage import AlphaVantageAPIWrapper
File ~/anaconda3/envs/python3/lib/python3.10/site-packages/langchain/utilities/requests.py:10
6 import requests
7 from langchain_core.pydantic_v1 import BaseModel, Extra
---> 10 class Requests(BaseModel):
11 """Wrapper around requests to handle auth and async.
12
13 The main purpose of this wrapper is to handle authentication (by saving
14 headers) and enable easy async methods on the same base object.
15 """
17 headers: Optional[Dict[str, str]] = None
File ~/anaconda3/envs/python3/lib/python3.10/site-packages/langchain/utilities/requests.py:27, in Requests()
24 extra = Extra.forbid
25 arbitrary_types_allowed = True
---> 27 def get(self, url: str, **kwargs: Any) -> requests.Response:
28 """GET the URL and return the text."""
29 return requests.get(url, headers=self.headers, auth=self.auth, **kwargs)
AttributeError: partially initialized module 'requests' has no attribute 'Response' (most likely due to a circular import)
```
### Expected behavior
To be able to correctly import and use the embeddings. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14226/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14226/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14225 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14225/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14225/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14225/events | https://github.com/langchain-ai/langchain/issues/14225 | 2,023,732,355 | I_kwDOIPDwls54n7SD | 14,225 | SelfQueryRetriever with OpenSearch generating invalid queries with Date type | {
"login": "RyanFrench",
"id": 979780,
"node_id": "MDQ6VXNlcjk3OTc4MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/979780?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RyanFrench",
"html_url": "https://github.com/RyanFrench",
"followers_url": "https://api.github.com/users/RyanFrench/followers",
"following_url": "https://api.github.com/users/RyanFrench/following{/other_user}",
"gists_url": "https://api.github.com/users/RyanFrench/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RyanFrench/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RyanFrench/subscriptions",
"organizations_url": "https://api.github.com/users/RyanFrench/orgs",
"repos_url": "https://api.github.com/users/RyanFrench/repos",
"events_url": "https://api.github.com/users/RyanFrench/events{/privacy}",
"received_events_url": "https://api.github.com/users/RyanFrench/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": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
}
] | open | false | null | [] | null | 2 | 2023-12-04T12:21:19 | 2023-12-04T18:07:30 | null | NONE | null | ### System Info
Python: 3.10
LangChain: 0.0.344
OpenSearch: Amazon OpenSearch Serverless Vector Engine
### 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
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I have loaded documents with metadata into OpenSearch which includes a date value. When generating a SelfQuerying Retriever the generated query specifies the date type as "date", and results in an invalid query being generated and sent to OpenSearch that then returns an error. I have set the AttributeInfo to "string", but even if it was "date" the query would be invalid.
```
document_content_description = "Feedback from users"
metadata_field_info = [
AttributeInfo(
name="timestamp",
description="A string representing the date that the feedback was submitted in the 'yyyy-MM-dd' format",
type="string",
)
]
retriever = SelfQueryRetriever.from_llm(
llm, vectorstore, document_content_description, metadata_field_info, verbose=True
)
retriever.get_relevant_documents("Summarize feedback submitted on 2023-06-01")
```
Output Logs:
```
"repr": "StructuredQuery(query=' ', filter=Comparison(comparator=<Comparator.EQ: 'eq'>, attribute='timestamp', value={'date': '2023-06-01', 'type': 'date'}), limit=None)"
...
{
"size": 4,
"query": {
"bool": {
"filter": {
"term": {
"metadata.timestamp": {
"date": "2023-06-01",
"type": "date"
}
}
},
...
}
{
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "[term] query does not support [date]",
"line": 1,
"col": 76
}
],
"type": "x_content_parse_exception",
"reason": "[1:76] [bool] failed to parse field [filter]",
"caused_by": {
"type": "parsing_exception",
"reason": "[term] query does not support [date]",
"line": 1,
"col": 76
}
},
"status": 400
}
```
### Expected behavior
LangChain should generate a valid OpenSearch query such as:
```
{
"size": 4,
"query": {
"bool": {
"filter": {
"term": {
"metadata.timestamp.keyword": "2023-06-01"
}
},
...
}
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14225/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14225/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14224 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14224/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14224/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14224/events | https://github.com/langchain-ai/langchain/pull/14224 | 2,023,730,229 | PR_kwDOIPDwls5hDCXv | 14,224 | Adds `llm_chain_kwargs` to `BaseRetrievalQA.from_llm` | {
"login": "ugm2",
"id": 25923343,
"node_id": "MDQ6VXNlcjI1OTIzMzQz",
"avatar_url": "https://avatars.githubusercontent.com/u/25923343?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ugm2",
"html_url": "https://github.com/ugm2",
"followers_url": "https://api.github.com/users/ugm2/followers",
"following_url": "https://api.github.com/users/ugm2/following{/other_user}",
"gists_url": "https://api.github.com/users/ugm2/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ugm2/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ugm2/subscriptions",
"organizations_url": "https://api.github.com/users/ugm2/orgs",
"repos_url": "https://api.github.com/users/ugm2/repos",
"events_url": "https://api.github.com/users/ugm2/events{/privacy}",
"received_events_url": "https://api.github.com/users/ugm2/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 | 2 | 2023-12-04T12:20:03 | 2023-12-04T19:34:02 | 2023-12-04T19:34:01 | CONTRIBUTOR | null | - **Description:** Adds `llm_chain_kwargs` to `BaseRetrievalQA.from_llm` so these can be passed to the LLM at runtime,
- **Issue:** https://github.com/langchain-ai/langchain/issues/14216,
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14224/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14224/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14224",
"html_url": "https://github.com/langchain-ai/langchain/pull/14224",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14224.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14224.patch",
"merged_at": "2023-12-04T19:34:01"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14223 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14223/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14223/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14223/events | https://github.com/langchain-ai/langchain/issues/14223 | 2,023,542,482 | I_kwDOIPDwls54nM7S | 14,223 | Dall-E Image Generator return url without authentication information | {
"login": "majiayu000",
"id": 19658300,
"node_id": "MDQ6VXNlcjE5NjU4MzAw",
"avatar_url": "https://avatars.githubusercontent.com/u/19658300?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/majiayu000",
"html_url": "https://github.com/majiayu000",
"followers_url": "https://api.github.com/users/majiayu000/followers",
"following_url": "https://api.github.com/users/majiayu000/following{/other_user}",
"gists_url": "https://api.github.com/users/majiayu000/gists{/gist_id}",
"starred_url": "https://api.github.com/users/majiayu000/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/majiayu000/subscriptions",
"organizations_url": "https://api.github.com/users/majiayu000/orgs",
"repos_url": "https://api.github.com/users/majiayu000/repos",
"events_url": "https://api.github.com/users/majiayu000/events{/privacy}",
"received_events_url": "https://api.github.com/users/majiayu000/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 | 2023-12-04T10:41:50 | 2023-12-04T10:48:15 | null | CONTRIBUTOR | null | ### System Info
MacOS
### 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
As described in the [docs page](https://python.langchain.com/docs/integrations/tools/dalle_image_generator):
```
from langchain.agents import initialize_agent, load_tools
tools = load_tools(["dalle-image-generator"])
agent = initialize_agent(tools, llm, agent="zero-shot-react-description", verbose=True)
output = agent.run("Create an image of a halloween night at a haunted museum")
```
Below is output:
```
> Entering new AgentExecutor chain...
I need to generate an image from a text description
Action: Dall-E-Image-Generator
Action Input: "Halloween night at a haunted museum"
Observation: https://oaidalleapiprodscus.blob.core.windows.net/private/org-yt03sAlJZ8YRfqIcNivAAqZu/user-xV6mgISZftMROz9SukNqCHqH/img-EKpmrjqlb1988YrkkBm0vgjr.png?st=2023-12-04T08%3A30%3A50Z&se=2023-12-04T10%3A30%3A50Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2023-12-03T23%3A02%3A03Z&ske=2023-12-04T23%3A02%3A03Z&sks=b&skv=2021-08-06&sig=9TvprwW3Wl3ZHj%2B2ga6juBT1KQLJIc9TUz%2BDIVcd3XA%3D
Thought: I now know the final answer
Final Answer: https://oaidalleapiprodscus.blob.core.windows.net/private/org-yt03sAlJZ8YRfqIcNivAAqZu/user-xV6mgISZftMROz9SukNqCHqH/img-EKpmrjqlb1988YrkkBm0vgjr.png?st=2023-12-04T08%3A30%3A50Z&se=2023-12-04T10%3A30%3A50Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2023-12-03T23%3A02%3A03Z&ske=2023-12-04T23%
> Finished chain.
```
Seems ok? But the url has been cut, it not origin! So you will not get the right picture.
Instead got this:
<img width="1472" alt="image" src="https://github.com/langchain-ai/langchain/assets/19658300/f856e606-9d9e-466d-bd8f-de4eed70f15c">
### Expected behavior
Dalle is a import tool in openai.
I want get the picture which I can see it. So it should give me the origin link.
Just like this:
```
> Entering new AgentExecutor chain...
I can use the Dall-E-Image-Generator to generate an image of a volcano island based on the text description.
Action: Dall-E-Image-Generator
Action Input: "A volcano island"
Observation: https://oaidalleapiprodscus.blob.core.windows.net/private/org-yt03sAlJZ8YRfqIcNivAAqZu/user-xV6mgISZftMROz9SukNqCHqH/img-H3m0wSNxDXVUkUKiE9kOKgvg.png?st=2023-12-04T09%3A39%3A05Z&se=2023-12-04T11%3A39%3A05Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2023-12-03T22%3A42%3A28Z&ske=2023-12-04T22%3A42%3A28Z&sks=b&skv=2021-08-06&sig=WSEO5/OX5GgYaNTWxZhNmsK%2BqeaDLMEsDdGEnHX18BY%3D
Thought:I now know the final answer.
Final Answer: The image of a volcano island can be found at the following link: https://oaidalleapiprodscus.blob.core.windows.net/private/org-yt03sAlJZ8YRfqIcNivAAqZu/user-xV6mgISZftMROz9SukNqCHqH/img-H3m0wSNxDXVUkUKiE9kOKgvg.png?st=2023-12-04T09%3A39%3A05Z&se=2023-12-04T11%3A39%3A05Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2023-12-03T22%3A42%3A28Z&ske=2023-12-04T22%3A42%3A28Z&sks=b&skv=2021-08-06&sig=WSEO5/OX5GgYaNTWxZhNmsK%2BqeaDLMEsDdGEnHX18BY%3D
> Finished chain.
The image of a volcano island can be found at the following link: https://oaidalleapiprodscus.blob.core.windows.net/private/org-yt03sAlJZ8YRfqIcNivAAqZu/user-xV6mgISZftMROz9SukNqCHqH/img-H3m0wSNxDXVUkUKiE9kOKgvg.png?st=2023-12-04T09%3A39%3A05Z&se=2023-12-04T11%3A39%3A05Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2023-12-03T22%3A42%3A28Z&ske=2023-12-04T22%3A42%3A28Z&sks=b&skv=2021-08-06&sig=WSEO5/OX5GgYaNTWxZhNmsK%2BqeaDLMEsDdGEnHX18BY%3D
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14223/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14223/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14222 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14222/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14222/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14222/events | https://github.com/langchain-ai/langchain/pull/14222 | 2,023,518,509 | PR_kwDOIPDwls5hCTdA | 14,222 | feat: Increased compatibility with new and old versions for dalle | {
"login": "majiayu000",
"id": 19658300,
"node_id": "MDQ6VXNlcjE5NjU4MzAw",
"avatar_url": "https://avatars.githubusercontent.com/u/19658300?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/majiayu000",
"html_url": "https://github.com/majiayu000",
"followers_url": "https://api.github.com/users/majiayu000/followers",
"following_url": "https://api.github.com/users/majiayu000/following{/other_user}",
"gists_url": "https://api.github.com/users/majiayu000/gists{/gist_id}",
"starred_url": "https://api.github.com/users/majiayu000/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/majiayu000/subscriptions",
"organizations_url": "https://api.github.com/users/majiayu000/orgs",
"repos_url": "https://api.github.com/users/majiayu000/repos",
"events_url": "https://api.github.com/users/majiayu000/events{/privacy}",
"received_events_url": "https://api.github.com/users/majiayu000/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": 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 | 3 | 2023-12-04T10:30:10 | 2023-12-06T01:31:28 | 2023-12-06T01:31:28 | CONTRIBUTOR | null |
- **Description:** Increased compatibility with all versions openai for dalle,
This pr add support for openai version from 0 ~ 1.3.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14222/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14222/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14222",
"html_url": "https://github.com/langchain-ai/langchain/pull/14222",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14222.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14222.patch",
"merged_at": "2023-12-06T01:31:28"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14221 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14221/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14221/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14221/events | https://github.com/langchain-ai/langchain/pull/14221 | 2,023,477,444 | PR_kwDOIPDwls5hCKfN | 14,221 | Feature: GitLab url from ENV | {
"login": "balaba-max",
"id": 22390326,
"node_id": "MDQ6VXNlcjIyMzkwMzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/22390326?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/balaba-max",
"html_url": "https://github.com/balaba-max",
"followers_url": "https://api.github.com/users/balaba-max/followers",
"following_url": "https://api.github.com/users/balaba-max/following{/other_user}",
"gists_url": "https://api.github.com/users/balaba-max/gists{/gist_id}",
"starred_url": "https://api.github.com/users/balaba-max/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/balaba-max/subscriptions",
"organizations_url": "https://api.github.com/users/balaba-max/orgs",
"repos_url": "https://api.github.com/users/balaba-max/repos",
"events_url": "https://api.github.com/users/balaba-max/events{/privacy}",
"received_events_url": "https://api.github.com/users/balaba-max/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 | {
"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 | 2023-12-04T10:08:20 | 2023-12-06T03:41:37 | 2023-12-06T03:41:37 | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** add gitlab url from env,
- **Issue:** no issue,
- **Dependencies:** no,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` 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/14221/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14221/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14221",
"html_url": "https://github.com/langchain-ai/langchain/pull/14221",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14221.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14221.patch",
"merged_at": "2023-12-06T03:41:37"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14220 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14220/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14220/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14220/events | https://github.com/langchain-ai/langchain/pull/14220 | 2,023,464,151 | PR_kwDOIPDwls5hCHdh | 14,220 | add(feat): Text Embeddings by Cloudflare Workers AI | {
"login": "cxumol",
"id": 8279655,
"node_id": "MDQ6VXNlcjgyNzk2NTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/8279655?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cxumol",
"html_url": "https://github.com/cxumol",
"followers_url": "https://api.github.com/users/cxumol/followers",
"following_url": "https://api.github.com/users/cxumol/following{/other_user}",
"gists_url": "https://api.github.com/users/cxumol/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cxumol/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cxumol/subscriptions",
"organizations_url": "https://api.github.com/users/cxumol/orgs",
"repos_url": "https://api.github.com/users/cxumol/repos",
"events_url": "https://api.github.com/users/cxumol/events{/privacy}",
"received_events_url": "https://api.github.com/users/cxumol/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"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 | 3 | 2023-12-04T10:03:35 | 2023-12-05T03:25:06 | 2023-12-05T03:25:05 | CONTRIBUTOR | null | Add [Text Embeddings by Cloudflare Workers AI](https://developers.cloudflare.com/workers-ai/models/text-embeddings/). It's a new integration.
Trying to align it with its langchain-js version counterpart [here](https://api.js.langchain.com/classes/embeddings_cloudflare_workersai.CloudflareWorkersAIEmbeddings.html).
- Dependencies: N/A
- Done `make format` `make lint` `make spell_check` `make integration_tests` and all my changes was passed
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14220/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14220/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14220",
"html_url": "https://github.com/langchain-ai/langchain/pull/14220",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14220.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14220.patch",
"merged_at": "2023-12-05T03:25:05"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14219 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14219/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14219/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14219/events | https://github.com/langchain-ai/langchain/pull/14219 | 2,023,458,063 | PR_kwDOIPDwls5hCGFL | 14,219 | add bedrock callback for token counting | {
"login": "shabie",
"id": 30535146,
"node_id": "MDQ6VXNlcjMwNTM1MTQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/30535146?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shabie",
"html_url": "https://github.com/shabie",
"followers_url": "https://api.github.com/users/shabie/followers",
"following_url": "https://api.github.com/users/shabie/following{/other_user}",
"gists_url": "https://api.github.com/users/shabie/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shabie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shabie/subscriptions",
"organizations_url": "https://api.github.com/users/shabie/orgs",
"repos_url": "https://api.github.com/users/shabie/repos",
"events_url": "https://api.github.com/users/shabie/events{/privacy}",
"received_events_url": "https://api.github.com/users/shabie/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": 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 | 2023-12-04T10:01:18 | 2024-01-09T22:06:58 | null | NONE | null | - **Description:** Bedrock API now returns [token usage](https://docs.aws.amazon.com/bedrock/latest/userguide/monitoring-cw.html) details across all hosted models which can be used to collect statistics on token usage. This can be used to implement a similar [token usage callback](https://python.langchain.com/docs/modules/model_io/llms/token_usage_tracking) as OpenAI.
- **Issue:** #14120
- **Dependencies:** None
- **Tag maintainer:** @3coins
Token counting (as for OpenAI's callback) only works for the non-stream variant currently and hence the warning has been included.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14219/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14219/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14219",
"html_url": "https://github.com/langchain-ai/langchain/pull/14219",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14219.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14219.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14218 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14218/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14218/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14218/events | https://github.com/langchain-ai/langchain/issues/14218 | 2,023,436,264 | I_kwDOIPDwls54my_o | 14,218 | Table data extraction from HTML files. | {
"login": "FatemaD1577",
"id": 107674241,
"node_id": "U_kgDOBmr6gQ",
"avatar_url": "https://avatars.githubusercontent.com/u/107674241?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/FatemaD1577",
"html_url": "https://github.com/FatemaD1577",
"followers_url": "https://api.github.com/users/FatemaD1577/followers",
"following_url": "https://api.github.com/users/FatemaD1577/following{/other_user}",
"gists_url": "https://api.github.com/users/FatemaD1577/gists{/gist_id}",
"starred_url": "https://api.github.com/users/FatemaD1577/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FatemaD1577/subscriptions",
"organizations_url": "https://api.github.com/users/FatemaD1577/orgs",
"repos_url": "https://api.github.com/users/FatemaD1577/repos",
"events_url": "https://api.github.com/users/FatemaD1577/events{/privacy}",
"received_events_url": "https://api.github.com/users/FatemaD1577/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"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 | 2023-12-04T09:49:35 | 2023-12-04T13:55:10 | null | NONE | null | ### Issue you'd like to raise.
I am working on extracting data from HTML files. I need to extract table data to store in a data frame as a table. With the help of langchain document loader I can extract the data row wise but the headers of columns are not getting extracted. How to extract column headers along with the data.
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14218/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14218/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14217 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14217/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14217/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14217/events | https://github.com/langchain-ai/langchain/pull/14217 | 2,023,422,028 | PR_kwDOIPDwls5hB-L2 | 14,217 | [Revised] Virtual column name for self-querying retrievers | {
"login": "mpskex",
"id": 8456706,
"node_id": "MDQ6VXNlcjg0NTY3MDY=",
"avatar_url": "https://avatars.githubusercontent.com/u/8456706?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mpskex",
"html_url": "https://github.com/mpskex",
"followers_url": "https://api.github.com/users/mpskex/followers",
"following_url": "https://api.github.com/users/mpskex/following{/other_user}",
"gists_url": "https://api.github.com/users/mpskex/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mpskex/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mpskex/subscriptions",
"organizations_url": "https://api.github.com/users/mpskex/orgs",
"repos_url": "https://api.github.com/users/mpskex/repos",
"events_url": "https://api.github.com/users/mpskex/events{/privacy}",
"received_events_url": "https://api.github.com/users/mpskex/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | {
"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-04T09:41:45 | 2023-12-05T02:44:19 | null | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
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,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
Self query retrievers are powerful and it can be even stronger than before. Taking MyScale as an example, sometimes the user may add complex SQL function to a column name. So we add a `VirtualColumnName` for self-query retriever to reduce token usage with extra functionality.
1. a function that dynamically creates function mapped column names, which becomes handy when the user want to compare between current time / location or other attributes along with a column.
2. complex function call in plain string can now be replaced with a shorter nickname in prompt, which saves number of token for very long function names.
3. refined the logic in MyScale translator to meet this standard.
This change will not affect other self query retrievers as it preserves the original plain string interface under comparison. ~~The actual difference happens under `QueryTransformer` in `query_construct.parser` for `Lark` parser.~~
`Comparator.attribute` can now be either a string or a `VirtualColumnName`. ~~I have defined the default behaviour which stops the user to use `VirtualColumnName` under other vectorstores than MyScale.~~ Parser for `VirtualColumnName`s are chained with original structured query parser, using LCEL.
This functionality will boost the self-query retrievers as a bridge between text and simple SQL query. And we believe this will help users to expand their usage to this retriever. Other SQL vector database is theoretically compatible to this new feature as well.
Hope you find this interesting.
@hwchase17 @baskaryan @efriis
Our contact on twitter: @MyScaleDB @mpsk_liu
=========
Updates:
* Separate from `StructuredQueryOutputParser` and created new `VirtualColumnParser`
* Rewritten with LCEL
* Won't hurt any inheritance / API signatures
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14217/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14217/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14217",
"html_url": "https://github.com/langchain-ai/langchain/pull/14217",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14217.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14217.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14216 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14216/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14216/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14216/events | https://github.com/langchain-ai/langchain/issues/14216 | 2,023,415,515 | I_kwDOIPDwls54mt7b | 14,216 | Add `llm_kwargs` to `BaseRetrievalQA.from_llm` | {
"login": "ugm2",
"id": 25923343,
"node_id": "MDQ6VXNlcjI1OTIzMzQz",
"avatar_url": "https://avatars.githubusercontent.com/u/25923343?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ugm2",
"html_url": "https://github.com/ugm2",
"followers_url": "https://api.github.com/users/ugm2/followers",
"following_url": "https://api.github.com/users/ugm2/following{/other_user}",
"gists_url": "https://api.github.com/users/ugm2/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ugm2/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ugm2/subscriptions",
"organizations_url": "https://api.github.com/users/ugm2/orgs",
"repos_url": "https://api.github.com/users/ugm2/repos",
"events_url": "https://api.github.com/users/ugm2/events{/privacy}",
"received_events_url": "https://api.github.com/users/ugm2/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 2 | 2023-12-04T09:38:10 | 2023-12-04T11:06:33 | null | CONTRIBUTOR | null | https://github.com/langchain-ai/langchain/blob/ee94ef55ee6ab064da08340817955f821dfa6261/libs/langchain/langchain/chains/llm.py#L71
In my humble opinion, I think `llm_kwargs` variable should be a parameter declared in the LLM class rather than the LLM Chain. One of the reasons for this, is that when you are declaring, for instance, a `RetrievalQA` chain `from_chain_type` or `from_llm` , you cannot specify these `llm_kwargs`.
You can workaround that by calling the inner `llm_chain` with (given that you're using a `combine_documents_chain`):
```python
chain.combine_documents_chain.llm_chain.llm_kwargs = {'test': 'test'}
```
But seems very odd that you have to do that. And the kwargs seems that it should be a responsibility of the LLM, not the LLM Chain.
Happy to be proven wrong! 🙂 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14216/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14216/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14215 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14215/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14215/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14215/events | https://github.com/langchain-ai/langchain/pull/14215 | 2,023,332,519 | PR_kwDOIPDwls5hBqpx | 14,215 | fixed: ModuleNotFoundError: No module named 'clarifai.auth' | {
"login": "umair313",
"id": 12728453,
"node_id": "MDQ6VXNlcjEyNzI4NDUz",
"avatar_url": "https://avatars.githubusercontent.com/u/12728453?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/umair313",
"html_url": "https://github.com/umair313",
"followers_url": "https://api.github.com/users/umair313/followers",
"following_url": "https://api.github.com/users/umair313/following{/other_user}",
"gists_url": "https://api.github.com/users/umair313/gists{/gist_id}",
"starred_url": "https://api.github.com/users/umair313/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/umair313/subscriptions",
"organizations_url": "https://api.github.com/users/umair313/orgs",
"repos_url": "https://api.github.com/users/umair313/repos",
"events_url": "https://api.github.com/users/umair313/events{/privacy}",
"received_events_url": "https://api.github.com/users/umair313/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-04T08:51:08 | 2023-12-04T19:53:35 | 2023-12-04T19:53:35 | CONTRIBUTOR | null | Updated the clarifai imports
fixed: #14175
@efriis
@baskaryan | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14215/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14215/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14215",
"html_url": "https://github.com/langchain-ai/langchain/pull/14215",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14215.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14215.patch",
"merged_at": "2023-12-04T19:53:35"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14214 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14214/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14214/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14214/events | https://github.com/langchain-ai/langchain/pull/14214 | 2,023,186,118 | PR_kwDOIPDwls5hBKrx | 14,214 | Fix issue(#14213): BiliBiliLoader Credential No Sessdata error | {
"login": "Jiaaming",
"id": 71547730,
"node_id": "MDQ6VXNlcjcxNTQ3NzMw",
"avatar_url": "https://avatars.githubusercontent.com/u/71547730?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Jiaaming",
"html_url": "https://github.com/Jiaaming",
"followers_url": "https://api.github.com/users/Jiaaming/followers",
"following_url": "https://api.github.com/users/Jiaaming/following{/other_user}",
"gists_url": "https://api.github.com/users/Jiaaming/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Jiaaming/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Jiaaming/subscriptions",
"organizations_url": "https://api.github.com/users/Jiaaming/orgs",
"repos_url": "https://api.github.com/users/Jiaaming/repos",
"events_url": "https://api.github.com/users/Jiaaming/events{/privacy}",
"received_events_url": "https://api.github.com/users/Jiaaming/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": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | null | [] | null | 1 | 2023-12-04T07:16:49 | 2023-12-06T06:14:13 | null | NONE | null |
- **Description:** Fix the BiliBiliLoader that can receive cookie parameters; Add example in docs
- **Issue:** [#14213]
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14214/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14214/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14214",
"html_url": "https://github.com/langchain-ai/langchain/pull/14214",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14214.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14214.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14213 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14213/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14213/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14213/events | https://github.com/langchain-ai/langchain/issues/14213 | 2,023,161,496 | I_kwDOIPDwls54lv6Y | 14,213 | BiliBiliLoader Credential No Sessdata error | {
"login": "Jiaaming",
"id": 71547730,
"node_id": "MDQ6VXNlcjcxNTQ3NzMw",
"avatar_url": "https://avatars.githubusercontent.com/u/71547730?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Jiaaming",
"html_url": "https://github.com/Jiaaming",
"followers_url": "https://api.github.com/users/Jiaaming/followers",
"following_url": "https://api.github.com/users/Jiaaming/following{/other_user}",
"gists_url": "https://api.github.com/users/Jiaaming/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Jiaaming/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Jiaaming/subscriptions",
"organizations_url": "https://api.github.com/users/Jiaaming/orgs",
"repos_url": "https://api.github.com/users/Jiaaming/repos",
"events_url": "https://api.github.com/users/Jiaaming/events{/privacy}",
"received_events_url": "https://api.github.com/users/Jiaaming/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 | 2 | 2023-12-04T06:58:42 | 2023-12-04T09:07:10 | null | NONE | null | ### System Info
Mac os
Python3.9
### Who can help?
@Jiaaming
I'm working on this issue.
### 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
when you run the BiliBiliLoader example from the official [docs](https://python.langchain.com/docs/integrations/document_loaders/bilibili)
```
loader = BiliBiliLoader(
[
"https://www.bilibili.com/video/BV1g84y1R7oE/",
]
)
docs = loader.load()
print(docs)
```
will get
```
bilibili_api.exceptions.CredentialNoSessdataException.CredentialNoSessdataException: Credential 类未提供 sessdata 或者为空。
Process finished with exit code 1
```
The is because the original [bilibili_api](https://nemo2011.github.io/bilibili-api/#/get-credential) require a Credential to fetch the info from the video
### Expected behavior
Should return a Document object
```
[Document(page_content="Video Title:...,description:....)]
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14213/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14213/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14212 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14212/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14212/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14212/events | https://github.com/langchain-ai/langchain/pull/14212 | 2,023,131,973 | PR_kwDOIPDwls5hA-tr | 14,212 | Support `openai_proxy` compatible with openai>1.0.0 | {
"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": 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": 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 | 6 | 2023-12-04T06:34:29 | 2023-12-28T12:35:50 | 2023-12-28T12:35:50 | CONTRIBUTOR | null | ### **Description:**
`openai` v1 no longer supports the method of setting `openai.proxy`. If using `OPENAI_PRPXY`, the user needs to initialize an http_client.
### **Issue:**
https://github.com/langchain-ai/langchain/issues/13939 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14212/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
} | https://api.github.com/repos/langchain-ai/langchain/issues/14212/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14212",
"html_url": "https://github.com/langchain-ai/langchain/pull/14212",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14212.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14212.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14211 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14211/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14211/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14211/events | https://github.com/langchain-ai/langchain/pull/14211 | 2,023,067,654 | PR_kwDOIPDwls5hAwoQ | 14,211 | Shorten wget commands | {
"login": "perryism",
"id": 868721,
"node_id": "MDQ6VXNlcjg2ODcyMQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/868721?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/perryism",
"html_url": "https://github.com/perryism",
"followers_url": "https://api.github.com/users/perryism/followers",
"following_url": "https://api.github.com/users/perryism/following{/other_user}",
"gists_url": "https://api.github.com/users/perryism/gists{/gist_id}",
"starred_url": "https://api.github.com/users/perryism/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/perryism/subscriptions",
"organizations_url": "https://api.github.com/users/perryism/orgs",
"repos_url": "https://api.github.com/users/perryism/repos",
"events_url": "https://api.github.com/users/perryism/events{/privacy}",
"received_events_url": "https://api.github.com/users/perryism/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-04T05:36:46 | 2023-12-04T20:03:48 | 2023-12-04T20:03:48 | CONTRIBUTOR | null | - **Description:** The commands can be more efficient if the output name is set to the destined filename instead of renaming in the second command.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14211/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14211/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14211",
"html_url": "https://github.com/langchain-ai/langchain/pull/14211",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14211.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14211.patch",
"merged_at": "2023-12-04T20:03:48"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14210 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14210/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14210/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14210/events | https://github.com/langchain-ai/langchain/issues/14210 | 2,023,006,180 | I_kwDOIPDwls54lJ_k | 14,210 | ConversationChain error with multiple inputs | {
"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": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 4 | 2023-12-04T04:34:52 | 2023-12-05T11:31:16 | null | NONE | null | ### Issue you'd like to raise.
ValidationError: 2 validation errors for ConversationChain
advisor_summary
extra fields not permitted (type=value_error.extra)
__root__
Got unexpected prompt input variables. The prompt expects ['advisor_summary', 'history', 'input'], but got ['history'] as inputs from memory, and input as the normal input key. (type=value_error)
How to resolve this error?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14210/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14210/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14209 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14209/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14209/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14209/events | https://github.com/langchain-ai/langchain/issues/14209 | 2,022,958,852 | I_kwDOIPDwls54k-cE | 14,209 | Issue: How to avoid modifying user input and output in initialize_agent? | {
"login": "Tamoghna-Saha",
"id": 30715287,
"node_id": "MDQ6VXNlcjMwNzE1Mjg3",
"avatar_url": "https://avatars.githubusercontent.com/u/30715287?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Tamoghna-Saha",
"html_url": "https://github.com/Tamoghna-Saha",
"followers_url": "https://api.github.com/users/Tamoghna-Saha/followers",
"following_url": "https://api.github.com/users/Tamoghna-Saha/following{/other_user}",
"gists_url": "https://api.github.com/users/Tamoghna-Saha/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Tamoghna-Saha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Tamoghna-Saha/subscriptions",
"organizations_url": "https://api.github.com/users/Tamoghna-Saha/orgs",
"repos_url": "https://api.github.com/users/Tamoghna-Saha/repos",
"events_url": "https://api.github.com/users/Tamoghna-Saha/events{/privacy}",
"received_events_url": "https://api.github.com/users/Tamoghna-Saha/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"
},
{
"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 | 11 | 2023-12-04T03:45:23 | 2023-12-12T05:58:56 | null | NONE | null | ### Issue you'd like to raise.
Hi, I am trying to use `initialize_agent` to leverage custom tools but when the agent is accepting it, it is modifying the user's input in its own way and causing error in the output. For example, in SQLTool, it is automatically converting it into SQL query which is wrong and ended up giving me wrong answer. I want to know how can I ensure raw input is getting passed into the `action_input` of `initialize_agent`! An example below:
User input: How many users have purchased PlayStation from New York in October?
Expected flow of execution will start like this:
```
> Entering new AgentExecutor chain...
Action:
```
{
"action": "SQLTool",
"action_input": {
"raw_input": "How many users have purchased PlayStation from New York in October?"
}
}
```
```
Also, since I am using BaseTool in the custom tools, I had to ensure output format is in string - can we customize it like getting it in JSON format?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14209/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14209/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14208 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14208/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14208/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14208/events | https://github.com/langchain-ai/langchain/issues/14208 | 2,022,925,148 | I_kwDOIPDwls54k2Nc | 14,208 | Issue: <How to use the local huggingface models> | {
"login": "ACBBZ",
"id": 93761842,
"node_id": "U_kgDOBZaxMg",
"avatar_url": "https://avatars.githubusercontent.com/u/93761842?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ACBBZ",
"html_url": "https://github.com/ACBBZ",
"followers_url": "https://api.github.com/users/ACBBZ/followers",
"following_url": "https://api.github.com/users/ACBBZ/following{/other_user}",
"gists_url": "https://api.github.com/users/ACBBZ/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ACBBZ/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ACBBZ/subscriptions",
"organizations_url": "https://api.github.com/users/ACBBZ/orgs",
"repos_url": "https://api.github.com/users/ACBBZ/repos",
"events_url": "https://api.github.com/users/ACBBZ/events{/privacy}",
"received_events_url": "https://api.github.com/users/ACBBZ/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-04T03:05:05 | 2023-12-04T03:14:23 | null | NONE | null | ### Issue you'd like to raise.
I have a problem in this code `llm_chain = LLMChain(prompt=prompt,llm=local_llm)`, how to define the local huggingface models into this `local_llm`
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14208/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14208/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14207 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14207/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14207/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14207/events | https://github.com/langchain-ai/langchain/issues/14207 | 2,022,901,487 | I_kwDOIPDwls54kwbv | 14,207 | Issue: I'd like to use Hugging Face's Chat UI frontend with LangChain. | {
"login": "haje01",
"id": 865631,
"node_id": "MDQ6VXNlcjg2NTYzMQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/865631?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/haje01",
"html_url": "https://github.com/haje01",
"followers_url": "https://api.github.com/users/haje01/followers",
"following_url": "https://api.github.com/users/haje01/following{/other_user}",
"gists_url": "https://api.github.com/users/haje01/gists{/gist_id}",
"starred_url": "https://api.github.com/users/haje01/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/haje01/subscriptions",
"organizations_url": "https://api.github.com/users/haje01/orgs",
"repos_url": "https://api.github.com/users/haje01/repos",
"events_url": "https://api.github.com/users/haje01/events{/privacy}",
"received_events_url": "https://api.github.com/users/haje01/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-04T02:38:47 | 2023-12-04T02:45:57 | null | NONE | null | ### Issue you'd like to raise.
I'd like to use Hugging Face's Chat UI frontend with LangChain.
https://github.com/huggingface/chat-ui
But it looks like the Chat UI is only available through Hugginf Face's Text Generation Inference endpoint.
https://github.com/huggingface/chat-ui/issues/466
How can I serve the chain I have configured with LangChain in TGI format so I can use Chat UI?
Thank you in advance.
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14207/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14207/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14206 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14206/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14206/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14206/events | https://github.com/langchain-ai/langchain/pull/14206 | 2,022,865,130 | PR_kwDOIPDwls5hAEhg | 14,206 | Modify LLMs/Anyscale work with OpenAI API v1 | {
"login": "kylehh",
"id": 24217337,
"node_id": "MDQ6VXNlcjI0MjE3MzM3",
"avatar_url": "https://avatars.githubusercontent.com/u/24217337?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kylehh",
"html_url": "https://github.com/kylehh",
"followers_url": "https://api.github.com/users/kylehh/followers",
"following_url": "https://api.github.com/users/kylehh/following{/other_user}",
"gists_url": "https://api.github.com/users/kylehh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kylehh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kylehh/subscriptions",
"organizations_url": "https://api.github.com/users/kylehh/orgs",
"repos_url": "https://api.github.com/users/kylehh/repos",
"events_url": "https://api.github.com/users/kylehh/events{/privacy}",
"received_events_url": "https://api.github.com/users/kylehh/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 13 | 2023-12-04T01:55:14 | 2024-01-11T13:25:15 | null | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
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,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
- **Description:**
1. Modify LLMs/Anyscale to work with OAI v1
2. Get rid of openai_ prefixed variables in Chat_model/ChatAnyscale
3. Modify `anyscale_api_base` to `anyscale_base_url` to follow OAI name convention (reverted) | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14206/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14206/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14206",
"html_url": "https://github.com/langchain-ai/langchain/pull/14206",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14206.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14206.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14205 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14205/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14205/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14205/events | https://github.com/langchain-ai/langchain/pull/14205 | 2,022,783,783 | PR_kwDOIPDwls5g_y0p | 14,205 | Adds "NIN" metadata filter for pgvector to all checking for set absence | {
"login": "jeffpezzone",
"id": 3639151,
"node_id": "MDQ6VXNlcjM2MzkxNTE=",
"avatar_url": "https://avatars.githubusercontent.com/u/3639151?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeffpezzone",
"html_url": "https://github.com/jeffpezzone",
"followers_url": "https://api.github.com/users/jeffpezzone/followers",
"following_url": "https://api.github.com/users/jeffpezzone/following{/other_user}",
"gists_url": "https://api.github.com/users/jeffpezzone/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeffpezzone/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeffpezzone/subscriptions",
"organizations_url": "https://api.github.com/users/jeffpezzone/orgs",
"repos_url": "https://api.github.com/users/jeffpezzone/repos",
"events_url": "https://api.github.com/users/jeffpezzone/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeffpezzone/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-04T00:08:17 | 2023-12-06T03:07:33 | 2023-12-06T03:07:33 | CONTRIBUTOR | null | This PR adds support for metadata filters of the form:
`{"filter": {"key": { "NIN" : ["list", "of", "values"]}}}`
"IN" is already supported, so this is a quick & related update to add "NIN"
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14205/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14205/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14205",
"html_url": "https://github.com/langchain-ai/langchain/pull/14205",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14205.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14205.patch",
"merged_at": "2023-12-06T03:07:33"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14204 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14204/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14204/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14204/events | https://github.com/langchain-ai/langchain/pull/14204 | 2,022,735,524 | PR_kwDOIPDwls5g_o-a | 14,204 | moved semadb.mdx file | {
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 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-03T22:07:56 | 2023-12-03T22:48:26 | 2023-12-03T22:36:48 | COLLABORATOR | null | SemaDB.mdx file was placed with additional sub-folder: `https://python.langchain.com/docs/integrations/providers/providers/semadb`
- Moved file to the `https://python.langchain.com/docs/integrations/providers/semadb`
- Added a redirect for the file URL | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14204/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14204/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14204",
"html_url": "https://github.com/langchain-ai/langchain/pull/14204",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14204.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14204.patch",
"merged_at": "2023-12-03T22:36:48"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14203 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14203/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14203/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14203/events | https://github.com/langchain-ai/langchain/issues/14203 | 2,022,724,502 | I_kwDOIPDwls54kFOW | 14,203 | ConversationalRetrievalChain returns sources to questions without context | {
"login": "sergej-d",
"id": 75784026,
"node_id": "MDQ6VXNlcjc1Nzg0MDI2",
"avatar_url": "https://avatars.githubusercontent.com/u/75784026?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sergej-d",
"html_url": "https://github.com/sergej-d",
"followers_url": "https://api.github.com/users/sergej-d/followers",
"following_url": "https://api.github.com/users/sergej-d/following{/other_user}",
"gists_url": "https://api.github.com/users/sergej-d/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sergej-d/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sergej-d/subscriptions",
"organizations_url": "https://api.github.com/users/sergej-d/orgs",
"repos_url": "https://api.github.com/users/sergej-d/repos",
"events_url": "https://api.github.com/users/sergej-d/events{/privacy}",
"received_events_url": "https://api.github.com/users/sergej-d/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 4 | 2023-12-03T21:33:41 | 2023-12-05T11:58:06 | null | NONE | null | ### Issue you'd like to raise.
Hi,
I am wondering if anyone has a work around using ConversationalRetrievalChain to retrieve documents with their sources, and prevent the chain from returning sources for questions without sources.
query = "How are you doing?"
result = chain({"question": query, "chat_history": chat_history})
result['answer']
"""
I'm doing well, thank you.
SOURCES: /content/xxx.pdf
"""
### Suggestion:
SOURCES: | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14203/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14203/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14202 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14202/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14202/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14202/events | https://github.com/langchain-ai/langchain/pull/14202 | 2,022,686,983 | PR_kwDOIPDwls5g_fUu | 14,202 | Allow base_store to be used directly with MultiVectorRetriever | {
"login": "jacoblee93",
"id": 6952323,
"node_id": "MDQ6VXNlcjY5NTIzMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jacoblee93",
"html_url": "https://github.com/jacoblee93",
"followers_url": "https://api.github.com/users/jacoblee93/followers",
"following_url": "https://api.github.com/users/jacoblee93/following{/other_user}",
"gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions",
"organizations_url": "https://api.github.com/users/jacoblee93/orgs",
"repos_url": "https://api.github.com/users/jacoblee93/repos",
"events_url": "https://api.github.com/users/jacoblee93/events{/privacy}",
"received_events_url": "https://api.github.com/users/jacoblee93/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": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | {
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 2 | 2023-12-03T19:46:13 | 2023-12-04T22:43:34 | 2023-12-04T22:43:33 | CONTRIBUTOR | null | Allow users to pass a generic `BaseStore[str, bytes]` to MultiVectorRetriever, removing the need to use the `create_kv_docstore` method. This encoding will now happen internally.
@rlancemartin @eyurtsev | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14202/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14202/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14202",
"html_url": "https://github.com/langchain-ai/langchain/pull/14202",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14202.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14202.patch",
"merged_at": "2023-12-04T22:43:33"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14201 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14201/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14201/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14201/events | https://github.com/langchain-ai/langchain/pull/14201 | 2,022,669,661 | PR_kwDOIPDwls5g_b08 | 14,201 | Prefer byte store interface for Upstash BaseStore to match other Redis | {
"login": "jacoblee93",
"id": 6952323,
"node_id": "MDQ6VXNlcjY5NTIzMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jacoblee93",
"html_url": "https://github.com/jacoblee93",
"followers_url": "https://api.github.com/users/jacoblee93/followers",
"following_url": "https://api.github.com/users/jacoblee93/following{/other_user}",
"gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions",
"organizations_url": "https://api.github.com/users/jacoblee93/orgs",
"repos_url": "https://api.github.com/users/jacoblee93/repos",
"events_url": "https://api.github.com/users/jacoblee93/events{/privacy}",
"received_events_url": "https://api.github.com/users/jacoblee93/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": 5955630415,
"node_id": "LA_kwDOIPDwls8AAAABYvu1Tw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis",
"name": "integration: redis",
"color": "F9D0C4",
"default": false,
"description": "Any integration that uses Redis"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | {
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2023-12-03T19:01:32 | 2023-12-04T22:17:34 | 2023-12-04T22:17:33 | CONTRIBUTOR | null | If we are not going to make the existing Docstore class also implement `BaseStore[str, Document]`, IMO all base store implementations should always be `[str, bytes]` so that they are more interchangeable.
CC @rlancemartin @eyurtsev | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14201/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14201/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14201",
"html_url": "https://github.com/langchain-ai/langchain/pull/14201",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14201.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14201.patch",
"merged_at": "2023-12-04T22:17:33"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14200 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14200/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14200/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14200/events | https://github.com/langchain-ai/langchain/pull/14200 | 2,022,668,263 | PR_kwDOIPDwls5g_biL | 14,200 | delete stray test | {
"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": 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 | 2023-12-03T18:58:12 | 2023-12-03T19:06:58 | 2023-12-03T19:06:57 | COLLABORATOR | null | was added to an old path
also im not sure this is even really a test file? which is why i didnt move it
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14200/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14200/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14200",
"html_url": "https://github.com/langchain-ai/langchain/pull/14200",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14200.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14200.patch",
"merged_at": "2023-12-03T19:06:57"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14199 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14199/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14199/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14199/events | https://github.com/langchain-ai/langchain/issues/14199 | 2,022,602,013 | I_kwDOIPDwls54jnUd | 14,199 | Can i save openai token usage information which get from get_openai_callback directlly to database with SQLChatMessageHistory | {
"login": "lx1054331851",
"id": 12423206,
"node_id": "MDQ6VXNlcjEyNDIzMjA2",
"avatar_url": "https://avatars.githubusercontent.com/u/12423206?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lx1054331851",
"html_url": "https://github.com/lx1054331851",
"followers_url": "https://api.github.com/users/lx1054331851/followers",
"following_url": "https://api.github.com/users/lx1054331851/following{/other_user}",
"gists_url": "https://api.github.com/users/lx1054331851/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lx1054331851/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lx1054331851/subscriptions",
"organizations_url": "https://api.github.com/users/lx1054331851/orgs",
"repos_url": "https://api.github.com/users/lx1054331851/repos",
"events_url": "https://api.github.com/users/lx1054331851/events{/privacy}",
"received_events_url": "https://api.github.com/users/lx1054331851/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-03T15:59:28 | 2023-12-03T16:06:05 | null | NONE | null | ### Issue you'd like to raise.
_No response_
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14199/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14199/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14198 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14198/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14198/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14198/events | https://github.com/langchain-ai/langchain/issues/14198 | 2,022,589,587 | I_kwDOIPDwls54jkST | 14,198 | Amazon Kendra: Full answer text not returned for FAQ type answers | {
"login": "shabie",
"id": 30535146,
"node_id": "MDQ6VXNlcjMwNTM1MTQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/30535146?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shabie",
"html_url": "https://github.com/shabie",
"followers_url": "https://api.github.com/users/shabie/followers",
"following_url": "https://api.github.com/users/shabie/following{/other_user}",
"gists_url": "https://api.github.com/users/shabie/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shabie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shabie/subscriptions",
"organizations_url": "https://api.github.com/users/shabie/orgs",
"repos_url": "https://api.github.com/users/shabie/repos",
"events_url": "https://api.github.com/users/shabie/events{/privacy}",
"received_events_url": "https://api.github.com/users/shabie/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": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
}
] | open | false | null | [] | null | 1 | 2023-12-03T15:31:50 | 2023-12-03T15:34:03 | null | NONE | null | ### System Info
Langchain version: 0.0.342
Python version: 3.9
OS: Mac OS
### Who can help?
@3coins
### 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
Use any Kendra index that contains FAQ style answers and try to query them as a retriever.
### Expected behavior
### Background
When using `AmazonKendraRetriever`, `get_relevant_documents` first calls the `retrieve` API and if nothing is returned, it calls the `query` API (see [here](https://github.com/langchain-ai/langchain/blob/0bdb4343838c4513d15cd9702868adf6f652421c/libs/langchain/langchain/retrievers/kendra.py#L391-L399)).
The `query` API has the capability to return answers from not just documents but also Kendra's FAQs (as described in [API docs for Kendra](https://docs.aws.amazon.com/kendra/latest/dg/query-responses-types.html#response-types)).
### Issue
While Kendra normally only returns snippets, it does return full text for FAQs. The problem is that it is ignored by langchain today hence return snippet for FAQs also. The problem lies in these line of code:
https://github.com/langchain-ai/langchain/blob/0bdb4343838c4513d15cd9702868adf6f652421c/libs/langchain/langchain/retrievers/kendra.py#L225-L244
The Key `AnswerText` is always assumed to be at the 0th index when it can often be in fact on the 1st index. No such assumption can made also based on the [documentation](https://docs.aws.amazon.com/kendra/latest/APIReference/API_QueryResultItem.html#API_QueryResultItem_Contents) of the `QueryResultItem` structure.
For the Kendra index I am testing with, this is indeed the case which is how I discovered the bug.
This is easily fixable where we loop over all indices to search for the key `AnswerText`. I can make the PR if this is deemed as the desired behavior.
Side note: I am happy to add some tests for `kendra.py` which I realized has no testing impemented. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14198/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14198/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14197 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14197/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14197/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14197/events | https://github.com/langchain-ai/langchain/pull/14197 | 2,022,446,765 | PR_kwDOIPDwls5g-uA2 | 14,197 | Fix Html2TextTransformer for shallow copy | {
"login": "FacerAin",
"id": 16442978,
"node_id": "MDQ6VXNlcjE2NDQyOTc4",
"avatar_url": "https://avatars.githubusercontent.com/u/16442978?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/FacerAin",
"html_url": "https://github.com/FacerAin",
"followers_url": "https://api.github.com/users/FacerAin/followers",
"following_url": "https://api.github.com/users/FacerAin/following{/other_user}",
"gists_url": "https://api.github.com/users/FacerAin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/FacerAin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FacerAin/subscriptions",
"organizations_url": "https://api.github.com/users/FacerAin/orgs",
"repos_url": "https://api.github.com/users/FacerAin/repos",
"events_url": "https://api.github.com/users/FacerAin/events{/privacy}",
"received_events_url": "https://api.github.com/users/FacerAin/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": 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-03T09:53:16 | 2023-12-03T16:45:35 | 2023-12-03T16:45:35 | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
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,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
Hi,
There is some unintended behavior in Html2TextTransformer.
The current code is **directly modifying the original documents that are passed as arguments to the function.**
Therefore, not only the return of the function but also the input variables are being modified simultaneously.
**To resolve this, I added unit test code as well.**
reference link: [Shallow vs Deep Copying of Python Objects](https://realpython.com/copying-python-objects/)
Thanks! ☺️
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14197/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14197/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14197",
"html_url": "https://github.com/langchain-ai/langchain/pull/14197",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14197.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14197.patch",
"merged_at": "2023-12-03T16:45:35"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14196 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14196/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14196/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14196/events | https://github.com/langchain-ai/langchain/issues/14196 | 2,022,412,641 | I_kwDOIPDwls54i5Fh | 14,196 | TypeError: 'HumanMessage' object is not subscriptable | {
"login": "Kunal1505",
"id": 66168931,
"node_id": "MDQ6VXNlcjY2MTY4OTMx",
"avatar_url": "https://avatars.githubusercontent.com/u/66168931?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Kunal1505",
"html_url": "https://github.com/Kunal1505",
"followers_url": "https://api.github.com/users/Kunal1505/followers",
"following_url": "https://api.github.com/users/Kunal1505/following{/other_user}",
"gists_url": "https://api.github.com/users/Kunal1505/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Kunal1505/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kunal1505/subscriptions",
"organizations_url": "https://api.github.com/users/Kunal1505/orgs",
"repos_url": "https://api.github.com/users/Kunal1505/repos",
"events_url": "https://api.github.com/users/Kunal1505/events{/privacy}",
"received_events_url": "https://api.github.com/users/Kunal1505/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 | 6 | 2023-12-03T07:57:32 | 2024-01-11T03:49:30 | null | NONE | null | Hey @dosubot, im using this code
memory = ConversationBufferMemory(
return_messages=True, output_key="answer", input_key="question"
)
retriever = load_emdeddings(cfg.faiss_persist_directory, cfg.embeddings).as_retriever(search_type="similarity_score_threshold",
search_kwargs={"score_threshold": .65,
"k": 2})
memory.load_memory_variables({})
_template = """Given the following conversation and a follow up question, rephrase the follow up question to be a standalone question, in its original language.
Chat History:
{chat_history}
Follow Up Input: {question}
Standalone question:"""
CONDENSE_QUESTION_PROMPT = PromptTemplate.from_template(_template)
template = """Answer the question based only on the following context:
{context}
Question: {question}
"""
ANSWER_PROMPT = ChatPromptTemplate.from_template(template)
DEFAULT_DOCUMENT_PROMPT = PromptTemplate.from_template(template="{page_content}")
def _combine_documents(
docs, document_prompt=DEFAULT_DOCUMENT_PROMPT, document_separator="\n\n"
):
doc_strings = [format_document(doc, document_prompt) for doc in docs]
return document_separator.join(doc_strings)
def _format_chat_history(chat_history: List[Tuple[str, str]]) -> str:
# chat history is of format:
# [
# (human_message_str, ai_message_str),
# ...
# ]
# see below for an example of how it's invoked
buffer = ""
for dialogue_turn in chat_history:
human = "Human: " + dialogue_turn[0]
ai = "Assistant: " + dialogue_turn[1]
buffer += "\n" + "\n".join([human, ai])
return buffer
_inputs = RunnableParallel(
standalone_question=RunnablePassthrough.assign(
chat_history=lambda x: _format_chat_history(x["chat_history"])
)
| CONDENSE_QUESTION_PROMPT
| ChatOpenAI(temperature=0)
| StrOutputParser(),
)
_context = {
"context": itemgetter("standalone_question") | retriever | _combine_documents,
"question": lambda x: x["standalone_question"],
}
conversational_qa_chain = _inputs | _context | ANSWER_PROMPT | ChatOpenAI()
loaded_memory = RunnablePassthrough.assign(
chat_history=RunnableLambda(memory.load_memory_variables) | itemgetter("history")
)
# Now we calculate the standalone question
standalone_question = {
"standalone_question": {
"question": lambda x: x["question"],
"chat_history": lambda x: _format_chat_history(x["chat_history"]),
}
| CONDENSE_QUESTION_PROMPT
| ChatOpenAI(temperature=0)
| StrOutputParser(),
}
# Now we retrieve the documents
retrieved_documents = {
"docs": itemgetter("standalone_question") | retriever,
"question": lambda x: x["standalone_question"],
}
# Now we construct the inputs for the final prompt
final_inputs = {
"context": lambda x: _combine_documents(x["docs"]),
"question": itemgetter("question"),
}
# And finally, we do the part that returns the answers
answer = {
"answer": final_inputs | ANSWER_PROMPT | ChatOpenAI(),
"docs": itemgetter("docs"),
}
# And now we put it all together!
final_chain = loaded_memory | standalone_question | retrieved_documents | answer
inputs = {"question": "what is my name?"}
result = final_chain.invoke(inputs)
memory.save_context(inputs, {"answer": result["answer"].content})
result
**if i run this second time then im getting this error
TypeError: 'HumanMessage' object is not subscriptable**
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14196/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14196/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14195 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14195/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14195/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14195/events | https://github.com/langchain-ai/langchain/pull/14195 | 2,022,390,395 | PR_kwDOIPDwls5g-jC1 | 14,195 | Asynchronous human-in-the-loop callback | {
"login": "uthunderbird",
"id": 2608653,
"node_id": "MDQ6VXNlcjI2MDg2NTM=",
"avatar_url": "https://avatars.githubusercontent.com/u/2608653?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/uthunderbird",
"html_url": "https://github.com/uthunderbird",
"followers_url": "https://api.github.com/users/uthunderbird/followers",
"following_url": "https://api.github.com/users/uthunderbird/following{/other_user}",
"gists_url": "https://api.github.com/users/uthunderbird/gists{/gist_id}",
"starred_url": "https://api.github.com/users/uthunderbird/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/uthunderbird/subscriptions",
"organizations_url": "https://api.github.com/users/uthunderbird/orgs",
"repos_url": "https://api.github.com/users/uthunderbird/repos",
"events_url": "https://api.github.com/users/uthunderbird/events{/privacy}",
"received_events_url": "https://api.github.com/users/uthunderbird/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-03T06:27:43 | 2023-12-03T22:57:07 | 2023-12-03T22:57:07 | CONTRIBUTOR | null | **Description:** Adding a possibility to use asynchronous callback handler in human-in-the-loop validation tool. Very useful, for example, if you want to implement a validation over Telegram bot.
**Issue:** -
**Dependencies:** - | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14195/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14195/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14195",
"html_url": "https://github.com/langchain-ai/langchain/pull/14195",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14195.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14195.patch",
"merged_at": "2023-12-03T22:57:07"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14194 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14194/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14194/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14194/events | https://github.com/langchain-ai/langchain/pull/14194 | 2,022,386,286 | PR_kwDOIPDwls5g-iOy | 14,194 | Fix: (issue #14127) Volc Engine MaaS import error | {
"login": "h3l",
"id": 1664952,
"node_id": "MDQ6VXNlcjE2NjQ5NTI=",
"avatar_url": "https://avatars.githubusercontent.com/u/1664952?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/h3l",
"html_url": "https://github.com/h3l",
"followers_url": "https://api.github.com/users/h3l/followers",
"following_url": "https://api.github.com/users/h3l/following{/other_user}",
"gists_url": "https://api.github.com/users/h3l/gists{/gist_id}",
"starred_url": "https://api.github.com/users/h3l/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/h3l/subscriptions",
"organizations_url": "https://api.github.com/users/h3l/orgs",
"repos_url": "https://api.github.com/users/h3l/repos",
"events_url": "https://api.github.com/users/h3l/events{/privacy}",
"received_events_url": "https://api.github.com/users/h3l/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-03T06:09:09 | 2023-12-03T16:43:24 | 2023-12-03T16:43:24 | CONTRIBUTOR | null | - **Description:** fix Volc Engine MaaS import error
- **Issue:** [the issue # it fixes (if applicable),](https://github.com/langchain-ai/langchain/issues/14127)
- **Dependencies:** None
- **Tag maintainer:** @baskaryan
- **Twitter handle:** | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14194/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14194/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14194",
"html_url": "https://github.com/langchain-ai/langchain/pull/14194",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14194.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14194.patch",
"merged_at": "2023-12-03T16:43:24"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14193 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14193/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14193/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14193/events | https://github.com/langchain-ai/langchain/pull/14193 | 2,022,373,156 | PR_kwDOIPDwls5g-fp1 | 14,193 | Mask API key for Arcee LLM | {
"login": "eekaiboon",
"id": 2704190,
"node_id": "MDQ6VXNlcjI3MDQxOTA=",
"avatar_url": "https://avatars.githubusercontent.com/u/2704190?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eekaiboon",
"html_url": "https://github.com/eekaiboon",
"followers_url": "https://api.github.com/users/eekaiboon/followers",
"following_url": "https://api.github.com/users/eekaiboon/following{/other_user}",
"gists_url": "https://api.github.com/users/eekaiboon/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eekaiboon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eekaiboon/subscriptions",
"organizations_url": "https://api.github.com/users/eekaiboon/orgs",
"repos_url": "https://api.github.com/users/eekaiboon/repos",
"events_url": "https://api.github.com/users/eekaiboon/events{/privacy}",
"received_events_url": "https://api.github.com/users/eekaiboon/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."
}
] | closed | false | {
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2023-12-03T05:05:09 | 2023-12-03T23:11:43 | 2023-12-03T23:11:43 | CONTRIBUTOR | null | - **Description:** Mask API key for Arcee LLM and its associated unit tests
- **Issue:** https://github.com/langchain-ai/langchain/issues/12165
- **Dependencies:** N/A
- **Tag maintainer:** @eyurtsev
- **Twitter handle:** `eekaiboon` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14193/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14193/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14193",
"html_url": "https://github.com/langchain-ai/langchain/pull/14193",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14193.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14193.patch",
"merged_at": "2023-12-03T23:11:43"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14192 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14192/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14192/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14192/events | https://github.com/langchain-ai/langchain/issues/14192 | 2,022,372,837 | I_kwDOIPDwls54ivXl | 14,192 | Passing BaseModel type data from agent to tool | {
"login": "dongho0505",
"id": 46551216,
"node_id": "MDQ6VXNlcjQ2NTUxMjE2",
"avatar_url": "https://avatars.githubusercontent.com/u/46551216?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dongho0505",
"html_url": "https://github.com/dongho0505",
"followers_url": "https://api.github.com/users/dongho0505/followers",
"following_url": "https://api.github.com/users/dongho0505/following{/other_user}",
"gists_url": "https://api.github.com/users/dongho0505/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dongho0505/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dongho0505/subscriptions",
"organizations_url": "https://api.github.com/users/dongho0505/orgs",
"repos_url": "https://api.github.com/users/dongho0505/repos",
"events_url": "https://api.github.com/users/dongho0505/events{/privacy}",
"received_events_url": "https://api.github.com/users/dongho0505/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 | 2 | 2023-12-03T05:03:47 | 2023-12-03T15:15:33 | null | NONE | null | ### Issue you'd like to raise.
We create an agent using initialize_agent, register the tool, and configure it to be selected through the agent.
However, in the agent, regardless of which tool is selected, I want to pass a data object called request of BaseModel type when executing the tool.
I would appreciate it if you could tell me how to configure and connect the agent and tool.
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14192/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14192/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14191 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14191/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14191/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14191/events | https://github.com/langchain-ai/langchain/issues/14191 | 2,022,366,141 | I_kwDOIPDwls54itu9 | 14,191 | How do i use system prompt template inside conversational retrieval chain? | {
"login": "Kunal1505",
"id": 66168931,
"node_id": "MDQ6VXNlcjY2MTY4OTMx",
"avatar_url": "https://avatars.githubusercontent.com/u/66168931?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Kunal1505",
"html_url": "https://github.com/Kunal1505",
"followers_url": "https://api.github.com/users/Kunal1505/followers",
"following_url": "https://api.github.com/users/Kunal1505/following{/other_user}",
"gists_url": "https://api.github.com/users/Kunal1505/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Kunal1505/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kunal1505/subscriptions",
"organizations_url": "https://api.github.com/users/Kunal1505/orgs",
"repos_url": "https://api.github.com/users/Kunal1505/repos",
"events_url": "https://api.github.com/users/Kunal1505/events{/privacy}",
"received_events_url": "https://api.github.com/users/Kunal1505/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 | 8 | 2023-12-03T04:30:52 | 2024-01-12T10:09:38 | null | NONE | null | @dosubot , how do i use system prompt inside conversational retreival chain?
prompt = ChatPromptTemplate(
messages=[
SystemMessagePromptTemplate.from_template(
"You are a nice chatbot named James-AI having a conversation with a human."
),
MessagesPlaceholder(variable_name="chat_history"),
HumanMessagePromptTemplate.from_template("{question}")]
)
memory = ConversationBufferWindowMemory(k=5, memory_key="chat_history", return_messages=True)
**retriever = new_db.as_retriever(search_type="similarity_score_threshold",
search_kwargs={"score_threshold": .65,
"k": 2})**
**qa = ConversationalRetrievalChain.from_llm(cfg.llm, verbose=True,retriever=retriever, memory=memory, prompt=prompt)**
if i use like that then it says
ValidationError: 1 validation error for ConversationalRetrievalChain
prompt
extra fields not permitted (type=value_error.extra) | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14191/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14191/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14190 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14190/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14190/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14190/events | https://github.com/langchain-ai/langchain/pull/14190 | 2,022,345,993 | PR_kwDOIPDwls5g-Zmn | 14,190 | Added Python `logging` tracer | {
"login": "jamesbraza",
"id": 8990777,
"node_id": "MDQ6VXNlcjg5OTA3Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesbraza",
"html_url": "https://github.com/jamesbraza",
"followers_url": "https://api.github.com/users/jamesbraza/followers",
"following_url": "https://api.github.com/users/jamesbraza/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions",
"organizations_url": "https://api.github.com/users/jamesbraza/orgs",
"repos_url": "https://api.github.com/users/jamesbraza/repos",
"events_url": "https://api.github.com/users/jamesbraza/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesbraza/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-03T04:03:29 | 2023-12-03T17:37:10 | 2023-12-03T17:36:31 | CONTRIBUTOR | null | This PR creates a logging handler and adds a simple unit test of it
Supercedes https://github.com/langchain-ai/langchain/pull/12862 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14190/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14190/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14190",
"html_url": "https://github.com/langchain-ai/langchain/pull/14190",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14190.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14190.patch",
"merged_at": "2023-12-03T17:36:31"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14189 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14189/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14189/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14189/events | https://github.com/langchain-ai/langchain/issues/14189 | 2,022,302,241 | I_kwDOIPDwls54ieIh | 14,189 | Issue: How to conveniently disable langsmith calls? | {
"login": "kebijuelun",
"id": 29164878,
"node_id": "MDQ6VXNlcjI5MTY0ODc4",
"avatar_url": "https://avatars.githubusercontent.com/u/29164878?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kebijuelun",
"html_url": "https://github.com/kebijuelun",
"followers_url": "https://api.github.com/users/kebijuelun/followers",
"following_url": "https://api.github.com/users/kebijuelun/following{/other_user}",
"gists_url": "https://api.github.com/users/kebijuelun/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kebijuelun/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kebijuelun/subscriptions",
"organizations_url": "https://api.github.com/users/kebijuelun/orgs",
"repos_url": "https://api.github.com/users/kebijuelun/repos",
"events_url": "https://api.github.com/users/kebijuelun/events{/privacy}",
"received_events_url": "https://api.github.com/users/kebijuelun/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"
}
] | open | false | null | [] | null | 2 | 2023-12-03T02:55:24 | 2024-01-12T00:23:43 | null | NONE | null | ### Issue you'd like to raise.
When I use an existing library that includes langsmith (such as https://github.com/langchain-ai/weblangchain), but I don't have access to langsmith API as I'm still on the waitlist. How can I quickly disable the langsmith functionality without commenting out the code?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14189/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14189/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14188 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14188/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14188/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14188/events | https://github.com/langchain-ai/langchain/pull/14188 | 2,022,274,655 | PR_kwDOIPDwls5g-KJ6 | 14,188 | docs: `integrations/toolkits/office365` notebook 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": 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-03T00:59:59 | 2023-12-03T20:27:52 | 2023-12-03T16:43:00 | COLLABORATOR | null | Added more descriptions and authentication details. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14188/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14188/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14188",
"html_url": "https://github.com/langchain-ai/langchain/pull/14188",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14188.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14188.patch",
"merged_at": "2023-12-03T16:43:00"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14186 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14186/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14186/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14186/events | https://github.com/langchain-ai/langchain/pull/14186 | 2,022,254,418 | PR_kwDOIPDwls5g-GIO | 14,186 | Multi-modal RAG template | {
"login": "rlancemartin",
"id": 122662504,
"node_id": "U_kgDOB0-uaA",
"avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rlancemartin",
"html_url": "https://github.com/rlancemartin",
"followers_url": "https://api.github.com/users/rlancemartin/followers",
"following_url": "https://api.github.com/users/rlancemartin/following{/other_user}",
"gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions",
"organizations_url": "https://api.github.com/users/rlancemartin/orgs",
"repos_url": "https://api.github.com/users/rlancemartin/repos",
"events_url": "https://api.github.com/users/rlancemartin/events{/privacy}",
"received_events_url": "https://api.github.com/users/rlancemartin/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 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": 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 | 3 | 2023-12-02T23:36:30 | 2023-12-05T21:36:39 | 2023-12-05T21:36:38 | COLLABORATOR | null | * OpenCLIP embeddings
* GPT-4V | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14186/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14186/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14186",
"html_url": "https://github.com/langchain-ai/langchain/pull/14186",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14186.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14186.patch",
"merged_at": "2023-12-05T21:36:38"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14185 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14185/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14185/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14185/events | https://github.com/langchain-ai/langchain/issues/14185 | 2,022,245,713 | I_kwDOIPDwls54iQVR | 14,185 | Issue: Unable to properly parse output of custom chat agent. | {
"login": "madhavthaker1",
"id": 90870356,
"node_id": "MDQ6VXNlcjkwODcwMzU2",
"avatar_url": "https://avatars.githubusercontent.com/u/90870356?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/madhavthaker1",
"html_url": "https://github.com/madhavthaker1",
"followers_url": "https://api.github.com/users/madhavthaker1/followers",
"following_url": "https://api.github.com/users/madhavthaker1/following{/other_user}",
"gists_url": "https://api.github.com/users/madhavthaker1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/madhavthaker1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/madhavthaker1/subscriptions",
"organizations_url": "https://api.github.com/users/madhavthaker1/orgs",
"repos_url": "https://api.github.com/users/madhavthaker1/repos",
"events_url": "https://api.github.com/users/madhavthaker1/events{/privacy}",
"received_events_url": "https://api.github.com/users/madhavthaker1/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 | 4 | 2023-12-02T22:59:44 | 2023-12-21T02:53:58 | null | NONE | null | ### Issue you'd like to raise.
pip list:
- langchain 0.0.314
- langchain-core 0.0.8
```python
prompt_template = """
### [INST]
Assistant is a large language model trained by Mistral.
Assistant is designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-depth explanations and discussions on a wide range of topics. As a language model, Assistant is able to generate human-like text based on the input it receives, allowing it to engage in natural-sounding conversations and provide responses that are coherent and relevant to the topic at hand.
Assistant is constantly learning and improving, and its capabilities are constantly evolving. It is able to process and understand large amounts of text, and can use this knowledge to provide accurate and informative responses to a wide range of questions. Additionally, Assistant is able to generate its own text based on the input it receives, allowing it to engage in discussions and provide explanations and descriptions on a wide range of topics.
Overall, Assistant is a powerful tool that can help with a wide range of tasks and provide valuable insights and information on a wide range of topics. Whether you need help with a specific question or just want to have a conversation about a particular topic, Assistant is here to assist.
Context:
------
Assistant has access to the following tools:
{tools}
To use a tool, please use the following format:
'''
Thought: Do I need to use a tool? Yes
Action: the action to take, should be one of [{tool_names}]
Action Input: the input to the action
Observation: the result of the action
'''
When you have a response to say to the Human, or if you do not need to use a tool, you MUST use the format:
'''
Thought: Do I need to use a tool? No
Final Answer: [your response here]
'''
Begin!
Previous conversation history:
{chat_history}
New input: {input}
Current Scratchpad:
{agent_scratchpad}
[/INST]
"""
# Create prompt from prompt template
prompt = PromptTemplate(
input_variables=['agent_scratchpad', 'chat_history', 'input', 'tool_names', 'tools'],
template=prompt_template,
)
prompt = prompt.partial(
tools=render_text_description(tools),
tool_names=", ".join([t.name for t in tools]),
)
# Create llm chain
llm_chain = LLMChain(llm=mistral_llm, prompt=prompt)
from langchain.agents import AgentOutputParser
from langchain_core.agents import AgentAction, AgentFinish
import re
from typing import List, Union
class CustomOutputParser(AgentOutputParser):
def parse(self, output) -> Union[AgentAction, AgentFinish]:
print(output)
output = ' '.join(output.split())
# Check if the output contains 'Final Answer:'
if 'Final Answer:' in output:
# Extract the final answer from the output
final_answer = output.split('Final Answer:')[1].strip()
print(final_answer)
agent_finish = AgentFinish(
# Return values is generally always a dictionary with a single `output` key
# It is not recommended to try anything else at the moment :)
return_values={"output": final_answer},
log=output,
)
print(agent_finish)
return agent_finish
else:
# Handle other cases or raise an error
raise ValueError("Unexpected output format")
output_parser = CustomOutputParser()
# Create an agent with your LLMChain
agent = ConversationalAgent(llm_chain=llm_chain , output_parser=output_parser)
memory = ConversationBufferMemory(memory_key="chat_history")
agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True, memory=memory)
agent_executor.run("Hi, I'm Madhav?")
```
I get the following output:
```python
> Entering new AgentExecutor chain...
Error in StdOutCallbackHandler.on_agent_action callback: 'tuple' object has no attribute 'log'
Thought: Do I need to use a tool? No
Final Answer: Hello, Madhav! How can I assist you today?
Hello, Madhav! How can I assist you today?
return_values={'output': 'Hello, Madhav! How can I assist you today?'} log='Thought: Do I need to use a tool? No Final Answer: Hello, Madhav! How can I assist you today?'
File /opt/conda/lib/python3.10/site-packages/langchain/agents/agent.py:1141, in AgentExecutor._call(self, inputs, run_manager)
1139 # We now enter the agent loop (until it returns something).
1140 while self._should_continue(iterations, time_elapsed):
-> 1141 next_step_output = self._take_next_step(
1142 name_to_tool_map,
1143 color_mapping,
1144 inputs,
1145 intermediate_steps,
1146 run_manager=run_manager,
1147 )
1148 if isinstance(next_step_output, AgentFinish):
1149 return self._return(
1150 next_step_output, intermediate_steps, run_manager=run_manager
1151 )
File /opt/conda/lib/python3.10/site-packages/langchain/agents/agent.py:983, in AgentExecutor._take_next_step(self, name_to_tool_map, color_mapping, inputs, intermediate_steps, run_manager)
981 run_manager.on_agent_action(agent_action, color="green")
982 # Otherwise we lookup the tool
--> 983 if agent_action.tool in name_to_tool_map:
984 tool = name_to_tool_map[agent_action.tool]
985 return_direct = tool.return_direct
AttributeError: 'tuple' object has no attribute 'tool'
...
```
I'm having trouble understading what is happening here. I'm certain my output contains `Final Answer` so I'd assume I need an `ActionFinish` as per [this tutorial](https://python.langchain.com/docs/modules/agents/how_to/custom_llm_agent#output-parser).
Any tips would be much appreciated!
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14185/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14185/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14184 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14184/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14184/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14184/events | https://github.com/langchain-ai/langchain/pull/14184 | 2,022,243,720 | PR_kwDOIPDwls5g-EGy | 14,184 | langchain[patch]: Release langchain 0.0.345 | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-02T22:51:13 | 2023-12-02T23:53:50 | 2023-12-02T23:53:49 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14184/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14184/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14184",
"html_url": "https://github.com/langchain-ai/langchain/pull/14184",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14184.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14184.patch",
"merged_at": "2023-12-02T23:53:49"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14183 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14183/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14183/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14183/events | https://github.com/langchain-ai/langchain/pull/14183 | 2,022,243,160 | PR_kwDOIPDwls5g-D_v | 14,183 | Pass kwargs to chat fireworks | {
"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": 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 | 2023-12-02T22:48:39 | 2023-12-03T23:12:03 | 2023-12-03T23:12:02 | COLLABORATOR | null | Otherwise `.bind()` isn't really any good | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14183/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14183/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14183",
"html_url": "https://github.com/langchain-ai/langchain/pull/14183",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14183.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14183.patch",
"merged_at": "2023-12-03T23:12:02"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14182 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14182/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14182/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14182/events | https://github.com/langchain-ai/langchain/pull/14182 | 2,022,231,025 | PR_kwDOIPDwls5g-Bca | 14,182 | core[patch]: Release 0.0.9 | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-02T22:15:25 | 2023-12-02T22:40:57 | 2023-12-02T22:40:56 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14182/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14182/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14182",
"html_url": "https://github.com/langchain-ai/langchain/pull/14182",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14182.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14182.patch",
"merged_at": "2023-12-02T22:40:56"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14181 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14181/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14181/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14181/events | https://github.com/langchain-ai/langchain/pull/14181 | 2,022,229,114 | PR_kwDOIPDwls5g-BD6 | 14,181 | docs: moved `vectorstore` notebook file | {
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 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-02T22:08:52 | 2023-12-05T02:12:26 | 2023-12-04T22:44:07 | COLLABORATOR | null | The `/docs/integrations/toolkits/vectorstore` page is not the Integration page. The best place is in `/docs/modules/agents/how_to/`
- Moved the file
- Rerouted the page URL | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14181/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14181/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14181",
"html_url": "https://github.com/langchain-ai/langchain/pull/14181",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14181.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14181.patch",
"merged_at": "2023-12-04T22:44:07"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14180 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14180/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14180/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14180/events | https://github.com/langchain-ai/langchain/issues/14180 | 2,022,198,845 | I_kwDOIPDwls54iE49 | 14,180 | Add new Document Loader for JIRA | {
"login": "Wosin",
"id": 7119802,
"node_id": "MDQ6VXNlcjcxMTk4MDI=",
"avatar_url": "https://avatars.githubusercontent.com/u/7119802?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Wosin",
"html_url": "https://github.com/Wosin",
"followers_url": "https://api.github.com/users/Wosin/followers",
"following_url": "https://api.github.com/users/Wosin/following{/other_user}",
"gists_url": "https://api.github.com/users/Wosin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Wosin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Wosin/subscriptions",
"organizations_url": "https://api.github.com/users/Wosin/orgs",
"repos_url": "https://api.github.com/users/Wosin/repos",
"events_url": "https://api.github.com/users/Wosin/events{/privacy}",
"received_events_url": "https://api.github.com/users/Wosin/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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"
}
] | open | false | null | [] | null | 1 | 2023-12-02T20:48:41 | 2023-12-02T20:50:52 | null | NONE | null | ### Feature request
I think Langchain should have a Document Loader that would allow reading all issues from provided project as documents.
### Motivation
Langchain currently has agent for JIRA, but there is no Document Loader that would allow to read all issues from specified project and store them in Vector database. This could be a very useful tool for RAG usecases and building internal knowledge bases in the companies.
### Your contribution
I can create a PR for this issue. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14180/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14180/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14179 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14179/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14179/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14179/events | https://github.com/langchain-ai/langchain/issues/14179 | 2,022,197,127 | I_kwDOIPDwls54iEeH | 14,179 | Cloudflare Vectorize Support | {
"login": "Manouchehri",
"id": 7232674,
"node_id": "MDQ6VXNlcjcyMzI2NzQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/7232674?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Manouchehri",
"html_url": "https://github.com/Manouchehri",
"followers_url": "https://api.github.com/users/Manouchehri/followers",
"following_url": "https://api.github.com/users/Manouchehri/following{/other_user}",
"gists_url": "https://api.github.com/users/Manouchehri/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Manouchehri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Manouchehri/subscriptions",
"organizations_url": "https://api.github.com/users/Manouchehri/orgs",
"repos_url": "https://api.github.com/users/Manouchehri/repos",
"events_url": "https://api.github.com/users/Manouchehri/events{/privacy}",
"received_events_url": "https://api.github.com/users/Manouchehri/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 | 2 | 2023-12-02T20:43:58 | 2023-12-04T11:51:10 | null | NONE | null | ### Feature request
Looks like it should be doable to have Cloudflare Vectorize support, as there's a HTTP API for Vectorize.
https://developers.cloudflare.com/api/operations/vectorize-list-vectorize-indexes
### Motivation
Similar to langchain-js, it would be nice if we could use Cloudflare Vectorize when using LangChain with Python. It would allow us to use the same vector store for both our TypeScript Workers and Python Lambdas.
https://js.langchain.com/docs/integrations/vectorstores/cloudflare_vectorize
### Your contribution
N/A sadly | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14179/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14179/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14178 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14178/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14178/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14178/events | https://github.com/langchain-ai/langchain/pull/14178 | 2,022,192,929 | PR_kwDOIPDwls5g95l- | 14,178 | Fix: (issue #14177) OpenAI functions Agent official example Error | {
"login": "ggeutzzang",
"id": 375580,
"node_id": "MDQ6VXNlcjM3NTU4MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/375580?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ggeutzzang",
"html_url": "https://github.com/ggeutzzang",
"followers_url": "https://api.github.com/users/ggeutzzang/followers",
"following_url": "https://api.github.com/users/ggeutzzang/following{/other_user}",
"gists_url": "https://api.github.com/users/ggeutzzang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ggeutzzang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ggeutzzang/subscriptions",
"organizations_url": "https://api.github.com/users/ggeutzzang/orgs",
"repos_url": "https://api.github.com/users/ggeutzzang/repos",
"events_url": "https://api.github.com/users/ggeutzzang/events{/privacy}",
"received_events_url": "https://api.github.com/users/ggeutzzang/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-02T20:29:21 | 2023-12-05T02:11:12 | 2023-12-04T20:04:29 | CONTRIBUTOR | null | - **Issue:** #14177
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14178/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14178/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14178",
"html_url": "https://github.com/langchain-ai/langchain/pull/14178",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14178.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14178.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14177 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14177/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14177/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14177/events | https://github.com/langchain-ai/langchain/issues/14177 | 2,022,175,407 | I_kwDOIPDwls54h_Kv | 14,177 | Issues: OpenAI functions Agent official example Error | {
"login": "ggeutzzang",
"id": 375580,
"node_id": "MDQ6VXNlcjM3NTU4MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/375580?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ggeutzzang",
"html_url": "https://github.com/ggeutzzang",
"followers_url": "https://api.github.com/users/ggeutzzang/followers",
"following_url": "https://api.github.com/users/ggeutzzang/following{/other_user}",
"gists_url": "https://api.github.com/users/ggeutzzang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ggeutzzang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ggeutzzang/subscriptions",
"organizations_url": "https://api.github.com/users/ggeutzzang/orgs",
"repos_url": "https://api.github.com/users/ggeutzzang/repos",
"events_url": "https://api.github.com/users/ggeutzzang/events{/privacy}",
"received_events_url": "https://api.github.com/users/ggeutzzang/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | closed | false | null | [] | null | 1 | 2023-12-02T19:29:23 | 2023-12-05T04:53:44 | 2023-12-05T04:53:44 | CONTRIBUTOR | null | ### System Info
- LangChain - 0.0.344
- python version - 3.11.6
- platform - windows11
### Who can help?
https://python.langchain.com/docs/modules/agents/agent_types/openai_functions_agent
When running the above example, the following error occurs.
-----------------------------------------------------------------
```shell
> Entering new AgentExecutor chain...
Invoking: `Search` with `Leo DiCaprio girlfriend`
Vittoria Ceretti
Invoking: `Calculator` with `age ^ 0.43`
> Entering new LLMMathChain chain...
age ^ 0.43```text
Traceback (most recent call last):
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\numexpr\necompiler.py", line 760, in getArguments
a = local_dict[name]
~~~~~~~~~~^^^^^^
KeyError: 'age'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain\chains\llm_math\base.py", line 89, in _evaluate_expression
numexpr.evaluate(
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\numexpr\necompiler.py", line 975, in evaluate
raise e
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\numexpr\necompiler.py", line 874, in validate
arguments = getArguments(names, local_dict, global_dict, _frame_depth=_frame_depth)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\numexpr\necompiler.py", line 762, in getArguments
a = global_dict[name]
~~~~~~~~~~~^^^^^^
KeyError: 'age'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\hyung\GitHubProjects\LangChainStudy\agent\openai_functions.py", line 76, in <module>
agent_executor.invoke(
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain\chains\base.py", line 89, in invoke
return self(
^^^^^
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain\chains\base.py", line 312, in __call__
raise e
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain\chains\base.py", line 306, in __call__
self._call(inputs, run_manager=run_manager)
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain\agents\agent.py", line 1312, in _call
next_step_output = self._take_next_step(
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain\agents\agent.py", line 1038, in _take_next_step
[
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain\agents\agent.py", line 1038, in <listcomp>
[
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain\agents\agent.py", line 1134, in _iter_next_step
observation = tool.run(
^^^^^^^^^
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain_core\tools.py", line 365, in run
raise e
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain_core\tools.py", line 337, in run
self._run(*tool_args, run_manager=run_manager, **tool_kwargs)
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain_core\tools.py", line 510, in _run
self.func(
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain\chains\base.py", line 507, in run
age ** 0.43
'''
...numexpr.evaluate("age ** 0.43")...
return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain\chains\base.py", line 312, in __call__
raise e
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain\chains\base.py", line 306, in __call__
self._call(inputs, run_manager=run_manager)
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain\chains\llm_math\base.py", line 158, in _call
return self._process_llm_result(llm_output, _run_manager)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain\chains\llm_math\base.py", line 112, in _process_llm_result
output = self._evaluate_expression(expression)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hyung\AppData\Local\pypoetry\Cache\virtualenvs\langchainstudy-esJm8fcP-py3.11\Lib\site-packages\langchain\chains\llm_math\base.py", line 96, in _evaluate_expression
raise ValueError(
ValueError: LLMMathChain._evaluate("
age ** 0.43
") raised error: 'age'. Please try again with a valid numerical expression
Process finished with exit code 1
'''
```
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [X] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
https://python.langchain.com/docs/modules/agents/agent_types/openai_functions_agent
Run the example
### Expected behavior
```shell
> Entering new AgentExecutor chain...
Invoking: `Search` with `Leo DiCaprio girlfriend`
Vittoria Ceretti
Invoking: `Calculator` with `25 ^ 0.43`
> Entering new LLMMathChain chain...
25 ^ 0.43'''text
/25 ** 0.43
'''
...numexpr.evaluate("25 ** 0.43")...
Answer: 3.991298452658078
> Finished chain.
Answer: 3.991298452658078Leo DiCaprio's girlfriend is Vittoria Ceretti. Her current age raised to the power of 0.43 is approximately 3.99.
> Finished chain.
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14177/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14177/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14176 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14176/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14176/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14176/events | https://github.com/langchain-ai/langchain/issues/14176 | 2,022,127,350 | I_kwDOIPDwls54hzb2 | 14,176 | DOC: Is there a way to conditionally create/update a Pandas DataFrame agent? | {
"login": "slochower",
"id": 5393995,
"node_id": "MDQ6VXNlcjUzOTM5OTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/5393995?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/slochower",
"html_url": "https://github.com/slochower",
"followers_url": "https://api.github.com/users/slochower/followers",
"following_url": "https://api.github.com/users/slochower/following{/other_user}",
"gists_url": "https://api.github.com/users/slochower/gists{/gist_id}",
"starred_url": "https://api.github.com/users/slochower/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/slochower/subscriptions",
"organizations_url": "https://api.github.com/users/slochower/orgs",
"repos_url": "https://api.github.com/users/slochower/repos",
"events_url": "https://api.github.com/users/slochower/events{/privacy}",
"received_events_url": "https://api.github.com/users/slochower/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"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] | open | false | null | [] | null | 2 | 2023-12-02T17:08:46 | 2023-12-02T21:56:38 | null | NONE | null | ### Issue with current documentation:
Is there a way to conditionally create a Pandas agent using `create_pandas_dataframe_agent` or update the DataFrame the agent has access to?
Say I have an agent that has access to tools like so:
```python
@tool()
def f(query: str) -> pd.DataFrame:
...
agent = initialize_agent(
tools=[f, PythonREPLTool()],
llm,
agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
verbose=True,
handle_parsing_errors=True,
)
```
Since `create_pandas_dataframe_agent` takes the `df` argument, I can't create this agent unless/until the tool `f` is called, producing the DataFrame. But without the specialized Pandas agent, the regular agent seems to be producing bad/bogus Python, trying to filter the DataFrame (either with syntax errors or just doing the wrong thing). Is there a way to either 1) call`create_pandas_dataframe_agent` ahead of time and then later update the contents of the `df` after the function call or 2) create a Pandas agent on-the-fly inside `f` to answer the question (I haven't found a way to pass the current `Thought` content to the nested agent in this case)?
### Idea or request for content:
It would be helpful to see how to work with Pandas data when reading dynamically created DataFrames coming from functions that agents may or may not call. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14176/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14176/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14175 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14175/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14175/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14175/events | https://github.com/langchain-ai/langchain/issues/14175 | 2,022,085,674 | I_kwDOIPDwls54hpQq | 14,175 | ModuleNotFoundError: No module named 'clarifai.auth' | {
"login": "ivandorte",
"id": 1726395,
"node_id": "MDQ6VXNlcjE3MjYzOTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/1726395?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ivandorte",
"html_url": "https://github.com/ivandorte",
"followers_url": "https://api.github.com/users/ivandorte/followers",
"following_url": "https://api.github.com/users/ivandorte/following{/other_user}",
"gists_url": "https://api.github.com/users/ivandorte/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ivandorte/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivandorte/subscriptions",
"organizations_url": "https://api.github.com/users/ivandorte/orgs",
"repos_url": "https://api.github.com/users/ivandorte/repos",
"events_url": "https://api.github.com/users/ivandorte/events{/privacy}",
"received_events_url": "https://api.github.com/users/ivandorte/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 | 1 | 2023-12-02T15:28:09 | 2023-12-18T20:34:37 | 2023-12-04T19:53:36 | NONE | null | ### System Info
platform: Vagrant - Ubuntu 2204
python: 3.9.18
langchain version: 0.0.344
langchain core: 0.0.8
clarifai: 9.10.4
### Who can help?
@hwchase17 @agola11
### Information
- [X] The official example notebooks/scripts
- [x] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
1. Install the latest version of clarifai (9.10.4)
2. Run the example: https://python.langchain.com/docs/integrations/llms/clarifai
``` bash
Could not import clarifai python package. Please install it with `pip install clarifai`.
File 'clarifai.py', line 77, in validate_environment:
raise ImportError( Traceback (most recent call last):
File "/home/vagrant/.virtualenvs/env/lib/python3.9/site-packages/langchain/llms/clarifai.py", line 74, in validate_environment
from clarifai.auth.helper import ClarifaiAuthHelper
ModuleNotFoundError: No module named 'clarifai.auth'
```
### Expected behavior
I expect **ClarifaiAuthHelper** to import correctly.
In the latest version of clarifai **ClarifaiAuthHelper** is imported in this way:
``` python
from clarifai.client.auth.helper import ClarifaiAuthHelper
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14175/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14175/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14174 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14174/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14174/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14174/events | https://github.com/langchain-ai/langchain/pull/14174 | 2,022,033,084 | PR_kwDOIPDwls5g9aAY | 14,174 | Enable Multi-tenancy for Weaviate | {
"login": "khajavi",
"id": 235974,
"node_id": "MDQ6VXNlcjIzNTk3NA==",
"avatar_url": "https://avatars.githubusercontent.com/u/235974?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/khajavi",
"html_url": "https://github.com/khajavi",
"followers_url": "https://api.github.com/users/khajavi/followers",
"following_url": "https://api.github.com/users/khajavi/following{/other_user}",
"gists_url": "https://api.github.com/users/khajavi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/khajavi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/khajavi/subscriptions",
"organizations_url": "https://api.github.com/users/khajavi/orgs",
"repos_url": "https://api.github.com/users/khajavi/repos",
"events_url": "https://api.github.com/users/khajavi/events{/privacy}",
"received_events_url": "https://api.github.com/users/khajavi/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5496111774,
"node_id": "LA_kwDOIPDwls8AAAABR5gCng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20work",
"name": "needs work",
"color": "F9D0C4",
"default": false,
"description": "PRs that need more work"
},
{
"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"
},
{
"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 | 13 | 2023-12-02T13:04:33 | 2024-01-16T14:51:07 | null | NONE | null | <!-- Thank you for contributing to LangChain!
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,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
- **Description:** Added support for multi-tenancy when creating a schema and taking tenant name to index and retrieve data.
- **Dependencies:** nothing
- **Tag maintainer:** @hwchase17
- **Twitter handle:** https://twitter.com/khajavi
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14174/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14174/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14174",
"html_url": "https://github.com/langchain-ai/langchain/pull/14174",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14174.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14174.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14173 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14173/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14173/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14173/events | https://github.com/langchain-ai/langchain/issues/14173 | 2,022,026,571 | I_kwDOIPDwls54ha1L | 14,173 | BUG: csv loader exception, AttributeError: partially initialized module 'importlib.metadata' has no attribute 'version' (most likely due to a circular import) | {
"login": "bluese",
"id": 31332002,
"node_id": "MDQ6VXNlcjMxMzMyMDAy",
"avatar_url": "https://avatars.githubusercontent.com/u/31332002?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bluese",
"html_url": "https://github.com/bluese",
"followers_url": "https://api.github.com/users/bluese/followers",
"following_url": "https://api.github.com/users/bluese/following{/other_user}",
"gists_url": "https://api.github.com/users/bluese/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bluese/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bluese/subscriptions",
"organizations_url": "https://api.github.com/users/bluese/orgs",
"repos_url": "https://api.github.com/users/bluese/repos",
"events_url": "https://api.github.com/users/bluese/events{/privacy}",
"received_events_url": "https://api.github.com/users/bluese/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 | 3 | 2023-12-02T12:42:14 | 2023-12-31T10:26:05 | null | NONE | null | ### System Info
langchain version :
langchain 0.0.344
langchain-core 0.0.8
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
code:
from langchain.document_loaders.csv_loader import CSVLoader
loader = CSVLoader(file_path='./test.csv')
data = loader.load()
### Expected behavior
exception:
Traceback (most recent call last):
File "/Users/liucong/opt/miniconda3/envs/310-test/lib/python3.10/site-packages/langchain_core/__init__.py", line 4, in <module>
__version__ = metadata.version(__package__)
AttributeError: partially initialized module 'importlib.metadata' has no attribute 'version' (most likely due to a circular import)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Users/liucong/opt/miniconda3/envs/310-test/lib/python3.10/site-packages/langchain/__init__.py", line 4, in <module>
from importlib import metadata
File "/Users/liucong/opt/miniconda3/envs/310-test/lib/python3.10/importlib/metadata/__init__.py", line 4, in <module>
import csv
File "/Users/liucong/PycharmProjects/llm_learn/lang_chain/data_connection/csv.py", line 1, in <module>
from langchain.document_loaders.csv_loader import CSVLoader
File "/Users/liucong/opt/miniconda3/envs/310-test/lib/python3.10/site-packages/langchain/document_loaders/__init__.py", line 18, in <module>
from langchain.document_loaders.acreom import AcreomLoader
File "/Users/liucong/opt/miniconda3/envs/310-test/lib/python3.10/site-packages/langchain/document_loaders/acreom.py", line 5, in <module>
from langchain_core.documents import Document
File "/Users/liucong/opt/miniconda3/envs/310-test/lib/python3.10/site-packages/langchain_core/__init__.py", line 5, in <module>
except metadata.PackageNotFoundError:
AttributeError: partially initialized module 'importlib.metadata' has no attribute 'PackageNotFoundError' (most likely due to a circular import) | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14173/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14173/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14171 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14171/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14171/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14171/events | https://github.com/langchain-ai/langchain/pull/14171 | 2,021,998,538 | PR_kwDOIPDwls5g9TJ- | 14,171 | Fixes and Upgrades for the Tongyi LLM and ChatTongyi Model | {
"login": "liushuaikobe",
"id": 2098020,
"node_id": "MDQ6VXNlcjIwOTgwMjA=",
"avatar_url": "https://avatars.githubusercontent.com/u/2098020?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/liushuaikobe",
"html_url": "https://github.com/liushuaikobe",
"followers_url": "https://api.github.com/users/liushuaikobe/followers",
"following_url": "https://api.github.com/users/liushuaikobe/following{/other_user}",
"gists_url": "https://api.github.com/users/liushuaikobe/gists{/gist_id}",
"starred_url": "https://api.github.com/users/liushuaikobe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/liushuaikobe/subscriptions",
"organizations_url": "https://api.github.com/users/liushuaikobe/orgs",
"repos_url": "https://api.github.com/users/liushuaikobe/repos",
"events_url": "https://api.github.com/users/liushuaikobe/events{/privacy}",
"received_events_url": "https://api.github.com/users/liushuaikobe/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": 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 | 6 | 2023-12-02T11:10:45 | 2023-12-12T06:50:17 | 2023-12-12T06:50:17 | CONTRIBUTOR | null | - **Description:** Upgrade the `Tongyi` LLM and `ChatTongyi` Model.
- Fixed typos; it should be `Tongyi`, not `OpenAI`.
- Fixed a bug in `stream_generate_with_retry`; it's a real stream generator now.
- Fixed a bug in `validate_environment`; the `dashscope_api_key` should be properly handled when set by environment variables or initialization parameters.
- Changed the `dashscope` response to incremental output by setting the parameter `incremental_output`, which eliminates the need for the prefix-removal trick.
- Removed some unused parameters, like `n`, `prefix_messages`.
- Added `_stream` method.
- Added async methods, such as `_astream`, `_agenerate`.
- **Issue:** No related issue.
- **Dependencies:** No new dependencies.
- **Tag maintainer:** @baskaryan
PS: Some may be confused about the terms `dashscope`, `tongyi`, and `Qwen`:
- `dashscope`: A platform to deploy LLMs and provide APIs to invoke the LLM.
- `tongyi`: A brand name or overall term about Alibaba Cloud's LLM/AI.
- `Qwen`: An LLM that is open-sourced and deployed in `dashscope`.
We use the `dashscope` SDK to interact with the `tongyi`-`Qwen` LLM.
~~And the fix and upgrade of the chat model `ChatTongyi` will be addressed in future PRs.~~ (Already included in this PR)
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14171/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14171/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14171",
"html_url": "https://github.com/langchain-ai/langchain/pull/14171",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14171.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14171.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14170 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14170/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14170/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14170/events | https://github.com/langchain-ai/langchain/pull/14170 | 2,021,991,104 | PR_kwDOIPDwls5g9RoY | 14,170 | Mask API key for Tongyi ChatModel and LLM | {
"login": "fadilparves",
"id": 8860950,
"node_id": "MDQ6VXNlcjg4NjA5NTA=",
"avatar_url": "https://avatars.githubusercontent.com/u/8860950?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/fadilparves",
"html_url": "https://github.com/fadilparves",
"followers_url": "https://api.github.com/users/fadilparves/followers",
"following_url": "https://api.github.com/users/fadilparves/following{/other_user}",
"gists_url": "https://api.github.com/users/fadilparves/gists{/gist_id}",
"starred_url": "https://api.github.com/users/fadilparves/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fadilparves/subscriptions",
"organizations_url": "https://api.github.com/users/fadilparves/orgs",
"repos_url": "https://api.github.com/users/fadilparves/repos",
"events_url": "https://api.github.com/users/fadilparves/events{/privacy}",
"received_events_url": "https://api.github.com/users/fadilparves/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | {
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 2 | 2023-12-02T10:49:44 | 2023-12-07T13:09:45 | null | NONE | null | - **Description:** Added masking of api_key for tongyi chat models and llms `langchain/chat_models/tongyi.py` & `langchain/llms/tongyi.py`,
- **Issue:** https://github.com/langchain-ai/langchain/issues/12165
- **Dependencies:** dashscope
- **Tag maintainer:** @eyurtsev
- **Twitter handle:** FadilParves | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14170/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14170/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14170",
"html_url": "https://github.com/langchain-ai/langchain/pull/14170",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14170.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14170.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14169 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14169/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14169/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14169/events | https://github.com/langchain-ai/langchain/issues/14169 | 2,021,955,776 | I_kwDOIPDwls54hJjA | 14,169 | Local LLM ISSUE GGML_ASSERT | {
"login": "CoderTom314",
"id": 147815695,
"node_id": "U_kgDOCM99Dw",
"avatar_url": "https://avatars.githubusercontent.com/u/147815695?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/CoderTom314",
"html_url": "https://github.com/CoderTom314",
"followers_url": "https://api.github.com/users/CoderTom314/followers",
"following_url": "https://api.github.com/users/CoderTom314/following{/other_user}",
"gists_url": "https://api.github.com/users/CoderTom314/gists{/gist_id}",
"starred_url": "https://api.github.com/users/CoderTom314/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CoderTom314/subscriptions",
"organizations_url": "https://api.github.com/users/CoderTom314/orgs",
"repos_url": "https://api.github.com/users/CoderTom314/repos",
"events_url": "https://api.github.com/users/CoderTom314/events{/privacy}",
"received_events_url": "https://api.github.com/users/CoderTom314/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": 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 | 6 | 2023-12-02T09:07:35 | 2023-12-02T13:09:21 | null | NONE | null | ### Issue you'd like to raise.
Please help!
Error:
GGML_ASSERT: C:\Users\user\AppData\Local\Temp\pip-install-l0_yao9s\llama-cpp-python_686671b6d7b8440a98e23acb5bc6a41a\vendor\llama.cpp\ggml.c:15149: cgraph->nodes[cgraph->n_nodes - 1] == tensor
GGML_ASSERT: C:\Users\user\AppData\Local\Temp\pip-install-l0_yao9s\llama-cpp-python_686671b6d7b8440a98e23acb5bc6a41a\vendor\llama.cpp\ggml.c:4326: ggml_nelements(a) == (ne0ne1ne2*ne3)
Repeated trials yield same results.
Local llm: TheBloke/Llama-2-7B-Chat-GGUF (llama-2-7b-chat.Q6_K.gguf)
Embedding: BAAI/bge-large-en-v1.5
```
import os
os.environ['OPENAI_API_KEY'] = 'dummy_key'
# import paperscraper
from paperqa import Docs
from langchain.llms.llamacpp import LlamaCpp
from langchain.prompts import PromptTemplate
from langchain.chains import LLMChain
from langchain.callbacks.manager import CallbackManager
from langchain.embeddings import LlamaCppEmbeddings
from langchain.embeddings import HuggingFaceBgeEmbeddings
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
# Make sure the model path is correct for your system!
llm = LlamaCpp(
model_path="C:/paper-qa/models/llama-2-7b-chat.Q6_K.gguf", callbacks=[StreamingStdOutCallbackHandler()],
)
model_name = "BAAI/bge-large-en-v1.5"
model_kwargs = {'device': 'cpu'}
encode_kwargs = {'normalize_embeddings': True}
embeddings = HuggingFaceBgeEmbeddings(
model_name=model_name,
# model_kwargs=model_kwargs,
# encode_kwargs=encode_kwargs,
cache_folder="C:\paper-qa\models"
)
# embeddings = LlamaCppEmbeddings(
# model_path="C:/paper-qa/models/bge-large-en-v1_5_pytorch_model.bin"
# )
# model_name = "BAAI/bge-large-en-v1.5"
# model_kwargs = {'device': 'cpu'}
# encode_kwargs = {'normalize_embeddings': False}
# hf = HuggingFaceEmbeddings(
# model_name=model_name,
# model_kwargs=model_kwargs,
# encode_kwargs=encode_kwargs
# )
docs = Docs(llm=llm, embeddings=embeddings)
# keyword_search = 'bispecific antibody manufacture'
# papers = paperscraper.search_papers(keyword_search, limit=2)
# for path,data in papers.items():
# try:
# docs.add(path,chunk_chars=500)
# except ValueError as e:
# print('Could not read', path, e)
path = "C:\\paper-qa\\Source\\The Encyclopedia of the Cold War_90-95.pdf"
print("Before adding document")
docs.add(path,chunk_chars=500)
print("Document added")
answer = docs.query("Summarize 2 interesting events of the cold war from the book.")
print("Queried.")
print(answer)
```
whole output
```
llama_model_loader: loaded meta data with 19 key-value pairs and 291 tensors from C:/paper-qa/models/llama-2-7b-chat.Q6_K.gguf (version GGUF V2)
llama_model_loader: - tensor 0: token_embd.weight q6_K [ 4096, 32000,
1, 1 ]
llama_model_loader: - tensor 1: blk.0.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 2: blk.0.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 3: blk.0.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 4: blk.0.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 5: blk.0.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 6: blk.0.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 7: blk.0.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 8: blk.0.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 9: blk.0.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 10: blk.1.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 11: blk.1.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 12: blk.1.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 13: blk.1.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 14: blk.1.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 15: blk.1.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 16: blk.1.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 17: blk.1.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 18: blk.1.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 19: blk.10.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 20: blk.10.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 21: blk.10.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 22: blk.10.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 23: blk.10.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 24: blk.10.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 25: blk.10.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 26: blk.10.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 27: blk.10.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 28: blk.11.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 29: blk.11.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 30: blk.11.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 31: blk.11.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 32: blk.11.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 33: blk.11.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 34: blk.11.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 35: blk.11.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 36: blk.11.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 37: blk.12.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 38: blk.12.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 39: blk.12.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 40: blk.12.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 41: blk.12.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 42: blk.12.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 43: blk.12.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 44: blk.12.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 45: blk.12.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 46: blk.13.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 47: blk.13.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 48: blk.13.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 49: blk.13.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 50: blk.13.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 51: blk.13.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 52: blk.13.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 53: blk.13.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 54: blk.13.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 55: blk.14.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 56: blk.14.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 57: blk.14.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 58: blk.14.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 59: blk.14.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 60: blk.14.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 61: blk.14.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 62: blk.14.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 63: blk.14.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 64: blk.15.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 65: blk.15.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 66: blk.15.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 67: blk.15.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 68: blk.15.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 69: blk.15.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 70: blk.15.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 71: blk.15.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 72: blk.15.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 73: blk.16.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 74: blk.16.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 75: blk.16.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 76: blk.16.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 77: blk.16.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 78: blk.16.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 79: blk.16.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 80: blk.16.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 81: blk.16.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 82: blk.17.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 83: blk.17.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 84: blk.17.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 85: blk.17.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 86: blk.17.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 87: blk.17.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 88: blk.17.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 89: blk.17.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 90: blk.17.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 91: blk.18.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 92: blk.18.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 93: blk.18.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 94: blk.18.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 95: blk.18.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 96: blk.18.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 97: blk.18.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 98: blk.18.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 99: blk.18.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 100: blk.19.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 101: blk.19.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 102: blk.19.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 103: blk.19.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 104: blk.19.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 105: blk.19.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 106: blk.19.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 107: blk.19.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 108: blk.19.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 109: blk.2.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 110: blk.2.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 111: blk.2.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 112: blk.2.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 113: blk.2.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 114: blk.2.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 115: blk.2.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 116: blk.2.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 117: blk.2.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 118: blk.20.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 119: blk.20.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 120: blk.20.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 121: blk.20.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 122: blk.20.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 123: blk.20.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 124: blk.20.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 125: blk.20.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 126: blk.20.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 127: blk.21.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 128: blk.21.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 129: blk.21.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 130: blk.21.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 131: blk.21.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 132: blk.21.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 133: blk.21.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 134: blk.21.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 135: blk.21.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 136: blk.22.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 137: blk.22.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 138: blk.22.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 139: blk.22.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 140: blk.22.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 141: blk.22.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 142: blk.22.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 143: blk.22.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 144: blk.22.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 145: blk.23.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 146: blk.23.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 147: blk.23.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 148: blk.23.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 149: blk.23.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 150: blk.23.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 151: blk.23.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 152: blk.23.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 153: blk.23.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 154: blk.3.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 155: blk.3.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 156: blk.3.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 157: blk.3.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 158: blk.3.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 159: blk.3.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 160: blk.3.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 161: blk.3.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 162: blk.3.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 163: blk.4.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 164: blk.4.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 165: blk.4.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 166: blk.4.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 167: blk.4.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 168: blk.4.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 169: blk.4.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 170: blk.4.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 171: blk.4.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 172: blk.5.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 173: blk.5.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 174: blk.5.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 175: blk.5.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 176: blk.5.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 177: blk.5.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 178: blk.5.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 179: blk.5.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 180: blk.5.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 181: blk.6.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 182: blk.6.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 183: blk.6.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 184: blk.6.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 185: blk.6.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 186: blk.6.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 187: blk.6.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 188: blk.6.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 189: blk.6.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 190: blk.7.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 191: blk.7.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 192: blk.7.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 193: blk.7.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 194: blk.7.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 195: blk.7.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 196: blk.7.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 197: blk.7.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 198: blk.7.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 199: blk.8.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 200: blk.8.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 201: blk.8.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 202: blk.8.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 203: blk.8.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 204: blk.8.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 205: blk.8.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 206: blk.8.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 207: blk.8.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 208: blk.9.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 209: blk.9.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 210: blk.9.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 211: blk.9.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 212: blk.9.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 213: blk.9.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 214: blk.9.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 215: blk.9.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 216: blk.9.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 217: output.weight q6_K [ 4096, 32000,
1, 1 ]
llama_model_loader: - tensor 218: blk.24.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 219: blk.24.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 220: blk.24.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 221: blk.24.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 222: blk.24.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 223: blk.24.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 224: blk.24.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 225: blk.24.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 226: blk.24.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 227: blk.25.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 228: blk.25.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 229: blk.25.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 230: blk.25.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 231: blk.25.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 232: blk.25.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 233: blk.25.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 234: blk.25.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 235: blk.25.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 236: blk.26.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 237: blk.26.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 238: blk.26.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 239: blk.26.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 240: blk.26.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 241: blk.26.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 242: blk.26.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 243: blk.26.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 244: blk.26.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 245: blk.27.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 246: blk.27.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 247: blk.27.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 248: blk.27.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 249: blk.27.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 250: blk.27.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 251: blk.27.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 252: blk.27.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 253: blk.27.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 254: blk.28.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 255: blk.28.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 256: blk.28.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 257: blk.28.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 258: blk.28.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 259: blk.28.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 260: blk.28.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 261: blk.28.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 262: blk.28.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 263: blk.29.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 264: blk.29.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 265: blk.29.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 266: blk.29.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 267: blk.29.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 268: blk.29.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 269: blk.29.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 270: blk.29.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 271: blk.29.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 272: blk.30.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 273: blk.30.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 274: blk.30.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 275: blk.30.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 276: blk.30.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 277: blk.30.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 278: blk.30.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 279: blk.30.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 280: blk.30.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 281: blk.31.attn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 282: blk.31.ffn_down.weight q6_K [ 11008, 4096,
1, 1 ]
llama_model_loader: - tensor 283: blk.31.ffn_gate.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 284: blk.31.ffn_up.weight q6_K [ 4096, 11008,
1, 1 ]
llama_model_loader: - tensor 285: blk.31.ffn_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - tensor 286: blk.31.attn_k.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 287: blk.31.attn_output.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 288: blk.31.attn_q.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 289: blk.31.attn_v.weight q6_K [ 4096, 4096,
1, 1 ]
llama_model_loader: - tensor 290: output_norm.weight f32 [ 4096, 1,
1, 1 ]
llama_model_loader: - kv 0: general.architecture str = llama
llama_model_loader: - kv 1: general.name str = LLaMA v2
llama_model_loader: - kv 2: llama.context_length u32 = 4096
llama_model_loader: - kv 3: llama.embedding_length u32 = 4096
llama_model_loader: - kv 4: llama.block_count u32 = 32llama_model_loader: - kv 5: llama.feed_forward_length u32 = 11008
llama_model_loader: - kv 6: llama.rope.dimension_count u32 = 128
llama_model_loader: - kv 7: llama.attention.head_count u32 = 32llama_model_loader: - kv 8: llama.attention.head_count_kv u32 = 32llama_model_loader: - kv 9: llama.attention.layer_norm_rms_epsilon f32 = 0.000001
llama_model_loader: - kv 10: general.file_type u32 = 18llama_model_loader: - kv 11: tokenizer.ggml.model str = llama
llama_model_loader: - kv 12: tokenizer.ggml.tokens arr[str,32000] = ["<unk>", "<s>", "</s>", "<0x00>", "<...
llama_model_loader: - kv 13: tokenizer.ggml.scores arr[f32,32000] = [0.000000, 0.000000, 0.000000, 0.0000...
llama_model_loader: - kv 14: tokenizer.ggml.token_type arr[i32,32000] = [2, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 6, ...
llama_model_loader: - kv 15: tokenizer.ggml.bos_token_id u32 = 1
llama_model_loader: - kv 16: tokenizer.ggml.eos_token_id u32 = 2
llama_model_loader: - kv 17: tokenizer.ggml.unknown_token_id u32 = 0
llama_model_loader: - kv 18: general.quantization_version u32 = 2
llama_model_loader: - type f32: 65 tensors
llama_model_loader: - type q6_K: 226 tensors
llm_load_vocab: special tokens definition check successful ( 259/32000 ).
llm_load_print_meta: format = GGUF V2
llm_load_print_meta: arch = llama
llm_load_print_meta: vocab type = SPM
llm_load_print_meta: n_vocab = 32000
llm_load_print_meta: n_merges = 0
llm_load_print_meta: n_ctx_train = 4096
llm_load_print_meta: n_embd = 4096
llm_load_print_meta: n_head = 32
llm_load_print_meta: n_head_kv = 32
llm_load_print_meta: n_layer = 32
llm_load_print_meta: n_rot = 128
llm_load_print_meta: n_gqa = 1
llm_load_print_meta: f_norm_eps = 0.0e+00
llm_load_print_meta: f_norm_rms_eps = 1.0e-06
llm_load_print_meta: f_clamp_kqv = 0.0e+00
llm_load_print_meta: f_max_alibi_bias = 0.0e+00
llm_load_print_meta: n_ff = 11008
llm_load_print_meta: rope scaling = linear
llm_load_print_meta: freq_base_train = 10000.0
llm_load_print_meta: freq_scale_train = 1
llm_load_print_meta: n_yarn_orig_ctx = 4096
llm_load_print_meta: rope_finetuned = unknown
llm_load_print_meta: model type = 7B
llm_load_print_meta: model ftype = mostly Q6_K
llm_load_print_meta: model params = 6.74 B
llm_load_print_meta: model size = 5.15 GiB (6.56 BPW)
llm_load_print_meta: general.name = LLaMA v2
llm_load_print_meta: BOS token = 1 '<s>'
llm_load_print_meta: EOS token = 2 '</s>'
llm_load_print_meta: UNK token = 0 '<unk>'
llm_load_print_meta: LF token = 13 '<0x0A>'
llm_load_tensors: ggml ctx size = 0.11 MiB
llm_load_tensors: mem required = 5272.45 MiB
....................................................................................................
llama_new_context_with_model: n_ctx = 512
llama_new_context_with_model: freq_base = 10000.0
llama_new_context_with_model: freq_scale = 1
llama_new_context_with_model: kv self size = 256.00 MiB
llama_build_graph: non-view tensors processed: 740/740
llama_new_context_with_model: compute buffer total size = 4.16 MiB
AVX = 1 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | SSSE3 = 0 | VSX = 0
|
Before adding document
Abdullah I of Jordan. "Soldier, Diplomat, and King of Jordan." The Oxford Encyclopedia of the
Modern World, vol. 1, Oxford University Press, 2023, pp. 56-57.
llama_print_timings: load time = 7311.60 ms
llama_print_timings: sample time = 18.23 ms / 55 runs ( 0.33 ms per token,
3016.67 tokens per second)
llama_print_timings: prompt eval time = 53923.10 ms / 190 tokens ( 283.81 ms per token,
3.52 tokens per second)
llama_print_timings: eval time = 19552.25 ms / 54 runs ( 362.08 ms per token,
2.76 tokens per second)
llama_print_timings: total time = 73785.66 ms
Document added
Llama.generate: prefix-match hit
Llama.generate: prefix-match hit
Llama.generate: prefix-match hit
Llama.generate: prefix-match hit
Llama.generate: prefix-match hit
GGML_ASSERT: C:\Users\user\AppData\Local\Temp\pip-install-l0_yao9s\llama-cpp-python_686671b6d7b8440a98e23acb5bc6a41a\vendor\llama.cpp\ggml.c:15149: cgraph->nodes[cgraph->n_nodes - 1] == tensor
GGML_ASSERT: C:\Users\user\AppData\Local\Temp\pip-install-l0_yao9s\llama-cpp-python_686671b6d7b8440a98e23acb5bc6a41a\vendor\llama.cpp\ggml.c:4326: ggml_nelements(a) == (ne0*ne1*ne2*ne3)
PS C:\paper-qa>
```
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14169/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14169/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14168 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14168/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14168/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14168/events | https://github.com/langchain-ai/langchain/issues/14168 | 2,021,953,293 | I_kwDOIPDwls54hI8N | 14,168 | Question about runing Langchain Extraction Demo in Chinese text. | {
"login": "bot66",
"id": 26666338,
"node_id": "MDQ6VXNlcjI2NjY2MzM4",
"avatar_url": "https://avatars.githubusercontent.com/u/26666338?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bot66",
"html_url": "https://github.com/bot66",
"followers_url": "https://api.github.com/users/bot66/followers",
"following_url": "https://api.github.com/users/bot66/following{/other_user}",
"gists_url": "https://api.github.com/users/bot66/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bot66/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bot66/subscriptions",
"organizations_url": "https://api.github.com/users/bot66/orgs",
"repos_url": "https://api.github.com/users/bot66/repos",
"events_url": "https://api.github.com/users/bot66/events{/privacy}",
"received_events_url": "https://api.github.com/users/bot66/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"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 | 4 | 2023-12-02T09:01:35 | 2023-12-04T02:10:15 | 2023-12-04T01:33:55 | NONE | null | ### Issue you'd like to raise.
```python
from langchain.chains import create_extraction_chain
from langchain.chat_models import ChatOpenAI
import dotenv
dotenv.load_dotenv()
# Schema
schema = {
"properties": {
"name": {"type": "string"},
"education": {"type": "string"},
"company": {"type": "string"},
},
"required": ["name", "education"],
}
# Input
inp = """小明毕业于北京大学,在微软上班\n小李毕业于清华大学在阿里巴巴上班\n小王毕业于浙江大学在烟草局上班"""
# Run chain
llm = ChatOpenAI(temperature=0, model="gpt-3.5-turbo-1106")
chain = create_extraction_chain(schema, llm)
print(chain.run(inp)[0])
```
```shell
#output
{'name': 'å°\x8fæ\x98\x8e', 'education': 'å\x8c\x97京大å\xad¦', 'company': '微软'}
```
How to fix this Chinese `encoding/decoding` problem?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14168/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14168/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14167 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14167/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14167/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14167/events | https://github.com/langchain-ai/langchain/issues/14167 | 2,021,948,035 | I_kwDOIPDwls54hHqD | 14,167 | Issue: 'BM25Retriever' has no attribute 'from_documents' | {
"login": "arnavroh45",
"id": 58484869,
"node_id": "MDQ6VXNlcjU4NDg0ODY5",
"avatar_url": "https://avatars.githubusercontent.com/u/58484869?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/arnavroh45",
"html_url": "https://github.com/arnavroh45",
"followers_url": "https://api.github.com/users/arnavroh45/followers",
"following_url": "https://api.github.com/users/arnavroh45/following{/other_user}",
"gists_url": "https://api.github.com/users/arnavroh45/gists{/gist_id}",
"starred_url": "https://api.github.com/users/arnavroh45/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arnavroh45/subscriptions",
"organizations_url": "https://api.github.com/users/arnavroh45/orgs",
"repos_url": "https://api.github.com/users/arnavroh45/repos",
"events_url": "https://api.github.com/users/arnavroh45/events{/privacy}",
"received_events_url": "https://api.github.com/users/arnavroh45/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 4 | 2023-12-02T08:44:31 | 2023-12-18T07:09:37 | null | NONE | null | ### Issue you'd like to raise.
Code:
retriever = BM25Retriever.from_documents(
[
Document(page_content="foo"),
Document(page_content="bar"),
Document(page_content="world"),
Document(page_content="hello"),
Document(page_content="foo bar"),
]
)
Error:
---> 30 retriever = BM25Retriever.from_documents(
31 [
32 Document(page_content="foo"),
33 Document(page_content="bar"),
34 Document(page_content="world"),
35 Document(page_content="hello"),
36 Document(page_content="foo bar"),
37 ]
38 )
AttributeError: type object 'BM25Retriever' has no attribute 'from_documents'
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14167/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14167/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14166 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14166/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14166/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14166/events | https://github.com/langchain-ai/langchain/pull/14166 | 2,021,942,762 | PR_kwDOIPDwls5g9HzI | 14,166 | Closed #14069 | {
"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": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-02T08:26:20 | 2023-12-03T16:55:26 | 2023-12-03T16:55:26 | CONTRIBUTOR | null | ### Description
Fix #14069
### Twitter handle
[lin_bob57617](https://twitter.com/lin_bob57617) | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14166/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14166/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14166",
"html_url": "https://github.com/langchain-ai/langchain/pull/14166",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14166.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14166.patch",
"merged_at": "2023-12-03T16:55:26"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14165 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14165/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14165/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14165/events | https://github.com/langchain-ai/langchain/pull/14165 | 2,021,876,944 | PR_kwDOIPDwls5g85l6 | 14,165 | Closed #14159 | {
"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": 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 | 2023-12-02T06:07:14 | 2023-12-04T20:06:04 | 2023-12-04T20:06:04 | CONTRIBUTOR | null | ### Description
Fix: #14159
Use `from pydantic.v1 import BaseModel, Field` instead of `from pydantic import BaseModel, Field`
### [lin_bob57617](https://twitter.com/lin_bob57617) | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14165/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14165/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14165",
"html_url": "https://github.com/langchain-ai/langchain/pull/14165",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14165.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14165.patch",
"merged_at": "2023-12-04T20:06:04"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14164 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14164/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14164/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14164/events | https://github.com/langchain-ai/langchain/pull/14164 | 2,021,864,448 | PR_kwDOIPDwls5g83Cq | 14,164 | Update fallback cases | {
"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": 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 | 2023-12-02T05:19:52 | 2023-12-03T16:56:08 | 2023-12-03T16:56:07 | CONTRIBUTOR | null | ### Description
The `RateLimitError` initialization method has changed after openai v1, and the usage of `patch` needs to be changed.
### Twitter handle
[lin_bob57617](https://twitter.com/lin_bob57617) | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14164/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14164/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14164",
"html_url": "https://github.com/langchain-ai/langchain/pull/14164",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14164.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14164.patch",
"merged_at": "2023-12-03T16:56:07"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14163 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14163/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14163/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14163/events | https://github.com/langchain-ai/langchain/pull/14163 | 2,021,848,656 | PR_kwDOIPDwls5g8z0o | 14,163 | Update docs to use new usage in openai>1.0.0 | {
"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": 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-02T04:23:00 | 2023-12-03T17:37:36 | 2023-12-03T17:37:36 | CONTRIBUTOR | null | ### Description
Use new [APIs](https://github.com/openai/openai-python/blob/main/api.md#finetuning)
### Twitter handle
[lin_bob57617](https://twitter.com/lin_bob57617) | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14163/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14163/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14163",
"html_url": "https://github.com/langchain-ai/langchain/pull/14163",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14163.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14163.patch",
"merged_at": "2023-12-03T17:37:36"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14162 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14162/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14162/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14162/events | https://github.com/langchain-ai/langchain/pull/14162 | 2,021,806,415 | PR_kwDOIPDwls5g8rKN | 14,162 | Add metadata to blob | {
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 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 | 2023-12-02T02:09:33 | 2023-12-05T22:17:42 | 2023-12-05T22:17:41 | COLLABORATOR | null | Add metadata to the blob object. This makes it easier
to make a pipeline that properly propagates metadata information
from raw content to the derived content.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14162/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14162/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14162",
"html_url": "https://github.com/langchain-ai/langchain/pull/14162",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14162.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14162.patch",
"merged_at": "2023-12-05T22:17:41"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14161 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14161/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14161/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14161/events | https://github.com/langchain-ai/langchain/issues/14161 | 2,021,798,420 | I_kwDOIPDwls54gjIU | 14,161 | run_on_dataset: Errno 409 Client Error: Session already exists. | {
"login": "darthShana",
"id": 8716198,
"node_id": "MDQ6VXNlcjg3MTYxOTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/8716198?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/darthShana",
"html_url": "https://github.com/darthShana",
"followers_url": "https://api.github.com/users/darthShana/followers",
"following_url": "https://api.github.com/users/darthShana/following{/other_user}",
"gists_url": "https://api.github.com/users/darthShana/gists{/gist_id}",
"starred_url": "https://api.github.com/users/darthShana/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/darthShana/subscriptions",
"organizations_url": "https://api.github.com/users/darthShana/orgs",
"repos_url": "https://api.github.com/users/darthShana/repos",
"events_url": "https://api.github.com/users/darthShana/events{/privacy}",
"received_events_url": "https://api.github.com/users/darthShana/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 | 1 | 2023-12-02T01:44:13 | 2023-12-02T01:52:08 | 2023-12-02T01:52:08 | NONE | null | ### System Info
langchain: 0.0.339
Python: 3.11.6
I followed instructions in
[https://docs.smith.langchain.com/evaluation/evaluator-implementations](https://docs.smith.langchain.com/evaluation/evaluator-implementations)
`from langsmith import Client
from langchain.smith import RunEvalConfig, run_on_dataset
from backend.tools.self_query_tool import do_self_query
evaluation_config = RunEvalConfig(
evaluators=[
"cot_qa",
]
)
client = Client()
run_on_dataset(
dataset_name="self_query_tool",
llm_or_chain_factory=do_self_query,
client=client,
evaluation=evaluation_config,
verbose=True,
project_name="default",
)`
got this blob code. I used the langsmith UI to create a dataset and a single example.
However when i run the test with
python test/self_query_tool_test.py
i get
`
File "/home/dharshana/.local/share/virtualenvs/turners-virtual-assistant-QSiRQ3G1/lib/python3.11/site-packages/langsmith/client.py", line 1113, in create_project
ls_utils.raise_for_status_with_text(response)
File "/home/dharshana/.local/share/virtualenvs/turners-virtual-assistant-QSiRQ3G1/lib/python3.11/site-packages/langsmith/utils.py", line 85, in raise_for_status_with_text
raise requests.HTTPError(str(e), response.text) from e
requests.exceptions.HTTPError: [Errno 409 Client Error: Conflict for url: https://api.langchain.plus/sessions] {"detail":"Session already exists."}
❯
`
I have never attempted an evaluation of my chain before. Im just calling a function which creates its own llm client and runs
`llm = ChatOpenAI(temperature=0, model="gpt-4-1106-preview")
retriever = SelfQueryRetriever.from_llm(
llm,
vectordb,
document_content_description,
metadata_field_info,
enable_limit=True,
verbose=True
)`
Is there an issue with doign this? I have been using langsmith successfully to log my llm calls and agent actions
### 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
Create a function which does
`
llm = ChatOpenAI(temperature=0, model="gpt-4-1106-preview")
retriever = SelfQueryRetriever.from_llm(
llm,
vectordb,
document_content_description,
metadata_field_info,
enable_limit=True,
verbose=True
)
`
then evaluate the function with
`
evaluation_config = RunEvalConfig(
evaluators=[
"cot_qa",
]
)
client = Client()
run_on_dataset(
dataset_name="self_query_tool",
llm_or_chain_factory=do_self_query,
client=client,
evaluation=evaluation_config,
verbose=True,
project_name="default",
)
`
### Expected behavior
The function is evaluated with test results in the UI | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14161/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14161/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14160 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14160/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14160/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14160/events | https://github.com/langchain-ai/langchain/pull/14160 | 2,021,782,953 | PR_kwDOIPDwls5g8mTW | 14,160 | docs `AWS` 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": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
},
{
"id": 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-02T01:03:57 | 2023-12-04T17:04:30 | 2023-12-03T23:42:53 | COLLABORATOR | null | The `AWS` platform page has many missed integrations.
- added missed integration references to the `AWS` platform page
- added/updated descriptions and links in the referenced notebooks
- renamed two notebook files. They have file names != page Title, which generate unordered ToC.
- reroute the URLs for renamed files
- fixed `amazon_textract` notebook: removed failed cell outputs | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14160/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14160/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14160",
"html_url": "https://github.com/langchain-ai/langchain/pull/14160",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14160.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14160.patch",
"merged_at": "2023-12-03T23:42:53"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14159 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14159/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14159/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14159/events | https://github.com/langchain-ai/langchain/issues/14159 | 2,021,770,513 | I_kwDOIPDwls54gcUR | 14,159 | create_tagging_chain_pydantic() pydantic schema validation errors | {
"login": "jc7k",
"id": 808818,
"node_id": "MDQ6VXNlcjgwODgxOA==",
"avatar_url": "https://avatars.githubusercontent.com/u/808818?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jc7k",
"html_url": "https://github.com/jc7k",
"followers_url": "https://api.github.com/users/jc7k/followers",
"following_url": "https://api.github.com/users/jc7k/following{/other_user}",
"gists_url": "https://api.github.com/users/jc7k/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jc7k/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jc7k/subscriptions",
"organizations_url": "https://api.github.com/users/jc7k/orgs",
"repos_url": "https://api.github.com/users/jc7k/repos",
"events_url": "https://api.github.com/users/jc7k/events{/privacy}",
"received_events_url": "https://api.github.com/users/jc7k/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 | 2023-12-02T00:35:53 | 2023-12-04T20:06:05 | 2023-12-04T20:06:05 | NONE | null | ### System Info
[pydantic_chain_test_code.txt](https://github.com/langchain-ai/langchain/files/13532796/pydantic_chain_test_code.txt)
[error_log.txt](https://github.com/langchain-ai/langchain/files/13532799/error_log.txt)
### Who can help?
@agola11 @hwchase17
The attached code is adopted from the official example from https://python.langchain.com/docs/use_cases/tagging. I am using the AzureChatOpenAI API, but I don't think the cause is related to that. I added an example prompt to ensure that the llm is working properly.
It appears that even when passing in a confirmed subclass of BaseModel, which is pydantic_schema, create_tagging_chain_pydantic(Tags, llm) is triggering validation errors. Please see the attached test code and error log.
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [X] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Run the attached code and match it with the attached error log, which shows the version numbers of Python, Langchain and Pydantic. I am running on WIndows 11.:
Python version: 3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:26:23) [MSC v.1916 64 bit (AMD64)]
Langchain version: 0.0.344
Pydantic version: 2.5.2
### Expected behavior
Expected behavior is as shown in the last example on https://python.langchain.com/docs/use_cases/tagging
Tags(sentiment='sad', aggressiveness=5, language='spanish') | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14159/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14159/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14158 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14158/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14158/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14158/events | https://github.com/langchain-ai/langchain/pull/14158 | 2,021,767,965 | PR_kwDOIPDwls5g8jMX | 14,158 | Add Databricks Vector Search example notebook and documentation | {
"login": "freemso",
"id": 10937540,
"node_id": "MDQ6VXNlcjEwOTM3NTQw",
"avatar_url": "https://avatars.githubusercontent.com/u/10937540?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/freemso",
"html_url": "https://github.com/freemso",
"followers_url": "https://api.github.com/users/freemso/followers",
"following_url": "https://api.github.com/users/freemso/following{/other_user}",
"gists_url": "https://api.github.com/users/freemso/gists{/gist_id}",
"starred_url": "https://api.github.com/users/freemso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/freemso/subscriptions",
"organizations_url": "https://api.github.com/users/freemso/orgs",
"repos_url": "https://api.github.com/users/freemso/repos",
"events_url": "https://api.github.com/users/freemso/events{/privacy}",
"received_events_url": "https://api.github.com/users/freemso/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 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 | 2023-12-02T00:31:02 | 2024-01-03T17:24:32 | 2023-12-13T01:40:29 | CONTRIBUTOR | null | This PR adds an example notebook for the Databricks Vector Search vector store. It also adds an introduction to the Databricks Vector Search product on the Databricks's provider page.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14158/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14158/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14158",
"html_url": "https://github.com/langchain-ai/langchain/pull/14158",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14158.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14158.patch",
"merged_at": "2023-12-13T01:40:29"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14156 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14156/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14156/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14156/events | https://github.com/langchain-ai/langchain/pull/14156 | 2,021,746,668 | PR_kwDOIPDwls5g8e20 | 14,156 | nbdoc -> quarto | {
"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": 5510857403,
"node_id": "LA_kwDOIPDwls8AAAABSHkCuw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation",
"name": "needs documentation",
"color": "DCAAC0",
"default": false,
"description": "PR needs to be updated with documentation"
},
{
"id": 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-01T23:55:45 | 2023-12-04T20:50:58 | 2023-12-04T20:50:57 | COLLABORATOR | null | Switches to a more maintained solution for building ipynb -> md files (`quarto`)
Also bumps us down to python3.8 because it's significantly faster in the vercel build step. Uses default openssl version instead of upgrading as well. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14156/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14156/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14156",
"html_url": "https://github.com/langchain-ai/langchain/pull/14156",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14156.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14156.patch",
"merged_at": "2023-12-04T20:50:57"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14155 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14155/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14155/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14155/events | https://github.com/langchain-ai/langchain/pull/14155 | 2,021,709,246 | PR_kwDOIPDwls5g8Wfg | 14,155 | Update Open CLIP embd | {
"login": "rlancemartin",
"id": 122662504,
"node_id": "U_kgDOB0-uaA",
"avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rlancemartin",
"html_url": "https://github.com/rlancemartin",
"followers_url": "https://api.github.com/users/rlancemartin/followers",
"following_url": "https://api.github.com/users/rlancemartin/following{/other_user}",
"gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions",
"organizations_url": "https://api.github.com/users/rlancemartin/orgs",
"repos_url": "https://api.github.com/users/rlancemartin/repos",
"events_url": "https://api.github.com/users/rlancemartin/events{/privacy}",
"received_events_url": "https://api.github.com/users/rlancemartin/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-01T23:10:41 | 2023-12-01T23:13:21 | 2023-12-01T23:13:21 | COLLABORATOR | null | Prior default model required a large amt of RAM and often crashed Jupyter ntbk kernel. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14155/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14155/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14155",
"html_url": "https://github.com/langchain-ai/langchain/pull/14155",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14155.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14155.patch",
"merged_at": "2023-12-01T23:13:21"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14154 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14154/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14154/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14154/events | https://github.com/langchain-ai/langchain/pull/14154 | 2,021,704,551 | PR_kwDOIPDwls5g8VZh | 14,154 | fix broken api docs links | {
"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": 5510857403,
"node_id": "LA_kwDOIPDwls8AAAABSHkCuw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation",
"name": "needs documentation",
"color": "DCAAC0",
"default": false,
"description": "PR needs to be updated with documentation"
},
{
"id": 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-01T23:07:34 | 2023-12-02T01:17:53 | 2023-12-02T01:17:52 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14154/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14154/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14154",
"html_url": "https://github.com/langchain-ai/langchain/pull/14154",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14154.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14154.patch",
"merged_at": "2023-12-02T01:17:52"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14152 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14152/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14152/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14152/events | https://github.com/langchain-ai/langchain/pull/14152 | 2,021,645,407 | PR_kwDOIPDwls5g8Ign | 14,152 | docs[patch]: docs local build | {
"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": 5510857403,
"node_id": "LA_kwDOIPDwls8AAAABSHkCuw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation",
"name": "needs documentation",
"color": "DCAAC0",
"default": false,
"description": "PR needs to be updated with documentation"
},
{
"id": 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-01T22:03:03 | 2023-12-01T22:03:38 | 2023-12-01T22:03:37 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14152/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14152/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14152",
"html_url": "https://github.com/langchain-ai/langchain/pull/14152",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14152.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14152.patch",
"merged_at": "2023-12-01T22:03:37"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14150 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14150/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14150/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14150/events | https://github.com/langchain-ai/langchain/issues/14150 | 2,021,628,680 | I_kwDOIPDwls54f5sI | 14,150 | Claude v2.1 SQLDatabaseChain produces comments mixed with SQL Statements | {
"login": "ferrymul7",
"id": 74339365,
"node_id": "MDQ6VXNlcjc0MzM5MzY1",
"avatar_url": "https://avatars.githubusercontent.com/u/74339365?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ferrymul7",
"html_url": "https://github.com/ferrymul7",
"followers_url": "https://api.github.com/users/ferrymul7/followers",
"following_url": "https://api.github.com/users/ferrymul7/following{/other_user}",
"gists_url": "https://api.github.com/users/ferrymul7/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ferrymul7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ferrymul7/subscriptions",
"organizations_url": "https://api.github.com/users/ferrymul7/orgs",
"repos_url": "https://api.github.com/users/ferrymul7/repos",
"events_url": "https://api.github.com/users/ferrymul7/events{/privacy}",
"received_events_url": "https://api.github.com/users/ferrymul7/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 | 10 | 2023-12-01T21:48:33 | 2024-01-04T18:40:07 | null | NONE | null | ### System Info
conda 23.3.1
Python 3.10.6
angchain 0.0.344 pypi_0 pypi
langchain-core 0.0.8 pypi_0 pypi
langchain-experimental 0.0.43 pypi_0 pypi
### 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
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
#This Notebook will show the integration between Generative AI with SAP HANA Cloud
!pip install -q --upgrade langchain boto3 awscli botocore
!pip install -q sqlalchemy-hana langchain_experimental hdbcli
import langchain
from langchain.sql_database import SQLDatabase
from langchain_experimental.sql import SQLDatabaseChain
from langchain.prompts.prompt import PromptTemplate
from langchain.llms.sagemaker_endpoint import LLMContentHandler
from langchain import SagemakerEndpoint
from langchain.llms import bedrock
from urllib.parse import quote
import sqlalchemy
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine, select, Table, MetaData, Column, String
import hdbcli
import json
#Next step is to prepare the template for prompt and input to be used by the Generative AI
table_info = "Table Hotel has fields Name, Address, City, State, Zip code. \
Table Room has fields Free or Available, Price. \
Table Customer has fields Customer Number, title, first name, name, address, zip code. \
Table Reservation has fields Reservation Number,Arrival Date, Departure Date. \
Table Maintenance has fields Description, Date performed, Performed by."
_DEFAULT_TEMPLATE = """
Given an input question, create a syntactically correct {dialect} SQL query to run without comments, then provide answer to the question in english based on the result of SQL Query.
Always use schema USER1. You DO NOT need to check on the SQL Query for common mistake.
{table_info}
Question: {input}"""
PROMPT = PromptTemplate(
input_variables=["input", "table_info", "dialect"], template=_DEFAULT_TEMPLATE
)
#Next let's instatiate the bedrock and the handler treatment of input and output
class ContentHandler(LLMContentHandler):
content_type = "application/json"
accepts = "application/json"
def transform_input(self, prompt: str, model_kwargs: dict) -> bytes:
input_str = json.dumps({"text_inputs": prompt, **model_kwargs})
return input_str.encode('utf-8')
def transform_output(self, output: bytes) -> str:
response_json = json.loads(output.read().decode("utf-8"))
return response_json["generated_texts"][0]
content_handler = ContentHandler()
model_parameter = {"temperature": 0, "max_tokens_to_sample": 4000}
#Make sure your account has access to anthropic claude access. This can be enabled from Bedrock console. Access is auto approved.
llm = bedrock.Bedrock(model_id="anthropic.claude-v2:1", model_kwargs=model_parameter, region_name="us-west-2")
#Let's connect to the SAP HANA Database and then execute langchain SQL Database Chain to query from the Generative AI
db = SQLDatabase.from_uri("hana://USER:Password@<mydb>.hana.trial-us10.hanacloud.ondemand.com:443")
db_chain = SQLDatabaseChain.from_llm(llm=llm, db=db, prompt=PROMPT, verbose=True, use_query_checker=True, top_k=5 )
Execute the first query, this is a simple English to text SQL
db_chain.run("How many Hotels are there ?")
UNEXPECTED OUTPUT *****************
> Entering new SQLDatabaseChain chain...
How many Hotels are there ?
SQLQuery:I don't see any issues with the original SQL query. It looks good as written. Here is the query again:
```sql
SELECT COUNT(*) AS num_hotels
FROM hotel;
```
This counts the number of rows in the hotel table to get the number of unique hotels and returns the result in the num_hotels column alias. The query follows proper practices and does not contain any of the common mistakes listed.
---------------------------------------------------------------------------
ProgrammingError Traceback (most recent call last)
File /opt/conda/lib/python3.10/site-packages/sqlalchemy/engine/base.py:1819, in Connection._execute_context(self, dialect, constructor, statement, parameters, execution_options, *args, **kw)
1818 if not evt_handled:
-> 1819 self.dialect.do_execute(
1820 cursor, statement, parameters, context
1821 )
1823 if self._has_events or self.engine._has_events:
File /opt/conda/lib/python3.10/site-packages/sqlalchemy/engine/default.py:732, in DefaultDialect.do_execute(self, cursor, statement, parameters, context)
731 def do_execute(self, cursor, statement, parameters, context=None):
--> 732 cursor.execute(statement, parameters)
ProgrammingError: (257, 'sql syntax error: incorrect syntax near "I": line 1 col 1 (at pos 1)')
The above exception was the direct cause of the following exception:
ProgrammingError Traceback (most recent call last)
Cell In[43], line 2
1 #Execute the first query, this is a simple English to text SQL
----> 2 db_chain.run("How many Hotels are there ?")
File /opt/conda/lib/python3.10/site-packages/langchain/chains/base.py:507, in Chain.run(self, callbacks, tags, metadata, *args, **kwargs)
505 if len(args) != 1:
506 raise ValueError("`run` supports only one positional argument.")
--> 507 return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[
508 _output_key
509 ]
511 if kwargs and not args:
512 return self(kwargs, callbacks=callbacks, tags=tags, metadata=metadata)[
513 _output_key
514 ]
File /opt/conda/lib/python3.10/site-packages/langchain/chains/base.py:312, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
310 except BaseException as e:
311 run_manager.on_chain_error(e)
--> 312 raise e
313 run_manager.on_chain_end(outputs)
314 final_outputs: Dict[str, Any] = self.prep_outputs(
315 inputs, outputs, return_only_outputs
316 )
File /opt/conda/lib/python3.10/site-packages/langchain/chains/base.py:306, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
299 run_manager = callback_manager.on_chain_start(
300 dumpd(self),
301 inputs,
302 name=run_name,
303 )
304 try:
305 outputs = (
--> 306 self._call(inputs, run_manager=run_manager)
307 if new_arg_supported
308 else self._call(inputs)
309 )
310 except BaseException as e:
311 run_manager.on_chain_error(e)
File /opt/conda/lib/python3.10/site-packages/langchain_experimental/sql/base.py:198, in SQLDatabaseChain._call(self, inputs, run_manager)
194 except Exception as exc:
195 # Append intermediate steps to exception, to aid in logging and later
196 # improvement of few shot prompt seeds
197 exc.intermediate_steps = intermediate_steps # type: ignore
--> 198 raise exc
File /opt/conda/lib/python3.10/site-packages/langchain_experimental/sql/base.py:168, in SQLDatabaseChain._call(self, inputs, run_manager)
162 _run_manager.on_text(
163 checked_sql_command, color="green", verbose=self.verbose
164 )
165 intermediate_steps.append(
166 {"sql_cmd": checked_sql_command}
167 ) # input: sql exec
--> 168 result = self.database.run(checked_sql_command)
169 intermediate_steps.append(str(result)) # output: sql exec
170 sql_cmd = checked_sql_command
File /opt/conda/lib/python3.10/site-packages/langchain/utilities/sql_database.py:433, in SQLDatabase.run(self, command, fetch)
423 def run(
424 self,
425 command: str,
426 fetch: Union[Literal["all"], Literal["one"]] = "all",
427 ) -> str:
428 """Execute a SQL command and return a string representing the results.
429
430 If the statement returns rows, a string of the results is returned.
431 If the statement returns no rows, an empty string is returned.
432 """
--> 433 result = self._execute(command, fetch)
434 # Convert columns values to string to avoid issues with sqlalchemy
435 # truncating text
436 res = [
437 tuple(truncate_word(c, length=self._max_string_length) for c in r.values())
438 for r in result
439 ]
File /opt/conda/lib/python3.10/site-packages/langchain/utilities/sql_database.py:411, in SQLDatabase._execute(self, command, fetch)
409 else: # postgresql and other compatible dialects
410 connection.exec_driver_sql("SET search_path TO %s", (self._schema,))
--> 411 cursor = connection.execute(text(command))
412 if cursor.returns_rows:
413 if fetch == "all":
File /opt/conda/lib/python3.10/site-packages/sqlalchemy/engine/base.py:1306, in Connection.execute(self, statement, *multiparams, **params)
1302 util.raise_(
1303 exc.ObjectNotExecutableError(statement), replace_context=err
1304 )
1305 else:
-> 1306 return meth(self, multiparams, params, _EMPTY_EXECUTION_OPTS)
File /opt/conda/lib/python3.10/site-packages/sqlalchemy/sql/elements.py:332, in ClauseElement._execute_on_connection(self, connection, multiparams, params, execution_options, _force)
328 def _execute_on_connection(
329 self, connection, multiparams, params, execution_options, _force=False
330 ):
331 if _force or self.supports_execution:
--> 332 return connection._execute_clauseelement(
333 self, multiparams, params, execution_options
334 )
335 else:
336 raise exc.ObjectNotExecutableError(self)
File /opt/conda/lib/python3.10/site-packages/sqlalchemy/engine/base.py:1498, in Connection._execute_clauseelement(self, elem, multiparams, params, execution_options)
1486 compiled_cache = execution_options.get(
1487 "compiled_cache", self.engine._compiled_cache
1488 )
1490 compiled_sql, extracted_params, cache_hit = elem._compile_w_cache(
1491 dialect=dialect,
1492 compiled_cache=compiled_cache,
(...)
1496 linting=self.dialect.compiler_linting | compiler.WARN_LINTING,
1497 )
-> 1498 ret = self._execute_context(
1499 dialect,
1500 dialect.execution_ctx_cls._init_compiled,
1501 compiled_sql,
1502 distilled_params,
1503 execution_options,
1504 compiled_sql,
1505 distilled_params,
1506 elem,
1507 extracted_params,
1508 cache_hit=cache_hit,
1509 )
1510 if has_events:
1511 self.dispatch.after_execute(
1512 self,
1513 elem,
(...)
1517 ret,
1518 )
File /opt/conda/lib/python3.10/site-packages/sqlalchemy/engine/base.py:1862, in Connection._execute_context(self, dialect, constructor, statement, parameters, execution_options, *args, **kw)
1859 branched.close()
1861 except BaseException as e:
-> 1862 self._handle_dbapi_exception(
1863 e, statement, parameters, cursor, context
1864 )
1866 return result
File /opt/conda/lib/python3.10/site-packages/sqlalchemy/engine/base.py:2043, in Connection._handle_dbapi_exception(self, e, statement, parameters, cursor, context)
2041 util.raise_(newraise, with_traceback=exc_info[2], from_=e)
2042 elif should_wrap:
-> 2043 util.raise_(
2044 sqlalchemy_exception, with_traceback=exc_info[2], from_=e
2045 )
2046 else:
2047 util.raise_(exc_info[1], with_traceback=exc_info[2])
File /opt/conda/lib/python3.10/site-packages/sqlalchemy/util/compat.py:208, in raise_(***failed resolving arguments***)
205 exception.__cause__ = replace_context
207 try:
--> 208 raise exception
209 finally:
210 # credit to
211 # https://cosmicpercolator.com/2016/01/13/exception-leaks-in-python-2-and-3/
212 # as the __traceback__ object creates a cycle
213 del exception, replace_context, from_, with_traceback
File /opt/conda/lib/python3.10/site-packages/sqlalchemy/engine/base.py:1819, in Connection._execute_context(self, dialect, constructor, statement, parameters, execution_options, *args, **kw)
1817 break
1818 if not evt_handled:
-> 1819 self.dialect.do_execute(
1820 cursor, statement, parameters, context
1821 )
1823 if self._has_events or self.engine._has_events:
1824 self.dispatch.after_cursor_execute(
1825 self,
1826 cursor,
(...)
1830 context.executemany,
1831 )
File /opt/conda/lib/python3.10/site-packages/sqlalchemy/engine/default.py:732, in DefaultDialect.do_execute(self, cursor, statement, parameters, context)
731 def do_execute(self, cursor, statement, parameters, context=None):
--> 732 cursor.execute(statement, parameters)
ProgrammingError: (hdbcli.dbapi.ProgrammingError) (257, 'sql syntax error: incorrect syntax near "I": line 1 col 1 (at pos 1)')
[SQL: I don't see any issues with the original SQL query. It looks good as written. Here is the query again:
```sql
SELECT COUNT(*) AS num_hotels
FROM hotel;
```
This counts the number of rows in the hotel table to get the number of unique hotels and returns the result in the num_hotels column alias. The query follows proper practices and does not contain any of the common mistakes listed.]
(Background on this error at: https://sqlalche.me/e/14/f405)
### Expected behavior
The select statement is produced correct, it just that the LLM perform checks on the SQL Statement and comment it before passing it to SQLAlchemy for execution. When i used Claude v2, 75% SQLDatabaseChain is successful, however 25% always gets back to the behaviour providing comments about whether the SQL Query has common mistakes.
Now with Claude v2.1, ALL of the questions are checked, and failing when passing to SQLAlchemy. It seems there is a problem with the SQLDatabaseChain, either the prompt or something else. Please help to fix this.
[Lab2.ipynb.zip](https://github.com/langchain-ai/langchain/files/13532157/Lab2.ipynb.zip)
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14150/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14150/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14149 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14149/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14149/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14149/events | https://github.com/langchain-ai/langchain/pull/14149 | 2,021,611,407 | PR_kwDOIPDwls5g8BPp | 14,149 | relock templates | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-01T21:32:29 | 2023-12-01T21:35:55 | 2023-12-01T21:35:54 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14149/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14149/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14149",
"html_url": "https://github.com/langchain-ai/langchain/pull/14149",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14149.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14149.patch",
"merged_at": "2023-12-01T21:35:54"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14148 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14148/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14148/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14148/events | https://github.com/langchain-ai/langchain/pull/14148 | 2,021,608,016 | PR_kwDOIPDwls5g8AhL | 14,148 | added `Templates Hub` menu item | {
"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": 5510857403,
"node_id": "LA_kwDOIPDwls8AAAABSHkCuw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation",
"name": "needs documentation",
"color": "DCAAC0",
"default": false,
"description": "PR needs to be updated with documentation"
},
{
"id": 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-01T21:29:23 | 2023-12-04T17:04:15 | 2023-12-03T23:36:35 | COLLABORATOR | null | This link was missing in Docs.
Added it. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14148/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14148/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14148",
"html_url": "https://github.com/langchain-ai/langchain/pull/14148",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14148.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14148.patch",
"merged_at": "2023-12-03T23:36:35"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14147 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14147/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14147/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14147/events | https://github.com/langchain-ai/langchain/pull/14147 | 2,021,597,780 | PR_kwDOIPDwls5g7-VH | 14,147 | Bagatur/core lint docstring | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | 1 | 2023-12-01T21:20:16 | 2023-12-14T02:54:08 | 2023-12-14T02:54:08 | COLLABORATOR | null | <!-- Thank you for contributing to LangChain!
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,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` 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/14147/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14147/timeline | null | null | true | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14147",
"html_url": "https://github.com/langchain-ai/langchain/pull/14147",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14147.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14147.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14146 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14146/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14146/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14146/events | https://github.com/langchain-ai/langchain/pull/14146 | 2,021,584,414 | PR_kwDOIPDwls5g77cy | 14,146 | docs[patch]: Fix templates/index | {
"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": 5510857403,
"node_id": "LA_kwDOIPDwls8AAAABSHkCuw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation",
"name": "needs documentation",
"color": "DCAAC0",
"default": false,
"description": "PR needs to be updated with documentation"
},
{
"id": 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-01T21:08:13 | 2023-12-01T21:18:51 | 2023-12-01T21:09:37 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14146/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14146/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14146",
"html_url": "https://github.com/langchain-ai/langchain/pull/14146",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14146.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14146.patch",
"merged_at": "2023-12-01T21:09:37"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14145 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14145/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14145/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14145/events | https://github.com/langchain-ai/langchain/issues/14145 | 2,021,577,501 | I_kwDOIPDwls54ftMd | 14,145 | Add Retriever for Knowledge Base IBM Watson Discovery Service | {
"login": "eightBEC",
"id": 16187615,
"node_id": "MDQ6VXNlcjE2MTg3NjE1",
"avatar_url": "https://avatars.githubusercontent.com/u/16187615?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eightBEC",
"html_url": "https://github.com/eightBEC",
"followers_url": "https://api.github.com/users/eightBEC/followers",
"following_url": "https://api.github.com/users/eightBEC/following{/other_user}",
"gists_url": "https://api.github.com/users/eightBEC/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eightBEC/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eightBEC/subscriptions",
"organizations_url": "https://api.github.com/users/eightBEC/orgs",
"repos_url": "https://api.github.com/users/eightBEC/repos",
"events_url": "https://api.github.com/users/eightBEC/events{/privacy}",
"received_events_url": "https://api.github.com/users/eightBEC/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"
}
] | open | false | null | [] | null | 1 | 2023-12-01T21:01:46 | 2023-12-01T21:04:01 | null | NONE | null | ### Feature request
Adding [IBM Watson Discovery Service](https://cloud.ibm.com/docs/discovery-data?topic=discovery-data-getting-started) as an additional retriever might be a useful extension to enable RAG-use cases or supporting RetrievalChains.
IBM Watson Discovery Service can find relevant documents based on natural language queries and understand document structures such as tables.
### Motivation
Currently, there is no support for IBM Watson Discovery Service (WDS) as a retriever which requires external scripts to use WDS as a source for a RetrievalChain e.g.
### Your contribution
I'm able to contribute a IbM Watson Discovery Service retriever. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14145/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14145/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14144 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14144/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14144/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14144/events | https://github.com/langchain-ai/langchain/pull/14144 | 2,021,564,363 | PR_kwDOIPDwls5g73HF | 14,144 | added `OpenGPTs GitHub` menu item | {
"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": 5510857403,
"node_id": "LA_kwDOIPDwls8AAAABSHkCuw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation",
"name": "needs documentation",
"color": "DCAAC0",
"default": false,
"description": "PR needs to be updated with documentation"
},
{
"id": 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 | {
"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-01T20:49:54 | 2023-12-01T23:13:13 | 2023-12-01T23:13:13 | COLLABORATOR | null | The `OpenGPTs GitHub` link was missing on the LangChain docs. OpenGPTs is an important LangChain.ai project, right?
Added this link. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14144/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14144/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14144",
"html_url": "https://github.com/langchain-ai/langchain/pull/14144",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14144.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14144.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14143 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14143/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14143/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14143/events | https://github.com/langchain-ai/langchain/pull/14143 | 2,021,552,400 | PR_kwDOIPDwls5g70hG | 14,143 | Added missing `py.typed` to `langchain_core` | {
"login": "jamesbraza",
"id": 8990777,
"node_id": "MDQ6VXNlcjg5OTA3Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesbraza",
"html_url": "https://github.com/jamesbraza",
"followers_url": "https://api.github.com/users/jamesbraza/followers",
"following_url": "https://api.github.com/users/jamesbraza/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions",
"organizations_url": "https://api.github.com/users/jamesbraza/orgs",
"repos_url": "https://api.github.com/users/jamesbraza/repos",
"events_url": "https://api.github.com/users/jamesbraza/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesbraza/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 4 | 2023-12-01T20:39:45 | 2023-12-02T03:26:10 | 2023-12-02T03:15:23 | CONTRIBUTOR | null | See PR title.
From what I can see, `poetry` will auto-include this. Please let me know if I am missing something here. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14143/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14143/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14143",
"html_url": "https://github.com/langchain-ai/langchain/pull/14143",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14143.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14143.patch",
"merged_at": "2023-12-02T03:15:23"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14142 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14142/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14142/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14142/events | https://github.com/langchain-ai/langchain/pull/14142 | 2,021,549,364 | PR_kwDOIPDwls5g7z2p | 14,142 | Change RunnableMap to RunnableParallel for consistency | {
"login": "akira",
"id": 43946,
"node_id": "MDQ6VXNlcjQzOTQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/43946?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akira",
"html_url": "https://github.com/akira",
"followers_url": "https://api.github.com/users/akira/followers",
"following_url": "https://api.github.com/users/akira/following{/other_user}",
"gists_url": "https://api.github.com/users/akira/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akira/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akira/subscriptions",
"organizations_url": "https://api.github.com/users/akira/orgs",
"repos_url": "https://api.github.com/users/akira/repos",
"events_url": "https://api.github.com/users/akira/events{/privacy}",
"received_events_url": "https://api.github.com/users/akira/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": 5510857403,
"node_id": "LA_kwDOIPDwls8AAAABSHkCuw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation",
"name": "needs documentation",
"color": "DCAAC0",
"default": false,
"description": "PR needs to be updated with documentation"
},
{
"id": 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 | 2023-12-01T20:37:00 | 2023-12-01T21:36:41 | 2023-12-01T21:36:40 | CONTRIBUTOR | null | - **Description:** Change instances of RunnableMap to RunnableParallel, as that should be the one used going forward. This makes it consistent across the codebase.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14142/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14142/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14142",
"html_url": "https://github.com/langchain-ai/langchain/pull/14142",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14142.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14142.patch",
"merged_at": "2023-12-01T21:36:40"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14141 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14141/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14141/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14141/events | https://github.com/langchain-ai/langchain/issues/14141 | 2,021,543,545 | I_kwDOIPDwls54fk55 | 14,141 | FAISS.load_local does not keep the typing of the saved Index | {
"login": "XariZaru",
"id": 18338434,
"node_id": "MDQ6VXNlcjE4MzM4NDM0",
"avatar_url": "https://avatars.githubusercontent.com/u/18338434?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/XariZaru",
"html_url": "https://github.com/XariZaru",
"followers_url": "https://api.github.com/users/XariZaru/followers",
"following_url": "https://api.github.com/users/XariZaru/following{/other_user}",
"gists_url": "https://api.github.com/users/XariZaru/gists{/gist_id}",
"starred_url": "https://api.github.com/users/XariZaru/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/XariZaru/subscriptions",
"organizations_url": "https://api.github.com/users/XariZaru/orgs",
"repos_url": "https://api.github.com/users/XariZaru/repos",
"events_url": "https://api.github.com/users/XariZaru/events{/privacy}",
"received_events_url": "https://api.github.com/users/XariZaru/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | closed | false | null | [] | null | 3 | 2023-12-01T20:31:24 | 2024-01-11T22:59:40 | 2024-01-11T22:59:40 | NONE | null | ### System Info
It seems the typing of my index is lost when I save and load it. This is me creating the FAISS vector store with the MAX_INNER_PRODUCT flag.
```python
# Saving
save_db = FAISS.from_texts(texts, embedding_function, metadatas=metadatas, distance_strategy="MAX_INNER_PRODUCT", normalize_L2=True)
save_db.save_local(db_directory)
print(save_db.index, save_db.distance_strategy)
# <faiss.swigfaiss_avx2.IndexFlatIP; proxy of <Swig Object of type 'faiss::IndexFlatIP *' at 0x7f4e0402e4b0> > MAX_INNER_PRODUCT
# Loading
load_db = FAISS.load_local(db_directory, embedding_function, distance_strategy="MAX_INNER_PRODUCT")
print(load_db .index, load_db .distance_strategy)
# <faiss.swigfaiss_avx2.IndexFlat; proxy of <Swig Object of type 'faiss::IndexFlat *' at 0x7f4dd0accdb0> > MAX_INNER_PRODUCT
```
I have looked through FAISS API documentation and can't tell if this is an abstracted class.
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
1. Create a FAISS vector store passing distance_strategy = "MAX_INNER_PRODUCT". This should create an index with FAISS.IndexFlatIP.
2. Save the FAISS vector store.
3. Load the FAISS vector store with the distance_strategy = "MAX_INNER_PRODUCT"
4. Compare the saved.index and loaded.index objects. One is IndexFlatIP and the other is an IndexFlat class.
### Expected behavior
When loading the index from load_local, it should still be an IndexFlatIP. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14141/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14141/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14140 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14140/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14140/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14140/events | https://github.com/langchain-ai/langchain/issues/14140 | 2,021,530,789 | I_kwDOIPDwls54fhyl | 14,140 | Amazon DocumentDB Vector Store | {
"login": "ip9inderpreet",
"id": 101288968,
"node_id": "U_kgDOBgmMCA",
"avatar_url": "https://avatars.githubusercontent.com/u/101288968?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ip9inderpreet",
"html_url": "https://github.com/ip9inderpreet",
"followers_url": "https://api.github.com/users/ip9inderpreet/followers",
"following_url": "https://api.github.com/users/ip9inderpreet/following{/other_user}",
"gists_url": "https://api.github.com/users/ip9inderpreet/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ip9inderpreet/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ip9inderpreet/subscriptions",
"organizations_url": "https://api.github.com/users/ip9inderpreet/orgs",
"repos_url": "https://api.github.com/users/ip9inderpreet/repos",
"events_url": "https://api.github.com/users/ip9inderpreet/events{/privacy}",
"received_events_url": "https://api.github.com/users/ip9inderpreet/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"
},
{
"id": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
}
] | open | false | null | [] | null | 7 | 2023-12-01T20:20:11 | 2024-01-10T19:59:42 | null | NONE | null | ### Feature request
Amazon DocumentDB has launched its vector search feature recently. Let us add Amazon DocumentDB as vector store in langchain.
### Motivation
This will help large customer base of Amazon DocumentDB to adopt langchain and seamlessly build AI/ML apps
### Your contribution
Amazon DocumentDB team can help with testing and technical help.
https://aws.amazon.com/about-aws/whats-new/2023/11/vector-search-amazon-documentdb/
https://docs.aws.amazon.com/documentdb/latest/developerguide/vector-search.html | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14140/reactions",
"total_count": 7,
"+1": 6,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
} | https://api.github.com/repos/langchain-ai/langchain/issues/14140/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14139 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14139/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14139/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14139/events | https://github.com/langchain-ai/langchain/pull/14139 | 2,021,519,221 | PR_kwDOIPDwls5g7tUT | 14,139 | `BaseTracer` helper method for `Run` lookup | {
"login": "jamesbraza",
"id": 8990777,
"node_id": "MDQ6VXNlcjg5OTA3Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesbraza",
"html_url": "https://github.com/jamesbraza",
"followers_url": "https://api.github.com/users/jamesbraza/followers",
"following_url": "https://api.github.com/users/jamesbraza/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions",
"organizations_url": "https://api.github.com/users/jamesbraza/orgs",
"repos_url": "https://api.github.com/users/jamesbraza/repos",
"events_url": "https://api.github.com/users/jamesbraza/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesbraza/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | {
"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
} | [
{
"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
}
] | null | 2 | 2023-12-01T20:10:08 | 2023-12-02T22:49:34 | 2023-12-02T22:05:50 | CONTRIBUTOR | null | I observed the same run ID extraction logic is repeated many times in `BaseTracer`.
This PR creates a helper method for DRY code. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14139/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14139/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14139",
"html_url": "https://github.com/langchain-ai/langchain/pull/14139",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14139.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14139.patch",
"merged_at": "2023-12-02T22:05:50"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14138 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14138/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14138/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14138/events | https://github.com/langchain-ai/langchain/pull/14138 | 2,021,462,936 | PR_kwDOIPDwls5g7g23 | 14,138 | Fix minor typos (casing) | {
"login": "mjul",
"id": 142868,
"node_id": "MDQ6VXNlcjE0Mjg2OA==",
"avatar_url": "https://avatars.githubusercontent.com/u/142868?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mjul",
"html_url": "https://github.com/mjul",
"followers_url": "https://api.github.com/users/mjul/followers",
"following_url": "https://api.github.com/users/mjul/following{/other_user}",
"gists_url": "https://api.github.com/users/mjul/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mjul/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mjul/subscriptions",
"organizations_url": "https://api.github.com/users/mjul/orgs",
"repos_url": "https://api.github.com/users/mjul/repos",
"events_url": "https://api.github.com/users/mjul/events{/privacy}",
"received_events_url": "https://api.github.com/users/mjul/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-01T19:28:50 | 2023-12-01T21:29:54 | 2023-12-01T21:29:53 | CONTRIBUTOR | null | Fix casing of API and LangChain in the description text for the LangServe example server.
<!-- Thank you for contributing to LangChain!
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,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
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/extras` 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/14138/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14138/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14138",
"html_url": "https://github.com/langchain-ai/langchain/pull/14138",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14138.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14138.patch",
"merged_at": "2023-12-01T21:29:53"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14137 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14137/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14137/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14137/events | https://github.com/langchain-ai/langchain/pull/14137 | 2,021,458,454 | PR_kwDOIPDwls5g7f3e | 14,137 | add contribs | {
"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": 5510857403,
"node_id": "LA_kwDOIPDwls8AAAABSHkCuw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20documentation",
"name": "needs documentation",
"color": "DCAAC0",
"default": false,
"description": "PR needs to be updated with documentation"
},
{
"id": 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-01T19:25:02 | 2023-12-01T19:34:30 | 2023-12-01T19:34:29 | COLLABORATOR | null | \ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14137/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14137/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14137",
"html_url": "https://github.com/langchain-ai/langchain/pull/14137",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14137.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14137.patch",
"merged_at": "2023-12-01T19:34:29"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14136 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14136/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14136/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14136/events | https://github.com/langchain-ai/langchain/pull/14136 | 2,021,449,299 | PR_kwDOIPDwls5g7d1J | 14,136 | Removing extra `StdOutCallbackHandler` overridden methods | {
"login": "jamesbraza",
"id": 8990777,
"node_id": "MDQ6VXNlcjg5OTA3Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesbraza",
"html_url": "https://github.com/jamesbraza",
"followers_url": "https://api.github.com/users/jamesbraza/followers",
"following_url": "https://api.github.com/users/jamesbraza/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions",
"organizations_url": "https://api.github.com/users/jamesbraza/orgs",
"repos_url": "https://api.github.com/users/jamesbraza/repos",
"events_url": "https://api.github.com/users/jamesbraza/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesbraza/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": 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 | 2023-12-01T19:18:00 | 2023-12-03T18:40:51 | 2023-12-03T17:38:50 | CONTRIBUTOR | null | Unnecessarily overridden methods:
- Give the idea the subclass is doing something special (when it isn't)
- Block CTRL-click to the actual method
This PR removes some unnecessarily overridden methods in `StdOutCallbackHandler`
Supercedes https://github.com/langchain-ai/langchain/pull/12858 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14136/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14136/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14136",
"html_url": "https://github.com/langchain-ai/langchain/pull/14136",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14136.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14136.patch",
"merged_at": "2023-12-03T17:38:50"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14135 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14135/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14135/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14135/events | https://github.com/langchain-ai/langchain/issues/14135 | 2,021,388,401 | I_kwDOIPDwls54e_Bx | 14,135 | Bug: LCEL prompt template not logging | {
"login": "jamesbraza",
"id": 8990777,
"node_id": "MDQ6VXNlcjg5OTA3Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesbraza",
"html_url": "https://github.com/jamesbraza",
"followers_url": "https://api.github.com/users/jamesbraza/followers",
"following_url": "https://api.github.com/users/jamesbraza/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions",
"organizations_url": "https://api.github.com/users/jamesbraza/orgs",
"repos_url": "https://api.github.com/users/jamesbraza/repos",
"events_url": "https://api.github.com/users/jamesbraza/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesbraza/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 2 | 2023-12-01T18:30:40 | 2023-12-02T19:00:00 | null | CONTRIBUTOR | null | ### System Info
Python 3.11, `langchain==0.0.340`
### Who can help?
@hwchase17
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [X] Callbacks/Tracing
- [ ] Async
### Reproduction
Before LCEL, there is lots of logging:
```python
from langchain.chains import LLMChain
from langchain.chat_models import ChatOpenAI
from langchain.prompts import PromptTemplate
from langchain.schema.callbacks.stdout import StdOutCallbackHandler
prompt = PromptTemplate.from_template(
"What is a good name for a company that makes {product}?"
)
chain = LLMChain(prompt=prompt, llm=ChatOpenAI(), callbacks=[StdOutCallbackHandler()])
chain.run(product="colorful socks")
```
```none
> Entering new LLMChain chain...
Prompt after formatting:
What is a good name for a company that makes colorful socks?
> Finished chain.
```
After LCEL, there is less logging:
```python
from langchain.chat_models import ChatOpenAI
from langchain.prompts import PromptTemplate
from langchain.schema.callbacks.stdout import StdOutCallbackHandler
prompt = PromptTemplate.from_template(
"What is a good name for a company that makes {product}?"
)
runnable = prompt | ChatOpenAI()
runnable.invoke(
input={"product": "colorful socks"}, config={"callbacks": [StdOutCallbackHandler()]}
)
```
Leads to this output:
```none
> Entering new RunnableSequence chain...
> Entering new PromptTemplate chain...
> Finished chain.
> Finished chain.
```
### Expected behavior
To migrate from `LLMChain` to LCEL, I want the logging statements/verbosity to remain in tact | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14135/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14135/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14134 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14134/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14134/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14134/events | https://github.com/langchain-ai/langchain/issues/14134 | 2,021,375,012 | I_kwDOIPDwls54e7wk | 14,134 | DOC: documenting callbacks with LCEL | {
"login": "jamesbraza",
"id": 8990777,
"node_id": "MDQ6VXNlcjg5OTA3Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesbraza",
"html_url": "https://github.com/jamesbraza",
"followers_url": "https://api.github.com/users/jamesbraza/followers",
"following_url": "https://api.github.com/users/jamesbraza/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions",
"organizations_url": "https://api.github.com/users/jamesbraza/orgs",
"repos_url": "https://api.github.com/users/jamesbraza/repos",
"events_url": "https://api.github.com/users/jamesbraza/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesbraza/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] | closed | false | null | [] | null | 8 | 2023-12-01T18:21:00 | 2023-12-04T18:34:07 | 2023-12-04T18:34:07 | CONTRIBUTOR | null | ### Issue with current documentation:
https://python.langchain.com/docs/modules/callbacks/
This doc doesn't mention how to use callbacks with LCEL. It would be good to add that, to help with the migration from `LLMChain` to `LCEL`.
### Idea or request for content:
https://python.langchain.com/docs/modules/chains/ does a nice job of showing code pre-LCEL and code post-LCEL.
https://github.com/langchain-ai/langchain/discussions/12670 shows how to pass the callback to `invoke`, but ideally the example shows how to `bind` the callback once (as opposed to passing to each `invoke`). | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14134/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14134/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/14133 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14133/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14133/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14133/events | https://github.com/langchain-ai/langchain/pull/14133 | 2,021,317,888 | PR_kwDOIPDwls5g7Bnr | 14,133 | Harrison/ibm | {
"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": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-01T17:36:25 | 2023-12-01T17:44:12 | 2023-12-01T17:44:11 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14133/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14133/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14133",
"html_url": "https://github.com/langchain-ai/langchain/pull/14133",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14133.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14133.patch",
"merged_at": "2023-12-01T17:44:11"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14132 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14132/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14132/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14132/events | https://github.com/langchain-ai/langchain/pull/14132 | 2,021,236,065 | PR_kwDOIPDwls5g6v0b | 14,132 | Improve indexing performance for Postgres (remote database) for refresh for async API | {
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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": 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 | {
"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
} | [
{
"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
}
] | null | 2 | 2023-12-01T16:42:33 | 2023-12-01T17:10:08 | 2023-12-01T17:10:07 | COLLABORATOR | null | This PR speeds up the indexing api on the async path by batching the uid updates in the sql record manager (which may be remote).
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14132/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14132/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14132",
"html_url": "https://github.com/langchain-ai/langchain/pull/14132",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14132.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14132.patch",
"merged_at": "2023-12-01T17:10:07"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/14131 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/14131/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/14131/comments | https://api.github.com/repos/langchain-ai/langchain/issues/14131/events | https://github.com/langchain-ai/langchain/pull/14131 | 2,021,221,938 | PR_kwDOIPDwls5g6svk | 14,131 | [Tracing] String Stacktrac | {
"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": 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 | 2 | 2023-12-01T16:32:43 | 2023-12-15T06:15:08 | 2023-12-15T06:15:07 | COLLABORATOR | null | Add full stacktrace | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/14131/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/14131/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/14131",
"html_url": "https://github.com/langchain-ai/langchain/pull/14131",
"diff_url": "https://github.com/langchain-ai/langchain/pull/14131.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/14131.patch",
"merged_at": "2023-12-15T06:15:07"
} |