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/15791 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15791/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15791/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15791/events | https://github.com/langchain-ai/langchain/pull/15791 | 2,073,484,406 | PR_kwDOIPDwls5jozE3 | 15,791 | docs: collapse structured use case | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-10T02:45:25 | 2024-01-10T02:47:11 | 2024-01-10T02:47:10 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15791/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15791/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15791",
"html_url": "https://github.com/langchain-ai/langchain/pull/15791",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15791.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15791.patch",
"merged_at": "2024-01-10T02:47:10"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15790 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15790/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15790/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15790/events | https://github.com/langchain-ai/langchain/issues/15790 | 2,073,482,807 | I_kwDOIPDwls57ltY3 | 15,790 | create_structured_output_chain doesn't invoke the given callback and on_llm_new_token with tokens | {
"login": "Siddhartha90",
"id": 2003023,
"node_id": "MDQ6VXNlcjIwMDMwMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/2003023?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Siddhartha90",
"html_url": "https://github.com/Siddhartha90",
"followers_url": "https://api.github.com/users/Siddhartha90/followers",
"following_url": "https://api.github.com/users/Siddhartha90/following{/other_user}",
"gists_url": "https://api.github.com/users/Siddhartha90/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Siddhartha90/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Siddhartha90/subscriptions",
"organizations_url": "https://api.github.com/users/Siddhartha90/orgs",
"repos_url": "https://api.github.com/users/Siddhartha90/repos",
"events_url": "https://api.github.com/users/Siddhartha90/events{/privacy}",
"received_events_url": "https://api.github.com/users/Siddhartha90/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 2 | 2024-01-10T02:43:26 | 2024-01-11T21:12:06 | null | NONE | null | ### System Info
```
end_response = chain.run(
input=input["input"],
question=input["question"],
callbacks=[StreamingHandler()],
tags=tags,
)
```
```
StreamingHandler() is an extension of the langchain class `BaseCallbackHandler` and extends its methods:
```
def on_llm_new_token(self, token: str, **kwargs) -> None:
if token:
self.queue_event(event_data=token)
```
With a regular `LLMChain`:
```
conv_chain = LLMChain(
llm=llm,
memory=memory,
prompt=chain_prompt,
verbose=True,
)
```
this `on_llm_new_token` method gets invoked each call with each new token.
However, with create_structured_output_chain, it seems to get invoked with empty tokens each time:
```
conv_chain = create_structured_output_chain(
output_schema=APydanticClass,
llm=llm,
prompt=chain_prompt,
verbose=True,
)
```
### Who can help?
@agola11 seems the right perrson to tag 🙏
### 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
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [X] Callbacks/Tracing
- [ ] Async
### Reproduction
1. Use create_structured_output_chain with a pydantic schema
2. Attach a callback with on_llm_new_token overriden
3. on_llm_new_token gets invoked with empty tokens.
### Expected behavior
Tokens streamed back in the json format of the schema requested. E.g. if the schema is:
```
class XYZ(BaseModel):
matches: Optional[List[str]] = Field(
default=None, description="abc"
)
not_matches: Optional[List[str]] = Field(
default=None,
description="def",
)
```
I'd expect it to be streamed back token by token or even category by category. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15790/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/15790/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15789 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15789/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15789/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15789/events | https://github.com/langchain-ai/langchain/pull/15789 | 2,073,475,438 | PR_kwDOIPDwls5joxPu | 15,789 | docs: redis_chat_message_history.ipynb integration doc | {
"login": "marsmxm",
"id": 450500,
"node_id": "MDQ6VXNlcjQ1MDUwMA==",
"avatar_url": "https://avatars.githubusercontent.com/u/450500?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/marsmxm",
"html_url": "https://github.com/marsmxm",
"followers_url": "https://api.github.com/users/marsmxm/followers",
"following_url": "https://api.github.com/users/marsmxm/following{/other_user}",
"gists_url": "https://api.github.com/users/marsmxm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/marsmxm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/marsmxm/subscriptions",
"organizations_url": "https://api.github.com/users/marsmxm/orgs",
"repos_url": "https://api.github.com/users/marsmxm/repos",
"events_url": "https://api.github.com/users/marsmxm/events{/privacy}",
"received_events_url": "https://api.github.com/users/marsmxm/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 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": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-10T02:34:01 | 2024-01-12T05:42:32 | 2024-01-12T05:42:32 | CONTRIBUTOR | null | - **Description:** Updated the docs for the memory integration module redis_chat_message_history.ipynb
- **Issue:** #15664
- **Dependencies:** N/A | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15789/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15789/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15789",
"html_url": "https://github.com/langchain-ai/langchain/pull/15789",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15789.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15789.patch",
"merged_at": "2024-01-12T05:42:32"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15788 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15788/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15788/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15788/events | https://github.com/langchain-ai/langchain/pull/15788 | 2,073,414,709 | PR_kwDOIPDwls5joktV | 15,788 | community: add collection_properties parameter to Milvus | {
"login": "axiangcoding",
"id": 49201354,
"node_id": "MDQ6VXNlcjQ5MjAxMzU0",
"avatar_url": "https://avatars.githubusercontent.com/u/49201354?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/axiangcoding",
"html_url": "https://github.com/axiangcoding",
"followers_url": "https://api.github.com/users/axiangcoding/followers",
"following_url": "https://api.github.com/users/axiangcoding/following{/other_user}",
"gists_url": "https://api.github.com/users/axiangcoding/gists{/gist_id}",
"starred_url": "https://api.github.com/users/axiangcoding/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/axiangcoding/subscriptions",
"organizations_url": "https://api.github.com/users/axiangcoding/orgs",
"repos_url": "https://api.github.com/users/axiangcoding/repos",
"events_url": "https://api.github.com/users/axiangcoding/events{/privacy}",
"received_events_url": "https://api.github.com/users/axiangcoding/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": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2024-01-10T01:12:47 | 2024-01-11T05:59:57 | 2024-01-11T04:29:02 | CONTRIBUTOR | null | - **Description:** add collection_properties parameter to Milvus. See [pymilvus set_properties() description](https://milvus.io/api-reference/pymilvus/v2.3.x/Collection/set_properties().md)
- **Issue:** None
- **Dependencies:** None
- **Twitter handle:** None
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15788/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15788/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15788",
"html_url": "https://github.com/langchain-ai/langchain/pull/15788",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15788.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15788.patch",
"merged_at": "2024-01-11T04:29:02"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15787 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15787/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15787/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15787/events | https://github.com/langchain-ai/langchain/pull/15787 | 2,073,374,646 | PR_kwDOIPDwls5jocE_ | 15,787 | mistralai[patch]: warn on stop token, fix on_llm_new_token | {
"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": 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": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
},
{
"id": 6348691034,
"node_id": "LA_kwDOIPDwls8AAAABemlWWg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner",
"name": "partner",
"color": "ededed",
"default": false,
"description": null
}
] | closed | false | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2024-01-10T00:22:57 | 2024-01-10T00:27:21 | 2024-01-10T00:27:21 | COLLABORATOR | null | Fixes #15269
Addresses with warning. MistralAI API doesn't support stop token yet. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15787/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15787/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15787",
"html_url": "https://github.com/langchain-ai/langchain/pull/15787",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15787.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15787.patch",
"merged_at": "2024-01-10T00:27:21"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15786 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15786/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15786/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15786/events | https://github.com/langchain-ai/langchain/pull/15786 | 2,073,365,219 | PR_kwDOIPDwls5joaDC | 15,786 | mistralai[patch]: persist async client | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
},
{
"id": 6348691034,
"node_id": "LA_kwDOIPDwls8AAAABemlWWg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner",
"name": "partner",
"color": "ededed",
"default": false,
"description": null
}
] | closed | false | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2024-01-10T00:11:14 | 2024-01-10T00:21:40 | 2024-01-10T00:21:40 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15786/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15786/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15786",
"html_url": "https://github.com/langchain-ai/langchain/pull/15786",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15786.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15786.patch",
"merged_at": "2024-01-10T00:21:40"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15785 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15785/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15785/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15785/events | https://github.com/langchain-ai/langchain/issues/15785 | 2,073,361,082 | I_kwDOIPDwls57lPq6 | 15,785 | GoogleCloudEnterpriseSearchRetriever returned 'datastore not found' error even with the 'us' configurations | {
"login": "mhyeonsoo",
"id": 32179857,
"node_id": "MDQ6VXNlcjMyMTc5ODU3",
"avatar_url": "https://avatars.githubusercontent.com/u/32179857?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mhyeonsoo",
"html_url": "https://github.com/mhyeonsoo",
"followers_url": "https://api.github.com/users/mhyeonsoo/followers",
"following_url": "https://api.github.com/users/mhyeonsoo/following{/other_user}",
"gists_url": "https://api.github.com/users/mhyeonsoo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mhyeonsoo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mhyeonsoo/subscriptions",
"organizations_url": "https://api.github.com/users/mhyeonsoo/orgs",
"repos_url": "https://api.github.com/users/mhyeonsoo/repos",
"events_url": "https://api.github.com/users/mhyeonsoo/events{/privacy}",
"received_events_url": "https://api.github.com/users/mhyeonsoo/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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 | 6 | 2024-01-10T00:05:52 | 2024-01-17T11:25:33 | null | NONE | null | ### System Info
langchain==0.0.352
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```python
from langchain.retrievers import (
GoogleVertexAIMultiTurnSearchRetriever,
GoogleVertexAISearchRetriever,
GoogleCloudEnterpriseSearchRetriever
)
PROJECT_ID = "my_project_id"
SEARCH_ENGINE_ID = "I tried both for datastore_id and app_id at Vertex Search"
LOCATION_ID = "us"
retriever = GoogleCloudEnterpriseSearchRetriever(
project_id=PROJECT_ID,
search_engine_id=SEARCH_ENGINE_ID,
location_id=LOCATION_ID,
max_documents=3
)
while 1:
message = input()
result = retriever.get_relevant_documents(message)
for doc in result:
print(doc)
```
### Expected behavior
I expected it works well with the defined datastore, but it returned the error saying,
```
google.api_core.exceptions.NotFound: 404 DataStore projects/500618827687/locations/us/collections/default_collection/dataStores/['datastore_id'] not found
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15785/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15785/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15784 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15784/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15784/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15784/events | https://github.com/langchain-ai/langchain/pull/15784 | 2,073,348,388 | PR_kwDOIPDwls5joWZq | 15,784 | community[patch]: ChatDeepInfra | {
"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": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] | open | false | null | [] | null | 3 | 2024-01-09T23:50:30 | 2024-01-15T13:14:32 | null | COLLABORATOR | null | - deepinfra support for chat_models
- update test model
- cr
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15784/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15784/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15784",
"html_url": "https://github.com/langchain-ai/langchain/pull/15784",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15784.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15784.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15783 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15783/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15783/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15783/events | https://github.com/langchain-ai/langchain/pull/15783 | 2,073,319,257 | PR_kwDOIPDwls5joQIP | 15,783 | docs: tool-use use case | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"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": 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 | 2024-01-09T23:14:06 | 2024-01-16T18:41:15 | 2024-01-16T18:41:14 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15783/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15783/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15783",
"html_url": "https://github.com/langchain-ai/langchain/pull/15783",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15783.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15783.patch",
"merged_at": "2024-01-16T18:41:14"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15782 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15782/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15782/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15782/events | https://github.com/langchain-ai/langchain/pull/15782 | 2,073,234,820 | PR_kwDOIPDwls5jn9tK | 15,782 | community[patch]: more deprecations | {
"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": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-09T21:55:32 | 2024-01-10T04:36:17 | 2024-01-10T04:36:16 | COLLABORATOR | null | Todo before merging:
- [x] release core
- [x] bump min core version for community | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15782/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15782/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15782",
"html_url": "https://github.com/langchain-ai/langchain/pull/15782",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15782.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15782.patch",
"merged_at": "2024-01-10T04:36:16"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15781 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15781/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15781/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15781/events | https://github.com/langchain-ai/langchain/pull/15781 | 2,073,233,796 | PR_kwDOIPDwls5jn9eh | 15,781 | core[patch]: add alternative_import to deprecated | {
"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": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-09T21:54:39 | 2024-01-09T22:55:16 | 2024-01-09T22:45:29 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15781/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15781/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15781",
"html_url": "https://github.com/langchain-ai/langchain/pull/15781",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15781.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15781.patch",
"merged_at": "2024-01-09T22:45:29"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15780 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15780/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15780/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15780/events | https://github.com/langchain-ai/langchain/pull/15780 | 2,073,218,080 | PR_kwDOIPDwls5jn6A6 | 15,780 | rfc: add thread info to verbose | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-09T21:41:54 | 2024-01-13T01:47:01 | 2024-01-13T01:47:01 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15780/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15780/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15780",
"html_url": "https://github.com/langchain-ai/langchain/pull/15780",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15780.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15780.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15779 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15779/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15779/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15779/events | https://github.com/langchain-ai/langchain/issues/15779 | 2,073,178,041 | I_kwDOIPDwls57ki-5 | 15,779 | Issue with LangChain v0.0.335 - Error in ChatOpenAI Callbacks Expected Runnable Instances | {
"login": "girithodu",
"id": 119573064,
"node_id": "U_kgDOByCKSA",
"avatar_url": "https://avatars.githubusercontent.com/u/119573064?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/girithodu",
"html_url": "https://github.com/girithodu",
"followers_url": "https://api.github.com/users/girithodu/followers",
"following_url": "https://api.github.com/users/girithodu/following{/other_user}",
"gists_url": "https://api.github.com/users/girithodu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/girithodu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/girithodu/subscriptions",
"organizations_url": "https://api.github.com/users/girithodu/orgs",
"repos_url": "https://api.github.com/users/girithodu/repos",
"events_url": "https://api.github.com/users/girithodu/events{/privacy}",
"received_events_url": "https://api.github.com/users/girithodu/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 5932474361,
"node_id": "LA_kwDOIPDwls8AAAABYZpf-Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone",
"name": "integration: pinecone",
"color": "BC53BE",
"default": false,
"description": "Related to Pinecone vector store integration"
}
] | closed | false | null | [] | null | 3 | 2024-01-09T21:13:36 | 2024-01-10T18:32:48 | 2024-01-10T18:32:48 | NONE | null | ### Issue you'd like to raise.
I am currently utilizing LangChain version 0.0.335 in my Fast API Python application. In the main.py file, the following code snippet is implemented:
main.py
```
streaming_model = ChatOpenAI(
model_name="gpt-4",
temperature=0.1,
openai_api_key=os.getenv("OPENAI_API_KEY2"),
)
non_streaming_model = ChatOpenAI(
model_name="gpt-4",
temperature=0.1,
openai_api_key=os.getenv("OPENAI_API_KEY2"),
)
retriever = vector_store.as_retriever()
sales_persona_prompt = PromptTemplate.from_template(SALES_PERSONA_PROMPT)
condense_prompt = PromptTemplate.from_template(CONDENSE_PROMPT)
chain = ConversationalRetrievalChain.from_llm(
llm=streaming_model,
retriever=retriever,
condense_question_prompt=condense_prompt,
condense_question_llm=non_streaming_model,
combine_docs_chain_kwargs={"prompt": sales_persona_prompt},
verbose=True,
)
return chain(
{"question": sanitized_question, "chat_history": conversation_history}
)
except Exception as e:
return {"error": str(e)}
```
However, this implementation throws the following error:
` "error": "2 validation errors for LLMChain\nllm\n instance of Runnable expected (type=type_error.arbitrary_type; expected_arbitrary_type=Runnable)\nllm\n instance of Runnable expected (type=type_error.arbitrary_type; expected_arbitrary_type=Runnable)"`
Expected Behavior:
I expected the code to execute without errors. The issue seems to be related to the expected types for the llm parameter in the ConversationalRetrievalChain.from_llm method.
Request for Assistance:
I kindly request assistance in understanding and resolving this issue. Any insights, recommendations, or specific steps to address the error would be highly appreciated.
Thank you for your time and support.
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15779/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15779/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15778 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15778/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15778/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15778/events | https://github.com/langchain-ai/langchain/pull/15778 | 2,073,171,967 | PR_kwDOIPDwls5jnvxP | 15,778 | docs[patch]: Fix bad headers in output parser docs | {
"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": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-09T21:09:12 | 2024-01-11T18:24:16 | 2024-01-11T18:24:15 | CONTRIBUTOR | null | Currently looks like this:
<img width="282" alt="Screenshot 2024-01-09 at 1 08 53 PM" src="https://github.com/langchain-ai/langchain/assets/6952323/58f3d368-6588-418e-8502-30d13757cb99">
CC @efriis @baskaryan
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15778/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15778/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15778",
"html_url": "https://github.com/langchain-ai/langchain/pull/15778",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15778.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15778.patch",
"merged_at": "2024-01-11T18:24:15"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15777 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15777/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15777/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15777/events | https://github.com/langchain-ai/langchain/pull/15777 | 2,073,141,661 | PR_kwDOIPDwls5jnpOL | 15,777 | robocorp[patch]: fix readme, release 0.0.1.post1
| {
"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": 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."
},
{
"id": 6348691034,
"node_id": "LA_kwDOIPDwls8AAAABemlWWg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner",
"name": "partner",
"color": "ededed",
"default": false,
"description": null
}
] | closed | false | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2024-01-09T20:44:34 | 2024-01-09T20:53:58 | 2024-01-09T20:53:58 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15777/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15777/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15777",
"html_url": "https://github.com/langchain-ai/langchain/pull/15777",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15777.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15777.patch",
"merged_at": "2024-01-09T20:53:58"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15776 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15776/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15776/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15776/events | https://github.com/langchain-ai/langchain/pull/15776 | 2,073,043,738 | PR_kwDOIPDwls5jnTmz | 15,776 | templates: robocorp action server template | {
"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": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6154420538,
"node_id": "LA_kwDOIPDwls8AAAABbtUBOg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/template",
"name": "template",
"color": "145FB1",
"default": false,
"description": ""
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2024-01-09T19:41:56 | 2024-01-09T20:41:21 | 2024-01-09T20:41:20 | COLLABORATOR | null | - Hardwire release actions
- Revert "Hardwire release actions"
- Initial implementation
- Initial tests update
- Test fixes
- Remove redundant description
- Initial docs update
- - Add missing Langsmith dependency - Update docs
- Add template
- Fix linting
- remove code duplicate use urljoin to ensure openapi path
- lint
- docs/toolkit update
- fix typo and test..
- Update README
- fix case where action has no doc string
- refactoring
- Conditionally return structured/unstructured tools
- Update docs
- Fix formatting
- Leave template only
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15776/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15776/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15776",
"html_url": "https://github.com/langchain-ai/langchain/pull/15776",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15776.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15776.patch",
"merged_at": "2024-01-09T20:41:20"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15775 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15775/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15775/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15775/events | https://github.com/langchain-ai/langchain/pull/15775 | 2,073,043,444 | PR_kwDOIPDwls5jnTiy | 15,775 | docs: add last updated date | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | open | false | null | [] | null | 1 | 2024-01-09T19:41:41 | 2024-01-09T19:52:19 | null | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15775/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15775/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15775",
"html_url": "https://github.com/langchain-ai/langchain/pull/15775",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15775.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15775.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15774 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15774/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15774/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15774/events | https://github.com/langchain-ai/langchain/pull/15774 | 2,073,028,228 | PR_kwDOIPDwls5jnQNR | 15,774 | templates: robocorp action server template | {
"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": 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": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6154420538,
"node_id": "LA_kwDOIPDwls8AAAABbtUBOg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/template",
"name": "template",
"color": "145FB1",
"default": false,
"description": ""
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 2 | 2024-01-09T19:30:36 | 2024-01-09T19:45:01 | 2024-01-09T19:42:13 | COLLABORATOR | null | - [x] publish integration package
- [ ] update deps/lockfile to reflect published version | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15774/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15774/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15774",
"html_url": "https://github.com/langchain-ai/langchain/pull/15774",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15774.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15774.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15773 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15773/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15773/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15773/events | https://github.com/langchain-ai/langchain/pull/15773 | 2,073,022,773 | PR_kwDOIPDwls5jnPBD | 15,773 | openai[patch], docs: readme | {
"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": 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."
},
{
"id": 6348691034,
"node_id": "LA_kwDOIPDwls8AAAABemlWWg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner",
"name": "partner",
"color": "ededed",
"default": false,
"description": null
}
] | closed | false | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2024-01-09T19:26:27 | 2024-01-09T19:52:25 | 2024-01-09T19:52:24 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15773/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15773/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15773",
"html_url": "https://github.com/langchain-ai/langchain/pull/15773",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15773.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15773.patch",
"merged_at": "2024-01-09T19:52:24"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15772 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15772/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15772/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15772/events | https://github.com/langchain-ai/langchain/pull/15772 | 2,073,005,605 | PR_kwDOIPDwls5jnLP2 | 15,772 | add structured tools | {
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | null | [] | null | 1 | 2024-01-09T19:14:40 | 2024-01-09T19:25:23 | null | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15772/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15772/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15772",
"html_url": "https://github.com/langchain-ai/langchain/pull/15772",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15772.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15772.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15771 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15771/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15771/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15771/events | https://github.com/langchain-ai/langchain/pull/15771 | 2,073,001,651 | PR_kwDOIPDwls5jnKWT | 15,771 | docs: more pip installs | {
"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": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-09T19:12:44 | 2024-01-13T02:16:01 | 2024-01-13T02:16:00 | COLLABORATOR | null | - vertex chat
- google
- some pip openai
- percent and openai
- all percent
- more
- pip
- fmt
- docs: google vertex partner docs
- fmt
- docs: more pip installs
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15771/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15771/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15771",
"html_url": "https://github.com/langchain-ai/langchain/pull/15771",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15771.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15771.patch",
"merged_at": "2024-01-13T02:16:00"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15770 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15770/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15770/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15770/events | https://github.com/langchain-ai/langchain/pull/15770 | 2,072,982,603 | PR_kwDOIPDwls5jnGDY | 15,770 | docs: google vertex partner docs | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2024-01-09T19:02:33 | 2024-01-09T19:06:50 | 2024-01-09T19:06:49 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15770/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15770/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15770",
"html_url": "https://github.com/langchain-ai/langchain/pull/15770",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15770.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15770.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15769 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15769/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15769/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15769/events | https://github.com/langchain-ai/langchain/pull/15769 | 2,072,965,302 | PR_kwDOIPDwls5jnCMy | 15,769 | docs: fix recognition | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-09T18:51:16 | 2024-01-09T18:57:29 | 2024-01-09T18:57:28 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15769/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15769/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15769",
"html_url": "https://github.com/langchain-ai/langchain/pull/15769",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15769.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15769.patch",
"merged_at": "2024-01-09T18:57:28"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15768 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15768/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15768/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15768/events | https://github.com/langchain-ai/langchain/pull/15768 | 2,072,949,041 | PR_kwDOIPDwls5jm-mN | 15,768 | community: Fix String-List Comparison Bug in AzureAIDocumentIntelligenceParser | {
"login": "timschonborn",
"id": 22553760,
"node_id": "MDQ6VXNlcjIyNTUzNzYw",
"avatar_url": "https://avatars.githubusercontent.com/u/22553760?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/timschonborn",
"html_url": "https://github.com/timschonborn",
"followers_url": "https://api.github.com/users/timschonborn/followers",
"following_url": "https://api.github.com/users/timschonborn/following{/other_user}",
"gists_url": "https://api.github.com/users/timschonborn/gists{/gist_id}",
"starred_url": "https://api.github.com/users/timschonborn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/timschonborn/subscriptions",
"organizations_url": "https://api.github.com/users/timschonborn/orgs",
"repos_url": "https://api.github.com/users/timschonborn/repos",
"events_url": "https://api.github.com/users/timschonborn/events{/privacy}",
"received_events_url": "https://api.github.com/users/timschonborn/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"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 | 3 | 2024-01-09T18:40:21 | 2024-01-15T19:08:52 | 2024-01-15T19:01:15 | NONE | null | This pull request addresses a bug found in `AzureAIDocumentIntelligenceParser` where a string was incorrectly being compared to a list.
The code currently uses the expression `self.mode == ["page"]` to check which mode the user has selected. In Python, this comparison is always `False` (self.mode is asserted to be str in line 35), thus the if-statement would always result in the execution of `_generate_docs_object` instead of `_generate_docs_page`.
The fix is to remove the brackets resulting in a correct comparison.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15768/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15768/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15768",
"html_url": "https://github.com/langchain-ai/langchain/pull/15768",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15768.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15768.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15767 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15767/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15767/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15767/events | https://github.com/langchain-ai/langchain/issues/15767 | 2,072,940,890 | I_kwDOIPDwls57jpFa | 15,767 | chain.batch() doesn't use config options properly (max concurrency) | {
"login": "yoch",
"id": 795960,
"node_id": "MDQ6VXNlcjc5NTk2MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/795960?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yoch",
"html_url": "https://github.com/yoch",
"followers_url": "https://api.github.com/users/yoch/followers",
"following_url": "https://api.github.com/users/yoch/following{/other_user}",
"gists_url": "https://api.github.com/users/yoch/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yoch/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yoch/subscriptions",
"organizations_url": "https://api.github.com/users/yoch/orgs",
"repos_url": "https://api.github.com/users/yoch/repos",
"events_url": "https://api.github.com/users/yoch/events{/privacy}",
"received_events_url": "https://api.github.com/users/yoch/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": 6411661606,
"node_id": "LA_kwDOIPDwls8AAAABfioxJg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/investigate",
"name": "investigate",
"color": "4D8397",
"default": false,
"description": ""
}
] | open | false | null | [] | null | 8 | 2024-01-09T18:34:52 | 2024-01-13T15:43:34 | null | CONTRIBUTOR | null | ### System Info
**Platform**: Ubuntu 22.04
**Python**: 3.10
**Langchain**:
langchain 0.1.0
langchain-community 0.0.10
langchain-core 0.1.8
langchain-openai 0.0.2
langsmith 0.0.78
### Who can help?
@hwchase17
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I used this code :
```py
out = chain.batch(entries, config={"max_concurrency": 3})
```
I can see in Langsmith that more than 12 requests were made at parallel, causing rate limit failure with OpenAI API (TPM).
```
RateLimitError: Error code: 429 - {'error': {'message': 'Rate limit reached for gpt-3.5-turbo-1106 in organization org-W83OoPhCAmgMx2r35aLyv9Tr on tokens per min (TPM): Limit 60000, Used 54134, Requested 6465. Please try again in 599ms. Visit https://platform.openai.com/account/rate-limits to learn more.', 'type': 'tokens', 'param': None, 'code': 'rate_limit_exceeded'}}
```
### Expected behavior
I would expect max_concurrency to limit the amount of concurrency used, but actually that doesn't seem to be the case.
Batch doesn't seem to limit concurrency at all.
This code works perfectly :
```py
from concurrent.futures import ThreadPoolExecutor
def batch_chain(inputs: list) -> list:
with ThreadPoolExecutor(max_workers=3) as executor:
return list(executor.map(chain.invoke, inputs))
out = batch_chain(entries)
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15767/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15767/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15766 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15766/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15766/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15766/events | https://github.com/langchain-ai/langchain/pull/15766 | 2,072,937,090 | PR_kwDOIPDwls5jm7_I | 15,766 | robocorp[minor]: Add robocorp action server toolkit | {
"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": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6221234145,
"node_id": "LA_kwDOIPDwls8AAAABctB_4Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve",
"name": "area: langserve",
"color": "0FA0C8",
"default": false,
"description": ""
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
},
{
"id": 6348691034,
"node_id": "LA_kwDOIPDwls8AAAABemlWWg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner",
"name": "partner",
"color": "ededed",
"default": false,
"description": null
}
] | closed | false | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2024-01-09T18:32:15 | 2024-01-09T19:29:20 | 2024-01-09T19:29:19 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15766/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15766/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15766",
"html_url": "https://github.com/langchain-ai/langchain/pull/15766",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15766.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15766.patch",
"merged_at": "2024-01-09T19:29:19"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15765 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15765/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15765/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15765/events | https://github.com/langchain-ai/langchain/pull/15765 | 2,072,911,157 | PR_kwDOIPDwls5jm2Qb | 15,765 | community: Add CometLLM integration notebook example | {
"login": "Lothiraldan",
"id": 243665,
"node_id": "MDQ6VXNlcjI0MzY2NQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/243665?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Lothiraldan",
"html_url": "https://github.com/Lothiraldan",
"followers_url": "https://api.github.com/users/Lothiraldan/followers",
"following_url": "https://api.github.com/users/Lothiraldan/following{/other_user}",
"gists_url": "https://api.github.com/users/Lothiraldan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Lothiraldan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Lothiraldan/subscriptions",
"organizations_url": "https://api.github.com/users/Lothiraldan/orgs",
"repos_url": "https://api.github.com/users/Lothiraldan/repos",
"events_url": "https://api.github.com/users/Lothiraldan/events{/privacy}",
"received_events_url": "https://api.github.com/users/Lothiraldan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | {
"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 | 1 | 2024-01-09T18:15:13 | 2024-01-17T19:25:23 | null | CONTRIBUTOR | null | I also added LANGCHAIN_COMET_TRACING to enable the CometLLM tracing integration similar to other tracing integrations. This is easier for end-users to enable it rather than importing the callback and pass it manually.
(This is the same content as https://github.com/langchain-ai/langchain/pull/14650 but rebased and squashed as something seems to confuse Github Action).
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15765/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15765/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15765",
"html_url": "https://github.com/langchain-ai/langchain/pull/15765",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15765.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15765.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15764 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15764/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15764/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15764/events | https://github.com/langchain-ai/langchain/issues/15764 | 2,072,810,448 | I_kwDOIPDwls57jJPQ | 15,764 | Async with EnsembleRetriever | {
"login": "saswat0",
"id": 32325136,
"node_id": "MDQ6VXNlcjMyMzI1MTM2",
"avatar_url": "https://avatars.githubusercontent.com/u/32325136?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/saswat0",
"html_url": "https://github.com/saswat0",
"followers_url": "https://api.github.com/users/saswat0/followers",
"following_url": "https://api.github.com/users/saswat0/following{/other_user}",
"gists_url": "https://api.github.com/users/saswat0/gists{/gist_id}",
"starred_url": "https://api.github.com/users/saswat0/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/saswat0/subscriptions",
"organizations_url": "https://api.github.com/users/saswat0/orgs",
"repos_url": "https://api.github.com/users/saswat0/repos",
"events_url": "https://api.github.com/users/saswat0/events{/privacy}",
"received_events_url": "https://api.github.com/users/saswat0/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 | 6 | 2024-01-09T17:13:31 | 2024-01-11T09:21:56 | null | NONE | null | ### Issue you'd like to raise.
How can EnsembleRetriever be called asynchronously? I have a dataset with ~1k questions and I wish to find the documents that can best answer each of them. However, calling it sequentially takes a lot of time. Can I run the retriever in parallel for all rows (or chunks of it)? Or is there a different way to optimise the run times?
I'm calling it like this now but it gives out a segmentation fault after getting stuck for an hour
```
import asyncio
queries = [query1, query2, ...]
async def process_query(profile):
result = await ensemble_retriever.aget_relevant_documents(profile)
return result
async def process_all_queries():
tasks = [process_query(query) for query in queries]
results = await asyncio.gather(*tasks)
return results
results = asyncio.run(process_all_queries())
```
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15764/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/15764/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15763 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15763/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15763/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15763/events | https://github.com/langchain-ai/langchain/pull/15763 | 2,072,747,198 | PR_kwDOIPDwls5jmSKW | 15,763 | experimental[patch]: loosen core max version | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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 | 2024-01-09T16:39:46 | 2024-01-09T17:10:15 | 2024-01-09T17:10:14 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15763/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15763/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15763",
"html_url": "https://github.com/langchain-ai/langchain/pull/15763",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15763.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15763.patch",
"merged_at": "2024-01-09T17:10:14"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15762 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15762/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15762/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15762/events | https://github.com/langchain-ai/langchain/pull/15762 | 2,072,738,550 | PR_kwDOIPDwls5jmQQV | 15,762 | docs: integration package pip installs | {
"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": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-09T16:34:49 | 2024-01-09T19:13:11 | 2024-01-09T19:13:10 | COLLABORATOR | null | More than 300 files - will fail check_diff. Will merge after Vercel deploy succeeds
Still occurrences that need changing - will update more later | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15762/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15762/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15762",
"html_url": "https://github.com/langchain-ai/langchain/pull/15762",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15762.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15762.patch",
"merged_at": "2024-01-09T19:13:10"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15761 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15761/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15761/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15761/events | https://github.com/langchain-ai/langchain/pull/15761 | 2,072,738,515 | PR_kwDOIPDwls5jmQP0 | 15,761 | Community: added 'conversational' as a valid task for hugginface endopoint models | {
"login": "alessioserra",
"id": 48280936,
"node_id": "MDQ6VXNlcjQ4MjgwOTM2",
"avatar_url": "https://avatars.githubusercontent.com/u/48280936?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alessioserra",
"html_url": "https://github.com/alessioserra",
"followers_url": "https://api.github.com/users/alessioserra/followers",
"following_url": "https://api.github.com/users/alessioserra/following{/other_user}",
"gists_url": "https://api.github.com/users/alessioserra/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alessioserra/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alessioserra/subscriptions",
"organizations_url": "https://api.github.com/users/alessioserra/orgs",
"repos_url": "https://api.github.com/users/alessioserra/repos",
"events_url": "https://api.github.com/users/alessioserra/events{/privacy}",
"received_events_url": "https://api.github.com/users/alessioserra/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."
}
] | open | false | null | [] | null | 1 | 2024-01-09T16:34:48 | 2024-01-12T15:11:33 | null | NONE | null | - **Description:** added the conversational task to hugginFace endpoint in order to use models designed for chatbot programming.
- **Dependencies:** None | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15761/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15761/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15761",
"html_url": "https://github.com/langchain-ai/langchain/pull/15761",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15761.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15761.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15760 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15760/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15760/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15760/events | https://github.com/langchain-ai/langchain/pull/15760 | 2,072,726,078 | PR_kwDOIPDwls5jmNgO | 15,760 | community[patch]: release 0.0.11 | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-09T16:28:29 | 2024-01-09T17:44:27 | 2024-01-09T17:44:26 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15760/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15760/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15760",
"html_url": "https://github.com/langchain-ai/langchain/pull/15760",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15760.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15760.patch",
"merged_at": "2024-01-09T17:44:26"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15759 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15759/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15759/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15759/events | https://github.com/langchain-ai/langchain/pull/15759 | 2,072,678,402 | PR_kwDOIPDwls5jmC69 | 15,759 | langchain[patch]: Document and test PydanticOutputFunctionsParser | {
"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": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-09T16:04:35 | 2024-01-18T02:21:19 | 2024-01-18T02:21:18 | COLLABORATOR | null | This PR adds documentation and testing to `PydanticOutputFunctionsParser(OutputFunctionsParser)`.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15759/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15759/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15759",
"html_url": "https://github.com/langchain-ai/langchain/pull/15759",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15759.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15759.patch",
"merged_at": "2024-01-18T02:21:18"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15758 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15758/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15758/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15758/events | https://github.com/langchain-ai/langchain/pull/15758 | 2,072,670,930 | PR_kwDOIPDwls5jmBRl | 15,758 | Add NVIDIA Canonical RAG example chain | {
"login": "SagarBM396",
"id": 21286981,
"node_id": "MDQ6VXNlcjIxMjg2OTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/21286981?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SagarBM396",
"html_url": "https://github.com/SagarBM396",
"followers_url": "https://api.github.com/users/SagarBM396/followers",
"following_url": "https://api.github.com/users/SagarBM396/following{/other_user}",
"gists_url": "https://api.github.com/users/SagarBM396/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SagarBM396/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SagarBM396/subscriptions",
"organizations_url": "https://api.github.com/users/SagarBM396/orgs",
"repos_url": "https://api.github.com/users/SagarBM396/repos",
"events_url": "https://api.github.com/users/SagarBM396/events{/privacy}",
"received_events_url": "https://api.github.com/users/SagarBM396/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": 6154420538,
"node_id": "LA_kwDOIPDwls8AAAABbtUBOg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/template",
"name": "template",
"color": "145FB1",
"default": false,
"description": ""
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2024-01-09T16:00:38 | 2024-01-11T02:39:16 | 2024-01-11T02:39:16 | CONTRIBUTOR | null | - **Description:** Adds a RAG template that uses NVIDIA AI playground and embedding models, along with Milvus vector store
- **Dependencies:** This template depends on the AI playground service in NVIDIA NGC. API keys with a significant trial compute are available (10k queries at the time of writing). This template also depends on the Milvus Vector store which is publicly available.
Note: [A quick link to get a key](https://catalog.ngc.nvidia.com/orgs/nvidia/teams/ai-foundation/models/codellama-13b/api) when you have an NGC account. Generate Key button at the top right of the code window. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15758/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15758/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15758",
"html_url": "https://github.com/langchain-ai/langchain/pull/15758",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15758.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15758.patch",
"merged_at": "2024-01-11T02:39:16"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15757 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15757/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15757/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15757/events | https://github.com/langchain-ai/langchain/pull/15757 | 2,072,613,527 | PR_kwDOIPDwls5jl0ed | 15,757 | ISSUE_TEMPLATE: Update issue template | {
"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": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-09T15:33:24 | 2024-01-10T17:35:42 | 2024-01-10T17:35:41 | COLLABORATOR | null | Drop some fields, re-order, start directing folks towards QA.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15757/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15757/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15757",
"html_url": "https://github.com/langchain-ai/langchain/pull/15757",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15757.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15757.patch",
"merged_at": "2024-01-10T17:35:41"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15756 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15756/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15756/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15756/events | https://github.com/langchain-ai/langchain/pull/15756 | 2,072,525,258 | PR_kwDOIPDwls5jlhJS | 15,756 | CI: Fix template for questions | {
"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": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-09T14:48:36 | 2024-01-09T14:49:50 | 2024-01-09T14:49:49 | COLLABORATOR | null | CI: Workflow fix template for questions
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15756/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15756/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15756",
"html_url": "https://github.com/langchain-ai/langchain/pull/15756",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15756.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15756.patch",
"merged_at": "2024-01-09T14:49:49"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15752 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15752/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15752/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15752/events | https://github.com/langchain-ai/langchain/pull/15752 | 2,072,508,871 | PR_kwDOIPDwls5jldi9 | 15,752 | docs: remove unnecessary description | {
"login": "morugu",
"id": 1635118,
"node_id": "MDQ6VXNlcjE2MzUxMTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/1635118?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/morugu",
"html_url": "https://github.com/morugu",
"followers_url": "https://api.github.com/users/morugu/followers",
"following_url": "https://api.github.com/users/morugu/following{/other_user}",
"gists_url": "https://api.github.com/users/morugu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/morugu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/morugu/subscriptions",
"organizations_url": "https://api.github.com/users/morugu/orgs",
"repos_url": "https://api.github.com/users/morugu/repos",
"events_url": "https://api.github.com/users/morugu/events{/privacy}",
"received_events_url": "https://api.github.com/users/morugu/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-09T14:40:21 | 2024-01-09T16:29:40 | 2024-01-09T16:29:39 | CONTRIBUTOR | null |
| before | after |
| ---- | ---- |
| ![image](https://github.com/langchain-ai/langchain/assets/1635118/c108c53c-2665-46c3-82bf-8f74005f9ac9) | ![image](https://github.com/langchain-ai/langchain/assets/1635118/2da3427a-1bac-4e9e-9fb2-509c9674d8a1) | | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15752/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15752/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15752",
"html_url": "https://github.com/langchain-ai/langchain/pull/15752",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15752.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15752.patch",
"merged_at": "2024-01-09T16:29:39"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15750 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15750/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15750/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15750/events | https://github.com/langchain-ai/langchain/pull/15750 | 2,072,505,596 | PR_kwDOIPDwls5jlc1S | 15,750 | docs: Updated MongoDB Chat history example notebook to use LCEL format. | {
"login": "DaveDeCaprio",
"id": 841146,
"node_id": "MDQ6VXNlcjg0MTE0Ng==",
"avatar_url": "https://avatars.githubusercontent.com/u/841146?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DaveDeCaprio",
"html_url": "https://github.com/DaveDeCaprio",
"followers_url": "https://api.github.com/users/DaveDeCaprio/followers",
"following_url": "https://api.github.com/users/DaveDeCaprio/following{/other_user}",
"gists_url": "https://api.github.com/users/DaveDeCaprio/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DaveDeCaprio/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DaveDeCaprio/subscriptions",
"organizations_url": "https://api.github.com/users/DaveDeCaprio/orgs",
"repos_url": "https://api.github.com/users/DaveDeCaprio/repos",
"events_url": "https://api.github.com/users/DaveDeCaprio/events{/privacy}",
"received_events_url": "https://api.github.com/users/DaveDeCaprio/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 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": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2024-01-09T14:38:38 | 2024-01-17T20:07:18 | 2024-01-17T20:07:18 | CONTRIBUTOR | null | - **Description:** Updated the MongoDB example integration notebook to latest standards
- **Issue:** [15664](https://github.com/langchain-ai/langchain/issues/15664)
- **Dependencies:** None
- **Twitter handle:** @davedecaprio
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15750/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15750/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15750",
"html_url": "https://github.com/langchain-ai/langchain/pull/15750",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15750.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15750.patch",
"merged_at": "2024-01-17T20:07:18"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15747 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15747/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15747/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15747/events | https://github.com/langchain-ai/langchain/issues/15747 | 2,072,340,407 | I_kwDOIPDwls57hWe3 | 15,747 | Issue: Streaming agent's response to Streamlit UI | {
"login": "MohammedShokr",
"id": 63115488,
"node_id": "MDQ6VXNlcjYzMTE1NDg4",
"avatar_url": "https://avatars.githubusercontent.com/u/63115488?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MohammedShokr",
"html_url": "https://github.com/MohammedShokr",
"followers_url": "https://api.github.com/users/MohammedShokr/followers",
"following_url": "https://api.github.com/users/MohammedShokr/following{/other_user}",
"gists_url": "https://api.github.com/users/MohammedShokr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/MohammedShokr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MohammedShokr/subscriptions",
"organizations_url": "https://api.github.com/users/MohammedShokr/orgs",
"repos_url": "https://api.github.com/users/MohammedShokr/repos",
"events_url": "https://api.github.com/users/MohammedShokr/events{/privacy}",
"received_events_url": "https://api.github.com/users/MohammedShokr/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": 6134259614,
"node_id": "LA_kwDOIPDwls8AAAABbaFfng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20lcel",
"name": "area: lcel",
"color": "38B1E8",
"default": false,
"description": ""
}
] | closed | true | null | [] | null | 1 | 2024-01-09T13:06:25 | 2024-01-09T14:42:49 | 2024-01-09T14:42:49 | NONE | null | ### Issue you'd like to raise.
I am developing a Streamlit application where I aim to stream the agent's responses to the UI. Previously, I was able to achieve this by utilizing chains with a simple call to ```chain.stream()```. However, after switching to agents, I cannot stream its response in the same way given that it is implemented in LCEL.
I've tried to use ```StreamingStdOutCallbackHandler``` but the response gets streamed in the terminal only and not to the UI.
Any insights, guidance, or fixes regarding this issue would be greatly appreciated
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15747/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15747/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15745 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15745/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15745/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15745/events | https://github.com/langchain-ai/langchain/pull/15745 | 2,072,316,950 | PR_kwDOIPDwls5jkzl9 | 15,745 | Partners: Add Robocorp Action Server toolkit | {
"login": "rihardsgravis",
"id": 31288628,
"node_id": "MDQ6VXNlcjMxMjg4NjI4",
"avatar_url": "https://avatars.githubusercontent.com/u/31288628?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rihardsgravis",
"html_url": "https://github.com/rihardsgravis",
"followers_url": "https://api.github.com/users/rihardsgravis/followers",
"following_url": "https://api.github.com/users/rihardsgravis/following{/other_user}",
"gists_url": "https://api.github.com/users/rihardsgravis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rihardsgravis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rihardsgravis/subscriptions",
"organizations_url": "https://api.github.com/users/rihardsgravis/orgs",
"repos_url": "https://api.github.com/users/rihardsgravis/repos",
"events_url": "https://api.github.com/users/rihardsgravis/events{/privacy}",
"received_events_url": "https://api.github.com/users/rihardsgravis/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": 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": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
},
{
"id": 6348691034,
"node_id": "LA_kwDOIPDwls8AAAABemlWWg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner",
"name": "partner",
"color": "ededed",
"default": false,
"description": null
}
] | 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 | 3 | 2024-01-09T12:50:51 | 2024-01-09T18:32:38 | 2024-01-09T18:32:36 | CONTRIBUTOR | null | **Description:**
Adds the initial implementation of the [Robocorp Action Server](https://github.com/robocorp/robo/tree/master/action_server/docs) integration as Langchain Agent toolkit. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15745/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15745/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15745",
"html_url": "https://github.com/langchain-ai/langchain/pull/15745",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15745.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15745.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15743 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15743/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15743/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15743/events | https://github.com/langchain-ai/langchain/pull/15743 | 2,072,205,080 | PR_kwDOIPDwls5jka77 | 15,743 | adding parameter for changing the language in SpacyEmbeddings | {
"login": "MarinaPlius",
"id": 43298602,
"node_id": "MDQ6VXNlcjQzMjk4NjAy",
"avatar_url": "https://avatars.githubusercontent.com/u/43298602?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MarinaPlius",
"html_url": "https://github.com/MarinaPlius",
"followers_url": "https://api.github.com/users/MarinaPlius/followers",
"following_url": "https://api.github.com/users/MarinaPlius/following{/other_user}",
"gists_url": "https://api.github.com/users/MarinaPlius/gists{/gist_id}",
"starred_url": "https://api.github.com/users/MarinaPlius/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarinaPlius/subscriptions",
"organizations_url": "https://api.github.com/users/MarinaPlius/orgs",
"repos_url": "https://api.github.com/users/MarinaPlius/repos",
"events_url": "https://api.github.com/users/MarinaPlius/events{/privacy}",
"received_events_url": "https://api.github.com/users/MarinaPlius/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": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | open | false | {
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2024-01-09T11:41:15 | 2024-01-15T19:03:24 | null | NONE | null | Description: Added the parameter for a possibility to change a language model in SpacyEmbeddings. The default value is still the same: "en_core_web_sm", so it shouldn't affect a code which previously did not specify this parameter, but it is not hard-coded anymore and easy to change in case you want to use it with other languages or models.
Issue: At Barcelona Supercomputing Center in Aina project (https://github.com/projecte-aina), a project for Catalan Language Models and Resources, we would like to use Langchain for one of our current projects and we would like to comment that Langchain, while being a very powerful and useful open-source tool, is pretty much focused on English language. We would like to contribute to make it a bit more adaptable for using with other languages.
Dependencies: This change requires the Spacy library and a language model, specified in the model parameter.
Tag maintainer: @dev2049
Twitter handle: @projecte_aina
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15743/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15743/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15743",
"html_url": "https://github.com/langchain-ai/langchain/pull/15743",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15743.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15743.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15741 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15741/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15741/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15741/events | https://github.com/langchain-ai/langchain/issues/15741 | 2,072,124,775 | I_kwDOIPDwls57gh1n | 15,741 | Issue: LangChainDeprecationWarning: The function `__call__` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use invoke instead. warn_deprecated( | {
"login": "ArslanKAS",
"id": 43797457,
"node_id": "MDQ6VXNlcjQzNzk3NDU3",
"avatar_url": "https://avatars.githubusercontent.com/u/43797457?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ArslanKAS",
"html_url": "https://github.com/ArslanKAS",
"followers_url": "https://api.github.com/users/ArslanKAS/followers",
"following_url": "https://api.github.com/users/ArslanKAS/following{/other_user}",
"gists_url": "https://api.github.com/users/ArslanKAS/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ArslanKAS/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ArslanKAS/subscriptions",
"organizations_url": "https://api.github.com/users/ArslanKAS/orgs",
"repos_url": "https://api.github.com/users/ArslanKAS/repos",
"events_url": "https://api.github.com/users/ArslanKAS/events{/privacy}",
"received_events_url": "https://api.github.com/users/ArslanKAS/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 | 10 | 2024-01-09T10:53:09 | 2024-01-14T22:39:15 | null | NONE | null | ### Issue you'd like to raise.
Everything was working fine but now suddenly I'm receiving all sorts of LangChain Deprecation issues.
I installed the langchain_openai package and also installed langchain_community package too and replaced all the imports with the suggested ones in the error. It went well but now I'm stuck at this issue
The error is:
`/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.10/site-packages/langchain_core/_api/deprecation.py:115: LangChainDeprecationWarning: The function `__call__` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use invoke instead.
warn_deprecated(`
In my code I've replaced all "run" to "invoke" but don't know why this warning is coming up.
I'm also using a LangChain Summarizer and I checked the documentation and it's exactly the way it is in the documentation.
I don't know how to get rid of that deprecation warning now. I don't want to suppress the warning, I want to resolve it so it won't cause any issue in the future.
**This is the only code that I've related to LangChain:**
```
# Langchain Libraries
from langchain_openai import ChatOpenAI
from langchain.prompts import PromptTemplate
from langchain.chains import LLMChain
from langchain.docstore.document import Document
from langchain_community.callbacks import get_openai_callback
from langchain.text_splitter import TokenTextSplitter
from langchain.chains.summarize import load_summarize_chain
from langchain_core.output_parsers import StrOutputParser
# ------------------------------------------------------------
# General ChatGPT function that's required for all the Call-type Prompts
def chatgpt_function(prompt, transcript):
model_kwargs={"seed":235, "top_p":0.01}
llm = ChatOpenAI(model_name='gpt-3.5-turbo', temperature=0, model_kwargs=model_kwargs, max_tokens=tokens)
template = """
{prompt}
Call Transcript: ```{text}```
"""
prompt_main = PromptTemplate(
input_variables=["prompt", "text"],
template=template,)
with get_openai_callback() as cb:
# llm_chain = LLMChain(llm=llm, prompt=prompt_main)
output_parser = StrOutputParser()
llm_chain = prompt_main | llm | output_parser
all_text = str(template) + str(prompt) + str(transcript)
threshold = (llm.get_num_tokens(text=all_text) + tokens)
# print("Total Tokens:",threshold)
if int(threshold) <= 4000:
chatgpt_output = llm_chain.invoke({"prompt":prompt, "text":transcript})
else:
transcript_ = token_limiter(transcript)
chatgpt_output = llm_chain.invoke({"prompt":prompt, "text":transcript_})
return chatgpt_output
# -------------------------------------------------------
# Function to get refined summary if Transcript is long
def token_limiter(transcript):
text_splitter = TokenTextSplitter(chunk_size=3000, chunk_overlap=200)
texts = text_splitter.split_text(transcript)
docs = [Document(page_content=text) for text in texts]
question_prompt_template = """
I'm providing you a call transcript refined summary enclosed in triple backticks. summarize it furter.
Call Transcript: ```{text}```
Provide me a summary transcript. do not add add any title/ heading like summary or anything else. just give summary text.
"""
question_prompt = PromptTemplate(
template=question_prompt_template, input_variables=["text"]
)
refine_prompt_template = """
Write a summary of the following text enclosed in triple backticks (```).
```{text}```
"""
refine_prompt = PromptTemplate(
template=refine_prompt_template, input_variables=["text"]
)
llm = ChatOpenAI(model_name='gpt-3.5-turbo', temperature=0, max_tokens=800)
refine_chain = load_summarize_chain(
llm,
chain_type="refine",
question_prompt=question_prompt,
refine_prompt=refine_prompt,
return_intermediate_steps=True,
)
summary_refine = refine_chain({"input_documents": docs}, return_only_outputs=True)
return summary_refine['output_text']```
### Suggestion:
Please let me know what I need to change in my code to get rid of that Deprecation warning. Thank you | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15741/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15741/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15740 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15740/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15740/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15740/events | https://github.com/langchain-ai/langchain/pull/15740 | 2,072,108,915 | PR_kwDOIPDwls5jkF3K | 15,740 | community: Support milvus partition key. | {
"login": "zc277584121",
"id": 17022025,
"node_id": "MDQ6VXNlcjE3MDIyMDI1",
"avatar_url": "https://avatars.githubusercontent.com/u/17022025?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zc277584121",
"html_url": "https://github.com/zc277584121",
"followers_url": "https://api.github.com/users/zc277584121/followers",
"following_url": "https://api.github.com/users/zc277584121/following{/other_user}",
"gists_url": "https://api.github.com/users/zc277584121/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zc277584121/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zc277584121/subscriptions",
"organizations_url": "https://api.github.com/users/zc277584121/orgs",
"repos_url": "https://api.github.com/users/zc277584121/repos",
"events_url": "https://api.github.com/users/zc277584121/events{/privacy}",
"received_events_url": "https://api.github.com/users/zc277584121/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2024-01-09T10:44:04 | 2024-01-12T17:15:04 | 2024-01-12T17:15:03 | CONTRIBUTOR | null |
- **Description:** Milvus's partition key is an important feature. It can support multi-tenancy. We hope to introduce this feature. https://milvus.io/docs/partition_key.md
- **Issue:** No
- **Dependencies:** No
- **Twitter handle:** No
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15740/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15740/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15740",
"html_url": "https://github.com/langchain-ai/langchain/pull/15740",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15740.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15740.patch",
"merged_at": "2024-01-12T17:15:03"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15739 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15739/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15739/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15739/events | https://github.com/langchain-ai/langchain/issues/15739 | 2,072,094,761 | I_kwDOIPDwls57gagp | 15,739 | Connection error caused failure to post http://localhost:1984/runs in LangSmith API. | {
"login": "millfields99",
"id": 60213698,
"node_id": "MDQ6VXNlcjYwMjEzNjk4",
"avatar_url": "https://avatars.githubusercontent.com/u/60213698?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/millfields99",
"html_url": "https://github.com/millfields99",
"followers_url": "https://api.github.com/users/millfields99/followers",
"following_url": "https://api.github.com/users/millfields99/following{/other_user}",
"gists_url": "https://api.github.com/users/millfields99/gists{/gist_id}",
"starred_url": "https://api.github.com/users/millfields99/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/millfields99/subscriptions",
"organizations_url": "https://api.github.com/users/millfields99/orgs",
"repos_url": "https://api.github.com/users/millfields99/repos",
"events_url": "https://api.github.com/users/millfields99/events{/privacy}",
"received_events_url": "https://api.github.com/users/millfields99/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6221234145,
"node_id": "LA_kwDOIPDwls8AAAABctB_4Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve",
"name": "area: langserve",
"color": "0FA0C8",
"default": false,
"description": ""
}
] | open | false | null | [] | null | 2 | 2024-01-09T10:36:08 | 2024-01-18T03:16:56 | null | NONE | null | ### System Info
From pyproject.toml:
python=3.11.5
crewai = "0.1.6"
langchain = '==0.0.335'
openai = '==0.28.1'
unstructured = '==0.10.25'
pyowm = '3.3.0'
tools = "^0.1.9"
wikipedia = "1.4.0"
yfinance = "0.2.33"
sec-api = "1.0.17"
tiktoken = "0.5.2"
faiss-cpu = "1.7.4"
python-dotenv = "1.0.0"
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Running any of the scripts in the crewAI (https://github.com/joaomdmoura/crewAI)
Running crewAI I get the following.
Connection error caused failure to patch http://localhost:1984/runs/7fdd9cf2-4f50-4ee1-8fef-9202b07cc756 in LangSmith API. Please confirm your LANGCHAIN_ENDPOINT. ConnectionError(MaxRetryError("HTTPConnectionPool(host='localhost', port=1984): Max retries exceeded with url: /runs/7fdd9cf2-4f50-4ee1-8fef-9202b07cc756 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x130d51e10>: Failed to establish a new connection: [Errno 61] Connection refused'))"))
Connection error caused failure to post http://localhost:1984/runs in LangSmith API. Please confirm your LANGCHAIN_ENDPOINT. ConnectionError(MaxRetryError("HTTPConnectionPool(host='localhost', port=1984): Max retries exceeded with url: /runs (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x130d6b390>: Failed to establish a new connection: [Errno 61] Connection refused'))"))
I ma not running LangSmith nor do I have any access to it. I have tried setting in my .env to no effect.
LANGCHAIN_TRACING=false
LANGCHAIN_TRACING_V2=false
LANGCHAIN_HANDLER=None
### Expected behavior
Dont expect to see the error reports. Note that not all users are seeing this error | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15739/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15739/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15738 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15738/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15738/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15738/events | https://github.com/langchain-ai/langchain/pull/15738 | 2,072,077,270 | PR_kwDOIPDwls5jj--6 | 15,738 | Add AstraDB self query retriever | {
"login": "cbornet",
"id": 11633333,
"node_id": "MDQ6VXNlcjExNjMzMzMz",
"avatar_url": "https://avatars.githubusercontent.com/u/11633333?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cbornet",
"html_url": "https://github.com/cbornet",
"followers_url": "https://api.github.com/users/cbornet/followers",
"following_url": "https://api.github.com/users/cbornet/following{/other_user}",
"gists_url": "https://api.github.com/users/cbornet/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cbornet/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cbornet/subscriptions",
"organizations_url": "https://api.github.com/users/cbornet/orgs",
"repos_url": "https://api.github.com/users/cbornet/repos",
"events_url": "https://api.github.com/users/cbornet/events{/privacy}",
"received_events_url": "https://api.github.com/users/cbornet/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2024-01-09T10:26:16 | 2024-01-15T21:20:13 | 2024-01-15T19:04:12 | CONTRIBUTOR | null | - **Description:** this change adds a self-query retriever for AstraDB
- **Twitter handle:** cbornet_
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15738/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15738/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15738",
"html_url": "https://github.com/langchain-ai/langchain/pull/15738",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15738.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15738.patch",
"merged_at": "2024-01-15T19:04:12"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15737 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15737/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15737/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15737/events | https://github.com/langchain-ai/langchain/pull/15737 | 2,071,942,645 | PR_kwDOIPDwls5jjh56 | 15,737 | community: Added functions to make async calls to HuggingFaceHub's embedding endpoint in HuggingFaceHubEmbeddings class | {
"login": "raunakshrivastava7",
"id": 13537446,
"node_id": "MDQ6VXNlcjEzNTM3NDQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/13537446?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/raunakshrivastava7",
"html_url": "https://github.com/raunakshrivastava7",
"followers_url": "https://api.github.com/users/raunakshrivastava7/followers",
"following_url": "https://api.github.com/users/raunakshrivastava7/following{/other_user}",
"gists_url": "https://api.github.com/users/raunakshrivastava7/gists{/gist_id}",
"starred_url": "https://api.github.com/users/raunakshrivastava7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/raunakshrivastava7/subscriptions",
"organizations_url": "https://api.github.com/users/raunakshrivastava7/orgs",
"repos_url": "https://api.github.com/users/raunakshrivastava7/repos",
"events_url": "https://api.github.com/users/raunakshrivastava7/events{/privacy}",
"received_events_url": "https://api.github.com/users/raunakshrivastava7/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 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 | 1 | 2024-01-09T09:14:51 | 2024-01-12T05:52:56 | 2024-01-12T05:52:55 | CONTRIBUTOR | null | **Description:**
Added aembed_documents() and aembed_query() async functions in HuggingFaceHubEmbeddings class in
langchain_community\embeddings\huggingface_hub.py file. It will support to make async calls to HuggingFaceHub's
embedding endpoint and generate embeddings asynchronously.
Test Cases: Added test_huggingfacehub_embedding_async_documents() and test_huggingfacehub_embedding_async_query()
functions in test_huggingface_hub.py file to test the two async functions created in HuggingFaceHubEmbeddings class.
Documentation: Updated huggingfacehub.ipynb with steps to install huggingface_hub package and use
HuggingFaceHubEmbeddings.
**Dependencies:** None,
**Twitter handle:** I do not have a Twitter account
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15737/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15737/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15737",
"html_url": "https://github.com/langchain-ai/langchain/pull/15737",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15737.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15737.patch",
"merged_at": "2024-01-12T05:52:55"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15736 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15736/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15736/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15736/events | https://github.com/langchain-ai/langchain/pull/15736 | 2,071,920,674 | PR_kwDOIPDwls5jjdI1 | 15,736 | community: Added functions to make async calls to HuggingFaceHub's embedding endpoint in HuggingFaceHubEmbeddings class | {
"login": "raunakshrivastava7",
"id": 13537446,
"node_id": "MDQ6VXNlcjEzNTM3NDQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/13537446?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/raunakshrivastava7",
"html_url": "https://github.com/raunakshrivastava7",
"followers_url": "https://api.github.com/users/raunakshrivastava7/followers",
"following_url": "https://api.github.com/users/raunakshrivastava7/following{/other_user}",
"gists_url": "https://api.github.com/users/raunakshrivastava7/gists{/gist_id}",
"starred_url": "https://api.github.com/users/raunakshrivastava7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/raunakshrivastava7/subscriptions",
"organizations_url": "https://api.github.com/users/raunakshrivastava7/orgs",
"repos_url": "https://api.github.com/users/raunakshrivastava7/repos",
"events_url": "https://api.github.com/users/raunakshrivastava7/events{/privacy}",
"received_events_url": "https://api.github.com/users/raunakshrivastava7/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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 | 2 | 2024-01-09T09:01:44 | 2024-01-09T09:10:19 | 2024-01-09T09:09:28 | CONTRIBUTOR | null | - **Description:**
Added aembed_documents() and aembed_query() async functions in HuggingFaceHubEmbeddings class in
langchain_community\embeddings\huggingface_hub.py file. It will support to make async calls to HuggingFaceHub's
embedding endpoint and generate embeddings asynchronously.
Test Cases: Added test_huggingfacehub_embedding_async_documents() and test_huggingfacehub_embedding_async_query()
functions in test_huggingface_hub.py file to test the async functions created in HuggingFaceHubEmbeddings class.
Documentation: Updated huggingfacehub.ipynb with steps to install _huggingface_hub_ package and use
HuggingFaceHubEmbeddings.
- **Dependencies:** None,
- **Twitter handle:** I do not have a Twitter account
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15736/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15736/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15736",
"html_url": "https://github.com/langchain-ai/langchain/pull/15736",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15736.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15736.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15735 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15735/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15735/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15735/events | https://github.com/langchain-ai/langchain/issues/15735 | 2,071,916,307 | I_kwDOIPDwls57fu8T | 15,735 | How can I specify my own designated table for vector search to retrieve vector data for comparison and provide a response to OpenAI for reference? Also, I noticed the prompt disappeared | {
"login": "yen111445",
"id": 103471919,
"node_id": "U_kgDOBirbLw",
"avatar_url": "https://avatars.githubusercontent.com/u/103471919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yen111445",
"html_url": "https://github.com/yen111445",
"followers_url": "https://api.github.com/users/yen111445/followers",
"following_url": "https://api.github.com/users/yen111445/following{/other_user}",
"gists_url": "https://api.github.com/users/yen111445/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yen111445/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yen111445/subscriptions",
"organizations_url": "https://api.github.com/users/yen111445/orgs",
"repos_url": "https://api.github.com/users/yen111445/repos",
"events_url": "https://api.github.com/users/yen111445/events{/privacy}",
"received_events_url": "https://api.github.com/users/yen111445/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 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 | 2024-01-09T08:59:07 | 2024-01-09T09:01:18 | null | NONE | null | ### Issue you'd like to raise.
import os
from urllib.parse import quote_plus
from langchain.vectorstores.pgvector import PGVector
from langchain.chat_models import ChatOpenAI
from langchain.chains import ConversationalRetrievalChain
from langchain.memory import ConversationTokenBufferMemory
from langchain_community.embeddings import HuggingFaceEmbeddings
from langchain_core.prompts import ChatPromptTemplate, SystemMessagePromptTemplate, MessagesPlaceholder,
HumanMessagePromptTemplate
os.environ['OPENAI_API_KEY'] = "key"
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
CONNECTION_STRING = PGVector.connection_string_from_db_params(
driver=os.environ.get("PGVECTOR_DRIVER", "psycopg2"),
host="1x2.1x8.xx.xx",
port=5432,
database="Ai",
user="xxxxxxxxx",
password=quote_plus("xxxxxx@xx"),
)
vectordb = PGVector(embedding_function=embeddings,
collection_name="tmp04",
connection_string=CONNECTION_STRING,
)
prompt = ChatPromptTemplate(
messages=[
SystemMessagePromptTemplate.from_template(
"i am robot"
),
MessagesPlaceholder(variable_name="chat_history"),
HumanMessagePromptTemplate.from_template("{question}"),
]
)
retriever = vectordb.as_retriever()
llm_name = "gpt-3.5-turbo"
llm = ChatOpenAI(model_name=llm_name, temperature=0)
memory_token_limit = 1000
memory = ConversationTokenBufferMemory(
llm=llm,
prompt=prompt,
max_token_limit=int(memory_token_limit),
memory_key="chat_history",
return_messages=True,
)
qa = ConversationalRetrievalChain.from_llm(
llm=llm,
retriever=retriever,
memory=memory,
verbose=True,
)
chat_history = []
while True:
memory.load_memory_variables({})
question = input('ask:')
# question = retriever.get_relevant_documents(input('ask:'))
result = qa.run({'question': question, 'chat_history': chat_history})
print(result)
chat_history.append([f'User: {question}', f'Ai: {result}'])
print(chat_history)
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
st_history = ' '.join(map(str, chat_history))
res = embeddings.embed_query(st_history)
vectordb.add_vector(res)
select_vdb = vectordb.similarity_search(question, k=5)
print(select_vdb)
print(f'ok: {res[:4]}...')
if question.lower() == 'bye':
break
![Uploading image.png…]()
### Suggestion:
How can I specify my own designated table for vector search to retrieve vector data for comparison and provide a response to OpenAI for reference? Also, I noticed the prompt disappeared | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15735/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/15735/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15734 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15734/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15734/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15734/events | https://github.com/langchain-ai/langchain/issues/15734 | 2,071,885,054 | I_kwDOIPDwls57fnT- | 15,734 | How can I specify my own designated table for vector search to retrieve vector data for comparison and provide a response to OpenAI for reference? Also, I noticed the prompt disappeared. | {
"login": "yen111445",
"id": 103471919,
"node_id": "U_kgDOBirbLw",
"avatar_url": "https://avatars.githubusercontent.com/u/103471919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yen111445",
"html_url": "https://github.com/yen111445",
"followers_url": "https://api.github.com/users/yen111445/followers",
"following_url": "https://api.github.com/users/yen111445/following{/other_user}",
"gists_url": "https://api.github.com/users/yen111445/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yen111445/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yen111445/subscriptions",
"organizations_url": "https://api.github.com/users/yen111445/orgs",
"repos_url": "https://api.github.com/users/yen111445/repos",
"events_url": "https://api.github.com/users/yen111445/events{/privacy}",
"received_events_url": "https://api.github.com/users/yen111445/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 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 | 4 | 2024-01-09T08:39:38 | 2024-01-09T08:48:55 | 2024-01-09T08:48:01 | NONE | null | ### Issue with current documentation:
import os
from urllib.parse import quote_plus
from langchain.vectorstores.pgvector import PGVector
from langchain.chat_models import ChatOpenAI
from langchain.chains import ConversationalRetrievalChain
from langchain.memory import ConversationTokenBufferMemory
from langchain_community.embeddings import HuggingFaceEmbeddings
from langchain_core.prompts import ChatPromptTemplate, SystemMessagePromptTemplate, MessagesPlaceholder,
HumanMessagePromptTemplate
os.environ['OPENAI_API_KEY'] = "key"
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
CONNECTION_STRING = PGVector.connection_string_from_db_params(
driver=os.environ.get("PGVECTOR_DRIVER", "psycopg2"),
host="1x2.1x8.xx.xx",
port=5432,
database="Ai",
user="xxxxxxxxx",
password=quote_plus("xxxxxx@xx"),
)
vectordb = PGVector(embedding_function=embeddings,
collection_name="tmp04",
connection_string=CONNECTION_STRING,
)
prompt = ChatPromptTemplate(
messages=[
SystemMessagePromptTemplate.from_template(
"i am robot"
),
MessagesPlaceholder(variable_name="chat_history"),
HumanMessagePromptTemplate.from_template("{question}"),
]
)
retriever = vectordb.as_retriever()
llm_name = "gpt-3.5-turbo"
llm = ChatOpenAI(model_name=llm_name, temperature=0)
memory_token_limit = 1000
memory = ConversationTokenBufferMemory(
llm=llm,
prompt=prompt,
max_token_limit=int(memory_token_limit),
memory_key="chat_history",
return_messages=True,
)
qa = ConversationalRetrievalChain.from_llm(
llm=llm,
retriever=retriever,
memory=memory,
verbose=True,
)
chat_history = []
while True:
memory.load_memory_variables({})
question = input('ask:')
# question = retriever.get_relevant_documents(input('提問:'))
result = qa.run({'question': question, 'chat_history': chat_history})
print(result)
chat_history.append([f'User: {question}', f'Ai: {result}'])
print(chat_history)
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
st_history = ' '.join(map(str, chat_history))
res = embeddings.embed_query(st_history)
vectordb.add_vector(res)
select_vdb = vectordb.similarity_search(question, k=5)
print(select_vdb)
print(f'ok: {res[:4]}...')
if question.lower() == 'bye':
break
![image](https://github.com/langchain-ai/langchain/assets/103471919/e8503d33-c8b8-4bb9-8c36-bba00b26e8d3)
### Idea or request for content:
How can I specify my own designated table for vector search to retrieve vector data for comparison and provide a response to OpenAI for reference? Also, I noticed the prompt disappeared. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15734/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/15734/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15733 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15733/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15733/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15733/events | https://github.com/langchain-ai/langchain/issues/15733 | 2,071,858,324 | I_kwDOIPDwls57fgyU | 15,733 | DOC: AzureChatOpenAI in documentation | {
"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": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2024-01-09T08:21:31 | 2024-01-09T08:23:52 | null | CONTRIBUTOR | null | ### Issue with current documentation:
I just installed langchain 0.1.0 and according to the documentation
https://api.python.langchain.com/en/latest/_modules/langchain_openai/chat_models/azure.html#
AzureChatOpenAI should be in langchain_openai.chat_models but its instead in langchain_community.chat_models
### Idea or request for content:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15733/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/15733/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15732 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15732/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15732/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15732/events | https://github.com/langchain-ai/langchain/issues/15732 | 2,071,773,809 | I_kwDOIPDwls57fMJx | 15,732 | LangchainTracer.on_llm_error callback: IndexError('list index out of range') | {
"login": "wangpengfei2048",
"id": 88153566,
"node_id": "MDQ6VXNlcjg4MTUzNTY2",
"avatar_url": "https://avatars.githubusercontent.com/u/88153566?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wangpengfei2048",
"html_url": "https://github.com/wangpengfei2048",
"followers_url": "https://api.github.com/users/wangpengfei2048/followers",
"following_url": "https://api.github.com/users/wangpengfei2048/following{/other_user}",
"gists_url": "https://api.github.com/users/wangpengfei2048/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wangpengfei2048/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wangpengfei2048/subscriptions",
"organizations_url": "https://api.github.com/users/wangpengfei2048/orgs",
"repos_url": "https://api.github.com/users/wangpengfei2048/repos",
"events_url": "https://api.github.com/users/wangpengfei2048/events{/privacy}",
"received_events_url": "https://api.github.com/users/wangpengfei2048/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 3 | 2024-01-09T07:20:53 | 2024-01-10T11:22:58 | null | NONE | null | ### System Info
This is a random occurrence. Maybe after I ask many questions
when it happen, Only clear the memory can recover.
the code to ask:
async for chunk in runnable.astream( #or call astream_log
question,
config
):
await res.stream_token(chunk)
error information:
2024-01-09 13:32:02 - Error in LangchainTracer.on_llm_error callback: IndexError('list index out of range')
2024-01-09 13:32:02 -
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/chainlit/utils.py", line 39, in wrapper
return await user_function(**params_values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/rag-app/main.py", line 164, in onMessage
await app.question_anwsering(message.content, False)
File "/rag-app/app.py", line 367, in question_anwsering
async for chunk in runnable.astream_log(
File "/usr/local/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 752, in astream_log
await task
File "/usr/local/lib/python3.11/asyncio/futures.py", line 290, in __await__
return self.result() # May raise too.
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/futures.py", line 203, in result
raise self._exception.with_traceback(self._exception_tb)
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 267, in __step
result = coro.send(None)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 706, in consume_astream
async for chunk in self.astream(input, config, **kwargs):
File "/usr/local/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 2158, in astream
async for chunk in self.atransform(input_aiter(), config, **kwargs):
File "/usr/local/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 2141, in atransform
async for chunk in self._atransform_stream_with_config(
File "/usr/local/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 1308, in _atransform_stream_with_config
chunk: Output = await asyncio.create_task( # type: ignore[call-arg]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/futures.py", line 287, in __await__
yield self # This tells Task to wait for completion.
^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 339, in __wakeup
future.result()
File "/usr/local/lib/python3.11/asyncio/futures.py", line 203, in result
raise self._exception.with_traceback(self._exception_tb)
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 267, in __step
result = coro.send(None)
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 2111, in _atransform
async for output in final_pipeline:
File "/usr/local/lib/python3.11/site-packages/langchain_core/output_parsers/transform.py", line 60, in atransform
async for chunk in self._atransform_stream_with_config(
File "/usr/local/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 1283, in _atransform_stream_with_config
final_input: Optional[Input] = await py_anext(input_for_tracing, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langchain_core/utils/aiter.py", line 62, in anext_impl
return await __anext__(iterator)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langchain_core/utils/aiter.py", line 97, in tee_peer
item = await iterator.__anext__()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 806, in atransform
async for output in self.astream(final, config, **kwargs):
File "/usr/local/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 307, in astream
raise e
File "/usr/local/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 299, in astream
assert generation is not None
^^^^^^^^^^^^^^^^^^^^^^
AssertionError
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [X] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [X] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [X] Callbacks/Tracing
- [X] Async
### Reproduction
This is a random occurrence. Maybe after I ask many questions
when it happen, Only clear the memory can recover.
### Expected behavior
fix it | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15732/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15732/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15731 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15731/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15731/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15731/events | https://github.com/langchain-ai/langchain/issues/15731 | 2,071,722,976 | I_kwDOIPDwls57e_vg | 15,731 | DirectoryLoader use_multithreading inconsistent behavior between true and false (and issue with UnstructuredFileLoader and .json files) | {
"login": "cgalo5758",
"id": 36752715,
"node_id": "MDQ6VXNlcjM2NzUyNzE1",
"avatar_url": "https://avatars.githubusercontent.com/u/36752715?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cgalo5758",
"html_url": "https://github.com/cgalo5758",
"followers_url": "https://api.github.com/users/cgalo5758/followers",
"following_url": "https://api.github.com/users/cgalo5758/following{/other_user}",
"gists_url": "https://api.github.com/users/cgalo5758/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cgalo5758/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cgalo5758/subscriptions",
"organizations_url": "https://api.github.com/users/cgalo5758/orgs",
"repos_url": "https://api.github.com/users/cgalo5758/repos",
"events_url": "https://api.github.com/users/cgalo5758/events{/privacy}",
"received_events_url": "https://api.github.com/users/cgalo5758/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 1 | 2024-01-09T06:38:32 | 2024-01-09T06:47:20 | null | NONE | null | ### System Info
- Langchain 0.1.0
- PHP 6 (a.k.a. Python 3.11.7)
- Windows 9 (a.k.a. Fedora 39)
<details><summary>requirements.txt</summary>
- aiohttp==3.9.1
- aiosignal==1.3.1
- annotated-types==0.6.0
- anyio==4.2.0
- argon2-cffi==23.1.0
- argon2-cffi-bindings==21.2.0
- arrow==1.3.0
- asgiref==3.7.2
- asttokens==2.4.1
- async-lru==2.0.4
- attrs==23.2.0
- Babel==2.14.0
- backoff==2.2.1
- bcrypt==4.1.2
- beautifulsoup4==4.12.2
- bleach==6.1.0
- build==1.0.3
- cachetools==5.3.2
- certifi==2023.11.17
- cffi==1.16.0
- chardet==5.2.0
- charset-normalizer==3.3.2
- chroma-hnswlib==0.7.3
- chromadb==0.4.22
- click==8.1.7
- coloredlogs==15.0.1
- comm==0.2.1
- dataclasses-json==0.6.3
- debugpy==1.8.0
- decorator==5.1.1
- defusedxml==0.7.1
- Deprecated==1.2.14
- distro==1.9.0
- docarray==0.40.0
- emoji==2.9.0
- executing==2.0.1
- fastapi==0.108.0
- fastjsonschema==2.19.1
- filelock==3.13.1
- filetype==1.2.0
- flatbuffers==23.5.26
- fqdn==1.5.1
- frozenlist==1.4.1
- fsspec==2023.12.2
- gitdb==4.0.11
- GitPython==3.1.40
- google-auth==2.26.1
- googleapis-common-protos==1.62.0
- greenlet==3.0.3
- grpcio==1.60.0
- h11==0.14.0
- httpcore==1.0.2
- httptools==0.6.1
- httpx==0.26.0
- huggingface-hub==0.20.2
- humanfriendly==10.0
- idna==3.6
- importlib-metadata==6.11.0
- importlib-resources==6.1.1
- ipykernel==6.28.0
- ipython==8.19.0
- isoduration==20.11.0
- jedi==0.19.1
- Jinja2==3.1.2
- joblib==1.3.2
- json5==0.9.14
- jsonpatch==1.33
- jsonpath-python==1.0.6
- jsonpointer==2.4
- jsonschema==4.20.0
- jsonschema-specifications==2023.12.1
- jupyter-events==0.9.0
- jupyter-lsp==2.2.1
- jupyter_client==8.6.0
- jupyter_core==5.7.0
- jupyter_server==2.12.2
- jupyter_server_terminals==0.5.1
- jupyterlab==4.0.10
- jupyterlab_pygments==0.3.0
- jupyterlab_server==2.25.2
- kubernetes==28.1.0
- langchain==0.1.0
- langchain-community==0.0.9
- langchain-core==0.1.7
- langchain-openai==0.0.2
- langdetect==1.0.9
- langsmith==0.0.77
- lxml==5.1.0
- Markdown==3.5.1
- markdown-it-py==3.0.0
- MarkupSafe==2.1.3
- marshmallow==3.20.1
- matplotlib-inline==0.1.6
- mdurl==0.1.2
- mistune==3.0.2
- mmh3==4.0.1
- monotonic==1.6
- mpmath==1.3.0
- multidict==6.0.4
- mypy-extensions==1.0.0
- nbclient==0.9.0
- nbconvert==7.14.0
- nbformat==5.9.2
- nest-asyncio==1.5.8
- nltk==3.8.1
- notebook_shim==0.2.3
- numpy==1.26.3
- oauthlib==3.2.2
- onnxruntime==1.16.3
- openai==1.6.1
- opentelemetry-api==1.22.0
- opentelemetry-exporter-otlp-proto-common==1.22.0
- opentelemetry-exporter-otlp-proto-grpc==1.22.0
- opentelemetry-instrumentation==0.43b0
- opentelemetry-instrumentation-asgi==0.43b0
- opentelemetry-instrumentation-fastapi==0.43b0
- opentelemetry-proto==1.22.0
- opentelemetry-sdk==1.22.0
- opentelemetry-semantic-conventions==0.43b0
- opentelemetry-util-http==0.43b0
- orjson==3.9.10
- overrides==7.4.0
- packaging==23.2
- pandocfilters==1.5.0
- parso==0.8.3
- pexpect==4.9.0
- platformdirs==4.1.0
- posthog==3.1.0
- prometheus-client==0.19.0
- prompt-toolkit==3.0.43
- protobuf==4.25.1
- psutil==5.9.7
- ptyprocess==0.7.0
- pulsar-client==3.4.0
- pure-eval==0.2.2
- pyasn1==0.5.1
- pyasn1-modules==0.3.0
- pycparser==2.21
- pydantic==2.5.3
- pydantic_core==2.14.6
- Pygments==2.17.2
- PyPika==0.48.9
- pyproject_hooks==1.0.0
- python-dateutil==2.8.2
- python-dotenv==1.0.0
- python-iso639==2024.1.2
- python-json-logger==2.0.7
- python-magic==0.4.27
- PyYAML==6.0.1
- pyzmq==25.1.2
- rapidfuzz==3.6.1
- referencing==0.32.1
- regex==2023.12.25
- requests==2.31.0
- requests-oauthlib==1.3.1
- rfc3339-validator==0.1.4
- rfc3986-validator==0.1.1
- rich==13.7.0
- rpds-py==0.16.2
- rsa==4.9
- Send2Trash==1.8.2
- six==1.16.0
- smmap==5.0.1
- sniffio==1.3.0
- soupsieve==2.5
- SQLAlchemy==2.0.25
- stack-data==0.6.3
- starlette==0.32.0.post1
- sympy==1.12
- tabulate==0.9.0
- tenacity==8.2.3
- terminado==0.18.0
- tiktoken==0.5.2
- tinycss2==1.2.1
- tokenizers==0.15.0
- tornado==6.4
- tqdm==4.66.1
- traitlets==5.14.1
- typer==0.9.0
- types-python-dateutil==2.8.19.20240106
- types-requests==2.31.0.20240106
- typing-inspect==0.9.0
- typing_extensions==4.9.0
- unstructured==0.11.8
- unstructured-client==0.15.2
- uri-template==1.3.0
- urllib3==1.26.18
- uvicorn==0.25.0
- uvloop==0.19.0
- watchfiles==0.21.0
- wcwidth==0.2.13
- webcolors==1.13
- webencodings==0.5.1
- websocket-client==1.7.0
- websockets==12.0
- wrapt==1.16.0
- yarl==1.9.4
- zipp==3.17.0
</details>
### Who can help?
@ey
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Code sample to reproduce where `my-codebase` is a directory with a heterogeneous collection of files (.tsx, .json, .ts, .js, .md)
```
# Document loading: Load codebase from local directory
from langchain_community.document_loaders import DirectoryLoader
project_path = "my-codebase"
loader = DirectoryLoader(project_path, use_multithreading=False)
my_codebase_data = loader.load()
```
This creates the following error:
```
{
"name": "ValueError",
"message": "Detected a JSON file that does not conform to the Unstructured schema. partition_json currently only processes serialized Unstructured output.",
"stack": "---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[16], line 8
4 project_path = \"my-codebase\"
6 loader = DirectoryLoader(project_path, use_multithreading=False)
----> 8 my_codebase_data = loader.load()
File ~/Repos/chain-repo/.venv/lib64/python3.11/site-packages/langchain_community/document_loaders/directory.py:157, in DirectoryLoader.load(self)
155 else:
156 for i in items:
--> 157 self.load_file(i, p, docs, pbar)
159 if pbar:
160 pbar.close()
File ~/Repos/chain-repo/.venv/lib64/python3.11/site-packages/langchain_community/document_loaders/directory.py:106, in DirectoryLoader.load_file(self, item, path, docs, pbar)
104 logger.warning(f\"Error loading file {str(item)}: {e}\")
105 else:
--> 106 raise e
107 finally:
108 if pbar:
File ~/Repos/chain-repo/.venv/lib64/python3.11/site-packages/langchain_community/document_loaders/directory.py:100, in DirectoryLoader.load_file(self, item, path, docs, pbar)
98 try:
99 logger.debug(f\"Processing file: {str(item)}\")
--> 100 sub_docs = self.loader_cls(str(item), **self.loader_kwargs).load()
101 docs.extend(sub_docs)
102 except Exception as e:
File ~/Repos/chain-repo/.venv/lib64/python3.11/site-packages/langchain_community/document_loaders/unstructured.py:87, in UnstructuredBaseLoader.load(self)
85 def load(self) -> List[Document]:
86 \"\"\"Load file.\"\"\"
---> 87 elements = self._get_elements()
88 self._post_process_elements(elements)
89 if self.mode == \"elements\":
File ~/Repos/chain-repo/.venv/lib64/python3.11/site-packages/langchain_community/document_loaders/unstructured.py:173, in UnstructuredFileLoader._get_elements(self)
170 def _get_elements(self) -> List:
171 from unstructured.partition.auto import partition
--> 173 return partition(filename=self.file_path, **self.unstructured_kwargs)
File ~/Repos/chain-repo/.venv/lib64/python3.11/site-packages/unstructured/partition/auto.py:480, in partition(filename, content_type, file, file_filename, url, include_page_breaks, strategy, encoding, paragraph_grouper, headers, skip_infer_table_types, ssl_verify, ocr_languages, languages, detect_language_per_element, pdf_infer_table_structure, pdf_extract_images, pdf_extract_element_types, pdf_image_output_dir_path, pdf_extract_to_payload, xml_keep_tags, data_source_metadata, metadata_filename, request_timeout, hi_res_model_name, model_name, **kwargs)
478 elif filetype == FileType.JSON:
479 if not is_json_processable(filename=filename, file=file):
--> 480 raise ValueError(
481 \"Detected a JSON file that does not conform to the Unstructured schema. \"
482 \"partition_json currently only processes serialized Unstructured output.\",
483 )
484 elements = partition_json(filename=filename, file=file, **kwargs)
485 elif (filetype == FileType.XLSX) or (filetype == FileType.XLS):
ValueError: Detected a JSON file that does not conform to the Unstructured schema. partition_json currently only processes serialized Unstructured output."
}
```
### Expected behavior
To get the expected behavior, set `use_multithreading` to True:
```
loader = DirectoryLoader(project_path, use_multithreading=True)
```
Doing this loads the files without error.
Curiously, I get the same loader if I just set `silent_errors` to True:
```
loader = DirectoryLoader(project_path, use_multithreading=False, silent_errors=True)
```
In this case, the error is printed, but the execution is not halted.
Curiously, if I set `use_multithreading` to True and have `silent_errors` set to True, I get the same behaviour as for `use_multithreading=False`. This time it acknowledges that there are errors, where as if it is silent, it just ignores them and doesn't even print them.
```
loader = DirectoryLoader(project_path, use_multithreading=True, silent_errors=True)
```
### Additional thoughts
- This might need to be broken up into different issues
- I am also noticing that the `recursive` parameter is set to False by default, but it still recursively goes through each subdirectory in the directory, is this expected?. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15731/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15731/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15730 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15730/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15730/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15730/events | https://github.com/langchain-ai/langchain/issues/15730 | 2,071,675,818 | I_kwDOIPDwls57e0Oq | 15,730 | ValueError: cannot reshape array of size 293 into shape (193,121,newaxis) | {
"login": "karanjakhar",
"id": 29913676,
"node_id": "MDQ6VXNlcjI5OTEzNjc2",
"avatar_url": "https://avatars.githubusercontent.com/u/29913676?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/karanjakhar",
"html_url": "https://github.com/karanjakhar",
"followers_url": "https://api.github.com/users/karanjakhar/followers",
"following_url": "https://api.github.com/users/karanjakhar/following{/other_user}",
"gists_url": "https://api.github.com/users/karanjakhar/gists{/gist_id}",
"starred_url": "https://api.github.com/users/karanjakhar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/karanjakhar/subscriptions",
"organizations_url": "https://api.github.com/users/karanjakhar/orgs",
"repos_url": "https://api.github.com/users/karanjakhar/repos",
"events_url": "https://api.github.com/users/karanjakhar/events{/privacy}",
"received_events_url": "https://api.github.com/users/karanjakhar/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | closed | true | null | [] | null | 1 | 2024-01-09T05:52:40 | 2024-01-09T14:40:30 | 2024-01-09T14:40:30 | NONE | null | ### System Info
Ubuntu 20.04
I got this while reading a book pdf with extract_images=True.
[113](https://file+.vscode-resource.vscode-cdn.net/home/karan/kj_workspace/kj_argentelm/risk_assessment/backend/~/anaconda3/envs/python39/lib/python3.9/site-packages/langchain_community/document_loaders/parsers/pdf.py:113) if xObject[obj]["[/Filter](https://file+.vscode-resource.vscode-cdn.net/Filter)"][1:] in _PDF_FILTER_WITHOUT_LOSS:
[114](https://file+.vscode-resource.vscode-cdn.net/home/karan/kj_workspace/kj_argentelm/risk_assessment/backend/~/anaconda3/envs/python39/lib/python3.9/site-packages/langchain_community/document_loaders/parsers/pdf.py:114) height, width = xObject[obj]["[/Height](https://file+.vscode-resource.vscode-cdn.net/Height)"], xObject[obj]["[/Width](https://file+.vscode-resource.vscode-cdn.net/Width)"]
[116](https://file+.vscode-resource.vscode-cdn.net/home/karan/kj_workspace/kj_argentelm/risk_assessment/backend/~/anaconda3/envs/python39/lib/python3.9/site-packages/langchain_community/document_loaders/parsers/pdf.py:116) images.append(
--> [117](https://file+.vscode-resource.vscode-cdn.net/home/karan/kj_workspace/kj_argentelm/risk_assessment/backend/~/anaconda3/envs/python39/lib/python3.9/site-packages/langchain_community/document_loaders/parsers/pdf.py:117) np.frombuffer(xObject[obj].get_data(), dtype=np.uint8).reshape(
[118](https://file+.vscode-resource.vscode-cdn.net/home/karan/kj_workspace/kj_argentelm/risk_assessment/backend/~/anaconda3/envs/python39/lib/python3.9/site-packages/langchain_community/document_loaders/parsers/pdf.py:118) height, width, -1
[119](https://file+.vscode-resource.vscode-cdn.net/home/karan/kj_workspace/kj_argentelm/risk_assessment/backend/~/anaconda3/envs/python39/lib/python3.9/site-packages/langchain_community/document_loaders/parsers/pdf.py:119) )
[120](https://file+.vscode-resource.vscode-cdn.net/home/karan/kj_workspace/kj_argentelm/risk_assessment/backend/~/anaconda3/envs/python39/lib/python3.9/site-packages/langchain_community/document_loaders/parsers/pdf.py:120) )
[121](https://file+.vscode-resource.vscode-cdn.net/home/karan/kj_workspace/kj_argentelm/risk_assessment/backend/~/anaconda3/envs/python39/lib/python3.9/site-packages/langchain_community/document_loaders/parsers/pdf.py:121) elif xObject[obj]["[/Filter](https://file+.vscode-resource.vscode-cdn.net/Filter)"][1:] in _PDF_FILTER_WITH_LOSS:
[122](https://file+.vscode-resource.vscode-cdn.net/home/karan/kj_workspace/kj_argentelm/risk_assessment/backend/~/anaconda3/envs/python39/lib/python3.9/site-packages/langchain_community/document_loaders/parsers/pdf.py:122) images.append(xObject[obj].get_data())
ValueError: cannot reshape array of size 293 into shape (193,121,newaxis)
![Screenshot from 2024-01-09 11-16-32](https://github.com/langchain-ai/langchain/assets/29913676/587d9ff5-5406-4139-832d-533a8a05c00c)
### Who can help?
@eyurtsev
### 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
```
from langchain_community.document_loaders import PyPDFLoader
loader = PyPDFLoader("./book.pdf", extract_images=True)
```
### Expected behavior
It should load the pdf and extract info from images also. When I set extract_images=False it works fine. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15730/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15730/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15729 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15729/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15729/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15729/events | https://github.com/langchain-ai/langchain/issues/15729 | 2,071,616,292 | I_kwDOIPDwls57elsk | 15,729 | Issue: mechanism of embedding parameters in Neo4j Vector object | {
"login": "pavaris-pm",
"id": 69553539,
"node_id": "MDQ6VXNlcjY5NTUzNTM5",
"avatar_url": "https://avatars.githubusercontent.com/u/69553539?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pavaris-pm",
"html_url": "https://github.com/pavaris-pm",
"followers_url": "https://api.github.com/users/pavaris-pm/followers",
"following_url": "https://api.github.com/users/pavaris-pm/following{/other_user}",
"gists_url": "https://api.github.com/users/pavaris-pm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pavaris-pm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pavaris-pm/subscriptions",
"organizations_url": "https://api.github.com/users/pavaris-pm/orgs",
"repos_url": "https://api.github.com/users/pavaris-pm/repos",
"events_url": "https://api.github.com/users/pavaris-pm/events{/privacy}",
"received_events_url": "https://api.github.com/users/pavaris-pm/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] | closed | false | null | [] | null | 1 | 2024-01-09T04:39:49 | 2024-01-10T02:55:08 | 2024-01-10T02:55:08 | NONE | null | ### Issue you'd like to raise.
I've seen in the langchain documentation code for vector search in Neo4j which take `OpenAIEmbeddings()` as an object parameter in order to make an embedding for input query
```python
index_name = "vector" # default index name
store = Neo4jVector.from_existing_index(
OpenAIEmbeddings(),
url=url,
username=username,
password=password,
index_name=index_name,
)
```
What i wonder is that, can we pass another embedding model e.g. huggingface model into that parameter instead of openai itself because it many cases, there exist an incompatible dimension when we already have an existing index that is embedded by another off-the-shelf model rather than a embedding model from OpenAI ?
Moreover, i took a look at the source code in case that there has no way to add huggingface model
https://github.com/langchain-ai/langchain/blob/04caf07dee2e2843ab720e5b8f0c0e83d0b86a3e/libs/community/langchain_community/vectorstores/neo4j_vector.py#L111-L147
what i've found is that for the `embedding` parameters of `Neo4jVector` object, it should be Any embedding function implementing`langchain.embeddings.base.Embeddings` interface. Here is the code described that class
https://github.com/langchain-ai/langchain/blob/04caf07dee2e2843ab720e5b8f0c0e83d0b86a3e/libs/core/langchain_core/embeddings.py#L7-L24
Does it mean that we must construct a class that inherits from it in order to implement it effectively, if yes, please provide an example to do it.
### Suggestion:
Any suggested way from this case, if it is currently not supported huggingface model with Neo4j VectorStore, i will help contributing it and make a PR then. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15729/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15729/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15728 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15728/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15728/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15728/events | https://github.com/langchain-ai/langchain/issues/15728 | 2,071,551,848 | I_kwDOIPDwls57eV9o | 15,728 | Unable to retrieve my prompt when starting the conversation | {
"login": "yen111445",
"id": 103471919,
"node_id": "U_kgDOBirbLw",
"avatar_url": "https://avatars.githubusercontent.com/u/103471919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yen111445",
"html_url": "https://github.com/yen111445",
"followers_url": "https://api.github.com/users/yen111445/followers",
"following_url": "https://api.github.com/users/yen111445/following{/other_user}",
"gists_url": "https://api.github.com/users/yen111445/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yen111445/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yen111445/subscriptions",
"organizations_url": "https://api.github.com/users/yen111445/orgs",
"repos_url": "https://api.github.com/users/yen111445/repos",
"events_url": "https://api.github.com/users/yen111445/events{/privacy}",
"received_events_url": "https://api.github.com/users/yen111445/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 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 | true | null | [] | null | 2 | 2024-01-09T03:13:25 | 2024-01-09T14:39:02 | 2024-01-09T14:39:02 | NONE | null | ### Issue you'd like to raise.
import os
from urllib.parse import quote_plus
from langchain.vectorstores.pgvector import PGVector
from langchain.chat_models import ChatOpenAI
from langchain.chains import ConversationalRetrievalChain
from langchain.memory import ConversationTokenBufferMemory
from langchain_community.embeddings import HuggingFaceEmbeddings
from langchain_core.prompts import ChatPromptTemplate, SystemMessagePromptTemplate, MessagesPlaceholder,
HumanMessagePromptTemplate
os.environ['OPENAI_API_KEY'] = "mykey"
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
CONNECTION_STRING = PGVector.connection_string_from_db_params(
driver=os.environ.get("PGVECTOR_DRIVER", "psycopg2"),
host="192.xxx.xx.xxx",
port=5432,
database="xxx",
user="xxx",
password=quote_plus("xx@xxxxxr"),
)
vectordb = PGVector(embedding_function=embeddings,
collection_name="tmp06",
connection_string=CONNECTION_STRING,
)
prompt = ChatPromptTemplate(
messages=[
SystemMessagePromptTemplate.from_template(
"請把使用者的對話紀錄當作參考作為回覆,回答只能使用繁體中文字"
),
MessagesPlaceholder(variable_name="chat_history"),
HumanMessagePromptTemplate.from_template("{question}"),
]
)
llm_name = "gpt-3.5-turbo"
llm = ChatOpenAI(model_name=llm_name, temperature=0)
retriever = vectordb.as_retriever()
memory = ConversationTokenBufferMemory(
llm=llm,
prompt=prompt,
memory_key="chat_history",
return_messages=True,
)
qa = ConversationalRetrievalChain.from_llm(
llm=llm,
retriever=retriever,
memory=memory,
verbose=True,
)
chat_history = []
while True:
memory.load_memory_variables({})
question = input('提問:')
result = qa.run({'question': question, 'chat_history': chat_history})
print(result)
chat_history.append([f'User: {question}', f'Ai: {result}'])
print(chat_history)
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
st_history = ' '.join(map(str, chat_history))
res = embeddings.embed_query(st_history)
vectordb.add_vector(res)
select_vdb = vectordb.nearest(res, n=1)
print(f'ok: {res[:4]}...')
if question.lower() == 'bye':
break
### Suggestion:
translates to "Unable to retrieve my prompt when starting the conversation" in English | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15728/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15728/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15727 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15727/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15727/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15727/events | https://github.com/langchain-ai/langchain/pull/15727 | 2,071,437,491 | PR_kwDOIPDwls5jh1uD | 15,727 | Make packages optional | {
"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": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-09T00:35:53 | 2024-01-09T01:09:22 | 2024-01-09T01:09:21 | COLLABORATOR | null | So we don't have to instruct people to modify the Dockerfile every time they delete the packages directory.
See: https://stackoverflow.com/questions/70096208/dockerfile-copy-folder-if-it-exists-conditional-copy/70096420#70096420
Tested on a new repo | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15727/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15727/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15727",
"html_url": "https://github.com/langchain-ai/langchain/pull/15727",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15727.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15727.patch",
"merged_at": "2024-01-09T01:09:21"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15726 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15726/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15726/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15726/events | https://github.com/langchain-ai/langchain/pull/15726 | 2,071,407,280 | PR_kwDOIPDwls5jhvOO | 15,726 | community: prometheus metrics callback handler | {
"login": "zzzming",
"id": 21374786,
"node_id": "MDQ6VXNlcjIxMzc0Nzg2",
"avatar_url": "https://avatars.githubusercontent.com/u/21374786?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zzzming",
"html_url": "https://github.com/zzzming",
"followers_url": "https://api.github.com/users/zzzming/followers",
"following_url": "https://api.github.com/users/zzzming/following{/other_user}",
"gists_url": "https://api.github.com/users/zzzming/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zzzming/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zzzming/subscriptions",
"organizations_url": "https://api.github.com/users/zzzming/orgs",
"repos_url": "https://api.github.com/users/zzzming/repos",
"events_url": "https://api.github.com/users/zzzming/events{/privacy}",
"received_events_url": "https://api.github.com/users/zzzming/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": "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 | 3 | 2024-01-08T23:55:54 | 2024-01-16T21:51:33 | null | NONE | null | Description:
Create a new MetricsCallbackHandler to collect token usage and latency metrics for openai. Prometheus metrics are crucial for modern monitoring and enterprise applications because they provide a powerful and flexible way to collect and aggregate real-time metrics about system performance and health. This enables organizations to proactively identify and address issues, ensuring high availability and reliability of their services.
It only collects metrics. It's still up to the application to expose them
Here is an example how to expose metrics in user application. This is not part of this PR which only collects metrics.
```
from flask import Flask, Response, make_response
# Create the Flask App
app = Flask(__name__)
@app.route('/metrics')
def metrics():
return Response(generate_latest(), mimetype=CONTENT_TYPE_LATEST)
```
Dependencies:
prometheus_client-0.19.0 is already specified under libs/community's poetry.
Twitter handle: itestmycode
@baskaryan, @eyurtsev, @hwchase17.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15726/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15726/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15726",
"html_url": "https://github.com/langchain-ai/langchain/pull/15726",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15726.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15726.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15725 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15725/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15725/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15725/events | https://github.com/langchain-ai/langchain/pull/15725 | 2,071,263,800 | PR_kwDOIPDwls5jhPlf | 15,725 | Fixing the SlackGetChannel Tool Input Error | {
"login": "keenborder786",
"id": 45242107,
"node_id": "MDQ6VXNlcjQ1MjQyMTA3",
"avatar_url": "https://avatars.githubusercontent.com/u/45242107?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/keenborder786",
"html_url": "https://github.com/keenborder786",
"followers_url": "https://api.github.com/users/keenborder786/followers",
"following_url": "https://api.github.com/users/keenborder786/following{/other_user}",
"gists_url": "https://api.github.com/users/keenborder786/gists{/gist_id}",
"starred_url": "https://api.github.com/users/keenborder786/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/keenborder786/subscriptions",
"organizations_url": "https://api.github.com/users/keenborder786/orgs",
"repos_url": "https://api.github.com/users/keenborder786/repos",
"events_url": "https://api.github.com/users/keenborder786/events{/privacy}",
"received_events_url": "https://api.github.com/users/keenborder786/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6221234145,
"node_id": "LA_kwDOIPDwls8AAAABctB_4Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve",
"name": "area: langserve",
"color": "0FA0C8",
"default": false,
"description": ""
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2024-01-08T21:37:01 | 2024-01-15T19:24:02 | 2024-01-15T19:23:56 | CONTRIBUTOR | null | Fixed the issue mentioned in #15698 for SlackGetChannel Tool.
@baskaryan. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15725/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15725/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15725",
"html_url": "https://github.com/langchain-ai/langchain/pull/15725",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15725.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15725.patch",
"merged_at": "2024-01-15T19:23:56"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15724 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15724/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15724/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15724/events | https://github.com/langchain-ai/langchain/pull/15724 | 2,071,216,847 | PR_kwDOIPDwls5jhFIn | 15,724 | experimental[patch]: minimum version bump | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-08T21:02:43 | 2024-01-08T21:04:58 | 2024-01-08T21:04:57 | COLLABORATOR | null | - experimental: minimum version bump
- actually 0.1.5
- actually 0.1.7
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15724/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15724/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15724",
"html_url": "https://github.com/langchain-ai/langchain/pull/15724",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15724.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15724.patch",
"merged_at": "2024-01-08T21:04:57"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15723 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15723/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15723/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15723/events | https://github.com/langchain-ai/langchain/pull/15723 | 2,071,189,731 | PR_kwDOIPDwls5jg_OS | 15,723 | core[patch]: Replace beta decorator with warning on init to avoid breaking type annotations | {
"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": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2024-01-08T20:42:33 | 2024-01-17T00:56:18 | 2024-01-17T00:56:15 | COLLABORATOR | null | Replace beta decorator with warning on init to avoid breaking type annotations | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15723/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15723/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15723",
"html_url": "https://github.com/langchain-ai/langchain/pull/15723",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15723.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15723.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15722 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15722/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15722/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15722/events | https://github.com/langchain-ai/langchain/pull/15722 | 2,071,184,284 | PR_kwDOIPDwls5jg-Bq | 15,722 | experimental: minimum version bump | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-08T20:38:41 | 2024-01-08T21:02:23 | 2024-01-08T20:58:24 | COLLABORATOR | null | experimental relies on `from langchain_core.runnables.config import run_in_executor` which was introduced in core 0.1.5.
Updated pyproject dependency as well as minimum version test. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15722/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15722/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15722",
"html_url": "https://github.com/langchain-ai/langchain/pull/15722",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15722.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15722.patch",
"merged_at": "2024-01-08T20:58:24"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15721 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15721/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15721/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15721/events | https://github.com/langchain-ai/langchain/pull/15721 | 2,071,135,319 | PR_kwDOIPDwls5jgzTa | 15,721 | Update template to direct questions to discussions rather than issues | {
"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": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-08T20:02:53 | 2024-01-09T14:46:05 | 2024-01-09T14:46:04 | COLLABORATOR | null | Update PR template to direct questions to discussions rather than issues
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15721/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15721/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15721",
"html_url": "https://github.com/langchain-ai/langchain/pull/15721",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15721.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15721.patch",
"merged_at": "2024-01-09T14:46:04"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15719 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15719/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15719/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15719/events | https://github.com/langchain-ai/langchain/issues/15719 | 2,071,122,353 | I_kwDOIPDwls57ctGx | 15,719 | promt result | {
"login": "gerifitrah",
"id": 18350295,
"node_id": "MDQ6VXNlcjE4MzUwMjk1",
"avatar_url": "https://avatars.githubusercontent.com/u/18350295?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gerifitrah",
"html_url": "https://github.com/gerifitrah",
"followers_url": "https://api.github.com/users/gerifitrah/followers",
"following_url": "https://api.github.com/users/gerifitrah/following{/other_user}",
"gists_url": "https://api.github.com/users/gerifitrah/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gerifitrah/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gerifitrah/subscriptions",
"organizations_url": "https://api.github.com/users/gerifitrah/orgs",
"repos_url": "https://api.github.com/users/gerifitrah/repos",
"events_url": "https://api.github.com/users/gerifitrah/events{/privacy}",
"received_events_url": "https://api.github.com/users/gerifitrah/received_events",
"type": "User",
"site_admin": false
} | [] | closed | true | null | [] | null | 1 | 2024-01-08T19:53:03 | 2024-01-08T19:53:28 | 2024-01-08T19:53:28 | NONE | null | ### Issue you'd like to raise.
i have question, is it possible to get two different type answer from one prompt ? i want to change my question from nlp to queries sql or it will return common answer from chatgpt, for example "show data purchasing" the answer will queries and if the question "show me rate usd today" it will result from the internet
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15719/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/15719/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15718 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15718/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15718/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15718/events | https://github.com/langchain-ai/langchain/pull/15718 | 2,071,101,618 | PR_kwDOIPDwls5jgr5D | 15,718 | core(minor): Add a way to print out system information for debugging purposes. | {
"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": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-08T19:37:12 | 2024-01-08T20:20:19 | 2024-01-08T20:20:19 | COLLABORATOR | null | To use:
```bash
python -m langchain_core.sys_info
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15718/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15718/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15718",
"html_url": "https://github.com/langchain-ai/langchain/pull/15718",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15718.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15718.patch",
"merged_at": "2024-01-08T20:20:19"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15717 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15717/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15717/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15717/events | https://github.com/langchain-ai/langchain/pull/15717 | 2,071,075,541 | PR_kwDOIPDwls5jgmLU | 15,717 | community[patch]: Support different Pinecone initializations depending on the version | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5932474361,
"node_id": "LA_kwDOIPDwls8AAAABYZpf-Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone",
"name": "integration: pinecone",
"color": "BC53BE",
"default": false,
"description": "Related to Pinecone vector store integration"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-08T19:17:44 | 2024-01-08T19:33:37 | 2024-01-08T19:33:36 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15717/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15717/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15717",
"html_url": "https://github.com/langchain-ai/langchain/pull/15717",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15717.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15717.patch",
"merged_at": "2024-01-08T19:33:36"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15716 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15716/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15716/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15716/events | https://github.com/langchain-ai/langchain/pull/15716 | 2,071,066,299 | PR_kwDOIPDwls5jgkGL | 15,716 | bugfix/fix table in documentation for langchain-community | {
"login": "mingkang111",
"id": 49049296,
"node_id": "MDQ6VXNlcjQ5MDQ5Mjk2",
"avatar_url": "https://avatars.githubusercontent.com/u/49049296?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mingkang111",
"html_url": "https://github.com/mingkang111",
"followers_url": "https://api.github.com/users/mingkang111/followers",
"following_url": "https://api.github.com/users/mingkang111/following{/other_user}",
"gists_url": "https://api.github.com/users/mingkang111/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mingkang111/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mingkang111/subscriptions",
"organizations_url": "https://api.github.com/users/mingkang111/orgs",
"repos_url": "https://api.github.com/users/mingkang111/repos",
"events_url": "https://api.github.com/users/mingkang111/events{/privacy}",
"received_events_url": "https://api.github.com/users/mingkang111/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2024-01-08T19:12:13 | 2024-01-08T19:40:35 | 2024-01-08T19:40:35 | CONTRIBUTOR | null | - **Description:** This PR aims to fix the documentation for langchain-commnuity.
- **Issue:** The table In this page : [https://python.langchain.com/docs/integrations/llms/](https://urldefense.com/v3/__https://python.langchain.com/docs/integrations/llms/__;!!ACWV5N9M2RV99hQ!Jqw8gWnQrL1H6blPiGN10jrh1TDAzqGcKAaTAZv7TBy1X_m-03E7T-alOrWY5_71R8QUdONvF2wMRK54D50$) is built based on old module. The proposed fix is to modify the import from langchain-commnuity.
- **Dependencies:** N/A
- **Twitter handle:** N/A
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15716/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15716/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15716",
"html_url": "https://github.com/langchain-ai/langchain/pull/15716",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15716.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15716.patch",
"merged_at": "2024-01-08T19:40:35"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15715 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15715/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15715/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15715/events | https://github.com/langchain-ai/langchain/issues/15715 | 2,071,064,930 | I_kwDOIPDwls57cfFi | 15,715 | Extraction: create_extraction_chain_pydantic | {
"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": 4678528808,
"node_id": "LA_kwDOIPDwls8AAAABFtyvKA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/bug",
"name": "bug",
"color": "d73a4a",
"default": true,
"description": "Something isn't working"
},
{
"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": 6406915535,
"node_id": "LA_kwDOIPDwls8AAAABfeHFzw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/extraction",
"name": "extraction",
"color": "2C2E30",
"default": false,
"description": ""
},
{
"id": 6406916060,
"node_id": "LA_kwDOIPDwls8AAAABfeHH3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/confirmed",
"name": "confirmed",
"color": "0E8A16",
"default": false,
"description": ""
}
] | 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 | 1 | 2024-01-08T19:11:32 | 2024-01-08T20:31:29 | null | COLLABORATOR | null | ### System Info
```➜ ~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
```
```
In [2]: langchain.__version__
Out[2]: '0.0.354'
```
```
In [4]: from langchain_core import __version__
In [5]: __version__
Out[5]: '0.1.8'
```
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
# Description
Create extraction chain pydantic does not work for valid pydantic schemas.
```python
from typing import Optional, List
from langchain.chains import create_extraction_chain_pydantic
from langchain_openai import ChatOpenAI
class Person(BaseModel):
"""Identifying information about a person in a text."""
person_name: str
person_height: Optional[int]
person_hair_color: Optional[str]
dog_breed: Optional[str]
dog_name: Optional[str]
# Chain for an extraction approach based on OpenAI Functions
extraction_chain = create_extraction_chain_pydantic(Person, ChatOpenAI(temperature=0))
extraction_chain.invoke("My name is tom and i'm 6 feet tall")
```
However, more complex pydantic definitions fail:
```
class People(BaseModel):
"""Identifying information about all people in a text."""
__root__: List[Person]
# Chain for an extraction approach based on OpenAI Functions
extraction_chain = create_extraction_chain_pydantic(People, ChatOpenAI(temperature=0))
extraction_chain.invoke("My name is tom and i'm 6 feet tall")
```
![image](https://github.com/langchain-ai/langchain/assets/3205522/388958e9-0150-436f-944b-149ba4ca0d49)
```
class NestedPeople(BaseModel):
"""Identifying information about all people in a text."""
people: List[Person]
# Chain for an extraction approach based on OpenAI Functions
extraction_chain = create_extraction_chain_pydantic(NestedPeople, ChatOpenAI(temperature=0))
extraction_chain.invoke("My name is tom and i'm 6 feet tall")
```
![image](https://github.com/langchain-ai/langchain/assets/3205522/40d17d56-2720-49f6-ab33-07ae4a69f1d3)
---
## Acceptance criteria
1. Code does not affect backwards compatibility if possible If must be a breaking change, perhaps we should create a new function for this purpose.
2. Should we replace LLMChain with an LCEL chain and determine what is the correct output interface for extractions? User may want error information to be returned rather than raised.
3. Unit-tests must cover above cases
### Expected behavior
All shown cases should work properly and not fail during initialization time. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15715/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15715/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15714 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15714/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15714/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15714/events | https://github.com/langchain-ai/langchain/pull/15714 | 2,070,939,482 | PR_kwDOIPDwls5jgIZA | 15,714 | langchain(patch): Fix output type for pydantic output parser | {
"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": 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": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-08T17:41:08 | 2024-01-08T21:53:11 | 2024-01-08T21:53:10 | COLLABORATOR | null | This PR fixes the output type for the pydantic output parser.
Fix for: https://github.com/langchain-ai/langserve/issues/301
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15714/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15714/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15714",
"html_url": "https://github.com/langchain-ai/langchain/pull/15714",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15714.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15714.patch",
"merged_at": "2024-01-08T21:53:10"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15711 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15711/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15711/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15711/events | https://github.com/langchain-ai/langchain/pull/15711 | 2,070,793,852 | PR_kwDOIPDwls5jfoiO | 15,711 | Enable serialization for JSON output OAI parsers | {
"login": "dqbd",
"id": 1443449,
"node_id": "MDQ6VXNlcjE0NDM0NDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1443449?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dqbd",
"html_url": "https://github.com/dqbd",
"followers_url": "https://api.github.com/users/dqbd/followers",
"following_url": "https://api.github.com/users/dqbd/following{/other_user}",
"gists_url": "https://api.github.com/users/dqbd/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dqbd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dqbd/subscriptions",
"organizations_url": "https://api.github.com/users/dqbd/orgs",
"repos_url": "https://api.github.com/users/dqbd/repos",
"events_url": "https://api.github.com/users/dqbd/events{/privacy}",
"received_events_url": "https://api.github.com/users/dqbd/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | open | false | null | [] | null | 1 | 2024-01-08T16:17:40 | 2024-01-15T19:09:43 | null | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15711/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15711/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15711",
"html_url": "https://github.com/langchain-ai/langchain/pull/15711",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15711.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15711.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15710 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15710/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15710/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15710/events | https://github.com/langchain-ai/langchain/pull/15710 | 2,070,704,279 | PR_kwDOIPDwls5jfUy1 | 15,710 | dont use docarray | {
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-08T15:36:33 | 2024-01-08T15:54:12 | 2024-01-08T15:54:11 | COLLABORATOR | null | theres some issue with the integration currently so dont use it | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15710/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15710/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15710",
"html_url": "https://github.com/langchain-ai/langchain/pull/15710",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15710.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15710.patch",
"merged_at": "2024-01-08T15:54:11"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15709 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15709/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15709/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15709/events | https://github.com/langchain-ai/langchain/pull/15709 | 2,070,667,943 | PR_kwDOIPDwls5jfM2M | 15,709 | core(minor): Add bulk add messages to BaseChatMessageHistory interface | {
"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": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | null | [] | null | 3 | 2024-01-08T15:17:48 | 2024-01-17T13:50:41 | null | COLLABORATOR | null | * Add bulk add_messages method to the interface.
* Update documentation for add_ai_message and add_human_message to denote them as being marked for deprecation. We should stop using them as they create more incorrect (inefficient) ways of doing things
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15709/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15709/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15709",
"html_url": "https://github.com/langchain-ai/langchain/pull/15709",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15709.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15709.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15707 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15707/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15707/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15707/events | https://github.com/langchain-ai/langchain/pull/15707 | 2,070,596,274 | PR_kwDOIPDwls5je9TT | 15,707 | langchain: Extract _aperform_agent_action from _aiter_next_step from AgentExecutor | {
"login": "gianfrancodemarco",
"id": 36262716,
"node_id": "MDQ6VXNlcjM2MjYyNzE2",
"avatar_url": "https://avatars.githubusercontent.com/u/36262716?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gianfrancodemarco",
"html_url": "https://github.com/gianfrancodemarco",
"followers_url": "https://api.github.com/users/gianfrancodemarco/followers",
"following_url": "https://api.github.com/users/gianfrancodemarco/following{/other_user}",
"gists_url": "https://api.github.com/users/gianfrancodemarco/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gianfrancodemarco/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gianfrancodemarco/subscriptions",
"organizations_url": "https://api.github.com/users/gianfrancodemarco/orgs",
"repos_url": "https://api.github.com/users/gianfrancodemarco/repos",
"events_url": "https://api.github.com/users/gianfrancodemarco/events{/privacy}",
"received_events_url": "https://api.github.com/users/gianfrancodemarco/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": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | null | [] | null | 4 | 2024-01-08T14:39:37 | 2024-01-15T11:47:00 | null | NONE | null | <!-- Thank you for contributing to LangChain!
Please title your PR "lang: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
- **Description:** extreact the _aperform_agent_action in the AgentExecutor class to allow for easier overriding. Extracted logic from _iter_next_step into a new method _perform_agent_action for consistency and easier overriding.
- **Issue:** #15706
Closes #15706 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15707/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15707/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15707",
"html_url": "https://github.com/langchain-ai/langchain/pull/15707",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15707.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15707.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15706 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15706/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15706/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15706/events | https://github.com/langchain-ai/langchain/issues/15706 | 2,070,544,706 | I_kwDOIPDwls57agFC | 15,706 | Extract _aperform_agent_action from _aiter_next_step from AgentExecutor | {
"login": "gianfrancodemarco",
"id": 36262716,
"node_id": "MDQ6VXNlcjM2MjYyNzE2",
"avatar_url": "https://avatars.githubusercontent.com/u/36262716?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gianfrancodemarco",
"html_url": "https://github.com/gianfrancodemarco",
"followers_url": "https://api.github.com/users/gianfrancodemarco/followers",
"following_url": "https://api.github.com/users/gianfrancodemarco/following{/other_user}",
"gists_url": "https://api.github.com/users/gianfrancodemarco/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gianfrancodemarco/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gianfrancodemarco/subscriptions",
"organizations_url": "https://api.github.com/users/gianfrancodemarco/orgs",
"repos_url": "https://api.github.com/users/gianfrancodemarco/repos",
"events_url": "https://api.github.com/users/gianfrancodemarco/events{/privacy}",
"received_events_url": "https://api.github.com/users/gianfrancodemarco/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] | open | false | null | [] | null | 1 | 2024-01-08T14:12:40 | 2024-01-08T14:35:19 | null | NONE | null | ### Feature request
I'm trying to extend AgentExecutor with custom logic and I want to override how the agent perform actions.
What i'd really need is only to override the __aperform_agent_action_ function; however this function is defined in the __aiter_next_step_ function, making it necessary to override the whole function.
This obviously comes with the drawbacks of more code and having to reconciliate future updates.
In my opinion, the __aiter_next_step_ function could be extracted into an instance or static method, allowing to override only the relevant parts.
Also, for the synchronous version _iter_next_step_ a similar problem arises, as the __perform_agent_action_ is not defined at all.
The relevant code can be extracted in a method making it easier to override it.
### Motivation
This update would allow for better extendibility of the AgentExecutor class
### Your contribution
I can submit a PR to address the issue | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15706/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15706/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15705 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15705/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15705/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15705/events | https://github.com/langchain-ai/langchain/issues/15705 | 2,070,541,205 | I_kwDOIPDwls57afOV | 15,705 | DOC: Data Pipeline for humans | {
"login": "FrancescoSaverioZuppichini",
"id": 15908060,
"node_id": "MDQ6VXNlcjE1OTA4MDYw",
"avatar_url": "https://avatars.githubusercontent.com/u/15908060?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/FrancescoSaverioZuppichini",
"html_url": "https://github.com/FrancescoSaverioZuppichini",
"followers_url": "https://api.github.com/users/FrancescoSaverioZuppichini/followers",
"following_url": "https://api.github.com/users/FrancescoSaverioZuppichini/following{/other_user}",
"gists_url": "https://api.github.com/users/FrancescoSaverioZuppichini/gists{/gist_id}",
"starred_url": "https://api.github.com/users/FrancescoSaverioZuppichini/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FrancescoSaverioZuppichini/subscriptions",
"organizations_url": "https://api.github.com/users/FrancescoSaverioZuppichini/orgs",
"repos_url": "https://api.github.com/users/FrancescoSaverioZuppichini/repos",
"events_url": "https://api.github.com/users/FrancescoSaverioZuppichini/events{/privacy}",
"received_events_url": "https://api.github.com/users/FrancescoSaverioZuppichini/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"
}
] | closed | true | null | [] | null | 3 | 2024-01-08T14:10:39 | 2024-01-09T14:42:08 | 2024-01-09T14:42:08 | NONE | null | ### Issue with current documentation:
Dear all
I have this pipeline
```python
translation_cache = ToJSON(key=key, out_dir=Path("results/sabadel/translation"))
translation_prompt = Prompt.from_yaml(Path("prompts/translate.yml"))
translation_chain = (
{
"transcription": lambda data: format_transcription_for_prompt(
data["transcription"]
)
}
| translation_prompt.template
| model
| {
"transcription": RunnableLambda(
lambda res: translation_output_parser(res, transcription)
)
}
| {"transcription": lambda x: translation_cache(x)}
)
translation_chain = (
RunnableLambda(lambda data: {**data, "transcription": translation_cache.load()})
if translation_cache.exists
else translation_chain
)
# evaluation
evaluation_prompt = Prompt.from_yaml(Path("prompts/sabadell/evaluation.yml"))
evaluation_cache = ToJSON(key=key, out_dir=Path("results/sabadel/evaluation"))
evaluation_chain = (
evaluation_prompt.template | model | evaluation_output_parser | evaluation_cache
)
evaluation_chain = (
RunnableLambda(lambda data: {**data, "evaluations": evaluation_cache.load()})
if evaluation_cache.exists
else evaluation_chain
)
# retention
retention_prompt = Prompt.from_yaml(Path("prompts/sabadell/evaluation.retention.yml"))
retention_cache = ToJSON(key=key, out_dir=Path("results/sabadel/retention"))
retention_chain = (
retention_prompt.template | model | retention_output_parser | retention_cache
)
retention_chain = RunnableLambda(
lambda data: {
**data,
"retention": retention_cache.load()
if retention_cache.exists
else retention_chain(**data),
}
)
# final chain
# chain = translation_chain | retention_chain
# print(translation_chain.invoke({"transcription": transcription}))
chain = translation_chain | evaluation_chain | retention_chain
print(chain.get_graph().print_ascii())
print(
chain.invoke({"transcription": transcription, "retention_script": retention_script})
)
```
Now what I'd like to do is that `evaluation_chain` puts stuff into a key `evaluations` and pass along the original data dict + that key to `retention_chain` and `retention_chain` should put it's output into a `retention` data key and then pass along the original dict + all the outputs
how to do it?
### Idea or request for content:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15705/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/15705/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15703 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15703/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15703/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15703/events | https://github.com/langchain-ai/langchain/pull/15703 | 2,070,474,093 | PR_kwDOIPDwls5jeihs | 15,703 | Add doc for AstraDB document loader | {
"login": "cbornet",
"id": 11633333,
"node_id": "MDQ6VXNlcjExNjMzMzMz",
"avatar_url": "https://avatars.githubusercontent.com/u/11633333?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cbornet",
"html_url": "https://github.com/cbornet",
"followers_url": "https://api.github.com/users/cbornet/followers",
"following_url": "https://api.github.com/users/cbornet/following{/other_user}",
"gists_url": "https://api.github.com/users/cbornet/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cbornet/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cbornet/subscriptions",
"organizations_url": "https://api.github.com/users/cbornet/orgs",
"repos_url": "https://api.github.com/users/cbornet/repos",
"events_url": "https://api.github.com/users/cbornet/events{/privacy}",
"received_events_url": "https://api.github.com/users/cbornet/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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 | 2024-01-08T13:34:39 | 2024-01-08T20:54:14 | 2024-01-08T20:21:46 | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
See preview : https://langchain-git-fork-cbornet-astra-loader-doc-langchain.vercel.app/docs/integrations/document_loaders/astradb | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15703/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15703/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15703",
"html_url": "https://github.com/langchain-ai/langchain/pull/15703",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15703.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15703.patch",
"merged_at": "2024-01-08T20:21:46"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15702 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15702/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15702/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15702/events | https://github.com/langchain-ai/langchain/issues/15702 | 2,070,370,106 | I_kwDOIPDwls57Z1c6 | 15,702 | Add support for the Mistral AI Embedding Model | {
"login": "mohitnihalani",
"id": 30204371,
"node_id": "MDQ6VXNlcjMwMjA0Mzcx",
"avatar_url": "https://avatars.githubusercontent.com/u/30204371?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mohitnihalani",
"html_url": "https://github.com/mohitnihalani",
"followers_url": "https://api.github.com/users/mohitnihalani/followers",
"following_url": "https://api.github.com/users/mohitnihalani/following{/other_user}",
"gists_url": "https://api.github.com/users/mohitnihalani/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mohitnihalani/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mohitnihalani/subscriptions",
"organizations_url": "https://api.github.com/users/mohitnihalani/orgs",
"repos_url": "https://api.github.com/users/mohitnihalani/repos",
"events_url": "https://api.github.com/users/mohitnihalani/events{/privacy}",
"received_events_url": "https://api.github.com/users/mohitnihalani/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] | open | false | null | [] | null | 2 | 2024-01-08T12:35:54 | 2024-01-09T00:24:57 | null | NONE | null | ### Feature request
Feature request
They provide a [python client](https://docs.mistral.ai/platform/endpoints/) to access the embedding model
### Motivation
It would be great if we added the new embedding service from Mistral!
### Your contribution
I can work on this and submit a PR | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15702/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15702/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15700 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15700/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15700/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15700/events | https://github.com/langchain-ai/langchain/issues/15700 | 2,070,146,142 | I_kwDOIPDwls57Y-xe | 15,700 | DOC: Quickstart Code Fails for Retrieval Chain | {
"login": "shalinpather",
"id": 38840729,
"node_id": "MDQ6VXNlcjM4ODQwNzI5",
"avatar_url": "https://avatars.githubusercontent.com/u/38840729?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shalinpather",
"html_url": "https://github.com/shalinpather",
"followers_url": "https://api.github.com/users/shalinpather/followers",
"following_url": "https://api.github.com/users/shalinpather/following{/other_user}",
"gists_url": "https://api.github.com/users/shalinpather/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shalinpather/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shalinpather/subscriptions",
"organizations_url": "https://api.github.com/users/shalinpather/orgs",
"repos_url": "https://api.github.com/users/shalinpather/repos",
"events_url": "https://api.github.com/users/shalinpather/events{/privacy}",
"received_events_url": "https://api.github.com/users/shalinpather/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | closed | false | null | [] | null | 5 | 2024-01-08T10:23:26 | 2024-01-08T15:54:43 | 2024-01-08T15:54:43 | NONE | null | ### Issue with current documentation:
Hi.
I am a newcomer to Langchain following the Quickstart tutorial in a Jupyter Notebook, using the setup recommended by the installation guide. I am following the OpenAI tutorial, rather than the local LLM version.
I followed the exact code in the docs by pasting the cells into my notebook. All code works perfectly without a single error or warning. However, the code fails at this point:
```python
response = retrieval_chain.invoke({"input": "how can langsmith help with testing?"})
print(response["answer"])
# LangSmith offers several features that can help with testing:...
```
When I attempt to run this code, I get the following output in my notebook:
```
{
"name": "ValidationError",
"message": "2 validation errors for DocArrayDoc
text
Field required [type=missing, input_value={'embedding': [-0.0144587... -0.015377209573652503]}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/missing
metadata
Field required [type=missing, input_value={'embedding': [-0.0144587... -0.015377209573652503]}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/missing",
"stack": "---------------------------------------------------------------------------
ValidationError Traceback (most recent call last)
Cell In[18], line 1
----> 1 response = retrieval_chain.invoke({\"input\": \"how can langsmith help with testing?\"})
2 print(response[\"answer\"])
4 # LangSmith offers several features that can help with testing:...
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_core\\runnables\\base.py:3590, in RunnableBindingBase.invoke(self, input, config, **kwargs)
3584 def invoke(
3585 self,
3586 input: Input,
3587 config: Optional[RunnableConfig] = None,
3588 **kwargs: Optional[Any],
3589 ) -> Output:
-> 3590 return self.bound.invoke(
3591 input,
3592 self._merge_configs(config),
3593 **{**self.kwargs, **kwargs},
3594 )
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_core\\runnables\\base.py:1762, in RunnableSequence.invoke(self, input, config)
1760 try:
1761 for i, step in enumerate(self.steps):
-> 1762 input = step.invoke(
1763 input,
1764 # mark each step as a child run
1765 patch_config(
1766 config, callbacks=run_manager.get_child(f\"seq:step:{i+1}\")
1767 ),
1768 )
1769 # finish the root run
1770 except BaseException as e:
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_core\\runnables\\passthrough.py:415, in RunnableAssign.invoke(self, input, config, **kwargs)
409 def invoke(
410 self,
411 input: Dict[str, Any],
412 config: Optional[RunnableConfig] = None,
413 **kwargs: Any,
414 ) -> Dict[str, Any]:
--> 415 return self._call_with_config(self._invoke, input, config, **kwargs)
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_core\\runnables\\base.py:975, in Runnable._call_with_config(self, func, input, config, run_type, **kwargs)
971 context = copy_context()
972 context.run(var_child_runnable_config.set, child_config)
973 output = cast(
974 Output,
--> 975 context.run(
976 call_func_with_variable_args,
977 func, # type: ignore[arg-type]
978 input, # type: ignore[arg-type]
979 config,
980 run_manager,
981 **kwargs,
982 ),
983 )
984 except BaseException as e:
985 run_manager.on_chain_error(e)
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_core\\runnables\\config.py:323, in call_func_with_variable_args(func, input, config, run_manager, **kwargs)
321 if run_manager is not None and accepts_run_manager(func):
322 kwargs[\"run_manager\"] = run_manager
--> 323 return func(input, **kwargs)
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_core\\runnables\\passthrough.py:402, in RunnableAssign._invoke(self, input, run_manager, config, **kwargs)
389 def _invoke(
390 self,
391 input: Dict[str, Any],
(...)
394 **kwargs: Any,
395 ) -> Dict[str, Any]:
396 assert isinstance(
397 input, dict
398 ), \"The input to RunnablePassthrough.assign() must be a dict.\"
400 return {
401 **input,
--> 402 **self.mapper.invoke(
403 input,
404 patch_config(config, callbacks=run_manager.get_child()),
405 **kwargs,
406 ),
407 }
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_core\\runnables\\base.py:2327, in RunnableParallel.invoke(self, input, config)
2314 with get_executor_for_config(config) as executor:
2315 futures = [
2316 executor.submit(
2317 step.invoke,
(...)
2325 for key, step in steps.items()
2326 ]
-> 2327 output = {key: future.result() for key, future in zip(steps, futures)}
2328 # finish the root run
2329 except BaseException as e:
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_core\\runnables\\base.py:2327, in <dictcomp>(.0)
2314 with get_executor_for_config(config) as executor:
2315 futures = [
2316 executor.submit(
2317 step.invoke,
(...)
2325 for key, step in steps.items()
2326 ]
-> 2327 output = {key: future.result() for key, future in zip(steps, futures)}
2328 # finish the root run
2329 except BaseException as e:
File C:\\ProgramData\\miniconda3\\Lib\\concurrent\\futures\\_base.py:456, in Future.result(self, timeout)
454 raise CancelledError()
455 elif self._state == FINISHED:
--> 456 return self.__get_result()
457 else:
458 raise TimeoutError()
File C:\\ProgramData\\miniconda3\\Lib\\concurrent\\futures\\_base.py:401, in Future.__get_result(self)
399 if self._exception:
400 try:
--> 401 raise self._exception
402 finally:
403 # Break a reference cycle with the exception in self._exception
404 self = None
File C:\\ProgramData\\miniconda3\\Lib\\concurrent\\futures\\thread.py:58, in _WorkItem.run(self)
55 return
57 try:
---> 58 result = self.fn(*self.args, **self.kwargs)
59 except BaseException as exc:
60 self.future.set_exception(exc)
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_core\\runnables\\base.py:3590, in RunnableBindingBase.invoke(self, input, config, **kwargs)
3584 def invoke(
3585 self,
3586 input: Input,
3587 config: Optional[RunnableConfig] = None,
3588 **kwargs: Optional[Any],
3589 ) -> Output:
-> 3590 return self.bound.invoke(
3591 input,
3592 self._merge_configs(config),
3593 **{**self.kwargs, **kwargs},
3594 )
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_core\\runnables\\base.py:1762, in RunnableSequence.invoke(self, input, config)
1760 try:
1761 for i, step in enumerate(self.steps):
-> 1762 input = step.invoke(
1763 input,
1764 # mark each step as a child run
1765 patch_config(
1766 config, callbacks=run_manager.get_child(f\"seq:step:{i+1}\")
1767 ),
1768 )
1769 # finish the root run
1770 except BaseException as e:
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_core\\retrievers.py:121, in BaseRetriever.invoke(self, input, config)
117 def invoke(
118 self, input: str, config: Optional[RunnableConfig] = None
119 ) -> List[Document]:
120 config = ensure_config(config)
--> 121 return self.get_relevant_documents(
122 input,
123 callbacks=config.get(\"callbacks\"),
124 tags=config.get(\"tags\"),
125 metadata=config.get(\"metadata\"),
126 run_name=config.get(\"run_name\"),
127 )
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_core\\retrievers.py:223, in BaseRetriever.get_relevant_documents(self, query, callbacks, tags, metadata, run_name, **kwargs)
221 except Exception as e:
222 run_manager.on_retriever_error(e)
--> 223 raise e
224 else:
225 run_manager.on_retriever_end(
226 result,
227 **kwargs,
228 )
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_core\\retrievers.py:216, in BaseRetriever.get_relevant_documents(self, query, callbacks, tags, metadata, run_name, **kwargs)
214 _kwargs = kwargs if self._expects_other_args else {}
215 if self._new_arg_supported:
--> 216 result = self._get_relevant_documents(
217 query, run_manager=run_manager, **_kwargs
218 )
219 else:
220 result = self._get_relevant_documents(query, **_kwargs)
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_core\\vectorstores.py:654, in VectorStoreRetriever._get_relevant_documents(self, query, run_manager)
650 def _get_relevant_documents(
651 self, query: str, *, run_manager: CallbackManagerForRetrieverRun
652 ) -> List[Document]:
653 if self.search_type == \"similarity\":
--> 654 docs = self.vectorstore.similarity_search(query, **self.search_kwargs)
655 elif self.search_type == \"similarity_score_threshold\":
656 docs_and_similarities = (
657 self.vectorstore.similarity_search_with_relevance_scores(
658 query, **self.search_kwargs
659 )
660 )
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_community\\vectorstores\\docarray\\base.py:127, in DocArrayIndex.similarity_search(self, query, k, **kwargs)
115 def similarity_search(
116 self, query: str, k: int = 4, **kwargs: Any
117 ) -> List[Document]:
118 \"\"\"Return docs most similar to query.
119
120 Args:
(...)
125 List of Documents most similar to the query.
126 \"\"\"
--> 127 results = self.similarity_search_with_score(query, k=k, **kwargs)
128 return [doc for doc, _ in results]
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\langchain_community\\vectorstores\\docarray\\base.py:106, in DocArrayIndex.similarity_search_with_score(self, query, k, **kwargs)
94 \"\"\"Return docs most similar to query.
95
96 Args:
(...)
103 Lower score represents more similarity.
104 \"\"\"
105 query_embedding = self.embedding.embed_query(query)
--> 106 query_doc = self.doc_cls(embedding=query_embedding) # type: ignore
107 docs, scores = self.doc_index.find(query_doc, search_field=\"embedding\", limit=k)
109 result = [
110 (Document(page_content=doc.text, metadata=doc.metadata), score)
111 for doc, score in zip(docs, scores)
112 ]
File e:\\Repos\\Practice Projects\\Langchain\\Quickstart\\quickstart\\Lib\\site-packages\\pydantic\\main.py:164, in BaseModel.__init__(__pydantic_self__, **data)
162 # `__tracebackhide__` tells pytest and some other tools to omit this function from tracebacks
163 __tracebackhide__ = True
--> 164 __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
ValidationError: 2 validation errors for DocArrayDoc
text
Field required [type=missing, input_value={'embedding': [-0.0144587... -0.015377209573652503]}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/missing
metadata
Field required [type=missing, input_value={'embedding': [-0.0144587... -0.015377209573652503]}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.5/v/missing"
}
```
### Idea or request for content:
As I am a newcomer, I do not understand exactly what the issue is. Thus, I would like to request that the documentation be updated so that the code works correctly. In the meantime, I would appreciate any assistance so I can continue to learn Langchain through the quickstart and work my way through the rest of the docs . | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15700/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15700/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15699 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15699/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15699/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15699/events | https://github.com/langchain-ai/langchain/pull/15699 | 2,070,130,611 | PR_kwDOIPDwls5jdW5w | 15,699 | Fix AstraDB logical operator filtering | {
"login": "cbornet",
"id": 11633333,
"node_id": "MDQ6VXNlcjExNjMzMzMz",
"avatar_url": "https://avatars.githubusercontent.com/u/11633333?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cbornet",
"html_url": "https://github.com/cbornet",
"followers_url": "https://api.github.com/users/cbornet/followers",
"following_url": "https://api.github.com/users/cbornet/following{/other_user}",
"gists_url": "https://api.github.com/users/cbornet/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cbornet/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cbornet/subscriptions",
"organizations_url": "https://api.github.com/users/cbornet/orgs",
"repos_url": "https://api.github.com/users/cbornet/repos",
"events_url": "https://api.github.com/users/cbornet/events{/privacy}",
"received_events_url": "https://api.github.com/users/cbornet/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2024-01-08T10:16:35 | 2024-01-08T20:53:31 | 2024-01-08T20:23:46 | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
This change fixes the AstraDB logical operator filtering (`$and,` `$or`).
The `metadata` prefix must not be added if the key is `$and` or `$or`.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15699/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15699/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15699",
"html_url": "https://github.com/langchain-ai/langchain/pull/15699",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15699.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15699.patch",
"merged_at": "2024-01-08T20:23:46"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15698 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15698/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15698/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15698/events | https://github.com/langchain-ai/langchain/issues/15698 | 2,070,099,650 | I_kwDOIPDwls57YzbC | 15,698 | TypeError: SlackGetChannel._run() got multiple values for argument 'run_manager' | {
"login": "krish240574",
"id": 4938230,
"node_id": "MDQ6VXNlcjQ5MzgyMzA=",
"avatar_url": "https://avatars.githubusercontent.com/u/4938230?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/krish240574",
"html_url": "https://github.com/krish240574",
"followers_url": "https://api.github.com/users/krish240574/followers",
"following_url": "https://api.github.com/users/krish240574/following{/other_user}",
"gists_url": "https://api.github.com/users/krish240574/gists{/gist_id}",
"starred_url": "https://api.github.com/users/krish240574/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/krish240574/subscriptions",
"organizations_url": "https://api.github.com/users/krish240574/orgs",
"repos_url": "https://api.github.com/users/krish240574/repos",
"events_url": "https://api.github.com/users/krish240574/events{/privacy}",
"received_events_url": "https://api.github.com/users/krish240574/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 2 | 2024-01-08T09:58:38 | 2024-01-08T10:10:03 | null | NONE | null | ### System Info
Python 3.10.12
langchain 0.0.354
### Who can help?
@hwch
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
from langchain.agents.agent_toolkits.slack.toolkit import SlackToolkit
stoolkit = SlackToolkit()
tools = stoolkit.get_tools()
agent = OpenAIAssistantRunnable.create_assistant(
name="Sales assistant",
instructions="""You are a admin agent, tasked with the following jobs:
2. Read and post messages on Slack""",
tools=tools,
model="gpt-4-1106-preview",
as_agent=True
)
from langchain.agents.agent import AgentExecutor
agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools)
agent_executor.invoke({"content":"list all messages in #budget-decisions"})
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[11], line 13
agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools)
---> agent_executor.invoke({"content":"list all messages in #budget-decisions"})
File ~/smith/lib/python3.10/site-packages/langchain/chains/base.py:93, in Chain.invoke(self, input, config, **kwargs)
86 def invoke(
87 self,
88 input: Dict[str, Any],
89 config: Optional[RunnableConfig] = None,
90 **kwargs: Any,
91 ) -> Dict[str, Any]:
92 config = ensure_config(config)
---> 93 return self(
94 input,
95 callbacks=config.get("callbacks"),
96 tags=config.get("tags"),
97 metadata=config.get("metadata"),
98 run_name=config.get("run_name"),
99 **kwargs,
100 )
File ~/smith/lib/python3.10/site-packages/langchain/chains/base.py:316, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
314 except BaseException as e:
315 run_manager.on_chain_error(e)
--> 316 raise e
317 run_manager.on_chain_end(outputs)
318 final_outputs: Dict[str, Any] = self.prep_outputs(
319 inputs, outputs, return_only_outputs
320 )
File ~/smith/lib/python3.10/site-packages/langchain/chains/base.py:310, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
303 run_manager = callback_manager.on_chain_start(
304 dumpd(self),
305 inputs,
306 name=run_name,
307 )
308 try:
309 outputs = (
--> 310 self._call(inputs, run_manager=run_manager)
311 if new_arg_supported
312 else self._call(inputs)
313 )
314 except BaseException as e:
315 run_manager.on_chain_error(e)
File ~/smith/lib/python3.10/site-packages/langchain/agents/agent.py:1312, in AgentExecutor._call(self, inputs, run_manager)
1310 # We now enter the agent loop (until it returns something).
1311 while self._should_continue(iterations, time_elapsed):
-> 1312 next_step_output = self._take_next_step(
1313 name_to_tool_map,
1314 color_mapping,
1315 inputs,
1316 intermediate_steps,
1317 run_manager=run_manager,
1318 )
1319 if isinstance(next_step_output, AgentFinish):
1320 return self._return(
1321 next_step_output, intermediate_steps, run_manager=run_manager
1322 )
File ~/smith/lib/python3.10/site-packages/langchain/agents/agent.py:1038, in AgentExecutor._take_next_step(self, name_to_tool_map, color_mapping, inputs, intermediate_steps, run_manager)
1029 def _take_next_step(
1030 self,
1031 name_to_tool_map: Dict[str, BaseTool],
(...)
1035 run_manager: Optional[CallbackManagerForChainRun] = None,
1036 ) -> Union[AgentFinish, List[Tuple[AgentAction, str]]]:
1037 return self._consume_next_step(
-> 1038 [
1039 a
1040 for a in self._iter_next_step(
1041 name_to_tool_map,
1042 color_mapping,
1043 inputs,
1044 intermediate_steps,
1045 run_manager,
1046 )
1047 ]
1048 )
File ~/smith/lib/python3.10/site-packages/langchain/agents/agent.py:1038, in <listcomp>(.0)
1029 def _take_next_step(
1030 self,
1031 name_to_tool_map: Dict[str, BaseTool],
(...)
1035 run_manager: Optional[CallbackManagerForChainRun] = None,
1036 ) -> Union[AgentFinish, List[Tuple[AgentAction, str]]]:
1037 return self._consume_next_step(
-> 1038 [
1039 a
1040 for a in self._iter_next_step(
1041 name_to_tool_map,
1042 color_mapping,
1043 inputs,
1044 intermediate_steps,
1045 run_manager,
1046 )
1047 ]
1048 )
File ~/smith/lib/python3.10/site-packages/langchain/agents/agent.py:1134, in AgentExecutor._iter_next_step(self, name_to_tool_map, color_mapping, inputs, intermediate_steps, run_manager)
1132 tool_run_kwargs["llm_prefix"] = ""
1133 # We then call the tool on the tool input to get an observation
-> 1134 observation = tool.run(
1135 agent_action.tool_input,
1136 verbose=self.verbose,
1137 color=color,
1138 callbacks=run_manager.get_child() if run_manager else None,
1139 **tool_run_kwargs,
1140 )
1141 else:
1142 tool_run_kwargs = self.agent.tool_run_logging_kwargs()
File ~/smith/lib/python3.10/site-packages/langchain_core/tools.py:365, in BaseTool.run(self, tool_input, verbose, start_color, color, callbacks, tags, metadata, run_name, **kwargs)
363 except (Exception, KeyboardInterrupt) as e:
364 run_manager.on_tool_error(e)
--> 365 raise e
366 else:
367 run_manager.on_tool_end(
368 str(observation), color=color, name=self.name, **kwargs
369 )
File ~/smith/lib/python3.10/site-packages/langchain_core/tools.py:337, in BaseTool.run(self, tool_input, verbose, start_color, color, callbacks, tags, metadata, run_name, **kwargs)
334 try:
335 tool_args, tool_kwargs = self._to_args_and_kwargs(parsed_input)
336 observation = (
--> 337 self._run(*tool_args, run_manager=run_manager, **tool_kwargs)
338 if new_arg_supported
339 else self._run(*tool_args, **tool_kwargs)
340 )
341 except ToolException as e:
342 if not self.handle_tool_error:
TypeError: SlackGetChannel._run() got multiple values for argument 'run_manager'
### Expected behavior
The slack agent should send a message on the said channel. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15698/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15698/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15697 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15697/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15697/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15697/events | https://github.com/langchain-ai/langchain/pull/15697 | 2,070,098,811 | PR_kwDOIPDwls5jdP6L | 15,697 | langchain-docs: Correct the word "iteratively" in use-cases documentation | {
"login": "untilhamza",
"id": 46571439,
"node_id": "MDQ6VXNlcjQ2NTcxNDM5",
"avatar_url": "https://avatars.githubusercontent.com/u/46571439?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/untilhamza",
"html_url": "https://github.com/untilhamza",
"followers_url": "https://api.github.com/users/untilhamza/followers",
"following_url": "https://api.github.com/users/untilhamza/following{/other_user}",
"gists_url": "https://api.github.com/users/untilhamza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/untilhamza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/untilhamza/subscriptions",
"organizations_url": "https://api.github.com/users/untilhamza/orgs",
"repos_url": "https://api.github.com/users/untilhamza/repos",
"events_url": "https://api.github.com/users/untilhamza/events{/privacy}",
"received_events_url": "https://api.github.com/users/untilhamza/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-08T09:58:07 | 2024-01-08T20:24:00 | 2024-01-08T20:24:00 | CONTRIBUTOR | null |
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
**Description:** Fixes the word "iteratively" in the use-cases documentation
**Twitter handle:** @untilhamza | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15697/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15697/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15697",
"html_url": "https://github.com/langchain-ai/langchain/pull/15697",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15697.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15697.patch",
"merged_at": "2024-01-08T20:24:00"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15696 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15696/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15696/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15696/events | https://github.com/langchain-ai/langchain/issues/15696 | 2,070,080,675 | I_kwDOIPDwls57Yuyj | 15,696 | SelfQueryRetriever, ValueError: Expected where operand value to be a str, int, float, or list of those type | {
"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": 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": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] | open | false | null | [] | null | 10 | 2024-01-08T09:48:39 | 2024-01-08T12:38:23 | null | NONE | null | ### System Info
Chroma 0.4.22
Langchain 0.0.354
### Who can help?
@agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
1. Create a SelfQueryRetriever
2. Create AttributeInfo metadata list in preparation for filtering based off metadata.
```python
self_query_retriever = SelfQueryRetriever.from_llm(
llm,
vectorstore,
"Information about when document was published and where it originated from",
metadata_field_info
)
# retriever = MergerRetriever(retrievers=[parent_retriever, self_query_retriever])
retriever = self_query_retriever
template = """
### Instruction: You're an assistant who knows the following information:
### {context}
If you don't know the answer, then say you don't know and refer the user to the respective department for extra information.
Absolutely do not mention you are an AI language model. Use only the chat history and the following information.
### {chat_history}
### Input: {question}
### Response:
""".strip()
prompt = PromptTemplate(input_variables=["context", "chat_history", "question"], template=template)
chain = ConversationalRetrievalChain.from_llm(
llm,
chain_type="stuff",
retriever=retriever,
combine_docs_chain_kwargs={"prompt": prompt},#, "metadata_weights": metadata_weights},
return_source_documents=True,
verbose=False,
rephrase_question=True,
max_tokens_limit=16000,
response_if_no_docs_found="""I'm sorry, but I was not able to find the answer to your question based on the information I know. You may have to reach out to the respective internal department for more details regarding your inquiry."""
)
return chain
def score_unstructured(model, data, query, **kwargs) -> str:
"""Custom model hook for making completions with our knowledge base.
When requesting predictions from the deployment, pass a dictionary
with the following keys:
- 'question' the question to be passed to the retrieval chain
- 'chat_history' (optional) a list of two-element lists corresponding to
preceding dialogue between the Human and AI, respectively
datarobot-user-models (DRUM) handles loading the model and calling
this function with the appropriate parameters.
Returns:
--------
rv : str
Json dictionary with keys:
- 'question' user's original question
- 'chat_history' chat history that was provided with the original question
- 'answer' the generated answer to the question
- 'references' list of references that were used to generate the answer
- 'error' - error message if exception in handling request
"""
import json
try:
chain = model
data_dict = json.loads(data)
if 'chat_history' in data_dict:
chat_history = [(human, ai,) for human, ai in data_dict['chat_history']]
else:
chat_history = []# model.chat_history
rv = chain(
inputs={
'question': data_dict['question'],
'chat_history': chat_history,
},
)
source_docs = rv.pop('source_documents')
rv['references'] = [doc.metadata['source'] for doc in source_docs]
if len(source_docs) > 0:
rv["top_reference_text"] = [doc.page_content for doc in source_docs]
else:
rv["top_reference_text"] = ""
except Exception as e:
rv = {'error': f"{e.__class__.__name__}: {str(e)}"}
return json.dumps(rv)
model = load_model(".")
```
I asked the following question:
```python
questions = ["What is the minimum opening deposit for each account as of January 2023?"]
os.environ["TOKENIZERS_PARALLELISM"] = "false"
for question in questions:
rv = score_unstructured(model, json.dumps(
{
"question": question
# "chat_history": []
}
),
None)
print(rv)
print(question.upper())
print(json.loads(rv)["answer"])
print(json.loads(rv))
print("------------------------------------------------")
```
The issue I got was ```ValueError: Expected where operand value to be a str, int, float, or list of those type, got {'date': '2023-01-01', 'type': 'date'}```
It looks like the SelfQueryRetriever converted my question that had January 2023 to a date object. This date object throws an error. I'm not sure how to resolve this issue on my end.
### Expected behavior
Query with a date and receive an answer from the SelfQueryRetriever. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15696/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15696/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15695 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15695/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15695/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15695/events | https://github.com/langchain-ai/langchain/issues/15695 | 2,070,079,179 | I_kwDOIPDwls57YubL | 15,695 | Reuse KV-Cache with local LLM (IlamaCpp) instead of expensive reprocessing of all history tokens | {
"login": "avion23",
"id": 10906412,
"node_id": "MDQ6VXNlcjEwOTA2NDEy",
"avatar_url": "https://avatars.githubusercontent.com/u/10906412?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/avion23",
"html_url": "https://github.com/avion23",
"followers_url": "https://api.github.com/users/avion23/followers",
"following_url": "https://api.github.com/users/avion23/following{/other_user}",
"gists_url": "https://api.github.com/users/avion23/gists{/gist_id}",
"starred_url": "https://api.github.com/users/avion23/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avion23/subscriptions",
"organizations_url": "https://api.github.com/users/avion23/orgs",
"repos_url": "https://api.github.com/users/avion23/repos",
"events_url": "https://api.github.com/users/avion23/events{/privacy}",
"received_events_url": "https://api.github.com/users/avion23/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 | 1 | 2024-01-08T09:47:45 | 2024-01-08T09:50:09 | null | NONE | null | ### Feature request
- I want the local LLM (IlamaCpp) to maintain its context, which will significantly improve the efficiency of follow-up questions.
- Currently, the context of IlamaCpp is lost after the first call, necessitating the reprocessing of all tokens for any subsequent question.
- **Proposed Solution:** Utilize the internal KV cache of IlamaCpp to retain context and avoid reprocessing the same tokens repeatedly.
### Motivation
- My motivation is to address the inefficiency in the current process where the context is not preserved between queries.
- There seems to be no existing solution for this specific issue as per my research, for example, [LangChain Caching Documentation](https://python.langchain.com/docs/modules/model_io/chat/chat_model_caching#in-memory-cache).
minimized example which shows my current workaround:
```
from langchain.llms import LlamaCpp
from langchain.chains import LLMChain
from langchain.prompts import ChatPromptTemplate, HumanMessagePromptTemplate
from pathlib import Path
class LlmRunner:
def __init__(self, path_to_model: Path) -> None:
self.llm_instance = LlamaCpp(
model_path=str(path_to_model),
n_ctx=16384,
max_tokens=-1,
temperature=0,
repeat_penalty=1.15,
n_gpu_layers=1,
n_threads=8,
verbose=False,
)
def run(self, invoice_text: str):
# Initial processing filling up kv-cache and context
initial_prompt = """
Extract and format keys from the invoice text into JSON.
<context>
{input}
</context>
"""
chain1 = LLMChain(
llm=self.llm_instance,
prompt=ChatPromptTemplate.from_messages([
HumanMessagePromptTemplate.from_template(initial_prompt)
])
)
response1 = chain1.invoke({'input': invoice_text})
# Follow-up processing which COULD reuse the context, but doesn't
follow_up_prompt = """
Review your results and normalize the dates to YYYY-MM-DD.
<input>
{input}
</input>
<context>
{invoice_text}
</context>"""
chain2 = LLMChain(
llm=self.llm_instance,
prompt=ChatPromptTemplate.from_messages([
HumanMessagePromptTemplate.from_template(follow_up_prompt)
])
)
response2 = chain2.invoke({'invoice_text' : invoice_text, 'input': response1['text']})
return response2['text']
# Example usage
path_to_model = Path("path_to_your_model")
runner = LlmRunner(path_to_model)
invoice_text = "Your invoice text here"
result = runner.run(invoice_text)
print(result)
```
### Your contribution
- if something like this already exists I am willing to provide example and update documentation
- if you point me in the right directions and it's just a few 100s LOC I am willing to submit a PR | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15695/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15695/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15694 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15694/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15694/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15694/events | https://github.com/langchain-ai/langchain/issues/15694 | 2,070,024,246 | I_kwDOIPDwls57YhA2 | 15,694 | feat: add a flag that determines whether to load the milvus collection | {
"login": "rere950303",
"id": 78265252,
"node_id": "MDQ6VXNlcjc4MjY1MjUy",
"avatar_url": "https://avatars.githubusercontent.com/u/78265252?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rere950303",
"html_url": "https://github.com/rere950303",
"followers_url": "https://api.github.com/users/rere950303/followers",
"following_url": "https://api.github.com/users/rere950303/following{/other_user}",
"gists_url": "https://api.github.com/users/rere950303/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rere950303/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rere950303/subscriptions",
"organizations_url": "https://api.github.com/users/rere950303/orgs",
"repos_url": "https://api.github.com/users/rere950303/repos",
"events_url": "https://api.github.com/users/rere950303/events{/privacy}",
"received_events_url": "https://api.github.com/users/rere950303/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] | closed | false | null | [] | null | 1 | 2024-01-08T09:14:35 | 2024-01-15T19:25:25 | 2024-01-15T19:25:25 | CONTRIBUTOR | null | ### Feature request
Every time i create a milvus object, i load the collection, but there is no way to dynamically know the replica_number of the currently loaded collection, so there is a disadvantage that i have to hand over the different replica_number for each collection as an argument. Therefore, when creating a milvus object, I would like to add a flag that can determine whether to load or not.
### Motivation
Always loading a collection can cause an unexpected error.
### Your contribution
https://github.com/langchain-ai/langchain/pull/15693 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15694/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15694/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15693 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15693/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15693/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15693/events | https://github.com/langchain-ai/langchain/pull/15693 | 2,070,019,178 | PR_kwDOIPDwls5jc-f7 | 15,693 | feat: add a flag that determines whether to load the milvus collection | {
"login": "rere950303",
"id": 78265252,
"node_id": "MDQ6VXNlcjc4MjY1MjUy",
"avatar_url": "https://avatars.githubusercontent.com/u/78265252?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rere950303",
"html_url": "https://github.com/rere950303",
"followers_url": "https://api.github.com/users/rere950303/followers",
"following_url": "https://api.github.com/users/rere950303/following{/other_user}",
"gists_url": "https://api.github.com/users/rere950303/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rere950303/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rere950303/subscriptions",
"organizations_url": "https://api.github.com/users/rere950303/orgs",
"repos_url": "https://api.github.com/users/rere950303/repos",
"events_url": "https://api.github.com/users/rere950303/events{/privacy}",
"received_events_url": "https://api.github.com/users/rere950303/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 3 | 2024-01-08T09:11:10 | 2024-01-15T19:25:24 | 2024-01-15T19:25:24 | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
fix https://github.com/langchain-ai/langchain/issues/15694 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15693/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15693/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15693",
"html_url": "https://github.com/langchain-ai/langchain/pull/15693",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15693.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15693.patch",
"merged_at": "2024-01-15T19:25:24"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15692 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15692/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15692/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15692/events | https://github.com/langchain-ai/langchain/issues/15692 | 2,069,993,594 | I_kwDOIPDwls57YZh6 | 15,692 | Issue: How to add chat history in prompt template | {
"login": "deepak-habilelabs",
"id": 137885024,
"node_id": "U_kgDOCDf1YA",
"avatar_url": "https://avatars.githubusercontent.com/u/137885024?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/deepak-habilelabs",
"html_url": "https://github.com/deepak-habilelabs",
"followers_url": "https://api.github.com/users/deepak-habilelabs/followers",
"following_url": "https://api.github.com/users/deepak-habilelabs/following{/other_user}",
"gists_url": "https://api.github.com/users/deepak-habilelabs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/deepak-habilelabs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/deepak-habilelabs/subscriptions",
"organizations_url": "https://api.github.com/users/deepak-habilelabs/orgs",
"repos_url": "https://api.github.com/users/deepak-habilelabs/repos",
"events_url": "https://api.github.com/users/deepak-habilelabs/events{/privacy}",
"received_events_url": "https://api.github.com/users/deepak-habilelabs/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 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": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] | open | false | null | [] | null | 5 | 2024-01-08T08:54:42 | 2024-01-08T09:53:07 | null | NONE | null | ### Issue you'd like to raise.
<pre>
```
def generate_custom_prompt(query=None, name=None, not_uuid=None, chroma_db_path=None):
check = query.lower()
embedding = OpenAIEmbeddings()
vectordb = Chroma(persist_directory=chroma_db_path, embedding_function=embedding)
retriever = vectordb.as_retriever(search_kwargs={"k": 2})
relevant_document = retriever.get_relevant_documents(query)
print(relevant_document, "*****************************************")
context_text = "\n\n---\n\n".join([doc.page_content for doc in relevant_document])
user_experience_inst = UserExperience.objects.get(not_uuid=not_uuid)
greetings = ['hi', 'hello', 'hey', 'hui', 'hiiii', 'hii', 'hiii', 'heyyy']
if check in greetings:
custom_prompt_template = f"""
Just simply reply with "Hello {name}! How can I assist you today?"
"""
elif check not in greetings and user_experience_inst.custom_prompt:
custom_prompt_template = f"""Answer the question based only on following context: ```{context_text} ```
You are a chatbot designed to provide answers to User's Questions:```{check}```, delimited by triple backticks.
Generate your answer to match the user's requirements: {user_experience_inst.custom_prompt}
If you encounter a question for which you don't know the answer, please respond with 'I don't know' and refrain from making up an answer.
- Before saying 'I don't know,' please re-verify your vector store to ensure the answer is not present in the database.
Remember, your goal is to assist the user in the best way possible. If the question is unclear or ambiguous, feel free to ask for clarification.
User's Question: ```{check}```
AI Answer:"""
else:
custom_prompt_template = f"""Generate your response exclusively from the provided context: {{context_text}}. You function as a chatbot specializing in delivering detailed answers to the User's Question: ```{{check}} ```, enclosed within triple backticks.
Generate your answer in points in the following format:
1. Point no 1
1.1 Its subpoint in details
1.2 More information if needed.
2. Point no 2
2.1 Its subpoint in details
2.2 More information if needed.
…
N. Another main point.
If you encounter a question for which you don't know the answer based on the predefined points, please respond with 'I don't know' and refrain from making up an answer.
However, if the answer is not present in the predefined points, then Provide comprehensive information related to the user's query.
Remember, your goal is to assist the user in the best way possible. If the question is unclear or ambiguous, you can ask for clarification.
User's Question: ```{{check}} ```
AI Answer:"""
custom_prompt = ChatPromptTemplate.from_template(template=custom_prompt_template)
formatted_prompt = custom_prompt.format(context_text=context_text, check=check)
llm = ChatOpenAI(temperature=0.1)
memory = ConversationBufferMemory(llm=llm, output_key='answer', memory_key='chat_history', return_messages=True)
qa = ConversationalRetrievalChain.from_llm(llm=llm, memory=memory, chain_type="stuff", retriever=retriever,
return_source_documents=True, get_chat_history=lambda h: h, verbose=True,
combine_docs_chain_kwargs={"prompt": PromptTemplate(
template=custom_prompt_template, input_variables=["context_text", "check"])})
return qa
```
</pre>
How to add chat history in prompt template as well in above function
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15692/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15692/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15691 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15691/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15691/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15691/events | https://github.com/langchain-ai/langchain/pull/15691 | 2,069,985,673 | PR_kwDOIPDwls5jc3Oh | 15,691 | community: Improve mlflow callback | {
"login": "serena-ruan",
"id": 82044803,
"node_id": "MDQ6VXNlcjgyMDQ0ODAz",
"avatar_url": "https://avatars.githubusercontent.com/u/82044803?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/serena-ruan",
"html_url": "https://github.com/serena-ruan",
"followers_url": "https://api.github.com/users/serena-ruan/followers",
"following_url": "https://api.github.com/users/serena-ruan/following{/other_user}",
"gists_url": "https://api.github.com/users/serena-ruan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/serena-ruan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/serena-ruan/subscriptions",
"organizations_url": "https://api.github.com/users/serena-ruan/orgs",
"repos_url": "https://api.github.com/users/serena-ruan/repos",
"events_url": "https://api.github.com/users/serena-ruan/events{/privacy}",
"received_events_url": "https://api.github.com/users/serena-ruan/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": 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."
},
{
"id": 6348691034,
"node_id": "LA_kwDOIPDwls8AAAABemlWWg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner",
"name": "partner",
"color": "ededed",
"default": false,
"description": null
}
] | open | false | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 3 | 2024-01-08T08:49:17 | 2024-01-18T01:18:29 | null | NONE | null | - **Description:** Allow passing run_id to MLflowCallbackHandler to resume a run instead of creating a new run. Support recording retriever relevant metrics. Refactor the code to fix some bugs.
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15691/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 1,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15691/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15691",
"html_url": "https://github.com/langchain-ai/langchain/pull/15691",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15691.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15691.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15690 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15690/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15690/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15690/events | https://github.com/langchain-ai/langchain/issues/15690 | 2,069,926,013 | I_kwDOIPDwls57YJB9 | 15,690 | Add Dynamic Schema support for the Milvus vector store | {
"login": "ohbeep",
"id": 28886507,
"node_id": "MDQ6VXNlcjI4ODg2NTA3",
"avatar_url": "https://avatars.githubusercontent.com/u/28886507?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ohbeep",
"html_url": "https://github.com/ohbeep",
"followers_url": "https://api.github.com/users/ohbeep/followers",
"following_url": "https://api.github.com/users/ohbeep/following{/other_user}",
"gists_url": "https://api.github.com/users/ohbeep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ohbeep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ohbeep/subscriptions",
"organizations_url": "https://api.github.com/users/ohbeep/orgs",
"repos_url": "https://api.github.com/users/ohbeep/repos",
"events_url": "https://api.github.com/users/ohbeep/events{/privacy}",
"received_events_url": "https://api.github.com/users/ohbeep/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] | open | false | null | [] | null | 1 | 2024-01-08T08:06:51 | 2024-01-08T08:16:23 | null | CONTRIBUTOR | null | ### Feature request
I suggest supporting the Milvus vector database's new [Dynamic Schema](https://milvus.io/docs/dynamic_schema.md) feature.
### Motivation
According to Milvus:
> Dynamic schema enables users to insert entities with new fields into a Milvus collection without modifying the existing schema. This means that users can insert data without knowing the full schema of a collection and can include fields that are not yet defined.
I think it is good to allow Langchain to have this feature when multiple types or schema of documents are added to the database.
### Your contribution
I propose to add a "dynamic_schema" flag to the `__init__` and `from_texts` method of the Milvus class:
`__init__` method:
https://github.com/langchain-ai/langchain/blob/4c47f39fcb539fdeff6dd6d9b1f483cd9a1af69b/libs/community/langchain_community/vectorstores/milvus.py#L107-L125
Change to:
```python
def __init__(
self,
embedding_function: Embeddings,
collection_name: str = "LangChainCollection",
collection_description: str = "",
connection_args: Optional[dict[str, Any]] = None,
consistency_level: str = "Session",
index_params: Optional[dict] = None,
search_params: Optional[dict] = None,
drop_old: Optional[bool] = False,
*,
primary_field: str = "pk",
text_field: str = "text",
vector_field: str = "vector",
metadata_field: Optional[str] = None,
partition_names: Optional[list] = None,
replica_number: int = 1,
timeout: Optional[float] = None,
dynamic_schema = False,
):
```
`from_texts` method:
https://github.com/langchain-ai/langchain/blob/4c47f39fcb539fdeff6dd6d9b1f483cd9a1af69b/libs/community/langchain_community/vectorstores/milvus.py#L839-L887
Change to:
```python
def from_texts(
cls,
texts: List[str],
embedding: Embeddings,
metadatas: Optional[List[dict]] = None,
collection_name: str = "LangChainCollection",
connection_args: dict[str, Any] = DEFAULT_MILVUS_CONNECTION,
consistency_level: str = "Session",
index_params: Optional[dict] = None,
search_params: Optional[dict] = None,
drop_old: bool = False,
dynamic_schema = False,
**kwargs: Any,
) -> Milvus:
```
I may later submit a PR for this suggestion. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15690/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15690/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15689 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15689/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15689/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15689/events | https://github.com/langchain-ai/langchain/issues/15689 | 2,069,914,553 | I_kwDOIPDwls57YGO5 | 15,689 | Issue: <How can I extract vector data from pgvector for use as a reference in the next conversation to enable long-term memory functionality for my chatbot?> | {
"login": "yen111445",
"id": 103471919,
"node_id": "U_kgDOBirbLw",
"avatar_url": "https://avatars.githubusercontent.com/u/103471919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yen111445",
"html_url": "https://github.com/yen111445",
"followers_url": "https://api.github.com/users/yen111445/followers",
"following_url": "https://api.github.com/users/yen111445/following{/other_user}",
"gists_url": "https://api.github.com/users/yen111445/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yen111445/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yen111445/subscriptions",
"organizations_url": "https://api.github.com/users/yen111445/orgs",
"repos_url": "https://api.github.com/users/yen111445/repos",
"events_url": "https://api.github.com/users/yen111445/events{/privacy}",
"received_events_url": "https://api.github.com/users/yen111445/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 1 | 2024-01-08T07:57:56 | 2024-01-08T08:06:51 | null | NONE | null | ### Issue you'd like to raise.
import os
from urllib.parse import quote_plus
from langchain.vectorstores.pgvector import PGVector
from langchain.chat_models import ChatOpenAI
from langchain.chains import ConversationalRetrievalChain
from langchain.memory import ConversationTokenBufferMemory
from langchain_community.embeddings import HuggingFaceEmbeddings
from langchain_community.vectorstores.pgvector import DistanceStrategy
os.environ['OPENAI_API_KEY'] = "mykey"
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
CONNECTION_STRING = PGVector.connection_string_from_db_params(
driver=os.environ.get("PGVECTOR_DRIVER", "psycopg2"),
host="192.168.xxx.xx",
port=5432,
database="xxxxx",
user="xxxxxxxxx",
password=quote_plus("xxxx@r"),
)
vectordb = PGVector(embedding_function=embeddings,
collection_name="tmp06",
connection_string=CONNECTION_STRING,
distance_strategy=DistanceStrategy.COSINE,
)
llm_name = "gpt-3.5-turbo"
llm = ChatOpenAI(model_name=llm_name, temperature=0)
memory_token_limit = 100
retriever = vectordb.as_retriever()
memory = ConversationTokenBufferMemory(
llm=llm,
max_token_limit=int(memory_token_limit),
memory_key="chat_history",
return_messages=True
)
qa = ConversationalRetrievalChain.from_llm(
llm,
retriever=retriever,
memory=memory,
verbose=True,
)
chat_history = []
while True:
memory.load_memory_variables({})
question = input('ask:')
result = qa.run({'question': question, 'chat_history': chat_history})
print(result)
chat_history.append([f'User: {question}', f'Ai: {result}'])
print(chat_history)
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
st_history = ' '.join(map(str, chat_history))
res = embeddings.embed_query(st_history)
vectordb.add_vector(res)
best_solution = vectordb.nearest(res, n=1)
print(f'ok: {res[:4]}...')
if question.lower() == 'bye':
break
Traceback (most recent call last):
File "C:\Users\syz\Downloads\ChatBotgpt-3.5-turbo-main\models\1227.py", line 53, in
vectordb.add_vector(res)
^^^^^^^^^^^^^^^^^^^
AttributeError: 'PGVector' object has no attribute 'add_vector'
### Suggestion:
How can I extract vector data from pgvector for use as a reference in the next conversation to enable long-term memory functionality for my chatbot? | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15689/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15689/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15687 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15687/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15687/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15687/events | https://github.com/langchain-ai/langchain/issues/15687 | 2,069,891,752 | I_kwDOIPDwls57YAqo | 15,687 | No close() functionality in langchain.sql_database import SQLDatabase package | {
"login": "dinnudk",
"id": 122612211,
"node_id": "U_kgDOB07p8w",
"avatar_url": "https://avatars.githubusercontent.com/u/122612211?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dinnudk",
"html_url": "https://github.com/dinnudk",
"followers_url": "https://api.github.com/users/dinnudk/followers",
"following_url": "https://api.github.com/users/dinnudk/following{/other_user}",
"gists_url": "https://api.github.com/users/dinnudk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dinnudk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dinnudk/subscriptions",
"organizations_url": "https://api.github.com/users/dinnudk/orgs",
"repos_url": "https://api.github.com/users/dinnudk/repos",
"events_url": "https://api.github.com/users/dinnudk/events{/privacy}",
"received_events_url": "https://api.github.com/users/dinnudk/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] | open | false | null | [] | null | 1 | 2024-01-08T07:38:59 | 2024-01-08T07:41:17 | null | NONE | null | ### Feature request
from langchain_experimental.sql import SQLDatabaseChain
from langchain.sql_database import SQLDatabase
I'm using the above packages to connect the databricks database(SQLDatabse)and passing it to the model chain(SQLDatabaseChain) to generate the SQLQuery. But I want to close the connection of the database after each response. I couldn't find anything to close the database connection using this SQLDatabase package. Even in the SQLDatabase documentation I couldn't find anything. So I need some close() function to close the connection of the database.
### Motivation
Because of this close() functionality not available in the SQLDatabase package. I'm getting (sqlalchemy.exc.OperationalError) so I need to reboot the server to tackle this issue but that was not the feasible solution. And one more thing I can't use other different packages to connect my database because the model chain accept only the SQLDatabase in the parameter.
### Your contribution
Try to add the close() functionality in the SQLDatabase.py file so the database connection can be closed. So that I'll not be facing any issues in the future.
Thanks in advance. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15687/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15687/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15686 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15686/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15686/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15686/events | https://github.com/langchain-ai/langchain/issues/15686 | 2,069,885,942 | I_kwDOIPDwls57X_P2 | 15,686 | Translate User Query and Model Response in RetrievalQA Chain | {
"login": "weissenbacherpwc",
"id": 148848330,
"node_id": "U_kgDOCN8-yg",
"avatar_url": "https://avatars.githubusercontent.com/u/148848330?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/weissenbacherpwc",
"html_url": "https://github.com/weissenbacherpwc",
"followers_url": "https://api.github.com/users/weissenbacherpwc/followers",
"following_url": "https://api.github.com/users/weissenbacherpwc/following{/other_user}",
"gists_url": "https://api.github.com/users/weissenbacherpwc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/weissenbacherpwc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/weissenbacherpwc/subscriptions",
"organizations_url": "https://api.github.com/users/weissenbacherpwc/orgs",
"repos_url": "https://api.github.com/users/weissenbacherpwc/repos",
"events_url": "https://api.github.com/users/weissenbacherpwc/events{/privacy}",
"received_events_url": "https://api.github.com/users/weissenbacherpwc/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 | 1 | 2024-01-08T07:34:14 | 2024-01-08T08:19:26 | null | NONE | null | Hi,
I have built a RAG app with RetrievalQA and now wanted to try out a new approach. I am using an English LLM but the responses should be in German. E.g. if the user asks something in German "Hallo, wer bist du?", the user query should be translated to "Hello, who are you?" before feeding it into the RAG pipeline.
After the model made its response in English "I am an helpful assistant" the output should be translated back to German "Ich bin ein hilfreicher Assistent".
As translator I am using `googletrans==3.1.0a0`
Here is my RetrievalQA Chain:
```
from langchain.chains import RetrievalQA
from langchain.memory import ConversationBufferWindowMemory
import box
import yaml
from src.utils import set_prompt, setup_dbqa, build_retrieval_qa
from src.llm import build_llm
from src.prompts import mistral_prompt
from langchain.vectorstores import FAISS
with open('config/config.yml', 'r', encoding='utf8') as ymlfile:
cfg = box.Box(yaml.safe_load(ymlfile))
def build_retrieval_qaa(llm, prompt, vectordb):
chain_type_kwargs={ "prompt": prompt,
"memory": ConversationBufferWindowMemory(
memory_key="chat_history",
input_key="question",
#output_key="answer",
k=8,
return_messages=True),
"verbose": False
}
dbqa = RetrievalQA.from_chain_type(llm=llm,
chain_type='stuff',
retriever=vectordb,
return_source_documents=cfg.RETURN_SOURCE_DOCUMENTS,
chain_type_kwargs=chain_type_kwargs,
verbose=False
)
return dbqa
llm = build_llm(ANY LLM)
qa_prompt = set_prompt(mistral_prompt)
vectordb = FAISS.load_local(cfg.DB_FAISS_PATH, bge_embeddings)
vectordb = vectordb.as_retriever(search_kwargs={'k': cfg.VECTOR_COUNT, 'score_treshold': cfg.SCORE_TRESHOLD}, search_type="similarity")
dbqa = build_retrieval_qaa(llm, qa_prompt, vectordb)
dbqa("Was bedeutet IPv6 für die Software-Entwicklung?") # Gives me a response
```
The prompt looks like this:
```
mistral_prompt = """
<s> [INST] Du bist RagBot, ein hilfsbereiter Assistent. Antworte nur auf Deutsch. Verwende die folgenden Kontextinformationen, um die Frage am Ende zu beantworten. Wenn du die Antwort nicht kennst, sag einfach, dass du es nicht weisst. Versuche nicht eine Antwort zu erfinden.
###Chat History###: {chat_history}
###Kontext###: {context}
###Frage###: {question}
Antwort: [/INST]
"""
```
So what do I have to change here, to first translate the user query and the prompt from DE to EN, and afterwards the Model response from EN to DE? Specifically I have problems to translate the provided context, chat history and question. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15686/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15686/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15685 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15685/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15685/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15685/events | https://github.com/langchain-ai/langchain/issues/15685 | 2,069,885,649 | I_kwDOIPDwls57X_LR | 15,685 | Issue: <How can I store 'res' in a vector database, and have a vector retrieval query for the best solution every time there's an input, to achieve long-term memory for OpenAI responses? Please help me modify this string: ' prefix> | {
"login": "yen111445",
"id": 103471919,
"node_id": "U_kgDOBirbLw",
"avatar_url": "https://avatars.githubusercontent.com/u/103471919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yen111445",
"html_url": "https://github.com/yen111445",
"followers_url": "https://api.github.com/users/yen111445/followers",
"following_url": "https://api.github.com/users/yen111445/following{/other_user}",
"gists_url": "https://api.github.com/users/yen111445/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yen111445/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yen111445/subscriptions",
"organizations_url": "https://api.github.com/users/yen111445/orgs",
"repos_url": "https://api.github.com/users/yen111445/repos",
"events_url": "https://api.github.com/users/yen111445/events{/privacy}",
"received_events_url": "https://api.github.com/users/yen111445/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 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 | 2024-01-08T07:33:59 | 2024-01-08T07:55:22 | null | NONE | null | ### Issue you'd like to raise.
import os
from urllib.parse import quote_plus
from langchain.vectorstores.pgvector import PGVector
from langchain.chat_models import ChatOpenAI
from langchain.chains import ConversationalRetrievalChain
from langchain.memory import ConversationTokenBufferMemory
from langchain_community.embeddings import HuggingFaceEmbeddings
from langchain_community.vectorstores.pgvector import DistanceStrategy
os.environ['OPENAI_API_KEY'] = "mykey"
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
CONNECTION_STRING = PGVector.connection_string_from_db_params(
driver=os.environ.get("PGVECTOR_DRIVER", "psycopg2"),
host="192.168.xxx.xx",
port=5432,
database="xxxxx",
user="xxxxxxxxx",
password=quote_plus("xxxxxr"),
)
vectordb = PGVector(embedding_function=embeddings,
collection_name="tmp06",
connection_string=CONNECTION_STRING,
distance_strategy=DistanceStrategy.COSINE,
)
llm_name = "gpt-3.5-turbo"
llm = ChatOpenAI(model_name=llm_name, temperature=0)
memory_token_limit = 100
retriever = vectordb.as_retriever()
memory = ConversationTokenBufferMemory(
llm=llm,
max_token_limit=int(memory_token_limit),
memory_key="chat_history",
return_messages=True
)
qa = ConversationalRetrievalChain.from_llm(
llm,
retriever=retriever,
memory=memory,
verbose=True,
)
chat_history = []
while True:
memory.load_memory_variables({})
question = input('ask:')
result = qa.run({'question': question, 'chat_history': chat_history})
print(result)
chat_history.append([f'User: {question}', f'Ai: {result}'])
print(chat_history)
embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
st_history = ' '.join(map(str, chat_history))
res = embeddings.embed_query(st_history) ########################ˇ
print(f'ok: {res[:4]}...')
if question.lower() == 'bye':
break
How can I store 'res' in a vector database, and have a vector retrieval query for the best solution every time there's an input, to achieve long-term memory for OpenAI responses? Please help me modify this string translates to "Please help me see if there are any errors" in English
### Suggestion:
How can I store 'res' in a vector database, and have a vector retrieval query for the best solution every time there's an input, to achieve long-term memory for OpenAI responses? Please help me modify this string translates to "Please help me see if there are any errors" in English | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15685/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15685/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15684 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15684/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15684/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15684/events | https://github.com/langchain-ai/langchain/issues/15684 | 2,069,861,793 | I_kwDOIPDwls57X5Wh | 15,684 | How to use tools for tasks that are dependent on each other | {
"login": "jqsl2012",
"id": 6802595,
"node_id": "MDQ6VXNlcjY4MDI1OTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/6802595?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jqsl2012",
"html_url": "https://github.com/jqsl2012",
"followers_url": "https://api.github.com/users/jqsl2012/followers",
"following_url": "https://api.github.com/users/jqsl2012/following{/other_user}",
"gists_url": "https://api.github.com/users/jqsl2012/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jqsl2012/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jqsl2012/subscriptions",
"organizations_url": "https://api.github.com/users/jqsl2012/orgs",
"repos_url": "https://api.github.com/users/jqsl2012/repos",
"events_url": "https://api.github.com/users/jqsl2012/events{/privacy}",
"received_events_url": "https://api.github.com/users/jqsl2012/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 1 | 2024-01-08T07:14:13 | 2024-01-08T07:24:05 | null | NONE | null | ### Issue you'd like to raise.
User: Help me reset my password
Agent: Please provide your account number
User: My account is Axxx
Agent: SMS verification code has been sent, please provide SMS verification code
User: 091839
Agent: Account password has been reset to 123456
The Agent is responsible for resetting the password for the user. In this example, the Agent needs to communicate back and forth with the user, such as providing an account to send a verification code, and providing a verification code to reset the password.
I added 4 tools, but when I asked any questions, all the tools were used once, which was not what I expected. I wanted to use the corresponding tool according to the specific situation.
```
> Entering new AgentExecutor chain...
{
"action": "ResetPasswordAskTool",
"action_input": "Axxx"
}
Observation: 请提供下您的账号:
Thought:/usr/local/lib/python3.10/dist-packages/langchain_core/_api/deprecation.py:189: LangChainDeprecationWarning: The function `__call__` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use invoke instead.
warn_deprecated(
{
"action": "ReceiveUserAccountTool",
"action_input": "Axxx"
}
Observation: 已经接收到您的账号,您提供的账号为:Axxx
Thought:/usr/local/lib/python3.10/dist-packages/langchain_core/_api/deprecation.py:189: LangChainDeprecationWarning: The function `__call__` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use invoke instead.
warn_deprecated(
{
"action": "SendSmsTool",
"action_input": "Axxx"
}
Observation: 短信验证码已发出,请查看手机收到的重置密码的短信验证码,并提供给我。
Thought:/usr/local/lib/python3.10/dist-packages/langchain_core/_api/deprecation.py:189: LangChainDeprecationWarning: The function `__call__` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use invoke instead.
warn_deprecated(
{
"action": "ResetPasswordTool",
"action_input": "123456"
}
Observation: 密码已经重置为:123321
Thought:/usr/local/lib/python3.10/dist-packages/langchain_core/_api/deprecation.py:189: LangChainDeprecationWarning: The function `__call__` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use invoke instead.
warn_deprecated(
{
"action": "Final Answer",
"action_input": "密码已经重置为:123321"
}
> Finished chain.
intermediate_steps= [(AgentAction(tool='ResetPasswordAskTool', tool_input='Axxx', log='{\n "action": "ResetPasswordAskTool",\n "action_input": "Axxx"\n}'), '请提供下您的账号:'), (AgentAction(tool='ReceiveUserAccountTool', tool_input='Axxx', log='{\n "action": "ReceiveUserAccountTool",\n "action_input": "Axxx"\n}'), '已经接收到您的账号,您提供的账号为:Axxx'), (AgentAction(tool='SendSmsTool', tool_input='Axxx', log='{\n "action": "SendSmsTool",\n "action_input": "Axxx"\n}'), '短信验证码已发出,请查看手机收到的重置密码的短信验证码,并提供给我。'), (AgentAction(tool='ResetPasswordTool', tool_input='123456', log='{\n "action": "ResetPasswordTool",\n "action_input": "123456"\n}'), '密码已经重置为:123321')]
response output= 密码已经重置为:123321
```
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15684/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15684/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15683 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15683/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15683/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15683/events | https://github.com/langchain-ai/langchain/pull/15683 | 2,069,796,058 | PR_kwDOIPDwls5jcNMM | 15,683 | community: Add support of "http" URI for Milvus (#12710) | {
"login": "ohbeep",
"id": 28886507,
"node_id": "MDQ6VXNlcjI4ODg2NTA3",
"avatar_url": "https://avatars.githubusercontent.com/u/28886507?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ohbeep",
"html_url": "https://github.com/ohbeep",
"followers_url": "https://api.github.com/users/ohbeep/followers",
"following_url": "https://api.github.com/users/ohbeep/following{/other_user}",
"gists_url": "https://api.github.com/users/ohbeep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ohbeep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ohbeep/subscriptions",
"organizations_url": "https://api.github.com/users/ohbeep/orgs",
"repos_url": "https://api.github.com/users/ohbeep/repos",
"events_url": "https://api.github.com/users/ohbeep/events{/privacy}",
"received_events_url": "https://api.github.com/users/ohbeep/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": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-08T06:32:02 | 2024-01-12T05:55:35 | 2024-01-12T05:55:35 | CONTRIBUTOR | null | - **Description:** Add support of HTTP URI for Milvus
- **Issue:** #12710
- **Dependencies:** N/A,
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15683/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15683/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15683",
"html_url": "https://github.com/langchain-ai/langchain/pull/15683",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15683.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15683.patch",
"merged_at": "2024-01-12T05:55:35"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15682 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15682/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15682/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15682/events | https://github.com/langchain-ai/langchain/pull/15682 | 2,069,779,835 | PR_kwDOIPDwls5jcJg8 | 15,682 | docs: add LangGraph | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-08T06:21:26 | 2024-01-08T16:38:16 | 2024-01-08T16:38:15 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15682/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15682/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15682",
"html_url": "https://github.com/langchain-ai/langchain/pull/15682",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15682.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15682.patch",
"merged_at": "2024-01-08T16:38:15"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15681 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15681/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15681/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15681/events | https://github.com/langchain-ai/langchain/pull/15681 | 2,069,725,580 | PR_kwDOIPDwls5jb9NP | 15,681 | community[patch]: update oai deprecation message | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-08T05:44:25 | 2024-01-09T19:36:59 | 2024-01-09T19:36:58 | COLLABORATOR | null | addresses #15674 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15681/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15681/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15681",
"html_url": "https://github.com/langchain-ai/langchain/pull/15681",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15681.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15681.patch",
"merged_at": "2024-01-09T19:36:58"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15679 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15679/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15679/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15679/events | https://github.com/langchain-ai/langchain/issues/15679 | 2,069,692,507 | I_kwDOIPDwls57XQBb | 15,679 | AgentExecutor.from_agent_and_tools(agent=agent, tools=tools) -> throws KeyError. | {
"login": "krish240574",
"id": 4938230,
"node_id": "MDQ6VXNlcjQ5MzgyMzA=",
"avatar_url": "https://avatars.githubusercontent.com/u/4938230?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/krish240574",
"html_url": "https://github.com/krish240574",
"followers_url": "https://api.github.com/users/krish240574/followers",
"following_url": "https://api.github.com/users/krish240574/following{/other_user}",
"gists_url": "https://api.github.com/users/krish240574/gists{/gist_id}",
"starred_url": "https://api.github.com/users/krish240574/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/krish240574/subscriptions",
"organizations_url": "https://api.github.com/users/krish240574/orgs",
"repos_url": "https://api.github.com/users/krish240574/repos",
"events_url": "https://api.github.com/users/krish240574/events{/privacy}",
"received_events_url": "https://api.github.com/users/krish240574/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | closed | false | null | [] | null | 4 | 2024-01-08T05:19:09 | 2024-01-08T05:43:30 | 2024-01-08T05:43:18 | NONE | null | ### System Info
Langchain 0.1.0
Python 3.10.12
### Who can help?
@hwchase17
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
from langchain.agents.agent_toolkits import O365Toolkit
otoolkit = O365Toolkit()
o365_tools = otoolkit.get_tools()
tools.append(o365_tools)
from langchain_experimental.openai_assistant import OpenAIAssistantRunnable
agent = OpenAIAssistantRunnable.create_assistant(
name="My assistant",
# instructions="""You are a admin agent, tasked with the following jobs:
1. Read and post messages on Microsoft 365 Outlook"""
tools=tools,
model="gpt-4-1106-preview",
as_agent=True
)
from langchain.agents.agent import AgentExecutor
agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools)
from langchain.agents.agent import AgentExecutor
agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools)
-------------------------------------------------------------------------------------------------------------------------------
KeyError Traceback (most recent call last)
Cell In[13], line 3
1 from langchain.agents.agent import AgentExecutor
----> 3 agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools)
File ~/smith/lib/python3.10/site-packages/langchain/agents/agent.py:891, in AgentExecutor.from_agent_and_tools(cls, agent, tools, callbacks, **kwargs)
882 @classmethod
883 def from_agent_and_tools(
884 cls,
(...)
888 **kwargs: Any,
889 ) -> AgentExecutor:
890 """Create from agent and tools."""
--> 891 return cls(
892 agent=agent,
893 tools=tools,
894 callbacks=callbacks,
895 **kwargs,
896 )
File ~/smith/lib/python3.10/site-packages/langchain_core/load/serializable.py:107, in Serializable.__init__(self, **kwargs)
106 def __init__(self, **kwargs: Any) -> None:
--> 107 super().__init__(**kwargs)
108 self._lc_kwargs = kwargs
File ~/smith/lib/python3.10/site-packages/pydantic/main.py:339, in pydantic.main.BaseModel.__init__()
File ~/smith/lib/python3.10/site-packages/pydantic/main.py:1102, in pydantic.main.validate_model()
File ~/smith/lib/python3.10/site-packages/langchain/agents/agent.py:916, in AgentExecutor.validate_return_direct_tool(cls, values)
914 """Validate that tools are compatible with agent."""
915 agent = values["agent"]
--> 916 tools = values["tools"]
917 if isinstance(agent, BaseMultiActionAgent):
918 for tool in tools:
KeyError: 'tools'
### Expected behavior
agent_executor should get created properly, this was working a week ago. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15679/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15679/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15678 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15678/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15678/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15678/events | https://github.com/langchain-ai/langchain/pull/15678 | 2,069,690,950 | PR_kwDOIPDwls5jb1WV | 15,678 | community[patch]: Release 0.0.10 | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-08T05:17:56 | 2024-01-08T05:24:46 | 2024-01-08T05:24:46 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15678/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15678/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15678",
"html_url": "https://github.com/langchain-ai/langchain/pull/15678",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15678.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15678.patch",
"merged_at": "2024-01-08T05:24:46"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15677 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15677/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15677/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15677/events | https://github.com/langchain-ai/langchain/pull/15677 | 2,069,668,116 | PR_kwDOIPDwls5jbwJ2 | 15,677 | core[patch]: Release 0.1.8 | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2024-01-08T05:00:17 | 2024-01-08T05:05:13 | 2024-01-08T05:05:12 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15677/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15677/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15677",
"html_url": "https://github.com/langchain-ai/langchain/pull/15677",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15677.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15677.patch",
"merged_at": "2024-01-08T05:05:12"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15676 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15676/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15676/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15676/events | https://github.com/langchain-ai/langchain/pull/15676 | 2,069,663,393 | PR_kwDOIPDwls5jbvFE | 15,676 | core[patch]: release 0.0.8 | {
"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 | 0 | 2024-01-08T04:56:36 | 2024-01-08T04:58:14 | 2024-01-08T04:58:14 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15676/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15676/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15676",
"html_url": "https://github.com/langchain-ai/langchain/pull/15676",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15676.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15676.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15675 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15675/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15675/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15675/events | https://github.com/langchain-ai/langchain/pull/15675 | 2,069,623,538 | PR_kwDOIPDwls5jbl86 | 15,675 | community: fix myscale delete function bug | {
"login": "IANTHEREAL",
"id": 10701973,
"node_id": "MDQ6VXNlcjEwNzAxOTcz",
"avatar_url": "https://avatars.githubusercontent.com/u/10701973?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/IANTHEREAL",
"html_url": "https://github.com/IANTHEREAL",
"followers_url": "https://api.github.com/users/IANTHEREAL/followers",
"following_url": "https://api.github.com/users/IANTHEREAL/following{/other_user}",
"gists_url": "https://api.github.com/users/IANTHEREAL/gists{/gist_id}",
"starred_url": "https://api.github.com/users/IANTHEREAL/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/IANTHEREAL/subscriptions",
"organizations_url": "https://api.github.com/users/IANTHEREAL/orgs",
"repos_url": "https://api.github.com/users/IANTHEREAL/repos",
"events_url": "https://api.github.com/users/IANTHEREAL/events{/privacy}",
"received_events_url": "https://api.github.com/users/IANTHEREAL/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2024-01-08T04:24:57 | 2024-01-09T00:24:29 | 2024-01-08T20:26:30 | CONTRIBUTOR | null | Now the SQL used to delete vector doc from myscale is as follow:
```sql
DELETE FROM collection WHERE id = '1' AND id = '2' AND id = '3'
```
But the expected one should be
```sql
DELETE FROM collection WHERE id IN ('1', '2', '3')
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15675/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15675/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15675",
"html_url": "https://github.com/langchain-ai/langchain/pull/15675",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15675.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15675.patch",
"merged_at": "2024-01-08T20:26:29"
} |