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/15112 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15112/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15112/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15112/events | https://github.com/langchain-ai/langchain/issues/15112 | 2,054,952,674 | I_kwDOIPDwls56fBbi | 15,112 | add support for embedding models with adapters | {
"login": "antonkulaga",
"id": 842436,
"node_id": "MDQ6VXNlcjg0MjQzNg==",
"avatar_url": "https://avatars.githubusercontent.com/u/842436?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/antonkulaga",
"html_url": "https://github.com/antonkulaga",
"followers_url": "https://api.github.com/users/antonkulaga/followers",
"following_url": "https://api.github.com/users/antonkulaga/following{/other_user}",
"gists_url": "https://api.github.com/users/antonkulaga/gists{/gist_id}",
"starred_url": "https://api.github.com/users/antonkulaga/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/antonkulaga/subscriptions",
"organizations_url": "https://api.github.com/users/antonkulaga/orgs",
"repos_url": "https://api.github.com/users/antonkulaga/repos",
"events_url": "https://api.github.com/users/antonkulaga/events{/privacy}",
"received_events_url": "https://api.github.com/users/antonkulaga/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 | 2023-12-24T01:18:05 | 2023-12-27T11:02:21 | null | NONE | null | ### Feature request
It would be great to have adapters support in huggingface embedding class
### Motivation
Many really good embedding models have special adapters for retrieval, for example specter2 which is a leading embedding for scientific texts have many adapters, for example https://huggingface.co./allenai/specter2_aug2023refresh
and current huggingface embedding implementations does not allow using them
### Your contribution
so far I am just implementing it in ugly way in my projects, not sure if/when I will have time for proper PR | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15112/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15112/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15111 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15111/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15111/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15111/events | https://github.com/langchain-ai/langchain/pull/15111 | 2,054,921,600 | PR_kwDOIPDwls5itC9Y | 15,111 | community:Lazy load wikipedia dump file | {
"login": "cjaniake",
"id": 6752438,
"node_id": "MDQ6VXNlcjY3NTI0Mzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/6752438?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cjaniake",
"html_url": "https://github.com/cjaniake",
"followers_url": "https://api.github.com/users/cjaniake/followers",
"following_url": "https://api.github.com/users/cjaniake/following{/other_user}",
"gists_url": "https://api.github.com/users/cjaniake/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cjaniake/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cjaniake/subscriptions",
"organizations_url": "https://api.github.com/users/cjaniake/orgs",
"repos_url": "https://api.github.com/users/cjaniake/repos",
"events_url": "https://api.github.com/users/cjaniake/events{/privacy}",
"received_events_url": "https://api.github.com/users/cjaniake/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-23T22:15:27 | 2024-01-02T02:38:27 | 2024-01-01T22:02:57 | CONTRIBUTOR | null | **Description:** the MWDumpLoader implementation currently does not support the lazy_load method, and the files are usually very large. We are proposing refactoring the load function, extracting two private functions with the functionality of loading the dump file and parsing a single page, to reuse the code in the lazy_load implementation.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15111/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15111/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15111",
"html_url": "https://github.com/langchain-ai/langchain/pull/15111",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15111.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15111.patch",
"merged_at": "2024-01-01T22:02:57"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15110 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15110/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15110/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15110/events | https://github.com/langchain-ai/langchain/pull/15110 | 2,054,914,042 | PR_kwDOIPDwls5itBe6 | 15,110 | community: Add streaming support for together AI LLM integration | {
"login": "Yossef-Dawoad",
"id": 62189386,
"node_id": "MDQ6VXNlcjYyMTg5Mzg2",
"avatar_url": "https://avatars.githubusercontent.com/u/62189386?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Yossef-Dawoad",
"html_url": "https://github.com/Yossef-Dawoad",
"followers_url": "https://api.github.com/users/Yossef-Dawoad/followers",
"following_url": "https://api.github.com/users/Yossef-Dawoad/following{/other_user}",
"gists_url": "https://api.github.com/users/Yossef-Dawoad/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Yossef-Dawoad/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Yossef-Dawoad/subscriptions",
"organizations_url": "https://api.github.com/users/Yossef-Dawoad/orgs",
"repos_url": "https://api.github.com/users/Yossef-Dawoad/repos",
"events_url": "https://api.github.com/users/Yossef-Dawoad/events{/privacy}",
"received_events_url": "https://api.github.com/users/Yossef-Dawoad/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": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 2 | 2023-12-23T21:40:30 | 2024-01-01T23:14:40 | null | NONE | 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.
-->
- **Description:** Adding Streaming Support for Together AI LLM integration with the universal `streaming= True` flag
with an updated notebook example to show the user that the model supports streaming and how it's done.
- **Issue:** implementing #15109
- **Dependencies:** No addtional dependencies
- **Twitter handle:** @[YossefDawoad](https://twitter.com/YossefDawoad)
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15110/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15110/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15110",
"html_url": "https://github.com/langchain-ai/langchain/pull/15110",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15110.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15110.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15109 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15109/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15109/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15109/events | https://github.com/langchain-ai/langchain/issues/15109 | 2,054,881,350 | I_kwDOIPDwls56ewBG | 15,109 | [improvement] Add Streaming Support for Together AI | {
"login": "Yossef-Dawoad",
"id": 62189386,
"node_id": "MDQ6VXNlcjYyMTg5Mzg2",
"avatar_url": "https://avatars.githubusercontent.com/u/62189386?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Yossef-Dawoad",
"html_url": "https://github.com/Yossef-Dawoad",
"followers_url": "https://api.github.com/users/Yossef-Dawoad/followers",
"following_url": "https://api.github.com/users/Yossef-Dawoad/following{/other_user}",
"gists_url": "https://api.github.com/users/Yossef-Dawoad/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Yossef-Dawoad/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Yossef-Dawoad/subscriptions",
"organizations_url": "https://api.github.com/users/Yossef-Dawoad/orgs",
"repos_url": "https://api.github.com/users/Yossef-Dawoad/repos",
"events_url": "https://api.github.com/users/Yossef-Dawoad/events{/privacy}",
"received_events_url": "https://api.github.com/users/Yossef-Dawoad/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 | 2023-12-23T19:48:33 | 2023-12-23T19:50:47 | null | NONE | null | ### Feature request
Add streaming support for Together AI Endpoints in Langchain. The official endpoint supports streaming with `stream_tokens` keyword, which should be not that hard to implement `_stream` method and add streaming support with the `streaming = True` flag
this is what the endpoint output when `stream_token` is set to `true`
```
data: {
"choices": [{"text": " the"}],
"request_id": "83a18448f8c030ab-SEA",
"token": {"engine": "", "id": 253, "logprob": 0, "special": false},
"id": "671a9e090c3fe06af8ab9445a46684298b6f5e5b458c4ff8a145bee456eb77cf",
}
data: {
"choices": [{"text": " French"}],
"request_id": "83a18448f8c030ab-SEA",
"token": {"engine": "", "id": 5112, "logprob": -0.8027344, "special": false},
"id": "671a9e090c3fe06af8ab9445a46684298b6f5e5b458c4ff8a145bee456eb77cf",
}
...
data: [DONE]
```
supports
### Motivation
together LLM integration does not support streaming although its endpoints are supported officially, adding streaming adds a huge benefit to user experience and quickly shows the model output generation
### Your contribution
implementing `_stream` method and processing the output of the API response, this can be done like this:
```python
payload = {
...,
"stream_tokens": True
}
response = requests.post(..., payload, stream=True)
for line in response.iter_lines():
....
yield GenerationChunk(
text = line["choices"][0]["text"],
...
) | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15109/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/15109/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15108 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15108/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15108/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15108/events | https://github.com/langchain-ai/langchain/pull/15108 | 2,054,879,183 | PR_kwDOIPDwls5is6T2 | 15,108 | refactored `CacheBackedEmbeddings`, `langchain.storage` | {
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] | open | false | null | [] | null | 2 | 2023-12-23T19:37:23 | 2024-01-17T19:03:54 | null | COLLABORATOR | null | Refactored `CacheBackedEmbeddings`. Moved it from `langchain` to `langchain_core` (by @eyurtsev recommendation). As a result, [`langchain.embeddings` namespace completely removed](https://api.python.langchain.com/en/latest/langchain_api_reference.html#module-langchain.embeddings).
There was a dependency on `BaseStore`. So, I have also moved `langchain.storage` core artifacts to `langchain_core.storage`. [`langchain.storage` also](https://api.python.langchain.com/en/latest/langchain_api_reference.html#module-langchain.storage) completely removed. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15108/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15108/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15108",
"html_url": "https://github.com/langchain-ai/langchain/pull/15108",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15108.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15108.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15107 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15107/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15107/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15107/events | https://github.com/langchain-ai/langchain/pull/15107 | 2,054,833,173 | PR_kwDOIPDwls5isxeh | 15,107 | langchain/libs/partners/google-genai/langchain_google_genai: safety_settings added to ChatGoogleGenerativeAI model in the langchain_google_genai library | {
"login": "7vansh7",
"id": 115992070,
"node_id": "U_kgDOBunmBg",
"avatar_url": "https://avatars.githubusercontent.com/u/115992070?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/7vansh7",
"html_url": "https://github.com/7vansh7",
"followers_url": "https://api.github.com/users/7vansh7/followers",
"following_url": "https://api.github.com/users/7vansh7/following{/other_user}",
"gists_url": "https://api.github.com/users/7vansh7/gists{/gist_id}",
"starred_url": "https://api.github.com/users/7vansh7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/7vansh7/subscriptions",
"organizations_url": "https://api.github.com/users/7vansh7/orgs",
"repos_url": "https://api.github.com/users/7vansh7/repos",
"events_url": "https://api.github.com/users/7vansh7/events{/privacy}",
"received_events_url": "https://api.github.com/users/7vansh7/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
},
{
"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 | 6 | 2023-12-23T16:18:47 | 2024-01-17T14:07:55 | null | NONE | null | - **Description** -> This PR **_adds safety_settings parameter_** to the **_ChatGoogleGenerativeAI_** class. The safety_settings parameter is originally there in the google.generativeai library's GenerativeModel class
- **Issue** -> https://github.com/langchain-ai/langchain/issues/15095
- **Dependencies** -> None added | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15107/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15107/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15107",
"html_url": "https://github.com/langchain-ai/langchain/pull/15107",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15107.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15107.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15106 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15106/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15106/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15106/events | https://github.com/langchain-ai/langchain/pull/15106 | 2,054,831,740 | PR_kwDOIPDwls5isxMV | 15,106 | docs: updated document for 'Return Source Documents' Functionality | {
"login": "cyai",
"id": 83634399,
"node_id": "MDQ6VXNlcjgzNjM0Mzk5",
"avatar_url": "https://avatars.githubusercontent.com/u/83634399?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cyai",
"html_url": "https://github.com/cyai",
"followers_url": "https://api.github.com/users/cyai/followers",
"following_url": "https://api.github.com/users/cyai/following{/other_user}",
"gists_url": "https://api.github.com/users/cyai/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cyai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cyai/subscriptions",
"organizations_url": "https://api.github.com/users/cyai/orgs",
"repos_url": "https://api.github.com/users/cyai/repos",
"events_url": "https://api.github.com/users/cyai/events{/privacy}",
"received_events_url": "https://api.github.com/users/cyai/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-23T16:13:04 | 2024-01-02T02:37:32 | 2024-01-01T22:03:16 | 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.
-->
- **Description:** updated the outdated code in the document that was generating the error,
- **Issue:** #15086 ,
- **Dependencies:** N/A,
- **Twitter handle:** [@vardhaman722](https://twitter.com/vardhaman722)
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15106/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15106/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15106",
"html_url": "https://github.com/langchain-ai/langchain/pull/15106",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15106.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15106.patch",
"merged_at": "2024-01-01T22:03:16"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15105 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15105/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15105/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15105/events | https://github.com/langchain-ai/langchain/pull/15105 | 2,054,829,474 | PR_kwDOIPDwls5iswwg | 15,105 | community: Integration of New Chat Model Based on ChatGLM3 via ZhipuAI API | {
"login": "linancn",
"id": 31125281,
"node_id": "MDQ6VXNlcjMxMTI1Mjgx",
"avatar_url": "https://avatars.githubusercontent.com/u/31125281?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/linancn",
"html_url": "https://github.com/linancn",
"followers_url": "https://api.github.com/users/linancn/followers",
"following_url": "https://api.github.com/users/linancn/following{/other_user}",
"gists_url": "https://api.github.com/users/linancn/gists{/gist_id}",
"starred_url": "https://api.github.com/users/linancn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/linancn/subscriptions",
"organizations_url": "https://api.github.com/users/linancn/orgs",
"repos_url": "https://api.github.com/users/linancn/repos",
"events_url": "https://api.github.com/users/linancn/events{/privacy}",
"received_events_url": "https://api.github.com/users/linancn/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-23T16:05:03 | 2024-01-02T19:38:28 | 2024-01-01T23:17:03 | CONTRIBUTOR | null | - **Description:**
- This PR introduces a significant enhancement to the LangChain project by integrating a new chat model powered by the third-generation base large model, ChatGLM3, via the zhipuai API.
- This advanced model supports functionalities like function calls, code interpretation, and intelligent Agent capabilities.
- The additions include the chat model itself, comprehensive documentation in the form of Python notebook docs, and thorough testing with both unit and integrated tests.
- **Dependencies:** This update relies on the ZhipuAI package as a key dependency.
- **Twitter handle:** If this PR receives spotlight attention, we would be honored to receive a mention for our integration of the advanced ChatGLM3 model via the ZhipuAI API. Kindly tag us at @kaiwu.
To ensure quality and standards, we have performed extensive linting and testing. Commands such as make format, make lint, and make test have been run from the root of the modified package to ensure compliance with LangChain's coding standards.
TO DO: Continue refining and enhancing both the unit tests and integrated tests. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15105/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15105/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15105",
"html_url": "https://github.com/langchain-ai/langchain/pull/15105",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15105.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15105.patch",
"merged_at": "2024-01-01T23:17:03"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15104 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15104/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15104/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15104/events | https://github.com/langchain-ai/langchain/pull/15104 | 2,054,819,921 | PR_kwDOIPDwls5isu83 | 15,104 | fix: call correct stream method in ollama | {
"login": "David-Kristek",
"id": 77566262,
"node_id": "MDQ6VXNlcjc3NTY2MjYy",
"avatar_url": "https://avatars.githubusercontent.com/u/77566262?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/David-Kristek",
"html_url": "https://github.com/David-Kristek",
"followers_url": "https://api.github.com/users/David-Kristek/followers",
"following_url": "https://api.github.com/users/David-Kristek/following{/other_user}",
"gists_url": "https://api.github.com/users/David-Kristek/gists{/gist_id}",
"starred_url": "https://api.github.com/users/David-Kristek/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/David-Kristek/subscriptions",
"organizations_url": "https://api.github.com/users/David-Kristek/orgs",
"repos_url": "https://api.github.com/users/David-Kristek/repos",
"events_url": "https://api.github.com/users/David-Kristek/events{/privacy}",
"received_events_url": "https://api.github.com/users/David-Kristek/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-23T15:27:11 | 2024-01-02T02:35:32 | 2024-01-01T22:03:53 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15104/reactions",
"total_count": 3,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 3,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15104/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15104",
"html_url": "https://github.com/langchain-ai/langchain/pull/15104",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15104.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15104.patch",
"merged_at": "2024-01-01T22:03:53"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15103 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15103/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15103/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15103/events | https://github.com/langchain-ai/langchain/pull/15103 | 2,054,815,974 | PR_kwDOIPDwls5isuNE | 15,103 | community: normalize bedrock embeddings | {
"login": "dmenini",
"id": 48685774,
"node_id": "MDQ6VXNlcjQ4Njg1Nzc0",
"avatar_url": "https://avatars.githubusercontent.com/u/48685774?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dmenini",
"html_url": "https://github.com/dmenini",
"followers_url": "https://api.github.com/users/dmenini/followers",
"following_url": "https://api.github.com/users/dmenini/following{/other_user}",
"gists_url": "https://api.github.com/users/dmenini/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dmenini/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dmenini/subscriptions",
"organizations_url": "https://api.github.com/users/dmenini/orgs",
"repos_url": "https://api.github.com/users/dmenini/repos",
"events_url": "https://api.github.com/users/dmenini/events{/privacy}",
"received_events_url": "https://api.github.com/users/dmenini/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | open | false | null | [] | null | 2 | 2023-12-23T15:12:44 | 2024-01-17T12:07:15 | null | CONTRIBUTOR | null | In this PR I added a post-processing function to normalize the embeddings. This happens only if the new `normalize` flag is `True`. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15103/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15103/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15103",
"html_url": "https://github.com/langchain-ai/langchain/pull/15103",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15103.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15103.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15102 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15102/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15102/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15102/events | https://github.com/langchain-ai/langchain/pull/15102 | 2,054,807,397 | PR_kwDOIPDwls5isslO | 15,102 | Refactor: use SecretStr for tongyi chat-model | {
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 4 | 2023-12-23T14:41:47 | 2024-01-03T02:19:14 | 2024-01-02T23:45:23 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15102/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15102/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15102",
"html_url": "https://github.com/langchain-ai/langchain/pull/15102",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15102.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15102.patch",
"merged_at": "2024-01-02T23:45:23"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15101 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15101/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15101/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15101/events | https://github.com/langchain-ai/langchain/pull/15101 | 2,054,805,983 | PR_kwDOIPDwls5issT3 | 15,101 | Refactor: use SecretStr for GPTRouter chat-model | {
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-23T14:36:11 | 2024-01-02T19:39:02 | 2024-01-01T23:20:26 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15101/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15101/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15101",
"html_url": "https://github.com/langchain-ai/langchain/pull/15101",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15101.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15101.patch",
"merged_at": "2024-01-01T23:20:26"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15100 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15100/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15100/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15100/events | https://github.com/langchain-ai/langchain/pull/15100 | 2,054,805,254 | PR_kwDOIPDwls5issLU | 15,100 | Refactor: use SecretStr for palm chat-model | {
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 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 | 2023-12-23T14:33:29 | 2024-01-02T19:36:28 | 2024-01-01T23:21:42 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15100/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15100/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15100",
"html_url": "https://github.com/langchain-ai/langchain/pull/15100",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15100.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15100.patch",
"merged_at": "2024-01-01T23:21:42"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15099 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15099/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15099/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15099/events | https://github.com/langchain-ai/langchain/pull/15099 | 2,054,783,263 | PR_kwDOIPDwls5isn7S | 15,099 | community: added support for Guardrails for Amazon Bedrock | {
"login": "harelix",
"id": 2310608,
"node_id": "MDQ6VXNlcjIzMTA2MDg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2310608?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/harelix",
"html_url": "https://github.com/harelix",
"followers_url": "https://api.github.com/users/harelix/followers",
"following_url": "https://api.github.com/users/harelix/following{/other_user}",
"gists_url": "https://api.github.com/users/harelix/gists{/gist_id}",
"starred_url": "https://api.github.com/users/harelix/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/harelix/subscriptions",
"organizations_url": "https://api.github.com/users/harelix/orgs",
"repos_url": "https://api.github.com/users/harelix/repos",
"events_url": "https://api.github.com/users/harelix/events{/privacy}",
"received_events_url": "https://api.github.com/users/harelix/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": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
},
{
"id": 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 | 9 | 2023-12-23T13:06:59 | 2024-01-17T12:09:19 | null | NONE | null | Added support for optionally supplying 'Guardrails for Amazon Bedrock' on both types of model invocations (batch/regular and streaming) and for all models supported by the Amazon Bedrock service.
@baskaryan
```python
llm = Bedrock(model_id="<model_id>", client=bedrock,
model_kwargs={},
guardrails={"id": " <guardrail_id>",
"version": "<guardrail_version>",
"trace": True}, callbacks=[BedrockAsyncCallbackHandler()])
class BedrockAsyncCallbackHandler(AsyncCallbackHandler):
"""Async callback handler that can be used to handle callbacks from langchain."""
async def on_llm_error(
self,
error: BaseException,
**kwargs: Any,
) -> Any:
reason = kwargs.get("reason")
if reason == "GUARDRAIL_INTERVENED":
# kwargs contains additional trace information sent by 'Guardrails for Bedrock' service.
print(f"""Guardrails: {kwargs}""")
# streaming
llm = Bedrock(model_id="<model_id>", client=bedrock,
model_kwargs={},
streaming=True,
guardrails={"id": "<guardrail_id>",
"version": "<guardrail_version>"})
```
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15099/reactions",
"total_count": 13,
"+1": 9,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 4
} | https://api.github.com/repos/langchain-ai/langchain/issues/15099/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15099",
"html_url": "https://github.com/langchain-ai/langchain/pull/15099",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15099.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15099.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15098 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15098/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15098/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15098/events | https://github.com/langchain-ai/langchain/pull/15098 | 2,054,780,254 | PR_kwDOIPDwls5isnVR | 15,098 | add: QuipLoader in langchain.document_loaders _init_.py | {
"login": "shufanhao",
"id": 11540660,
"node_id": "MDQ6VXNlcjExNTQwNjYw",
"avatar_url": "https://avatars.githubusercontent.com/u/11540660?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shufanhao",
"html_url": "https://github.com/shufanhao",
"followers_url": "https://api.github.com/users/shufanhao/followers",
"following_url": "https://api.github.com/users/shufanhao/following{/other_user}",
"gists_url": "https://api.github.com/users/shufanhao/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shufanhao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shufanhao/subscriptions",
"organizations_url": "https://api.github.com/users/shufanhao/orgs",
"repos_url": "https://api.github.com/users/shufanhao/repos",
"events_url": "https://api.github.com/users/shufanhao/events{/privacy}",
"received_events_url": "https://api.github.com/users/shufanhao/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-23T12:54:51 | 2023-12-25T05:49:30 | 2023-12-25T05:49:30 | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15098/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15098/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15098",
"html_url": "https://github.com/langchain-ai/langchain/pull/15098",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15098.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15098.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15097 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15097/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15097/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15097/events | https://github.com/langchain-ai/langchain/issues/15097 | 2,054,765,710 | I_kwDOIPDwls56eTyO | 15,097 | Return similarity score ConversationalRetrievalChain | {
"login": "rangelrey",
"id": 53145192,
"node_id": "MDQ6VXNlcjUzMTQ1MTky",
"avatar_url": "https://avatars.githubusercontent.com/u/53145192?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rangelrey",
"html_url": "https://github.com/rangelrey",
"followers_url": "https://api.github.com/users/rangelrey/followers",
"following_url": "https://api.github.com/users/rangelrey/following{/other_user}",
"gists_url": "https://api.github.com/users/rangelrey/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rangelrey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rangelrey/subscriptions",
"organizations_url": "https://api.github.com/users/rangelrey/orgs",
"repos_url": "https://api.github.com/users/rangelrey/repos",
"events_url": "https://api.github.com/users/rangelrey/events{/privacy}",
"received_events_url": "https://api.github.com/users/rangelrey/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": 5955630415,
"node_id": "LA_kwDOIPDwls8AAAABYvu1Tw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis",
"name": "integration: redis",
"color": "F9D0C4",
"default": false,
"description": "Any integration that uses Redis"
}
] | open | false | null | [] | null | 5 | 2023-12-23T11:56:23 | 2023-12-28T12:22:01 | null | NONE | null | ### Feature request
I am using langchain.vectorstores.redis and langchain.chains.ConversationalRetrievalChain.from_llm
I would like to get the scores of the matching documents with my query.
I know you can filter with the `search_kwargs={"score_threshold": 0.8}`
But still I want to get the similarity scores in the output.
### Motivation
To be able to play with the similarity scores on my end and allow flexibility to the user
### Your contribution
The output should be a list (like now) of tupples (Doc, score). In fact this already exists in the similarity_search_with_relevance_scores in lanchain.schema.vectorstore so the implementation should be quite straightforward
Thanks! | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15097/reactions",
"total_count": 4,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 2,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15097/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15096 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15096/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15096/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15096/events | https://github.com/langchain-ai/langchain/issues/15096 | 2,054,765,699 | I_kwDOIPDwls56eTyD | 15,096 | Foreign key associated with column 'langchain_pg_embedding.collection_id' could not find table | {
"login": "AyoTheDev",
"id": 48178546,
"node_id": "MDQ6VXNlcjQ4MTc4NTQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/48178546?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/AyoTheDev",
"html_url": "https://github.com/AyoTheDev",
"followers_url": "https://api.github.com/users/AyoTheDev/followers",
"following_url": "https://api.github.com/users/AyoTheDev/following{/other_user}",
"gists_url": "https://api.github.com/users/AyoTheDev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/AyoTheDev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AyoTheDev/subscriptions",
"organizations_url": "https://api.github.com/users/AyoTheDev/orgs",
"repos_url": "https://api.github.com/users/AyoTheDev/repos",
"events_url": "https://api.github.com/users/AyoTheDev/events{/privacy}",
"received_events_url": "https://api.github.com/users/AyoTheDev/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 1 | 2023-12-23T11:56:18 | 2023-12-23T12:02:59 | null | NONE | null | ### Issue you'd like to raise.
I'm trying to initialize an existing collection via:
store = PGVector(
collection_name=COLLECTION_NAME,
connection_string=CONNECTION_STRING,
embedding_function=embeddings,
)
I keep getting:
Exception has occurred: NoReferencedTableError
Foreign key associated with column 'langchain_pg_embedding.collection_id' could not find table 'langchain_pg_collection' with which to generate a foreign key to target column 'uuid'
I've used a docker installation for PGVector and I can confirm that the table langchain_pg_collection does exist with the key.
This is the view from PgAdmin
langchain_pg_collection
![image](https://github.com/pgvector/pgvector/assets/48178546/64b7d9ed-4046-4d14-a07b-7a7f23b38d19)
and
langchain_pg_embedding
![image](https://github.com/pgvector/pgvector/assets/48178546/dcd6ff9c-5ac8-4789-8e36-6aa63973c5eb)
So I'm not sure why its throwing the exception or how to resolve it
If its relevant I had to make this change inside pgvector
```
from sqlalchemy import MetaData
class CollectionStore(BaseModel):
"""Collection store."""
metadata = MetaData()
if not metadata.tables.get('langchain_pg_collection'):
__tablename__ = "langchain_pg_collection"
name = sqlalchemy.Column(sqlalchemy.String)
cmetadata = sqlalchemy.Column(JSON)
embeddings = relationship(
"EmbeddingStore",
back_populates="collection",
passive_deletes=True,
)
```
to resolve [aTable 'langchain_pg_collection' is already defined for this MetaData instance](https://github.com/langchain-ai/langchain/issues/14699)
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15096/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15096/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15095 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15095/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15095/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15095/events | https://github.com/langchain-ai/langchain/issues/15095 | 2,054,725,088 | I_kwDOIPDwls56eJ3g | 15,095 | Feature: No safety settings when using langchain_google_genai's ChatGoogleGenerativeAI | {
"login": "7vansh7",
"id": 115992070,
"node_id": "U_kgDOBunmBg",
"avatar_url": "https://avatars.githubusercontent.com/u/115992070?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/7vansh7",
"html_url": "https://github.com/7vansh7",
"followers_url": "https://api.github.com/users/7vansh7/followers",
"following_url": "https://api.github.com/users/7vansh7/following{/other_user}",
"gists_url": "https://api.github.com/users/7vansh7/gists{/gist_id}",
"starred_url": "https://api.github.com/users/7vansh7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/7vansh7/subscriptions",
"organizations_url": "https://api.github.com/users/7vansh7/orgs",
"repos_url": "https://api.github.com/users/7vansh7/repos",
"events_url": "https://api.github.com/users/7vansh7/events{/privacy}",
"received_events_url": "https://api.github.com/users/7vansh7/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 | 6 | 2023-12-23T09:00:07 | 2024-01-17T13:38:45 | null | NONE | null | ### Feature request
The safety settings are there in the **google_generativeai** library are are **not** there in the **langchain_google_genai** library
The safety settings is an basically array of dictionaries passed when sending the prompt
### Motivation
The problem with not having this is that when we use the ChatGoogleGenerativeAI model, if there is some kind of prompt which violate the basic safety settings then the model won't return with your answer
If we can change the safety settings and send it with the prompt to the model we could fix this issue
### Your contribution
I am currently reading the code of the library and will raise a PR if i could fix the issue | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15095/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15095/timeline | null | reopened | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15094 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15094/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15094/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15094/events | https://github.com/langchain-ai/langchain/issues/15094 | 2,054,722,951 | I_kwDOIPDwls56eJWH | 15,094 | Agent how to call remote tool (exposed by langserve) | {
"login": "weiminw",
"id": 3841400,
"node_id": "MDQ6VXNlcjM4NDE0MDA=",
"avatar_url": "https://avatars.githubusercontent.com/u/3841400?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/weiminw",
"html_url": "https://github.com/weiminw",
"followers_url": "https://api.github.com/users/weiminw/followers",
"following_url": "https://api.github.com/users/weiminw/following{/other_user}",
"gists_url": "https://api.github.com/users/weiminw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/weiminw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/weiminw/subscriptions",
"organizations_url": "https://api.github.com/users/weiminw/orgs",
"repos_url": "https://api.github.com/users/weiminw/repos",
"events_url": "https://api.github.com/users/weiminw/events{/privacy}",
"received_events_url": "https://api.github.com/users/weiminw/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] | open | false | null | [] | null | 1 | 2023-12-23T08:50:23 | 2023-12-23T08:56:50 | 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
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [X] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I use langserve develop a chain , and expose as remote tool. my friend wants to call my chain in his agent, how to do it?
**Joke chain:**
```
#!/usr/bin/env python
from fastapi import FastAPI
from langchain.prompts import ChatPromptTemplate
from langchain.chat_models import ChatAnthropic, ChatOpenAI
from langserve import add_routes
llm = ChatOpenAI(
openai_api_base=f"http://192.168.1.201:18001/v1",
openai_api_key="EMPTY",
model="gpt-3.5-turbo",
temperature=0.5,
top_p="0.3",
default_headers={"x-heliumos-appId": "general-inference"},
tiktoken_model_name="gpt-3.5-turbo",
verbose=True,
)
app = FastAPI(
title="LangChain Server",
version="1.0",
description="A simple api server using Langchain's Runnable interfaces",
)
prompt = ChatPromptTemplate.from_template("tell me a joke about {topic}")
add_routes(
app,
prompt | llm,
path="/joke",
)
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)
```
**Agent:**
```
from langchain.agents import initialize_agent, AgentType
from langchain_community.chat_models import ChatOpenAI
from langserve import RemoteRunnable
from langchain.tools import Tool
llm = ChatOpenAI(
openai_api_base=f"http://xxxx:xxx/v1",
openai_api_key="EMPTY",
model="gpt-3.5-turbo",
temperature=0.5,
top_p="0.3",
tiktoken_model_name="gpt-3.5-turbo",
verbose=True,
)
remote_tool = RemoteRunnable("http://xxx:xxx/joke/")
tools = [
Tool.from_function(
func=remote_tool.invoke,
name="joke",
description="用户要求讲笑话的时候使用该工具",
# coroutine= ... <- you can specify an async method if desired as well
),
]
agent = initialize_agent(
tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True
)
result = agent.run("讲一个关于坐出租车的笑话")
print(result)
```
agent always got error: because not there is not valid input to remote tool.
### Expected behavior
no error | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15094/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15094/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15093 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15093/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15093/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15093/events | https://github.com/langchain-ai/langchain/issues/15093 | 2,054,713,803 | I_kwDOIPDwls56eHHL | 15,093 | Issue with ChatPromptTemplate | {
"login": "master-senses",
"id": 151479862,
"node_id": "U_kgDOCQdmNg",
"avatar_url": "https://avatars.githubusercontent.com/u/151479862?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/master-senses",
"html_url": "https://github.com/master-senses",
"followers_url": "https://api.github.com/users/master-senses/followers",
"following_url": "https://api.github.com/users/master-senses/following{/other_user}",
"gists_url": "https://api.github.com/users/master-senses/gists{/gist_id}",
"starred_url": "https://api.github.com/users/master-senses/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/master-senses/subscriptions",
"organizations_url": "https://api.github.com/users/master-senses/orgs",
"repos_url": "https://api.github.com/users/master-senses/repos",
"events_url": "https://api.github.com/users/master-senses/events{/privacy}",
"received_events_url": "https://api.github.com/users/master-senses/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 4 | 2023-12-23T08:09:22 | 2023-12-24T07:09:13 | null | NONE | null | ### System Info
I'm using the latest version of langchain.
When my system prompt is longer than 23 lines, i get this error:
KeyError: "Input to ChatPromptTemplate is missing variable ''. Expected: ['', 'description'] Received: ['description']"
It's being generated from this snippet:
```
def generate_output(user_input: str) -> str:
'''This function will generate the output.scad file.'''
chain = chat_prompt | chat_model
print(chain)
# similarity_search(user_input)
llm_output = str(chain.invoke({"description": user_input})) ``` ( Error occurs on this line)
This error does not occur when my system prompt is shorter than 23 lines. Here is the code im using:
`
chat_model = ChatOpenAI(openai_api_key=api_key(), model_name="gpt-4-1106-preview", temperature=0.2, model_kwargs=
{"frequency_penalty": 0, "presence_penalty": 0, "top_p": 1})
System_Message = Systemprompt("hello.txt")
Human_Message = "generate python code to {description} "
print("hi")
print(Human_Message)
chat_prompt = ChatPromptTemplate.from_messages([
("system", System_Message),
("human", Human_Message),
]) `
Here is my SystermPrompt functions:
`def Systemprompt(file_path: str) -> str:
'''This function will return system prompt.'''
try:
with open(file_path, "r") as file:
text = file.read()
return text
except FileNotFoundError:
return FileNotFoundError
except IOError as e:
return IOError`
How can i fix this?
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
chat_model = ChatOpenAI(openai_api_key=api_key(), model_name="gpt-4-1106-preview", temperature=0.2, model_kwargs=
{"frequency_penalty": 0, "presence_penalty": 0, "top_p": 1})
System_Message = Systemprompt("hello.txt")
Human_Message = "generate python code to {description} "
print("hi")
print(Human_Message)
chat_prompt = ChatPromptTemplate.from_messages([
("system", System_Message),
("human", Human_Message),
### Expected behavior
Expected behavious is that this shoudn't happen, and i should get python code
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15093/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15093/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15092 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15092/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15092/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15092/events | https://github.com/langchain-ai/langchain/pull/15092 | 2,054,683,142 | PR_kwDOIPDwls5isUZg | 15,092 | Refactor: use SecretStr for edenai embeddings | {
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-23T05:48:44 | 2024-01-02T19:40:05 | 2024-01-01T23:22:51 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15092/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15092/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15092",
"html_url": "https://github.com/langchain-ai/langchain/pull/15092",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15092.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15092.patch",
"merged_at": "2024-01-01T23:22:51"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15091 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15091/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15091/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15091/events | https://github.com/langchain-ai/langchain/pull/15091 | 2,054,681,931 | PR_kwDOIPDwls5isUKL | 15,091 | Refactor: use SecretStr for embaas embeddings | {
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-23T05:42:11 | 2024-01-02T19:37:29 | 2024-01-01T23:24:00 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15091/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15091/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15091",
"html_url": "https://github.com/langchain-ai/langchain/pull/15091",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15091.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15091.patch",
"merged_at": "2024-01-01T23:24:00"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15090 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15090/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15090/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15090/events | https://github.com/langchain-ai/langchain/pull/15090 | 2,054,679,920 | PR_kwDOIPDwls5isTwg | 15,090 | Refactor: use SecretStr for llm_rails embeddings | {
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-23T05:30:21 | 2024-01-02T19:35:41 | 2024-01-01T23:24:50 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15090/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15090/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15090",
"html_url": "https://github.com/langchain-ai/langchain/pull/15090",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15090.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15090.patch",
"merged_at": "2024-01-01T23:24:50"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15089 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15089/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15089/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15089/events | https://github.com/langchain-ai/langchain/issues/15089 | 2,054,676,213 | I_kwDOIPDwls56d971 | 15,089 | Issue: Getting error while using ChatPromptTemplate | {
"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": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 6 | 2023-12-23T05:10:34 | 2024-01-11T13:25:17 | null | NONE | null | ### Issue you'd like to raise.
`def generate_custom_prompt(new_project_qa,query,name,not_uuid):
check = query.lower()
result = new_project_qa(query)
relevant_document = result['source_documents']
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"""You are a chatbot designed to provide answers to User's Questions, delimited by triple backticks.
Generate your answer to match the user's requirements: {user_experience_inst.custom_prompt}
If you encounter a question for which you don't know the answer, please respond with 'I don't know' and refrain from making up an answer.
- Before saying 'I don't know,' please re-verify your vector store to ensure the answer is not present in the database.
Remember, your goal is to assist the user in the best way possible. If the question is unclear or ambiguous, feel free to ask for clarification.
User's Question: ```{check}```
AI Answer:"""
else:
# Create the custom prompt template
custom_prompt_template = f"""Answer the question based only on following context: ```{context_text} ```
You are a chatbot designed to provide answers in details to User's Question: ```{check} ``` which is delimited by triple backticks.
Generate your answer in points in the following format:
1. Point no 1
1.1 Its subpoint in details
1.2 More information if needed.
2. Point no 2
2.1 Its subpoint in details
2.2 More information if needed.
…
N. Another main point.
If you encounter a question for which you don't know the answer based on the predefined points, please respond with 'I don't know' and refrain from making up an answer.
However, if the answer is not present in the predefined points,then Provide comprehensive information related to the user's query.
Remember, your goal is to assist the user in the best way possible. If the question is unclear or ambiguous, you can ask for clarification.
User's Question: ```{check} ```
AI Answer:"""
# Create the PromptTemplate
custom_prompt = ChatPromptTemplate(
template=custom_prompt_template, input_variables=["check","context_text"]
)
formatted_prompt = custom_prompt.format()
return formatted_prompt
`
#below is the error I am getting
Traceback (most recent call last):
File "/home/hs/env/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/hs/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/hs/CustomBot/chatbot/views.py", line 366, in GetChatResponse
custom_message=generate_custom_prompt(chat_qa,query,name,not_uuid)
File "/home/hs/CustomBot/accounts/common_langcain_qa.py", line 70, in generate_custom_prompt
custom_prompt = ChatPromptTemplate(
File "/home/hs/env/lib/python3.8/site-packages/langchain_core/load/serializable.py", line 97, in __init__
super().__init__(**kwargs)
File "pydantic/main.py", line 339, in pydantic.main.BaseModel.__init__
File "pydantic/main.py", line 1050, in pydantic.main.validate_model
File "/home/hs/env/lib/python3.8/site-packages/langchain_core/prompts/chat.py", line 449, in validate_input_variables
messages = values["messages"]
KeyError: 'messages'
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15089/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15089/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15087 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15087/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15087/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15087/events | https://github.com/langchain-ai/langchain/issues/15087 | 2,054,631,468 | I_kwDOIPDwls56dzAs | 15,087 | SelfQueryRetriever broken with latest langchain-community or using ChatOpenAI as llm | {
"login": "RoderickVM",
"id": 64725908,
"node_id": "MDQ6VXNlcjY0NzI1OTA4",
"avatar_url": "https://avatars.githubusercontent.com/u/64725908?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RoderickVM",
"html_url": "https://github.com/RoderickVM",
"followers_url": "https://api.github.com/users/RoderickVM/followers",
"following_url": "https://api.github.com/users/RoderickVM/following{/other_user}",
"gists_url": "https://api.github.com/users/RoderickVM/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RoderickVM/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RoderickVM/subscriptions",
"organizations_url": "https://api.github.com/users/RoderickVM/orgs",
"repos_url": "https://api.github.com/users/RoderickVM/repos",
"events_url": "https://api.github.com/users/RoderickVM/events{/privacy}",
"received_events_url": "https://api.github.com/users/RoderickVM/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": 5955630415,
"node_id": "LA_kwDOIPDwls8AAAABYvu1Tw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis",
"name": "integration: redis",
"color": "F9D0C4",
"default": false,
"description": "Any integration that uses Redis"
}
] | open | false | null | [] | null | 1 | 2023-12-23T02:55:37 | 2023-12-23T03:06:54 | null | NONE | null | ### System Info
Python 3.11
langchain 0.0.352
langchain-core 0.1.3
langchain-community 0.0.4 (doesn't work with neithwer `from langchain.llms import OpenAI` nor `langchain.chat_models import ChatOpenAI`)
langchain-community 0.0.2 (works as expected with `from langchain.llms import OpenAI` but it doesn't with `langchain.chat_models import ChatOpenAI`)
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [X] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
#### The following code works fine with `langchain-community 0.0.2`:
Plese refer to this [LangSmith run](https://smith.langchain.com/public/1c6c7960-e3b7-42fc-8835-6b78520e6580/r)
```import config
from langchain.vectorstores.redis import Redis
from langchain.retrievers.self_query.base import SelfQueryRetriever
from langchain.storage import RedisStore
from langchain.embeddings import OpenAIEmbeddings, CacheBackedEmbeddings
from langchain.chains.query_constructor.schema import AttributeInfo
from langchain.llms import OpenAI
embed_store = RedisStore(redis_url=config.REDIS_URL, client_kwargs={
'db': 1}, namespace='embedding_cache')
underlying_embeddings = OpenAIEmbeddings()
embeddings = CacheBackedEmbeddings.from_bytes_store(
underlying_embeddings, embed_store, namespace=underlying_embeddings.model
)
metadata_field_info = [
AttributeInfo(
name="source",
description="The source URL or book title where the document comes from.",
type="string",
),
AttributeInfo(
name="title",
description="The title where the text was taken from. Use this attribute to filter the User Query, but don't filter for exact matches. For example: 'Qué dice el código de trabajo', the filter could be 'Código de Trabajo'; 'Qué dice la ley sobre el teletrabajo', the filter could be 'Teletrabajo'.",
type="string",
),
AttributeInfo(
name="doc_type",
description="Type of document classification to be used only as Filter for the User Query. Laws or Labor Code go under 'Legislación'. Company, Organizational or employer information go under 'Organización'. Company Policies go under 'Política'. Company internal procedures go under 'Procedimiento'.",
type="string",
),
AttributeInfo(
name="keywords",
description="A list of keywords taken from the document to filter the query. Always use this attribute to filter the query when a specific article number is needed. For example: 'Qué dice el artículo 10 del código de trabajo', you must capitalize the words 'articulo' to 'ARTÍCULO', and filter 'ARTÍCULO 10'.",
type="string",
),
]
document_content_description = "Data source comprised of the entire contents of the Costa Rican Labor Code and other related Laws: 1) Código de trabajo; 2) Ley de protección al trabajador; 3) Ley de acoso sexual; 4) Ley de teletrabajo; y 5) Ley de Protección de Datos Personales."
llm = OpenAI(temperature=0.0)
rds_store = Redis.from_existing_index(
embeddings,
index_name=config.INDEX_NAME,
redis_url=config.REDIS_URL,
schema='./Redis_schema.yaml'
)
selfq_retriever = SelfQueryRetriever.from_llm(
llm,
rds_store,
document_content_description,
metadata_field_info,
enable_limit=False,
# verbose=True,
)
retriever = rds_store.as_retriever()
```
By just changing `from langchain.llms import OpenAI` to `from langchain.chat_models import ChatOpenAI` or by upgrading `langchain-community` to version 0.0.4, the query output is as follows and the retrieval doesn't work as intended:
```{
"id": [
"langchain",
"chains",
"query_constructor",
"ir",
"StructuredQuery"
],
"lc": 1,
"repr": "StructuredQuery(query='articulo 143', filter=Comparison(comparator=<Comparator.EQ: 'eq'>, attribute='title', value='Código de Trabajo'), limit=None)",
"type": "not_implemented"
}
```
Plese refer to this [LangSmith run](https://smith.langchain.com/public/2d4732f0-8712-4e84-9af2-5d13ffc6cb93/r) for the unsuccessful retrieval
### Expected behavior
This is the expected result:
```{
"id": [
"langchain",
"chains",
"query_constructor",
"ir",
"StructuredQuery"
],
"lc": 1,
"repr": "StructuredQuery(query=' ', filter=Operation(operator=<Operator.AND: 'and'>, arguments=[Comparison(comparator=<Comparator.EQ: 'eq'>, attribute='title', value='Código de Trabajo'), Comparison(comparator=<Comparator.EQ: 'eq'>, attribute='doc_type', value='Legislación'), Comparison(comparator=<Comparator.EQ: 'eq'>, attribute='keywords', value='ARTÍCULO 143')]), limit=None)",
"type": "not_implemented"
}
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15087/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15087/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15086 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15086/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15086/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15086/events | https://github.com/langchain-ai/langchain/issues/15086 | 2,054,623,466 | I_kwDOIPDwls56dxDq | 15,086 | DOC: Documentation Update Needed for 'Return Source Documents' Functionality | {
"login": "wu-changxing",
"id": 74539201,
"node_id": "MDQ6VXNlcjc0NTM5MjAx",
"avatar_url": "https://avatars.githubusercontent.com/u/74539201?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wu-changxing",
"html_url": "https://github.com/wu-changxing",
"followers_url": "https://api.github.com/users/wu-changxing/followers",
"following_url": "https://api.github.com/users/wu-changxing/following{/other_user}",
"gists_url": "https://api.github.com/users/wu-changxing/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wu-changxing/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wu-changxing/subscriptions",
"organizations_url": "https://api.github.com/users/wu-changxing/orgs",
"repos_url": "https://api.github.com/users/wu-changxing/repos",
"events_url": "https://api.github.com/users/wu-changxing/events{/privacy}",
"received_events_url": "https://api.github.com/users/wu-changxing/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] | open | false | null | [] | null | 2 | 2023-12-23T02:21:36 | 2023-12-23T16:15:06 | null | NONE | null | ### Issue with current documentation:
#### Issue Description
- **Overview**: The current documentation for the 'Return Source Documents' functionality seems to be outdated or incorrect. The provided code snippet results in errors when executed.
https://python.langchain.com/docs/integrations/providers/vectara/vectara_chat#conversationalretrievalchain-with-question-answering-with-sources
- **Details**:
- The current code:
```python
chat_history = []
query = "What did the president say about Ketanji Brown Jackson"
result = bot({"question": query, "chat_history": chat_history})
```
produces the following error:
```
/python3.9/site-packages/langchain/memory/chat_memory.py", line 29, in _get_input_output
raise ValueError(f"One output key expected, got {outputs.keys()}")
ValueError: One output key expected, got dict_keys(['answer', 'source_documents'])
```
- **Examples**: This issue occurs when trying to use the 'Return Source Documents' as outlined in the current documentation.
#### Additional Information
- **Related Issue**: This documentation update is related to the issue raised in https://github.com/langchain-ai/langchain/issues/2256.
### Idea or request for content:
#### Suggested Fix
- Update the documentation with the correct code snippet:
```python
memory = ConversationBufferMemory(memory_key="chat_history", input_key='question', output_key='answer', return_messages=True)
bot = ConversationalRetrievalChain.from_llm(llm, retriever, memory=memory, return_source_documents=True)
result = bot({"question": query,})
```
- This revision correctly handles the output and does not produce the aforementioned error. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15086/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15086/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15085 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15085/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15085/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15085/events | https://github.com/langchain-ai/langchain/issues/15085 | 2,054,597,980 | I_kwDOIPDwls56dq1c | 15,085 | Can't use RunnablePassthrough | {
"login": "HannaHUp",
"id": 43529795,
"node_id": "MDQ6VXNlcjQzNTI5Nzk1",
"avatar_url": "https://avatars.githubusercontent.com/u/43529795?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/HannaHUp",
"html_url": "https://github.com/HannaHUp",
"followers_url": "https://api.github.com/users/HannaHUp/followers",
"following_url": "https://api.github.com/users/HannaHUp/following{/other_user}",
"gists_url": "https://api.github.com/users/HannaHUp/gists{/gist_id}",
"starred_url": "https://api.github.com/users/HannaHUp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HannaHUp/subscriptions",
"organizations_url": "https://api.github.com/users/HannaHUp/orgs",
"repos_url": "https://api.github.com/users/HannaHUp/repos",
"events_url": "https://api.github.com/users/HannaHUp/events{/privacy}",
"received_events_url": "https://api.github.com/users/HannaHUp/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
}
] | open | false | null | [] | null | 3 | 2023-12-23T00:38:06 | 2023-12-23T01:05:27 | null | NONE | null | ### System Info
Im trying to implement this in sagemaker with bedrock claude v2
https://github.com/langchain-ai/langchain/blob/master/templates/rag-aws-bedrock/rag_aws_bedrock/chain.py
Here is my code
```
`import os
from langchain.embeddings import BedrockEmbeddings
from langchain.llms.bedrock import Bedrock
from langchain.prompts import ChatPromptTemplate
from langchain.vectorstores import FAISS
from langchain_core.output_parsers import StrOutputParser
from langchain_core.pydantic_v1 import BaseModel
from langchain_core.runnables import RunnableParallel, RunnablePassthrough
region = "us-east-1"
model_id="anthropic.claude-v2"
# Set LLM and embeddings
model = Bedrock(
model_id=model_id,
region_name=region,
model_kwargs={"max_tokens_to_sample": 200},
)
bedrock_embeddings = BedrockEmbeddings(model_id="amazon.titan-embed-text-v1")
# Add to vectorDB
vectorstore = FAISS.from_texts(
["harrison worked at kensho"], embedding=bedrock_embeddings
)
retriever = vectorstore.as_retriever()
# Get retriever from vectorstore
retriever = vectorstore.as_retriever()
# RAG prompt
template = """Answer the question based only on the following context:
{context}
Question: {question}
"""
prompt = ChatPromptTemplate.from_template(template)
# RAG
chain = (
RunnableParallel({"context": retriever, "question": RunnablePassthrough()})
| prompt
| model
| StrOutputParser()
)
`
```
got unexpected error:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[47], line 40
35 prompt = ChatPromptTemplate.from_template(template)
38 # RAG
39 chain = (
---> 40 RunnableParallel({"context": retriever, "question": RunnablePassthrough()})
41 | prompt
42 | model
43 | StrOutputParser()
44 )
TypeError: Expected a Runnable, callable or dict.Instead got an unsupported type: <class 'langchain.schema.vectorstore.VectorStoreRetriever'>
Name: langchain
Version: 0.0.352
Name: langchain-core
Version: 0.1.2
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
1. !pip install langchain==0.0.352
2.
```
import os
from langchain.embeddings import BedrockEmbeddings
from langchain.llms.bedrock import Bedrock
from langchain.prompts import ChatPromptTemplate
from langchain.vectorstores import FAISS
from langchain_core.output_parsers import StrOutputParser
from langchain_core.pydantic_v1 import BaseModel
from langchain_core.runnables import RunnableParallel, RunnablePassthrough
region = "us-east-1"
model_id="anthropic.claude-v2"
# Set LLM and embeddings
model = Bedrock(
model_id=model_id,
region_name=region,
model_kwargs={"max_tokens_to_sample": 200},
)
bedrock_embeddings = BedrockEmbeddings(model_id="amazon.titan-embed-text-v1")
# Add to vectorDB
vectorstore = FAISS.from_texts(
["harrison worked at kensho"], embedding=bedrock_embeddings
)
retriever = vectorstore.as_retriever()
# Get retriever from vectorstore
retriever = vectorstore.as_retriever()
# RAG prompt
template = """Answer the question based only on the following context:
{context}
Question: {question}
"""
prompt = ChatPromptTemplate.from_template(template)
# RAG
chain = (
RunnableParallel({"context": retriever, "question": RunnablePassthrough()})
| prompt
| model
| StrOutputParser()
)
```
### Expected behavior
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[47], line 40
35 prompt = ChatPromptTemplate.from_template(template)
38 # RAG
39 chain = (
---> 40 RunnableParallel({"context": retriever, "question": RunnablePassthrough()})
41 | prompt
42 | model
43 | StrOutputParser()
44 )
File /opt/conda/lib/python3.10/site-packages/langchain_core/runnables/base.py:1937, in RunnableParallel.__init__(self, _RunnableParallel__steps, **kwargs)
1934 merged = {**__steps} if __steps is not None else {}
1935 merged.update(kwargs)
1936 super().__init__(
-> 1937 steps={key: coerce_to_runnable(r) for key, r in merged.items()}
1938 )
File /opt/conda/lib/python3.10/site-packages/langchain_core/runnables/base.py:1937, in <dictcomp>(.0)
1934 merged = {**__steps} if __steps is not None else {}
1935 merged.update(kwargs)
1936 super().__init__(
-> 1937 steps={key: coerce_to_runnable(r) for key, r in merged.items()}
1938 )
File /opt/conda/lib/python3.10/site-packages/langchain_core/runnables/base.py:3232, in coerce_to_runnable(thing)
3230 return cast(Runnable[Input, Output], RunnableParallel(thing))
3231 else:
-> 3232 raise TypeError(
3233 f"Expected a Runnable, callable or dict."
3234 f"Instead got an unsupported type: {type(thing)}"
3235 )
TypeError: Expected a Runnable, callable or dict.Instead got an unsupported type: < | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15085/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15085/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15084 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15084/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15084/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15084/events | https://github.com/langchain-ai/langchain/pull/15084 | 2,054,588,609 | PR_kwDOIPDwls5isAtS | 15,084 | Add create_conv_retrieval_chain func | {
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-23T00:07:29 | 2023-12-27T01:43:24 | 2023-12-27T01:28:11 | COLLABORATOR | null | ```
+----------+
| MapInput |
**+----------+****
**** ****
**** ***
** ****
+------------------------------------+ **
| Lambda(itemgetter('chat_history')) | *
+------------------------------------+ *
* *
* *
* *
+---------------------------+ +--------------------------------+
| Lambda(_get_chat_history) | | Lambda(itemgetter('question')) |
+---------------------------+ +--------------------------------+
* *
* *
* *
+----------------------------+ +------------------------+
| ContextSet('chat_history') | | ContextSet('question') |
+----------------------------+ +------------------------+
**** ****
**** ****
** **
+-----------+
| MapOutput |
+-----------+
*
*
*
+----------------+
| PromptTemplate |
+----------------+
*
*
*
+-------------+
| FakeListLLM |
+-------------+
*
*
*
+-----------------+
| StrOutputParser |
+-----------------+
*
*
*
+----------------------------+
| ContextSet('new_question') |
+----------------------------+
*
*
*
+---------------------+
| SequentialRetriever |
+---------------------+
*
*
*
+------------------------------------+
| Lambda(_reduce_tokens_below_limit) |
+------------------------------------+
*
*
*
+-------------------------------+
| ContextSet('input_documents') |
+-------------------------------+
*
*
*
+----------+
***| MapInput |****
******* +----------+ ********
******** * *******
******* * ********
**** * ****
+-------------------------------+ +----------------------------+ +----------------------------+
| ContextGet('input_documents') | | ContextGet('chat_history') | | ContextGet('new_question') |
+-------------------------------+**** +----------------------------+ +----------------------------+
********* * *******
******** * ******
***** * ****
+-----------+
| MapOutput |
+-----------+
*
*
*
+-------------+
| FakeListLLM |
+-------------+
*
*
*
+----------+
***| MapInput |***
******** +----------+ ******
******* * *****
******** * ******
**** * ***
+-------------------------------+ +----------------------------+ +-------------+
| ContextGet('input_documents') | | ContextGet('new_question') | **| Passthrough |
+-------------------------------+ +----------------------------+ ******* +-------------+
******* * ******
****** * *******
**** * ****
+-----------+
| MapOutput |
+-----------+
``` | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15084/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15084/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15084",
"html_url": "https://github.com/langchain-ai/langchain/pull/15084",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15084.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15084.patch",
"merged_at": "2023-12-27T01:28:11"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15083 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15083/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15083/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15083/events | https://github.com/langchain-ai/langchain/pull/15083 | 2,054,577,340 | PR_kwDOIPDwls5ir-Y- | 15,083 | Improve graph repr for runnable passthrough and itemgetter | {
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6221234145,
"node_id": "LA_kwDOIPDwls8AAAABctB_4Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve",
"name": "area: langserve",
"color": "0FA0C8",
"default": false,
"description": ""
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-22T23:37:43 | 2023-12-23T00:05:49 | 2023-12-23T00:05:49 | COLLABORATOR | null | <!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15083/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15083/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15083",
"html_url": "https://github.com/langchain-ai/langchain/pull/15083",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15083.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15083.patch",
"merged_at": "2023-12-23T00:05:48"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15082 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15082/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15082/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15082/events | https://github.com/langchain-ai/langchain/pull/15082 | 2,054,546,542 | PR_kwDOIPDwls5ir4G6 | 15,082 | Update regex in output parser | {
"login": "sharrajesh",
"id": 292585,
"node_id": "MDQ6VXNlcjI5MjU4NQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/292585?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sharrajesh",
"html_url": "https://github.com/sharrajesh",
"followers_url": "https://api.github.com/users/sharrajesh/followers",
"following_url": "https://api.github.com/users/sharrajesh/following{/other_user}",
"gists_url": "https://api.github.com/users/sharrajesh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sharrajesh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sharrajesh/subscriptions",
"organizations_url": "https://api.github.com/users/sharrajesh/orgs",
"repos_url": "https://api.github.com/users/sharrajesh/repos",
"events_url": "https://api.github.com/users/sharrajesh/events{/privacy}",
"received_events_url": "https://api.github.com/users/sharrajesh/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 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 | 2023-12-22T22:18:46 | 2024-01-01T23:59:22 | 2024-01-01T23:59:22 | CONTRIBUTOR | null | The regex used to match "Action" and "Action Input" in the output parser has been updated. Previously, the regex did not correctly handle multi-line inputs for "Action Input". The updated code uses the 're.DOTALL' flag to ensure multi-line inputs are correctly captured.
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15082/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 1,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15082/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15082",
"html_url": "https://github.com/langchain-ai/langchain/pull/15082",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15082.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15082.patch",
"merged_at": "2024-01-01T23:59:22"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15081 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15081/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15081/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15081/events | https://github.com/langchain-ai/langchain/pull/15081 | 2,054,532,477 | PR_kwDOIPDwls5ir1KL | 15,081 | Random length base example selector | {
"login": "Dmaturana81",
"id": 54143703,
"node_id": "MDQ6VXNlcjU0MTQzNzAz",
"avatar_url": "https://avatars.githubusercontent.com/u/54143703?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Dmaturana81",
"html_url": "https://github.com/Dmaturana81",
"followers_url": "https://api.github.com/users/Dmaturana81/followers",
"following_url": "https://api.github.com/users/Dmaturana81/following{/other_user}",
"gists_url": "https://api.github.com/users/Dmaturana81/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Dmaturana81/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dmaturana81/subscriptions",
"organizations_url": "https://api.github.com/users/Dmaturana81/orgs",
"repos_url": "https://api.github.com/users/Dmaturana81/repos",
"events_url": "https://api.github.com/users/Dmaturana81/events{/privacy}",
"received_events_url": "https://api.github.com/users/Dmaturana81/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."
}
] | open | false | null | [] | null | 1 | 2023-12-22T21:50:59 | 2024-01-17T21:07:25 | null | CONTRIBUTOR | null |
Description: The length example selector always retrieves the same examples, going from top to bottom. In the case you have a lot of examples, there will not be any variation. I just copied and modified this length selector to do a random length base examples selector, so for each prompt, the examples selected will be random
Dependencies: Added the random import, not dependencies changed
Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15081/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15081/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15081",
"html_url": "https://github.com/langchain-ai/langchain/pull/15081",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15081.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15081.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15080 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15080/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15080/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15080/events | https://github.com/langchain-ai/langchain/pull/15080 | 2,054,532,174 | PR_kwDOIPDwls5ir1F1 | 15,080 | Use args option in jaguar so it takes more options in similarity search | {
"login": "fserv",
"id": 115371133,
"node_id": "U_kgDOBuBsfQ",
"avatar_url": "https://avatars.githubusercontent.com/u/115371133?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/fserv",
"html_url": "https://github.com/fserv",
"followers_url": "https://api.github.com/users/fserv/followers",
"following_url": "https://api.github.com/users/fserv/following{/other_user}",
"gists_url": "https://api.github.com/users/fserv/gists{/gist_id}",
"starred_url": "https://api.github.com/users/fserv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fserv/subscriptions",
"organizations_url": "https://api.github.com/users/fserv/orgs",
"repos_url": "https://api.github.com/users/fserv/repos",
"events_url": "https://api.github.com/users/fserv/events{/privacy}",
"received_events_url": "https://api.github.com/users/fserv/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 | 2023-12-22T21:50:22 | 2024-01-03T04:37:53 | 2024-01-02T23:53:06 | CONTRIBUTOR | null | - **Description:** replace score_threshold with args
- **Issue:** needs a way to pass more options to similarity search
- **Dependencies:** None
- **Twitter handle:** @workbot
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15080/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15080/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15080",
"html_url": "https://github.com/langchain-ai/langchain/pull/15080",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15080.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15080.patch",
"merged_at": "2024-01-02T23:53:06"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15079 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15079/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15079/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15079/events | https://github.com/langchain-ai/langchain/pull/15079 | 2,054,522,720 | PR_kwDOIPDwls5irzGK | 15,079 | core: update json output parser | {
"login": "apisani1",
"id": 111714581,
"node_id": "U_kgDOBqihFQ",
"avatar_url": "https://avatars.githubusercontent.com/u/111714581?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/apisani1",
"html_url": "https://github.com/apisani1",
"followers_url": "https://api.github.com/users/apisani1/followers",
"following_url": "https://api.github.com/users/apisani1/following{/other_user}",
"gists_url": "https://api.github.com/users/apisani1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/apisani1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/apisani1/subscriptions",
"organizations_url": "https://api.github.com/users/apisani1/orgs",
"repos_url": "https://api.github.com/users/apisani1/repos",
"events_url": "https://api.github.com/users/apisani1/events{/privacy}",
"received_events_url": "https://api.github.com/users/apisani1/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": 6221234145,
"node_id": "LA_kwDOIPDwls8AAAABctB_4Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve",
"name": "area: langserve",
"color": "0FA0C8",
"default": false,
"description": ""
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | {
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
] | null | 4 | 2023-12-22T21:33:23 | 2024-01-03T04:32:53 | 2024-01-03T00:34:43 | CONTRIBUTOR | null | - **Description:** changed json.py to handle additional cases of partial json string to be parsed, basically by dropping the last character in the string until a valid json string is found or the string is empty. Also added additional test cases.
- **Issue:** function parse_partial_json could not parse cases where the key is present but the value is not.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15079/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15079/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15079",
"html_url": "https://github.com/langchain-ai/langchain/pull/15079",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15079.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15079.patch",
"merged_at": "2024-01-03T00:34:43"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15078 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15078/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15078/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15078/events | https://github.com/langchain-ai/langchain/pull/15078 | 2,054,522,664 | PR_kwDOIPDwls5irzFd | 15,078 | Nc/dec22/runnable graph lambda | {
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6221234145,
"node_id": "LA_kwDOIPDwls8AAAABctB_4Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve",
"name": "area: langserve",
"color": "0FA0C8",
"default": false,
"description": ""
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-22T21:33:16 | 2023-12-22T22:36:47 | 2023-12-22T22:36:47 | COLLABORATOR | null | <!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15078/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15078/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15078",
"html_url": "https://github.com/langchain-ai/langchain/pull/15078",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15078.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15078.patch",
"merged_at": "2023-12-22T22:36:47"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15077 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15077/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15077/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15077/events | https://github.com/langchain-ai/langchain/issues/15077 | 2,054,482,659 | I_kwDOIPDwls56dOrj | 15,077 | SQLDatabaseChain raising TypeError exception with SQLite | {
"login": "btbean1980",
"id": 150169109,
"node_id": "U_kgDOCPNmFQ",
"avatar_url": "https://avatars.githubusercontent.com/u/150169109?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/btbean1980",
"html_url": "https://github.com/btbean1980",
"followers_url": "https://api.github.com/users/btbean1980/followers",
"following_url": "https://api.github.com/users/btbean1980/following{/other_user}",
"gists_url": "https://api.github.com/users/btbean1980/gists{/gist_id}",
"starred_url": "https://api.github.com/users/btbean1980/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/btbean1980/subscriptions",
"organizations_url": "https://api.github.com/users/btbean1980/orgs",
"repos_url": "https://api.github.com/users/btbean1980/repos",
"events_url": "https://api.github.com/users/btbean1980/events{/privacy}",
"received_events_url": "https://api.github.com/users/btbean1980/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 9 | 2023-12-22T20:25:25 | 2023-12-29T20:13:05 | null | NONE | null | ### Issue you'd like to raise.
SQLDatabaseChain is throwing a TypeError when executing the .run or .invoke functions. All arguments or kwargs passed to the class are valid, but the error persists. I have trapped back to the database and there is a valid connection. My code and error are below:
```python
sqlite_db = SQLDatabase.from_uri(
"sqlite:///./sqlite/ibdss.sqlite3",
sample_rows_in_table_info=2,
include_tables=["colts"]
)
db_chain = SQLDatabaseChain.from_llm(
llm,
sqlite_db,
return_direct=True,
use_query_checker=True,
return_intermediate_steps=True,
verbose=True
)
sqlite_response = db_chain.invoke({"query": "How many generators have over 10,000 hours of operation?"})
```
The issue happens when using .run as well.
Error Output:
TypeError: must be real number, not str
The traceback points to the invocation of the chain as the error area.
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15077/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15077/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15076 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15076/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15076/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15076/events | https://github.com/langchain-ai/langchain/pull/15076 | 2,054,460,314 | PR_kwDOIPDwls5irlxR | 15,076 | Code simplification in jaguar vector store | {
"login": "fserv",
"id": 115371133,
"node_id": "U_kgDOBuBsfQ",
"avatar_url": "https://avatars.githubusercontent.com/u/115371133?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/fserv",
"html_url": "https://github.com/fserv",
"followers_url": "https://api.github.com/users/fserv/followers",
"following_url": "https://api.github.com/users/fserv/following{/other_user}",
"gists_url": "https://api.github.com/users/fserv/gists{/gist_id}",
"starred_url": "https://api.github.com/users/fserv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fserv/subscriptions",
"organizations_url": "https://api.github.com/users/fserv/orgs",
"repos_url": "https://api.github.com/users/fserv/repos",
"events_url": "https://api.github.com/users/fserv/events{/privacy}",
"received_events_url": "https://api.github.com/users/fserv/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-22T19:54:27 | 2023-12-22T20:21:03 | 2023-12-22T20:21:03 | CONTRIBUTOR | null | - **Description:** Program simplification in Jaguar vector store
- **Issue:** Simplify code by hiding login() and logout() in constructor and destructor of Jaguar class
- **Dependencies:** None
- **Twitter handle:** @workbot
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15076/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15076/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15076",
"html_url": "https://github.com/langchain-ai/langchain/pull/15076",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15076.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15076.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15075 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15075/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15075/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15075/events | https://github.com/langchain-ai/langchain/pull/15075 | 2,054,443,101 | PR_kwDOIPDwls5irh1- | 15,075 | add defaults for tavily | {
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 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": ""
}
] | closed | false | null | [] | null | 1 | 2023-12-22T19:40:58 | 2023-12-22T19:48:28 | 2023-12-22T19:48:27 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15075/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15075/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15075",
"html_url": "https://github.com/langchain-ai/langchain/pull/15075",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15075.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15075.patch",
"merged_at": "2023-12-22T19:48:27"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15074 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15074/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15074/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15074/events | https://github.com/langchain-ai/langchain/issues/15074 | 2,054,421,969 | I_kwDOIPDwls56c_3R | 15,074 | Bugs in importing when Deploying a LangChain web app to multiple hosting platforms! | {
"login": "SaiFUllaH-KhaN1",
"id": 135647515,
"node_id": "U_kgDOCBXRGw",
"avatar_url": "https://avatars.githubusercontent.com/u/135647515?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SaiFUllaH-KhaN1",
"html_url": "https://github.com/SaiFUllaH-KhaN1",
"followers_url": "https://api.github.com/users/SaiFUllaH-KhaN1/followers",
"following_url": "https://api.github.com/users/SaiFUllaH-KhaN1/following{/other_user}",
"gists_url": "https://api.github.com/users/SaiFUllaH-KhaN1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SaiFUllaH-KhaN1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SaiFUllaH-KhaN1/subscriptions",
"organizations_url": "https://api.github.com/users/SaiFUllaH-KhaN1/orgs",
"repos_url": "https://api.github.com/users/SaiFUllaH-KhaN1/repos",
"events_url": "https://api.github.com/users/SaiFUllaH-KhaN1/events{/privacy}",
"received_events_url": "https://api.github.com/users/SaiFUllaH-KhaN1/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 1 | 2023-12-22T19:12:34 | 2023-12-22T19:22:27 | null | NONE | null | ### System Info
I have observed that while using the command belonging to importing "langchain.llms (for example as in from langchain.llms import HuggingFaceHub") have no problem when I deploy my web app to multiple hosting sites like streamlit, Render, Heroku etc.
However, using the "langchain.memory" as in from langchain.memory import ConversationBufferMemory
and "langchain.prompts" as in from langchain.prompts import PromptTemplate
causes deployment to fail in all said hosting sites. They throw a module not found error for the langchain.memory and langchain.prompts.
Please note: that running in google colab or vscode does not have this error.
Also, python version and langchain versions are irrelevant to this problem since I have tested through a lot of variations.
Please help out. Thanks in advance
### Who can help?
@hwchase17
@agola11
@eyurtsev
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [X] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
import soundfile as sf
from langchain.llms import HuggingFaceHub
# Below line gives error not in vscode or google colab but in deployment to render, heroku, streamlit and other hosting sites as well. I have not used ConversationBufferMemory in below code even, since the this line causes problem even in initial importing
from langchain.memory import ConversationBufferMemory
import speech_recognition as sr
# Initialize any API keys that are needed
import os
from flask import Flask, render_template, request, session, flash, get_flashed_messages
os.environ["HUGGINGFACEHUB_API_TOKEN"] = "write your own api here"
app = Flask(__name__)
app.secret_key = '123'
@app.route("/LLMEXP", methods=['GET', 'POST'])
def llmexp():
if 'chat_messages' not in session:
session['chat_messages'] = []
conversation = HuggingFaceHub(repo_id="google/flan-t5-small", model_kwargs={"temperature": 0.1, "max_length": 256})
if request.method == 'POST':
if 'record_audio' in request.form:
# Record audio and convert to text
user_input = request.form['user_input']
else:
# User input from textarea
user_input = request.form['user_input']
if not user_input or user_input.isspace():
flash("Please provide a valid input.")
else:
user_message = {'role': 'user', 'content': f"User: {user_input}"}
session['chat_messages'].append(user_message)
response = conversation(user_input)
if not response.strip():
response = "I didn't understand the question."
#text_to_speech(response)
assistant_message = {'role': 'assistant', 'content': f"Bot: {response}"}
session['chat_messages'].append(assistant_message)
session.modified = True
return render_template("index.html", chat_messages=session['chat_messages'])
if __name__ == "__main__":
app.run(debug=True)
### Expected behavior
I expect that I do not receive any error related to "langchain.memory" or "langchain.prompts" error while deploying to a hosting site. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15074/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15074/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15073 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15073/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15073/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15073/events | https://github.com/langchain-ai/langchain/issues/15073 | 2,054,420,480 | I_kwDOIPDwls56c_gA | 15,073 | Feature request: Vertex AI Function Calling | {
"login": "lawwu",
"id": 9869041,
"node_id": "MDQ6VXNlcjk4NjkwNDE=",
"avatar_url": "https://avatars.githubusercontent.com/u/9869041?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lawwu",
"html_url": "https://github.com/lawwu",
"followers_url": "https://api.github.com/users/lawwu/followers",
"following_url": "https://api.github.com/users/lawwu/following{/other_user}",
"gists_url": "https://api.github.com/users/lawwu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lawwu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lawwu/subscriptions",
"organizations_url": "https://api.github.com/users/lawwu/orgs",
"repos_url": "https://api.github.com/users/lawwu/repos",
"events_url": "https://api.github.com/users/lawwu/events{/privacy}",
"received_events_url": "https://api.github.com/users/lawwu/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-12-22T19:10:42 | 2023-12-22T19:18:39 | null | CONTRIBUTOR | null | ### Feature request
Google's `gemini-pro` supports function calling. It would be nice to be able to use langchain to support function calling when using the `VertexAI` class similar to OpenAI and OpenAI's version of function calling: https://cloud.google.com/vertex-ai/docs/generative-ai/multimodal/function-calling
### Motivation
Here's a notebook where to access this functionality you have to use the `vertexai` library directly which means we lose the langchain standardization of input and output schemas: https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/function-calling/intro_function_calling.ipynb
### Your contribution
Possibly can help. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15073/reactions",
"total_count": 3,
"+1": 3,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15073/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15072 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15072/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15072/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15072/events | https://github.com/langchain-ai/langchain/pull/15072 | 2,054,391,908 | PR_kwDOIPDwls5irWiC | 15,072 | book reference | {
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-22T18:46:52 | 2023-12-22T20:01:06 | 2023-12-22T19:41:24 | COLLABORATOR | null | Added a reference to to a new book about `LangChain`. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15072/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15072/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15072",
"html_url": "https://github.com/langchain-ai/langchain/pull/15072",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15072.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15072.patch",
"merged_at": "2023-12-22T19:41:24"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15071 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15071/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15071/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15071/events | https://github.com/langchain-ai/langchain/pull/15071 | 2,054,355,997 | PR_kwDOIPDwls5irOXw | 15,071 | combine docs chains as runnable | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] | open | false | null | [] | null | 1 | 2023-12-22T18:24:40 | 2023-12-27T22:53:55 | null | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15071/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15071/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15071",
"html_url": "https://github.com/langchain-ai/langchain/pull/15071",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15071.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15071.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15070 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15070/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15070/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15070/events | https://github.com/langchain-ai/langchain/pull/15070 | 2,054,352,213 | PR_kwDOIPDwls5irNfz | 15,070 | revamp getting started | {
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-22T18:22:09 | 2023-12-28T19:27:26 | 2023-12-28T19:27:25 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15070/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15070/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15070",
"html_url": "https://github.com/langchain-ai/langchain/pull/15070",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15070.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15070.patch",
"merged_at": "2023-12-28T19:27:25"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15069 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15069/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15069/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15069/events | https://github.com/langchain-ai/langchain/issues/15069 | 2,054,285,645 | I_kwDOIPDwls56celN | 15,069 | Structured Chat Output Parser doesn't work when model outputs a code block with ``` around the code block | {
"login": "ryanholtschneider2",
"id": 142806097,
"node_id": "U_kgDOCIMMUQ",
"avatar_url": "https://avatars.githubusercontent.com/u/142806097?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ryanholtschneider2",
"html_url": "https://github.com/ryanholtschneider2",
"followers_url": "https://api.github.com/users/ryanholtschneider2/followers",
"following_url": "https://api.github.com/users/ryanholtschneider2/following{/other_user}",
"gists_url": "https://api.github.com/users/ryanholtschneider2/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ryanholtschneider2/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ryanholtschneider2/subscriptions",
"organizations_url": "https://api.github.com/users/ryanholtschneider2/orgs",
"repos_url": "https://api.github.com/users/ryanholtschneider2/repos",
"events_url": "https://api.github.com/users/ryanholtschneider2/events{/privacy}",
"received_events_url": "https://api.github.com/users/ryanholtschneider2/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 3 | 2023-12-22T17:40:20 | 2024-01-02T18:44:18 | null | NONE | null | ### System Info
langchain==0.0.351
python==3.10
### Who can help?
@hwchase17 This should be an easy one to fix.
When using regex in the output parser of the StructuredChatAgent, the output parser cuts off the output at the first ending ``` it finds. For example, if my string was
```
"""```json
{
"action": "Final Answer",
"action_input": "Here is some basic Oceananigans code that sets up a simple simulation environment:\n\n```julia\nusing Oceananigans\n\n# Define the grid\ngrid = RectilinearGrid(size=(64, 64, 64), extent=(1, 1, 1))\n\n# Create a nonhydrostatic model\nmodel = NonhydrostaticModel(grid=grid)\n\n# The model is now ready for further configuration and running a simulation.\n```\n\nThis code initializes a `NonhydrostaticModel` on a 64x64x64 `RectilinearGrid` with an extent of 1x1x1 in each direction. The model is created with default settings, which you can customize according to your simulation needs."
}
```"""
```
Then the output parser would get """```json
{
"action": "Final Answer",
"action_input": "Here is some basic Oceananigans code that sets up a simple simulation environment:\n\n```julia\nusing Oceananigans\n\n# Define the grid\ngrid = RectilinearGrid(size=(64, 64, 64), extent=(1, 1, 1))\n\n# Create a nonhydrostatic model\nmodel = NonhydrostaticModel(grid=grid)\n\n# The model is now ready for further configuration and running a simulation.\n```
which would cause an error.
I have not throughly verified this solution but changing the regex in the structured chat output parser -
https://github.com/langchain-ai/langchain/blob/aad3d8bd47d7f5598156ff2bdcc8f736f24a7412/libs/langchain/langchain/agents/structured_chat/output_parser.py#L23
to pattern = re.compile(r"```json\s*\n(.*?)```(?=\s*```json|\Z)", re.DOTALL) seems to fix the problem.
### Information
- [ ] The official example notebooks/scripts
- [X] 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
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
pattern = re.compile(r"```(?:json\s+)?(\W.*?)```", re.DOTALL)
text="""```json
{
"action": "Final Answer",
"action_input": "Here is some basic Oceananigans code that sets up a simple simulation environment:\n\n```julia\nusing Oceananigans\n\n# Define the grid\ngrid = RectilinearGrid(size=(64, 64, 64), extent=(1, 1, 1))\n\n# Create a nonhydrostatic model\nmodel = NonhydrostaticModel(grid=grid)\n\n# The model is now ready for further configuration and running a simulation.\n```\n\nThis code initializes a `NonhydrostaticModel` on a 64x64x64 `RectilinearGrid` with an extent of 1x1x1 in each direction. The model is created with default settings, which you can customize according to your simulation needs."
}
```"""
action_match = pattern.search(text)
response = json.loads(action_match.group(1).strip(), strict=False)
### Expected behavior
I would expect the code to get the entire json blob block but it doesn't. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15069/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15069/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15068 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15068/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15068/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15068/events | https://github.com/langchain-ai/langchain/pull/15068 | 2,054,171,738 | PR_kwDOIPDwls5iqkEu | 15,068 | Refactor: use SecretStr for jina embeddings | {
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-22T16:34:34 | 2023-12-22T19:42:29 | 2023-12-22T19:42:29 | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15068/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15068/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15068",
"html_url": "https://github.com/langchain-ai/langchain/pull/15068",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15068.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15068.patch",
"merged_at": "2023-12-22T19:42:29"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15067 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15067/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15067/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15067/events | https://github.com/langchain-ai/langchain/pull/15067 | 2,054,154,289 | PR_kwDOIPDwls5iqf_e | 15,067 | Refactor: use SecretStr for minimax embeddings | {
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-22T16:27:20 | 2023-12-22T19:43:24 | 2023-12-22T19:43:24 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15067/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15067/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15067",
"html_url": "https://github.com/langchain-ai/langchain/pull/15067",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15067.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15067.patch",
"merged_at": "2023-12-22T19:43:24"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15066 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15066/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15066/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15066/events | https://github.com/langchain-ai/langchain/pull/15066 | 2,054,143,141 | PR_kwDOIPDwls5iqdar | 15,066 | Fix: fix partners name typo in tests | {
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 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": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
},
{
"id": 6348691034,
"node_id": "LA_kwDOIPDwls8AAAABemlWWg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/partner",
"name": "partner",
"color": "ededed",
"default": false,
"description": null
}
] | closed | false | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 1 | 2023-12-22T16:20:55 | 2023-12-22T19:48:39 | 2023-12-22T19:48:39 | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15066/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15066/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15066",
"html_url": "https://github.com/langchain-ai/langchain/pull/15066",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15066.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15066.patch",
"merged_at": "2023-12-22T19:48:39"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15065 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15065/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15065/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15065/events | https://github.com/langchain-ai/langchain/pull/15065 | 2,054,087,562 | PR_kwDOIPDwls5iqRHq | 15,065 | langchain(patch): Restrict paths in LocalFileStore cache | {
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-22T15:36:22 | 2023-12-22T16:20:19 | 2023-12-22T16:20:18 | COLLABORATOR | null | This PR restricts the paths that can be resolve using the local file system
cache so that all paths must be contained within the root path.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15065/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/15065/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15065",
"html_url": "https://github.com/langchain-ai/langchain/pull/15065",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15065.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15065.patch",
"merged_at": "2023-12-22T16:20:18"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15064 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15064/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15064/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15064/events | https://github.com/langchain-ai/langchain/pull/15064 | 2,054,033,878 | PR_kwDOIPDwls5iqFcX | 15,064 | Improve: remove extra spaces in get_from_env error | {
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6221234145,
"node_id": "LA_kwDOIPDwls8AAAABctB_4Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve",
"name": "area: langserve",
"color": "0FA0C8",
"default": false,
"description": ""
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-22T14:49:57 | 2023-12-22T19:50:04 | 2023-12-22T19:50:03 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15064/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15064/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15064",
"html_url": "https://github.com/langchain-ai/langchain/pull/15064",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15064.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15064.patch",
"merged_at": "2023-12-22T19:50:03"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15063 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15063/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15063/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15063/events | https://github.com/langchain-ai/langchain/pull/15063 | 2,054,009,426 | PR_kwDOIPDwls5ip_9e | 15,063 | Improve: correct VectorStore.search type annotation | {
"login": "chyroc",
"id": 15604894,
"node_id": "MDQ6VXNlcjE1NjA0ODk0",
"avatar_url": "https://avatars.githubusercontent.com/u/15604894?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chyroc",
"html_url": "https://github.com/chyroc",
"followers_url": "https://api.github.com/users/chyroc/followers",
"following_url": "https://api.github.com/users/chyroc/following{/other_user}",
"gists_url": "https://api.github.com/users/chyroc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chyroc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chyroc/subscriptions",
"organizations_url": "https://api.github.com/users/chyroc/orgs",
"repos_url": "https://api.github.com/users/chyroc/repos",
"events_url": "https://api.github.com/users/chyroc/events{/privacy}",
"received_events_url": "https://api.github.com/users/chyroc/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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 | 2023-12-22T14:34:04 | 2023-12-22T16:11:04 | 2023-12-22T16:11:04 | CONTRIBUTOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15063/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15063/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15063",
"html_url": "https://github.com/langchain-ai/langchain/pull/15063",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15063.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15063.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15062 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15062/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15062/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15062/events | https://github.com/langchain-ai/langchain/issues/15062 | 2,053,953,258 | I_kwDOIPDwls56bNbq | 15,062 | send context of docs through Chroma().as_retriever multiple times in the same conversation | {
"login": "akm79",
"id": 34024129,
"node_id": "MDQ6VXNlcjM0MDI0MTI5",
"avatar_url": "https://avatars.githubusercontent.com/u/34024129?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akm79",
"html_url": "https://github.com/akm79",
"followers_url": "https://api.github.com/users/akm79/followers",
"following_url": "https://api.github.com/users/akm79/following{/other_user}",
"gists_url": "https://api.github.com/users/akm79/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akm79/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akm79/subscriptions",
"organizations_url": "https://api.github.com/users/akm79/orgs",
"repos_url": "https://api.github.com/users/akm79/repos",
"events_url": "https://api.github.com/users/akm79/events{/privacy}",
"received_events_url": "https://api.github.com/users/akm79/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"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] | open | false | null | [] | null | 1 | 2023-12-22T13:52:13 | 2023-12-22T14:02:58 | null | NONE | null | in retrievalQa from langchain, we have a retriever that retrieves docs from a vector db and provides a context to the llm, let's say i'm using gpt3.5 whose max tokens is 4096... how do i handle huge context to be sent to it ? any suggestions will be appreciated | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15062/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15062/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15061 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15061/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15061/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15061/events | https://github.com/langchain-ai/langchain/issues/15061 | 2,053,949,456 | I_kwDOIPDwls56bMgQ | 15,061 | Using SQLDatabaseSequentialChain, discrepancy between Answer and SQLResult | {
"login": "ShehneelAhmedKhan",
"id": 151520970,
"node_id": "U_kgDOCQgGyg",
"avatar_url": "https://avatars.githubusercontent.com/u/151520970?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ShehneelAhmedKhan",
"html_url": "https://github.com/ShehneelAhmedKhan",
"followers_url": "https://api.github.com/users/ShehneelAhmedKhan/followers",
"following_url": "https://api.github.com/users/ShehneelAhmedKhan/following{/other_user}",
"gists_url": "https://api.github.com/users/ShehneelAhmedKhan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ShehneelAhmedKhan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShehneelAhmedKhan/subscriptions",
"organizations_url": "https://api.github.com/users/ShehneelAhmedKhan/orgs",
"repos_url": "https://api.github.com/users/ShehneelAhmedKhan/repos",
"events_url": "https://api.github.com/users/ShehneelAhmedKhan/events{/privacy}",
"received_events_url": "https://api.github.com/users/ShehneelAhmedKhan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 2 | 2023-12-22T13:48:55 | 2023-12-22T14:31:13 | null | NONE | null | ### Discussed in https://github.com/langchain-ai/langchain/discussions/15060
<div type='discussions-op-text'>
<sup>Originally posted by **ShehneelAhmedKhan** December 22, 2023</sup>
This is my code:
llm = OpenAI(temperature=0, model_name="gpt-3.5-turbo")
db_chain = SQLDatabaseSequentialChain.from_llm(llm=llm, database=db, verbose=True, top_k=0) # Can use top_k if face error
return db_chain.run(message)
Output:
![image](https://github.com/langchain-ai/langchain/assets/151520970/15d1c869-5e08-4c6b-bb3e-44ff3d0e4022)
The answer is denying although the sqlresult gets the answer.
Note: This is happening only in this table, other tables are being answered correctly.
using langchain==0.0.175
Any suggestion?</div> | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15061/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15061/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15059 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15059/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15059/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15059/events | https://github.com/langchain-ai/langchain/issues/15059 | 2,053,915,647 | I_kwDOIPDwls56bEP_ | 15,059 | How to use tool_choice with initialize_agent? | {
"login": "flyshangtian",
"id": 26320704,
"node_id": "MDQ6VXNlcjI2MzIwNzA0",
"avatar_url": "https://avatars.githubusercontent.com/u/26320704?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/flyshangtian",
"html_url": "https://github.com/flyshangtian",
"followers_url": "https://api.github.com/users/flyshangtian/followers",
"following_url": "https://api.github.com/users/flyshangtian/following{/other_user}",
"gists_url": "https://api.github.com/users/flyshangtian/gists{/gist_id}",
"starred_url": "https://api.github.com/users/flyshangtian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/flyshangtian/subscriptions",
"organizations_url": "https://api.github.com/users/flyshangtian/orgs",
"repos_url": "https://api.github.com/users/flyshangtian/repos",
"events_url": "https://api.github.com/users/flyshangtian/events{/privacy}",
"received_events_url": "https://api.github.com/users/flyshangtian/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] | open | false | null | [] | null | 3 | 2023-12-22T13:20:20 | 2023-12-22T14:56:51 | null | NONE | null | ### Issue you'd like to raise.
i want force the model to call a specific function. but i didn't found how to ues tool_choice with AgentExecutor from doc.
please give me demo. Thanks
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15059/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15059/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15058 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15058/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15058/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15058/events | https://github.com/langchain-ai/langchain/issues/15058 | 2,053,889,545 | I_kwDOIPDwls56a94J | 15,058 | Make it possible to give credentials directly via parameter on GoogleDriveLoader | {
"login": "Yanni8",
"id": 99135388,
"node_id": "U_kgDOBeivnA",
"avatar_url": "https://avatars.githubusercontent.com/u/99135388?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Yanni8",
"html_url": "https://github.com/Yanni8",
"followers_url": "https://api.github.com/users/Yanni8/followers",
"following_url": "https://api.github.com/users/Yanni8/following{/other_user}",
"gists_url": "https://api.github.com/users/Yanni8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Yanni8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Yanni8/subscriptions",
"organizations_url": "https://api.github.com/users/Yanni8/orgs",
"repos_url": "https://api.github.com/users/Yanni8/repos",
"events_url": "https://api.github.com/users/Yanni8/events{/privacy}",
"received_events_url": "https://api.github.com/users/Yanni8/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] | open | false | null | [] | null | 1 | 2023-12-22T12:59:29 | 2023-12-22T13:01:45 | null | CONTRIBUTOR | null | ### Feature request
The `GoogleDriveLoader` currently supports 3 different ways to authenticate a user.
1. Via a Service Account File
2. Via a Token File
3. Via a Live server
All those ways work perfectly, but I'm missing a way to authenticate the user via an existing JWT. There is a workaround by saving the JWT into a token file and providing this file via the `token_path` parameter. But there should also be a way to provide exactly these credentials via a parameter.
### Motivation
Maybe there is a use case where multiple accounts are required, or the user wants to authenticate over a third-party website running on an external server (not localhost). I think it would be useful to have a parameter that allows the functionality to pass a JWT without having to store it first in a file.
### Your contribution
I'm willing to submit a PR. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15058/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15058/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15057 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15057/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15057/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15057/events | https://github.com/langchain-ai/langchain/issues/15057 | 2,053,758,780 | I_kwDOIPDwls56ad88 | 15,057 | this world requires a Langchain framework written in the Rust language | {
"login": "Qoooooooooooo",
"id": 10413078,
"node_id": "MDQ6VXNlcjEwNDEzMDc4",
"avatar_url": "https://avatars.githubusercontent.com/u/10413078?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Qoooooooooooo",
"html_url": "https://github.com/Qoooooooooooo",
"followers_url": "https://api.github.com/users/Qoooooooooooo/followers",
"following_url": "https://api.github.com/users/Qoooooooooooo/following{/other_user}",
"gists_url": "https://api.github.com/users/Qoooooooooooo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Qoooooooooooo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Qoooooooooooo/subscriptions",
"organizations_url": "https://api.github.com/users/Qoooooooooooo/orgs",
"repos_url": "https://api.github.com/users/Qoooooooooooo/repos",
"events_url": "https://api.github.com/users/Qoooooooooooo/events{/privacy}",
"received_events_url": "https://api.github.com/users/Qoooooooooooo/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"
}
] | open | false | null | [] | null | 3 | 2023-12-22T11:01:51 | 2023-12-22T11:50:29 | null | NONE | null | ### Issue you'd like to raise.
Hi Guy, this world requires a Langchain framework written in the Rust language, and Python is not the future of AI.
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15057/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15057/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15056 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15056/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15056/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15056/events | https://github.com/langchain-ai/langchain/issues/15056 | 2,053,735,631 | I_kwDOIPDwls56aYTP | 15,056 | Add external browser authentication for Snowflake. | {
"login": "Yanni8",
"id": 99135388,
"node_id": "U_kgDOBeivnA",
"avatar_url": "https://avatars.githubusercontent.com/u/99135388?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Yanni8",
"html_url": "https://github.com/Yanni8",
"followers_url": "https://api.github.com/users/Yanni8/followers",
"following_url": "https://api.github.com/users/Yanni8/following{/other_user}",
"gists_url": "https://api.github.com/users/Yanni8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Yanni8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Yanni8/subscriptions",
"organizations_url": "https://api.github.com/users/Yanni8/orgs",
"repos_url": "https://api.github.com/users/Yanni8/repos",
"events_url": "https://api.github.com/users/Yanni8/events{/privacy}",
"received_events_url": "https://api.github.com/users/Yanni8/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] | open | false | null | [] | null | 1 | 2023-12-22T10:43:44 | 2023-12-22T10:46:01 | null | CONTRIBUTOR | null | ### Feature request
The [Snowflakeconnector](https://docs.snowflake.com/en/developer-guide/python-connector/python-connector-api#functions) supports authentication via browser. It would be nice if the [Langchain Snowflake Loader](https://python.langchain.com/docs/integrations/document_loaders/snowflake) also supports this feature
### Motivation
Basic authentication works in most cases. But there might be a use case where the user wants to use OAuth to log into his Snowflake instance.
### Your contribution
I'm willing to submit a PR | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15056/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15056/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15055 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15055/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15055/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15055/events | https://github.com/langchain-ai/langchain/pull/15055 | 2,053,641,038 | PR_kwDOIPDwls5iovJm | 15,055 | [community]: Elasticsearch chat history encoding | {
"login": "istrebitel-1",
"id": 58596654,
"node_id": "MDQ6VXNlcjU4NTk2NjU0",
"avatar_url": "https://avatars.githubusercontent.com/u/58596654?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/istrebitel-1",
"html_url": "https://github.com/istrebitel-1",
"followers_url": "https://api.github.com/users/istrebitel-1/followers",
"following_url": "https://api.github.com/users/istrebitel-1/following{/other_user}",
"gists_url": "https://api.github.com/users/istrebitel-1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/istrebitel-1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/istrebitel-1/subscriptions",
"organizations_url": "https://api.github.com/users/istrebitel-1/orgs",
"repos_url": "https://api.github.com/users/istrebitel-1/repos",
"events_url": "https://api.github.com/users/istrebitel-1/events{/privacy}",
"received_events_url": "https://api.github.com/users/istrebitel-1/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": 6077048506,
"node_id": "LA_kwDOIPDwls8AAAABajhmug",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20elasticsearch",
"name": "integration: elasticsearch",
"color": "DAB5EC",
"default": false,
"description": "Related to elastic/elasticsearch integrations"
},
{
"id": 6221234145,
"node_id": "LA_kwDOIPDwls8AAAABctB_4Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20langserve",
"name": "area: langserve",
"color": "0FA0C8",
"default": false,
"description": ""
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-22T09:30:42 | 2023-12-22T21:21:34 | 2023-12-22T21:21:34 | CONTRIBUTOR | null | - Added ensure_ascii property to ElasticsearchChatMessageHistory
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15055/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15055/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15055",
"html_url": "https://github.com/langchain-ai/langchain/pull/15055",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15055.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15055.patch",
"merged_at": "2023-12-22T21:21:34"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15054 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15054/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15054/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15054/events | https://github.com/langchain-ai/langchain/pull/15054 | 2,053,612,086 | PR_kwDOIPDwls5ioo1n | 15,054 | upgrade langchain-community version | {
"login": "majiayu000",
"id": 19658300,
"node_id": "MDQ6VXNlcjE5NjU4MzAw",
"avatar_url": "https://avatars.githubusercontent.com/u/19658300?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/majiayu000",
"html_url": "https://github.com/majiayu000",
"followers_url": "https://api.github.com/users/majiayu000/followers",
"following_url": "https://api.github.com/users/majiayu000/following{/other_user}",
"gists_url": "https://api.github.com/users/majiayu000/gists{/gist_id}",
"starred_url": "https://api.github.com/users/majiayu000/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/majiayu000/subscriptions",
"organizations_url": "https://api.github.com/users/majiayu000/orgs",
"repos_url": "https://api.github.com/users/majiayu000/repos",
"events_url": "https://api.github.com/users/majiayu000/events{/privacy}",
"received_events_url": "https://api.github.com/users/majiayu000/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-22T09:06:59 | 2023-12-22T19:51:12 | 2023-12-22T19:51:11 | CONTRIBUTOR | null | This pr enforce the latest version for some feature just like: change default openai model from davinci-003 to gpt-3.5.
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15054/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15054/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15054",
"html_url": "https://github.com/langchain-ai/langchain/pull/15054",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15054.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15054.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15053 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15053/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15053/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15053/events | https://github.com/langchain-ai/langchain/pull/15053 | 2,053,599,921 | PR_kwDOIPDwls5iomLk | 15,053 | corrected outdated link | {
"login": "gsajko",
"id": 42315895,
"node_id": "MDQ6VXNlcjQyMzE1ODk1",
"avatar_url": "https://avatars.githubusercontent.com/u/42315895?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gsajko",
"html_url": "https://github.com/gsajko",
"followers_url": "https://api.github.com/users/gsajko/followers",
"following_url": "https://api.github.com/users/gsajko/following{/other_user}",
"gists_url": "https://api.github.com/users/gsajko/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gsajko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gsajko/subscriptions",
"organizations_url": "https://api.github.com/users/gsajko/orgs",
"repos_url": "https://api.github.com/users/gsajko/repos",
"events_url": "https://api.github.com/users/gsajko/events{/privacy}",
"received_events_url": "https://api.github.com/users/gsajko/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-22T08:56:36 | 2023-12-22T20:39:38 | 2023-12-22T20:39:38 | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15053/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15053/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15053",
"html_url": "https://github.com/langchain-ai/langchain/pull/15053",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15053.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15053.patch",
"merged_at": "2023-12-22T20:39:38"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15052 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15052/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15052/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15052/events | https://github.com/langchain-ai/langchain/issues/15052 | 2,053,554,200 | I_kwDOIPDwls56ZsAY | 15,052 | ContextualCompressionRetriever for non-english languages | {
"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": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-12-22T08:16:48 | 2023-12-22T08:25:59 | null | NONE | null | ### Issue you'd like to raise.
Hi,
I want to use the ContextualCompressionRetriever and wondering how the prompt looks like or if you can use it for non-english languages (e.g. German)?
I am using ContextualCompressionRetriever at the moment and realized that my LLM responses often switch to English, so I am assuming that the prompt for ContextualCompressionRetriever is in English language and the model gets confused which language to use.
Any recommendations?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15052/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15052/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15051 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15051/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15051/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15051/events | https://github.com/langchain-ai/langchain/issues/15051 | 2,053,514,880 | I_kwDOIPDwls56ZiaA | 15,051 | oracle db when use sql agent can't find table name[Error: table_names] | {
"login": "hongyu-presight",
"id": 136590821,
"node_id": "U_kgDOCCQ15Q",
"avatar_url": "https://avatars.githubusercontent.com/u/136590821?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hongyu-presight",
"html_url": "https://github.com/hongyu-presight",
"followers_url": "https://api.github.com/users/hongyu-presight/followers",
"following_url": "https://api.github.com/users/hongyu-presight/following{/other_user}",
"gists_url": "https://api.github.com/users/hongyu-presight/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hongyu-presight/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hongyu-presight/subscriptions",
"organizations_url": "https://api.github.com/users/hongyu-presight/orgs",
"repos_url": "https://api.github.com/users/hongyu-presight/repos",
"events_url": "https://api.github.com/users/hongyu-presight/events{/privacy}",
"received_events_url": "https://api.github.com/users/hongyu-presight/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 1 | 2023-12-22T07:38:33 | 2023-12-22T07:45:10 | null | NONE | null | ### System Info
when i use sql agent, i want get table desc , but agent can't work , i am sure REPICA.ICA_PERSON_DATA_ALL table is existed
Question: Describe the REPICA.ICA_PERSON_DATA_ALL table
Thought: I should query the schema of the REPICA.ICA_PERSON_DATA_ALL table to get information about its columns and data types.
Action: sql_db_schema
Action Input: REPICA.ICA_PERSON_DATA_ALL
Observation: Error: table_names {'REPICA.ICA_PERSON_DATA_ALL'} not found in database
### 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
llm = ChatOpenAI(
openai_api_base=openai_api_base,
temperature=llm_temp,
openai_api_key=openai_api_key,
model_name=llm_model_name,
)
toolkit = SQLDatabaseToolkit(db=db, llm=llm)
agent_executor = create_sql_agent(llm = llm, toolkit=toolkit, prefix=prefix, verbose=True, agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION, top_k=10)
agent_executor.run("Describe the REPICA.ICA_PERSON_DATA_ALL table")
### Expected behavior
i need get REPICA.ICA_PERSON_DATA_ALL desc info | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15051/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15051/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15050 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15050/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15050/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15050/events | https://github.com/langchain-ai/langchain/issues/15050 | 2,053,484,432 | I_kwDOIPDwls56Za-Q | 15,050 | Error Code 400. Can ask follow up questions with agent_executor | {
"login": "shamussim-ai",
"id": 153708784,
"node_id": "U_kgDOCSlo8A",
"avatar_url": "https://avatars.githubusercontent.com/u/153708784?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shamussim-ai",
"html_url": "https://github.com/shamussim-ai",
"followers_url": "https://api.github.com/users/shamussim-ai/followers",
"following_url": "https://api.github.com/users/shamussim-ai/following{/other_user}",
"gists_url": "https://api.github.com/users/shamussim-ai/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shamussim-ai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shamussim-ai/subscriptions",
"organizations_url": "https://api.github.com/users/shamussim-ai/orgs",
"repos_url": "https://api.github.com/users/shamussim-ai/repos",
"events_url": "https://api.github.com/users/shamussim-ai/events{/privacy}",
"received_events_url": "https://api.github.com/users/shamussim-ai/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 4 | 2023-12-22T07:06:47 | 2024-01-04T00:50:47 | null | NONE | null | ### System Info
Python 3.10.10
langchain 0.0.350
langchain-community 0.0.3
langchain-core 0.1.1
google-search-results 2.4.2
Windows
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
**Summary**
Firstly, I ask the LangChain agent using code below and get a good response.
`result = agent_executor({"What is the recommended dose of doxycycline for acne for a male aged 12 years old?"})`
However, I ask a new followup question by changing the query and get and error.
`result = agent_executor({"What other forms of acne treatment are there for male teenagers around the age of 12 years old ?"})`
`BadRequestError: Error code: 400 - {'error': {'message': "'$.messages[1].content' is invalid.`
**Code Used**
```
model = AzureChatOpenAI(
openai_api_version="2023-12-01-preview",
azure_deployment="35-16k",
temperature=0
)
# Define which tools the agent can use to answer user queries
SERPAPI_API_KEY='------'
search = SerpAPIWrapper(serpapi_api_key=SERPAPI_API_KEY)
tools= [
Tool(
name="Search",
func=search.run,
description="useful for when you need to answer questions about current events"
)
]
# This is needed for both the memory and the prompt
memory_key = "history"
from langchain.agents.openai_functions_agent.agent_token_buffer_memory import (
AgentTokenBufferMemory,
)
memory = AgentTokenBufferMemory(memory_key=memory_key, llm=model, max_token_limit = 13000)
from langchain.agents.openai_functions_agent.base import OpenAIFunctionsAgent
from langchain.prompts import MessagesPlaceholder
from langchain_core.messages import SystemMessage
system_message = SystemMessage(
content=(
"You are an expert Doctor."
"Use the web search tool to gain insights from web search, summarise the results and provide an answer."
"Keep the source links during generation to produce inline citation."
"Cite search results using [${{number}}] notation. Only cite the most \
relevant results that answer the question accurately. Place these citations at the end \
of the sentence or paragraph that reference them - do not put them all at the end. If \
different results refer to different entities within the same name, write separate \
answers for each entity. If you want to cite multiple results for the same sentence, \
format it as `[${{number1}}] [${{number2}}]`. However, you should NEVER do this with the \
same number - if you want to cite `number1` multiple times for a sentence, only do \
`[${{number1}}]` not `[${{number1}}] [${{number1}}]`"
"From the retrieved results, generate an answer."
"At the end of the answer, show the source to the [${{number}}]. Follow this format, every [${{number}}] notation is followed by the corresponding source link "
"You should use bullet points in your answer for readability. Put citations where they apply \
rather than putting them all at the end."
)
)
prompt = OpenAIFunctionsAgent.create_prompt(
system_message=system_message,
extra_prompt_messages=[MessagesPlaceholder(variable_name=memory_key)],
)
#The Agent
agent = OpenAIFunctionsAgent(llm=model, tools=tools, prompt=prompt)
#The Agent Executor
from langchain.agents import AgentExecutor
agent_executor = AgentExecutor(
agent=agent,
tools=tools,
memory=memory,
verbose=True,
return_intermediate_steps=True,
)
result = agent_executor({"What is the recommended dose of doxycycline for acne for a male aged 12 years old?"})
```
**Output**
Shows good results
**Next** I run agen_executor with another question and this is where I get a bug.
result = agent_executor({"_new question_"})
Even if I just repeat the question ie use the initial one. I get this error.
**Error**
`---------------------------------------------------------------------------
BadRequestError Traceback (most recent call last)
Cell In[15], [line 1](vscode-notebook-cell:?execution_count=15&line=1)
----> [1](vscode-notebook-cell:?execution_count=15&line=1) result = agent_executor({"What is the recommended dose of doxycycline for acne for a male aged 12 years old?"})
File /anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:312, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
[310](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:310) except BaseException as e:
[311](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:311) run_manager.on_chain_error(e)
--> [312](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:312) raise e
[313](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:313) run_manager.on_chain_end(outputs)
[314](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:314) final_outputs: Dict[str, Any] = self.prep_outputs(
[315](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:315) inputs, outputs, return_only_outputs
[316](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:316) )
File /anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:306, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
[299](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:299) run_manager = callback_manager.on_chain_start(
[300](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:300) dumpd(self),
[301](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:301) inputs,
[302](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:302) name=run_name,
[303](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:303) )
[304](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:304) try:
[305](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:305) outputs = (
--> [306](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:306) self._call(inputs, run_manager=run_manager)
[307](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:307) if new_arg_supported
[308](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:308) else self._call(inputs)
...
(...)
[937](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/openai/_base_client.py:937) stream_cls=stream_cls,
[938](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/openai/_base_client.py:938) )
BadRequestError: Error code: 400 - {'error': {'message': "'$.messages[1].content' is invalid. Please check the API reference: https://platform.openai.com/docs/api-reference.", 'type': 'invalid_request_error', 'param': None, 'code': None}}`
### Expected behavior
Formatted normal output | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15050/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15050/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15049 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15049/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15049/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15049/events | https://github.com/langchain-ai/langchain/issues/15049 | 2,053,449,472 | I_kwDOIPDwls56ZScA | 15,049 | add Microsoft/Phi support | {
"login": "reddiamond1234",
"id": 122911466,
"node_id": "U_kgDOB1N66g",
"avatar_url": "https://avatars.githubusercontent.com/u/122911466?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/reddiamond1234",
"html_url": "https://github.com/reddiamond1234",
"followers_url": "https://api.github.com/users/reddiamond1234/followers",
"following_url": "https://api.github.com/users/reddiamond1234/following{/other_user}",
"gists_url": "https://api.github.com/users/reddiamond1234/gists{/gist_id}",
"starred_url": "https://api.github.com/users/reddiamond1234/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/reddiamond1234/subscriptions",
"organizations_url": "https://api.github.com/users/reddiamond1234/orgs",
"repos_url": "https://api.github.com/users/reddiamond1234/repos",
"events_url": "https://api.github.com/users/reddiamond1234/events{/privacy}",
"received_events_url": "https://api.github.com/users/reddiamond1234/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-12-22T06:28:54 | 2023-12-22T06:38:27 | null | NONE | null | ### Feature request
Microsoft's new model called [Phi](https://www.microsoft.com/en-us/research/blog/phi-2-the-surprising-power-of-small-language-models/) seems interesting...
### Motivation
Performance of smaller models 2-3B params can compare to models with 7B params.
### Your contribution
i don't know enough to so, otherwise i would submit a PR... | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15049/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15049/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15048 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15048/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15048/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15048/events | https://github.com/langchain-ai/langchain/issues/15048 | 2,053,440,880 | I_kwDOIPDwls56ZQVw | 15,048 | When I use the agent tool, I need to verify whether there are parameters in the problem. If there are no parameters, I will remind the user to input them. How can I implement this? | {
"login": "HappyWHoo",
"id": 53430154,
"node_id": "MDQ6VXNlcjUzNDMwMTU0",
"avatar_url": "https://avatars.githubusercontent.com/u/53430154?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/HappyWHoo",
"html_url": "https://github.com/HappyWHoo",
"followers_url": "https://api.github.com/users/HappyWHoo/followers",
"following_url": "https://api.github.com/users/HappyWHoo/following{/other_user}",
"gists_url": "https://api.github.com/users/HappyWHoo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/HappyWHoo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HappyWHoo/subscriptions",
"organizations_url": "https://api.github.com/users/HappyWHoo/orgs",
"repos_url": "https://api.github.com/users/HappyWHoo/repos",
"events_url": "https://api.github.com/users/HappyWHoo/events{/privacy}",
"received_events_url": "https://api.github.com/users/HappyWHoo/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] | open | false | null | [] | null | 2 | 2023-12-22T06:18:00 | 2023-12-22T06:26:38 | null | NONE | null | ### Issue you'd like to raise.
When I use the agent tool, I need to verify whether there are parameters in the problem. If there are no parameters, I will remind the user to input them. How can I implement this?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15048/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15048/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15046 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15046/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15046/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15046/events | https://github.com/langchain-ai/langchain/issues/15046 | 2,053,324,243 | I_kwDOIPDwls56Yz3T | 15,046 | GraphQAChain not working when using Networkx graphs !! | {
"login": "tkmamidi",
"id": 41593805,
"node_id": "MDQ6VXNlcjQxNTkzODA1",
"avatar_url": "https://avatars.githubusercontent.com/u/41593805?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tkmamidi",
"html_url": "https://github.com/tkmamidi",
"followers_url": "https://api.github.com/users/tkmamidi/followers",
"following_url": "https://api.github.com/users/tkmamidi/following{/other_user}",
"gists_url": "https://api.github.com/users/tkmamidi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tkmamidi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tkmamidi/subscriptions",
"organizations_url": "https://api.github.com/users/tkmamidi/orgs",
"repos_url": "https://api.github.com/users/tkmamidi/repos",
"events_url": "https://api.github.com/users/tkmamidi/events{/privacy}",
"received_events_url": "https://api.github.com/users/tkmamidi/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | closed | false | null | [] | null | 4 | 2023-12-22T03:28:50 | 2023-12-22T06:33:42 | 2023-12-22T06:33:41 | NONE | null | ### System Info
Langchain==0.0.352
MacOS intel version
python==3.8.3
networkx==2.7.1
### Who can help?
@hwchase17 @agola11 I have an issue when initializing GraphQAChain using networkx graph.
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I made a networkx graph and tried to initialize GraphQAChain but got the below error.
<img width="1010" alt="image" src="https://github.com/langchain-ai/langchain/assets/41593805/d4ba54bc-bf43-4303-8550-8ef75fb4b7e0">
<img width="1482" alt="image" src="https://github.com/langchain-ai/langchain/assets/41593805/c4286425-7df7-4c3a-bbc5-3e6e92a69786">
### Expected behavior
I would like to initialize GraphQAChain and chat with the network.
Please help! | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15046/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15046/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15045 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15045/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15045/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15045/events | https://github.com/langchain-ai/langchain/issues/15045 | 2,053,274,172 | I_kwDOIPDwls56Yno8 | 15,045 | NVIDIA Triton+TRT-LLM connector needs to handle dynamic model parameters | {
"login": "fciannella",
"id": 9897449,
"node_id": "MDQ6VXNlcjk4OTc0NDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9897449?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/fciannella",
"html_url": "https://github.com/fciannella",
"followers_url": "https://api.github.com/users/fciannella/followers",
"following_url": "https://api.github.com/users/fciannella/following{/other_user}",
"gists_url": "https://api.github.com/users/fciannella/gists{/gist_id}",
"starred_url": "https://api.github.com/users/fciannella/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fciannella/subscriptions",
"organizations_url": "https://api.github.com/users/fciannella/orgs",
"repos_url": "https://api.github.com/users/fciannella/repos",
"events_url": "https://api.github.com/users/fciannella/events{/privacy}",
"received_events_url": "https://api.github.com/users/fciannella/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": 6351948164,
"node_id": "LA_kwDOIPDwls8AAAABepsJhA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/NVIDIA",
"name": "NVIDIA",
"color": "9FDFFB",
"default": false,
"description": ""
}
] | open | false | null | [] | null | 1 | 2023-12-22T02:17:48 | 2023-12-22T02:27:21 | null | NONE | null | ### System Info
LangChain 0.0.348
langchain-nvidia-trt 0.0.1rc0
Python 3.11
### Who can help?
@jdye64
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
You can set up the triton server as in the quick start guide here using a nemotron model:
https://github.com/fciannella/langchain-fciannella/blob/master/libs/partners/nvidia-trt/README.md
Then you can just try sending a request from the LangChain plugin and it will not work.
Same thing if you follow the more complex setup.
The input and output parameters need to be discovered by the client. One option is to use pytriton as a client, or just pull the parameters from the server using an API call to get the triton configuration?
### Expected behavior
The client should provide a list of the mandatory parameters in the error code in case there is a missing parameter in the request. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15045/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15045/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15043 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15043/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15043/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15043/events | https://github.com/langchain-ai/langchain/issues/15043 | 2,053,256,211 | I_kwDOIPDwls56YjQT | 15,043 | BUG! The arguments of function calling returned by gpt 3.5 might not be a dict | {
"login": "d5423197",
"id": 61330860,
"node_id": "MDQ6VXNlcjYxMzMwODYw",
"avatar_url": "https://avatars.githubusercontent.com/u/61330860?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/d5423197",
"html_url": "https://github.com/d5423197",
"followers_url": "https://api.github.com/users/d5423197/followers",
"following_url": "https://api.github.com/users/d5423197/following{/other_user}",
"gists_url": "https://api.github.com/users/d5423197/gists{/gist_id}",
"starred_url": "https://api.github.com/users/d5423197/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/d5423197/subscriptions",
"organizations_url": "https://api.github.com/users/d5423197/orgs",
"repos_url": "https://api.github.com/users/d5423197/repos",
"events_url": "https://api.github.com/users/d5423197/events{/privacy}",
"received_events_url": "https://api.github.com/users/d5423197/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 3 | 2023-12-22T01:48:52 | 2024-01-03T03:47:34 | null | NONE | null | https://github.com/langchain-ai/langchain/blob/2460f977c5c20073b41803c41fd08945be34cd60/libs/langchain/langchain/agents/output_parsers/openai_functions.py#L49
Eeven though you pass your customized function, gpt-3.5 will often return a function call which name is "python" and the arguments are not in json format.
I would suggest to check the function name here. (Idea from Open Interpreter Source Code)
Thanks,
ZD | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15043/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15043/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15040 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15040/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15040/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15040/events | https://github.com/langchain-ai/langchain/pull/15040 | 2,053,210,052 | PR_kwDOIPDwls5inSFu | 15,040 | Add Runnable.get_graph() to get a graph representation of a Runnable | {
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-22T00:30:33 | 2023-12-22T19:40:46 | 2023-12-22T19:40:45 | COLLABORATOR | null | It can be drawn in ascii with Runnable.get_graph().draw()
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15040/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15040/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15040",
"html_url": "https://github.com/langchain-ai/langchain/pull/15040",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15040.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15040.patch",
"merged_at": "2023-12-22T19:40:45"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15039 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15039/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15039/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15039/events | https://github.com/langchain-ai/langchain/issues/15039 | 2,053,180,711 | I_kwDOIPDwls56YQ0n | 15,039 | AzureSearch Bug -- langchain.vectorstores.azuresearch | {
"login": "RERobbins",
"id": 20007145,
"node_id": "MDQ6VXNlcjIwMDA3MTQ1",
"avatar_url": "https://avatars.githubusercontent.com/u/20007145?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RERobbins",
"html_url": "https://github.com/RERobbins",
"followers_url": "https://api.github.com/users/RERobbins/followers",
"following_url": "https://api.github.com/users/RERobbins/following{/other_user}",
"gists_url": "https://api.github.com/users/RERobbins/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RERobbins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RERobbins/subscriptions",
"organizations_url": "https://api.github.com/users/RERobbins/orgs",
"repos_url": "https://api.github.com/users/RERobbins/repos",
"events_url": "https://api.github.com/users/RERobbins/events{/privacy}",
"received_events_url": "https://api.github.com/users/RERobbins/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 1 | 2023-12-21T23:45:19 | 2023-12-21T23:53:05 | null | NONE | null | ### System Info
The example found [here](https://python.langchain.com/docs/integrations/vectorstores/azuresearch) and in particular this code fragment
```
embeddings: OpenAIEmbeddings = OpenAIEmbeddings(deployment=model, chunk_size=1)
index_name: str = "langchain-vector-demo"
vector_store: AzureSearch = AzureSearch(
azure_search_endpoint=vector_store_address,
azure_search_key=vector_store_password,
index_name=index_name,
embedding_function=embeddings.embed_query,
)
```
fails with a message that at the top is:
```
vector_search_configuration is not a known attribute of class <class 'azure.search.documents.indexes.models._index.SearchField'> and will be ignored
semantic_settings is not a known attribute of class <class 'azure.search.documents.indexes.models._index.SearchIndex'> and will be ignored
```
and culminates with:
```
HttpResponseError: (InvalidRequestParameter) The request is invalid. Details: definition : The vector field 'content_vector' must have the property 'vectorSearchConfiguration' set.
Code: InvalidRequestParameter
Message: The request is invalid. Details: definition : The vector field 'content_vector' must have the property 'vectorSearchConfiguration' set.
Exception Details: (InvalidField) The vector field 'content_vector' must have the property 'vectorSearchConfiguration' set. Parameters: definition
Code: InvalidField
Message: The vector field 'content_vector' must have the property 'vectorSearchConfiguration' set. Parameters: definition
```
I am running with `python 3.10`, `openai 1.5.0`, `langchain 0.0.351` and `azure-search-documents 11.4.0`. If I revert to `azure-search-documents 11.4.0b8` the code works.
This appears to be related to the November 2023 Microsoft API change which introduced the concept of a "profile" which aggregates various vector search settings under one name. As a result of this API change, the old "vector_search_configuration" was deprecated and a new "vector_search_profile" was added, along with a new "profiles" object. It seems that the Langchain extension has not been updated for this change and expects the old "vector_search_configuration" property which doesn't exist on newer SDK releases.
See the discussion [here](https://stackoverflow.com/questions/77682544/vector-search-configuration-is-not-a-known-attribute-of-class-class-azure-sear/77694628#77694628).
### Who can help?
@hwchase17
@bas
### 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
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
The following sample code fragment from [here:(https://python.langchain.com/docs/integrations/vectorstores/azuresearch) fails.
```
import os
from langchain.embeddings import OpenAIEmbeddings
from langchain.vectorstores.azuresearch import AzureSearch
os.environ["OPENAI_API_TYPE"] = "azure"
os.environ["OPENAI_API_BASE"] = "YOUR_OPENAI_ENDPOINT"
os.environ["OPENAI_API_KEY"] = "YOUR_OPENAI_API_KEY"
os.environ["OPENAI_API_VERSION"] = "2023-05-15"
model: str = "text-embedding-ada-002"
vector_store_address: str = "YOUR_AZURE_SEARCH_ENDPOINT"
vector_store_password: str = "YOUR_AZURE_SEARCH_ADMIN_KEY"
embeddings: OpenAIEmbeddings = OpenAIEmbeddings(deployment=model, chunk_size=1)
index_name: str = "langchain-vector-demo"
vector_store: AzureSearch = AzureSearch(
azure_search_endpoint=vector_store_address,
azure_search_key=vector_store_password,
index_name=index_name,
embedding_function=embeddings.embed_query,
)
```
### Expected behavior
The code should run without failure and return a vector store. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15039/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15039/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15037 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15037/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15037/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15037/events | https://github.com/langchain-ai/langchain/issues/15037 | 2,053,166,082 | I_kwDOIPDwls56YNQC | 15,037 | Issue: ValueError: Could not parse output: | {
"login": "JeremyCraigMartinez",
"id": 6334199,
"node_id": "MDQ6VXNlcjYzMzQxOTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/6334199?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/JeremyCraigMartinez",
"html_url": "https://github.com/JeremyCraigMartinez",
"followers_url": "https://api.github.com/users/JeremyCraigMartinez/followers",
"following_url": "https://api.github.com/users/JeremyCraigMartinez/following{/other_user}",
"gists_url": "https://api.github.com/users/JeremyCraigMartinez/gists{/gist_id}",
"starred_url": "https://api.github.com/users/JeremyCraigMartinez/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JeremyCraigMartinez/subscriptions",
"organizations_url": "https://api.github.com/users/JeremyCraigMartinez/orgs",
"repos_url": "https://api.github.com/users/JeremyCraigMartinez/repos",
"events_url": "https://api.github.com/users/JeremyCraigMartinez/events{/privacy}",
"received_events_url": "https://api.github.com/users/JeremyCraigMartinez/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-12-21T23:20:12 | 2023-12-21T23:26:51 | null | NONE | null | ### Issue you'd like to raise.
Seeing an issue in my code that appeared out of nowhere, hoping for some support here. The error message I am seeing is `ValueError: Could not parse output: Answer to inquiry from OpenAI. Score: 90` from the output_parsers/regex.py (https://github.com/langchain-ai/langchain/blob/v0.0.257/libs/langchain/langchain/output_parsers/regex.py#L35)
Langchain version: v0.0.257
LLM OpenAI: https://github.com/langchain-ai/langchain/blob/v0.0.257/libs/langchain/langchain/llms/openai.py
Model: text-davinci-003
Chain type: map_rerank (https://github.com/langchain-ai/langchain/blob/v0.0.257/libs/langchain/langchain/chains/combine_documents/map_rerank.py)
Vector store: Qdrant
Code to reproduce:
```python
import os
from pathlib import Path
from langchain import OpenAI, PromptTemplate
from langchain.chains import RetrievalQAWithSourcesChain
from langchain.memory import FileChatMessageHistory
import logging
from service import db
logging.basicConfig(level=logging.DEBUG)
def conversation(question):
collection_name = "qdrant_collection_name"
llm = OpenAI(model='text-davinci-003', openai_api_key=os.environ['OPENAI_API_KEY'], temperature=0.0)
combine_prompt_template = """
'DOCUMENTS:
{summaries}
QUESTION:
{question}
### Response:
"""
COMBINE_PROMPT = PromptTemplate(
template=combine_prompt_template, input_variables=["summaries", "question"]
)
qa_chain = RetrievalQAWithSourcesChain.from_chain_type(
llm,
chain_type='map_rerank',
retriever=db.vectorstore(collection_name).as_retriever(),
return_source_documents=True,
reduce_k_below_max_tokens=True,
)
return qa_chain({"question": question})['answer']
if __name__ == "__main__":
print(conversation('How do I add sales tax to a transaction in avatax?'))
```
Also posting on Stackoverflow
### Suggestion:
N/A | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15037/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15037/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15036 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15036/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15036/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15036/events | https://github.com/langchain-ai/langchain/pull/15036 | 2,053,155,700 | PR_kwDOIPDwls5inGcn | 15,036 | Community: Fix generation_config not setting properly for DeepSparse | {
"login": "mgoin",
"id": 3195154,
"node_id": "MDQ6VXNlcjMxOTUxNTQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/3195154?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mgoin",
"html_url": "https://github.com/mgoin",
"followers_url": "https://api.github.com/users/mgoin/followers",
"following_url": "https://api.github.com/users/mgoin/following{/other_user}",
"gists_url": "https://api.github.com/users/mgoin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mgoin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mgoin/subscriptions",
"organizations_url": "https://api.github.com/users/mgoin/orgs",
"repos_url": "https://api.github.com/users/mgoin/repos",
"events_url": "https://api.github.com/users/mgoin/events{/privacy}",
"received_events_url": "https://api.github.com/users/mgoin/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": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-21T23:03:45 | 2023-12-22T06:39:22 | 2023-12-22T06:39:22 | CONTRIBUTOR | null | - **Description:** Tiny but important bugfix to use a more stable interface for specifying generation_config parameters for DeepSparse LLM | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15036/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15036/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15036",
"html_url": "https://github.com/langchain-ai/langchain/pull/15036",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15036.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15036.patch",
"merged_at": "2023-12-22T06:39:22"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15035 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15035/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15035/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15035/events | https://github.com/langchain-ai/langchain/pull/15035 | 2,053,104,439 | PR_kwDOIPDwls5im7S2 | 15,035 | infra: CI python matrix update 3.12 | {
"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": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | null | [] | null | 1 | 2023-12-21T21:58:05 | 2024-01-04T00:03:03 | null | COLLABORATOR | null | Adds python 3.12 to our testing matrix
Also:
- only runs scheduled tests with python 3.8 and 3.12 (not all versions)
Current work:
- duckdb not compatible - need fix or workaround: https://github.com/duckdb/duckdb/issues/9301 | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15035/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15035/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15035",
"html_url": "https://github.com/langchain-ai/langchain/pull/15035",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15035.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15035.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15033 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15033/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15033/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15033/events | https://github.com/langchain-ai/langchain/pull/15033 | 2,053,048,668 | PR_kwDOIPDwls5imvKp | 15,033 | wip: combine docs chain as runnable | {
"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": 6232714119,
"node_id": "LA_kwDOIPDwls8AAAABc3-rhw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:M",
"name": "size:M",
"color": "C5DEF5",
"default": false,
"description": "This PR changes 30-99 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-21T20:55:42 | 2023-12-26T15:54:47 | 2023-12-26T15:54:47 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15033/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15033/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15033",
"html_url": "https://github.com/langchain-ai/langchain/pull/15033",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15033.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15033.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15031 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15031/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15031/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15031/events | https://github.com/langchain-ai/langchain/pull/15031 | 2,053,026,643 | PR_kwDOIPDwls5imqUm | 15,031 | Add option to make messages placeholder optional | {
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-21T20:32:16 | 2023-12-21T20:36:38 | 2023-12-21T20:36:37 | COLLABORATOR | null | <!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15031/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15031/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15031",
"html_url": "https://github.com/langchain-ai/langchain/pull/15031",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15031.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15031.patch",
"merged_at": "2023-12-21T20:36:37"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15029 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15029/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15029/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15029/events | https://github.com/langchain-ai/langchain/pull/15029 | 2,053,021,161 | PR_kwDOIPDwls5impHr | 15,029 | Community: Adds ability to pass a Config to the boto3 client used by Bedrock | {
"login": "blanehoneycutt-addepar",
"id": 101598576,
"node_id": "U_kgDOBg5FcA",
"avatar_url": "https://avatars.githubusercontent.com/u/101598576?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/blanehoneycutt-addepar",
"html_url": "https://github.com/blanehoneycutt-addepar",
"followers_url": "https://api.github.com/users/blanehoneycutt-addepar/followers",
"following_url": "https://api.github.com/users/blanehoneycutt-addepar/following{/other_user}",
"gists_url": "https://api.github.com/users/blanehoneycutt-addepar/gists{/gist_id}",
"starred_url": "https://api.github.com/users/blanehoneycutt-addepar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/blanehoneycutt-addepar/subscriptions",
"organizations_url": "https://api.github.com/users/blanehoneycutt-addepar/orgs",
"repos_url": "https://api.github.com/users/blanehoneycutt-addepar/repos",
"events_url": "https://api.github.com/users/blanehoneycutt-addepar/events{/privacy}",
"received_events_url": "https://api.github.com/users/blanehoneycutt-addepar/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": 5959659008,
"node_id": "LA_kwDOIPDwls8AAAABYzkuAA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20aws",
"name": "integration: aws",
"color": "C5DEF5",
"default": false,
"description": "Related to Amazon Web Services (AWS) integrations"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-21T20:26:25 | 2024-01-03T19:09:56 | 2023-12-22T20:42:56 | CONTRIBUTOR | null | # Description
This PR adds the ability to pass a `botocore.config.Config` instance to the boto3 client instantiated by the Bedrock LLM.
Currently, the Bedrock LLM doesn't support a way to pass a Config, which means that some settings (e.g., timeouts and retry configuration) require instantiating a new boto3 client with a Config and then replacing the LLM's client:
```python
llm = Bedrock(
region_name='us-west-2',
model_id="anthropic.claude-v2",
model_kwargs={'max_tokens_to_sample': 4096, 'temperature': 0},
)
llm.client = boto_client('bedrock-runtime', region_name='us-west-2', config=Config({'read_timeout': 300}))
```
# Issue
N/A
# Dependencies
N/A | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15029/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15029/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15029",
"html_url": "https://github.com/langchain-ai/langchain/pull/15029",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15029.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15029.patch",
"merged_at": "2023-12-22T20:42:56"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15028 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15028/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15028/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15028/events | https://github.com/langchain-ai/langchain/pull/15028 | 2,053,012,891 | PR_kwDOIPDwls5imnSl | 15,028 | Harrison/agents rewrite | {
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-21T20:18:15 | 2023-12-28T21:50:23 | 2023-12-28T21:50:22 | COLLABORATOR | null | havent marked the class as deprecated yet, will likely want to do all in one go (with other classes) | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15028/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15028/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15028",
"html_url": "https://github.com/langchain-ai/langchain/pull/15028",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15028.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15028.patch",
"merged_at": "2023-12-28T21:50:22"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15027 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15027/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15027/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15027/events | https://github.com/langchain-ai/langchain/pull/15027 | 2,053,000,160 | PR_kwDOIPDwls5imkge | 15,027 | CI: update poetry 1.6.1 -> 1.7.1 | {
"login": "purificant",
"id": 4669013,
"node_id": "MDQ6VXNlcjQ2NjkwMTM=",
"avatar_url": "https://avatars.githubusercontent.com/u/4669013?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/purificant",
"html_url": "https://github.com/purificant",
"followers_url": "https://api.github.com/users/purificant/followers",
"following_url": "https://api.github.com/users/purificant/following{/other_user}",
"gists_url": "https://api.github.com/users/purificant/gists{/gist_id}",
"starred_url": "https://api.github.com/users/purificant/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/purificant/subscriptions",
"organizations_url": "https://api.github.com/users/purificant/orgs",
"repos_url": "https://api.github.com/users/purificant/repos",
"events_url": "https://api.github.com/users/purificant/events{/privacy}",
"received_events_url": "https://api.github.com/users/purificant/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714108,
"node_id": "LA_kwDOIPDwls8AAAABc3-rfA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:S",
"name": "size:S",
"color": "BFDADC",
"default": false,
"description": "This PR changes 10-29 lines, ignoring generated files."
}
] | closed | false | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
] | null | 4 | 2023-12-21T20:05:45 | 2024-01-17T16:51:21 | 2024-01-17T16:51:21 | CONTRIBUTOR | null | CI: Update poetry version 1.6.1 -> 1.7.1 to bring many fixes and python 3.12 support
Changelog: [1.7.0](https://github.com/python-poetry/poetry/releases/tag/1.7.0), [1.7.1](https://github.com/python-poetry/poetry/releases/tag/1.7.1)
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15027/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15027/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15027",
"html_url": "https://github.com/langchain-ai/langchain/pull/15027",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15027.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15027.patch",
"merged_at": "2024-01-17T16:51:21"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15026 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15026/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15026/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15026/events | https://github.com/langchain-ai/langchain/pull/15026 | 2,052,987,536 | PR_kwDOIPDwls5imhrP | 15,026 | Move json and xml parsers to core | {
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-21T19:56:15 | 2023-12-21T20:36:57 | 2023-12-21T20:36:57 | COLLABORATOR | null | <!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15026/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15026/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15026",
"html_url": "https://github.com/langchain-ai/langchain/pull/15026",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15026.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15026.patch",
"merged_at": "2023-12-21T20:36:56"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15025 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15025/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15025/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15025/events | https://github.com/langchain-ai/langchain/pull/15025 | 2,052,934,651 | PR_kwDOIPDwls5imWCt | 15,025 | docs/docs/get_started: fixing typos in quickstart.mdx | {
"login": "SatinWukerORIG",
"id": 74630829,
"node_id": "MDQ6VXNlcjc0NjMwODI5",
"avatar_url": "https://avatars.githubusercontent.com/u/74630829?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SatinWukerORIG",
"html_url": "https://github.com/SatinWukerORIG",
"followers_url": "https://api.github.com/users/SatinWukerORIG/followers",
"following_url": "https://api.github.com/users/SatinWukerORIG/following{/other_user}",
"gists_url": "https://api.github.com/users/SatinWukerORIG/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SatinWukerORIG/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SatinWukerORIG/subscriptions",
"organizations_url": "https://api.github.com/users/SatinWukerORIG/orgs",
"repos_url": "https://api.github.com/users/SatinWukerORIG/repos",
"events_url": "https://api.github.com/users/SatinWukerORIG/events{/privacy}",
"received_events_url": "https://api.github.com/users/SatinWukerORIG/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-21T19:07:20 | 2023-12-22T20:55:44 | 2023-12-22T20:55:44 | CONTRIBUTOR | null |
Fixing typos: it's -> its
Fixing grammatical mistakes:
* having to worry -> worrying
* convert -> converts
* few main types -> a few main types | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15025/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15025/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15025",
"html_url": "https://github.com/langchain-ai/langchain/pull/15025",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15025.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15025.patch",
"merged_at": "2023-12-22T20:55:44"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15024 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15024/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15024/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15024/events | https://github.com/langchain-ai/langchain/issues/15024 | 2,052,931,048 | I_kwDOIPDwls56XT3o | 15,024 | Ollama integration: The stop sequence is empty when do inference | {
"login": "valentimarco",
"id": 26926690,
"node_id": "MDQ6VXNlcjI2OTI2Njkw",
"avatar_url": "https://avatars.githubusercontent.com/u/26926690?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/valentimarco",
"html_url": "https://github.com/valentimarco",
"followers_url": "https://api.github.com/users/valentimarco/followers",
"following_url": "https://api.github.com/users/valentimarco/following{/other_user}",
"gists_url": "https://api.github.com/users/valentimarco/gists{/gist_id}",
"starred_url": "https://api.github.com/users/valentimarco/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/valentimarco/subscriptions",
"organizations_url": "https://api.github.com/users/valentimarco/orgs",
"repos_url": "https://api.github.com/users/valentimarco/repos",
"events_url": "https://api.github.com/users/valentimarco/events{/privacy}",
"received_events_url": "https://api.github.com/users/valentimarco/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 3 | 2023-12-21T19:04:00 | 2023-12-21T19:14:40 | null | NONE | null | ## Describe the problem
When do inference (with the llm or chat model) we pass a empty list to POST request, when the "stop" attribute of `_create_stream` is not set.
This create a problem when using model, bc ollama override the stop sequence list of the model with the list we pass in the request
## Solution
I tried in local, and by deleting this [line](https://github.com/langchain-ai/langchain/blob/1b01ee0e3c7f0df5855c7440d471ddab4f0efc7e/libs/community/langchain_community/llms/ollama.py#L162C1-L162C1) , the stop list will be set by ollama when we don't have either a "global stop" (the one we define in the costructor of the ollama or chatollama class) or a stop sequence from the calling of the function.
Also ollama know support a new endpoint to retrive information about the model (using GET /api/show), but need parsing so Maybe it's a idea for the future...
Yes, i know
"if you are working with one model, just put the stop sequences and ez" but i think is very bad...
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15024/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15024/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15023 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15023/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15023/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15023/events | https://github.com/langchain-ai/langchain/pull/15023 | 2,052,930,076 | PR_kwDOIPDwls5imVBY | 15,023 | community[patch]: Release 0.0.6 | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-21T19:03:04 | 2023-12-21T19:37:45 | 2023-12-21T19:37:45 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15023/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15023/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15023",
"html_url": "https://github.com/langchain-ai/langchain/pull/15023",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15023.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15023.patch",
"merged_at": "2023-12-21T19:37:45"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15022 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15022/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15022/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15022/events | https://github.com/langchain-ai/langchain/pull/15022 | 2,052,928,525 | PR_kwDOIPDwls5imUsY | 15,022 | core[patch]: Release 0.1.3 | {
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-21T19:01:34 | 2023-12-21T19:35:16 | 2023-12-21T19:35:16 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15022/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15022/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15022",
"html_url": "https://github.com/langchain-ai/langchain/pull/15022",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15022.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15022.patch",
"merged_at": "2023-12-21T19:35:16"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15021 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15021/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15021/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15021/events | https://github.com/langchain-ai/langchain/pull/15021 | 2,052,928,358 | PR_kwDOIPDwls5imUqM | 15,021 | docs: updated the right path for integrations page | {
"login": "cyai",
"id": 83634399,
"node_id": "MDQ6VXNlcjgzNjM0Mzk5",
"avatar_url": "https://avatars.githubusercontent.com/u/83634399?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cyai",
"html_url": "https://github.com/cyai",
"followers_url": "https://api.github.com/users/cyai/followers",
"following_url": "https://api.github.com/users/cyai/following{/other_user}",
"gists_url": "https://api.github.com/users/cyai/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cyai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cyai/subscriptions",
"organizations_url": "https://api.github.com/users/cyai/orgs",
"repos_url": "https://api.github.com/users/cyai/repos",
"events_url": "https://api.github.com/users/cyai/events{/privacy}",
"received_events_url": "https://api.github.com/users/cyai/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-21T19:01:23 | 2023-12-21T19:14:11 | 2023-12-21T19:04:39 | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
- **Description:** Updated the right path for Integrations Page to resolve 404 Not Found issue on the website,
- **Issue:** #14998 ,
- **Dependencies:** No dependencies required,
- **Twitter handle:** [@vardhaman722](https://twitter.com/vardhaman722)
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15021/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15021/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15021",
"html_url": "https://github.com/langchain-ai/langchain/pull/15021",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15021.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15021.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15020 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15020/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15020/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15020/events | https://github.com/langchain-ai/langchain/issues/15020 | 2,052,920,653 | I_kwDOIPDwls56XRVN | 15,020 | It's possible agent Langchain return a Pandas Dataframe? | {
"login": "leslliesayrus",
"id": 105139455,
"node_id": "U_kgDOBkRM_w",
"avatar_url": "https://avatars.githubusercontent.com/u/105139455?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leslliesayrus",
"html_url": "https://github.com/leslliesayrus",
"followers_url": "https://api.github.com/users/leslliesayrus/followers",
"following_url": "https://api.github.com/users/leslliesayrus/following{/other_user}",
"gists_url": "https://api.github.com/users/leslliesayrus/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leslliesayrus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leslliesayrus/subscriptions",
"organizations_url": "https://api.github.com/users/leslliesayrus/orgs",
"repos_url": "https://api.github.com/users/leslliesayrus/repos",
"events_url": "https://api.github.com/users/leslliesayrus/events{/privacy}",
"received_events_url": "https://api.github.com/users/leslliesayrus/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"
}
] | open | false | null | [] | null | 1 | 2023-12-21T18:54:13 | 2023-12-21T18:56:34 | null | NONE | null | ### Feature request
I am developing an application using Langchain with the following code
```
from langchain.agents.agent_types import AgentType
from langchain.chat_models import ChatOpenAI
from langchain_experimental.agents.agent_toolkits import create_pandas_dataframe_agent
import pandas as pd
from langchain.llms import OpenAI
df = pd.read_csv("titanic.csv")
agent = create_pandas_dataframe_agent(OpenAI(temperature=0), df, verbose=True)
agent.run("how many rows are there?")
```
I would like to know if the agent can return a DataFrame instead of the response as text. For example, if I ask it to add a column, it would return a DataFrame as a response with the added column.
### Motivation
A new feature would help in automation.
### Your contribution
What can I do to help with the project, count me in! | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15020/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15020/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15018 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15018/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15018/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15018/events | https://github.com/langchain-ai/langchain/pull/15018 | 2,052,814,097 | PR_kwDOIPDwls5il7nS | 15,018 | infra: api docs build order | {
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-21T17:26:37 | 2023-12-21T19:05:03 | 2023-12-21T19:05:02 | COLLABORATOR | null | null | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15018/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15018/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15018",
"html_url": "https://github.com/langchain-ai/langchain/pull/15018",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15018.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15018.patch",
"merged_at": "2023-12-21T19:05:02"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15017 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15017/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15017/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15017/events | https://github.com/langchain-ai/langchain/pull/15017 | 2,052,757,696 | PR_kwDOIPDwls5ilvIP | 15,017 | community: refactor Baseten integration with new API endpoints & docs | {
"login": "philipkiely-baseten",
"id": 98474633,
"node_id": "U_kgDOBd6aiQ",
"avatar_url": "https://avatars.githubusercontent.com/u/98474633?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/philipkiely-baseten",
"html_url": "https://github.com/philipkiely-baseten",
"followers_url": "https://api.github.com/users/philipkiely-baseten/followers",
"following_url": "https://api.github.com/users/philipkiely-baseten/following{/other_user}",
"gists_url": "https://api.github.com/users/philipkiely-baseten/gists{/gist_id}",
"starred_url": "https://api.github.com/users/philipkiely-baseten/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/philipkiely-baseten/subscriptions",
"organizations_url": "https://api.github.com/users/philipkiely-baseten/orgs",
"repos_url": "https://api.github.com/users/philipkiely-baseten/repos",
"events_url": "https://api.github.com/users/philipkiely-baseten/events{/privacy}",
"received_events_url": "https://api.github.com/users/philipkiely-baseten/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 2 | 2023-12-21T16:47:10 | 2023-12-22T20:46:25 | 2023-12-22T20:46:24 | CONTRIBUTOR | null | - **Description:** In response to user feedback, this PR refactors the Baseten integration with updated model endpoints, as well as updates relevant documentation. This PR has been tested by end users in production and works as expected.
- **Issue:** N/A
- **Dependencies:** This PR actually removes the dependency on the `baseten` package!
- **Twitter handle:** https://twitter.com/basetenco | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15017/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15017/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15017",
"html_url": "https://github.com/langchain-ai/langchain/pull/15017",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15017.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15017.patch",
"merged_at": "2023-12-22T20:46:24"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15016 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15016/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15016/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15016/events | https://github.com/langchain-ai/langchain/issues/15016 | 2,052,739,238 | I_kwDOIPDwls56WlCm | 15,016 | AttributeError while executing VectorstoreIndexCreator & DocArrayInMemorySearch | {
"login": "maheshnampoothirikv123",
"id": 154541893,
"node_id": "U_kgDOCTYfRQ",
"avatar_url": "https://avatars.githubusercontent.com/u/154541893?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maheshnampoothirikv123",
"html_url": "https://github.com/maheshnampoothirikv123",
"followers_url": "https://api.github.com/users/maheshnampoothirikv123/followers",
"following_url": "https://api.github.com/users/maheshnampoothirikv123/following{/other_user}",
"gists_url": "https://api.github.com/users/maheshnampoothirikv123/gists{/gist_id}",
"starred_url": "https://api.github.com/users/maheshnampoothirikv123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maheshnampoothirikv123/subscriptions",
"organizations_url": "https://api.github.com/users/maheshnampoothirikv123/orgs",
"repos_url": "https://api.github.com/users/maheshnampoothirikv123/repos",
"events_url": "https://api.github.com/users/maheshnampoothirikv123/events{/privacy}",
"received_events_url": "https://api.github.com/users/maheshnampoothirikv123/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 | 10 | 2023-12-21T16:34:48 | 2023-12-29T02:46:43 | null | NONE | null | ### System Info
I am using below packages.
Python 3.12.1
langchain 0.0.352
pydantic 2.5.2
openai 1.4.0
huggingface-hub 0.19.4
### 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
While executing the below code from deeplearning.ai
from langchain.chains import RetrievalQA
from langchain.chat_models import ChatOpenAI
from langchain.document_loaders import CSVLoader
from langchain.vectorstores import DocArrayInMemorySearch
from IPython.display import display, Markdown
file = 'OutdoorClothingCatalog_1000.csv'
loader = CSVLoader(file_path=file, encoding='utf8')
from langchain.indexes import VectorstoreIndexCreator
index = VectorstoreIndexCreator(
vectorstore_cls=DocArrayInMemorySearch
).from_loaders([loader])
### Expected behavior
Code should successfully execute | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15016/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15016/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15015 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15015/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15015/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15015/events | https://github.com/langchain-ai/langchain/pull/15015 | 2,052,656,748 | PR_kwDOIPDwls5ilY4C | 15,015 | Update youtube_transcript.ipynb | {
"login": "sidsarasvati",
"id": 2634859,
"node_id": "MDQ6VXNlcjI2MzQ4NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/2634859?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sidsarasvati",
"html_url": "https://github.com/sidsarasvati",
"followers_url": "https://api.github.com/users/sidsarasvati/followers",
"following_url": "https://api.github.com/users/sidsarasvati/following{/other_user}",
"gists_url": "https://api.github.com/users/sidsarasvati/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sidsarasvati/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sidsarasvati/subscriptions",
"organizations_url": "https://api.github.com/users/sidsarasvati/orgs",
"repos_url": "https://api.github.com/users/sidsarasvati/repos",
"events_url": "https://api.github.com/users/sidsarasvati/events{/privacy}",
"received_events_url": "https://api.github.com/users/sidsarasvati/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-21T15:43:41 | 2023-12-22T20:47:05 | 2023-12-22T20:47:05 | CONTRIBUTOR | null | add_video_info should be false in the first example
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15015/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15015/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15015",
"html_url": "https://github.com/langchain-ai/langchain/pull/15015",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15015.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15015.patch",
"merged_at": "2023-12-22T20:47:05"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15014 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15014/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15014/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15014/events | https://github.com/langchain-ai/langchain/issues/15014 | 2,052,630,688 | I_kwDOIPDwls56WKig | 15,014 | Issue: not getting output as per my 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": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 5 | 2023-12-21T15:28:03 | 2024-01-11T13:47:29 | null | NONE | null | ### Issue you'd like to raise.
# below is my code
`def generate_custom_prompt(query):
# Create the custom prompt template
custom_prompt_template = f"""You are a chatbot designed to provide helpful answers to user questions. 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.
User's Question: {query}
In your response, aim for clarity and conciseness. Provide information that directly addresses the user's query. If the answer requires additional details, feel free to ask clarifying questions.
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.
Your Helpful Answer:"""
# Create the PromptTemplate
custom_prompt = PromptTemplate(
template=custom_prompt_template, input_variables=["query"]
)
# Format the prompt
formatted_prompt = custom_prompt.format(query=query)
return formatted_prompt`
#below is the error i am getting
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/hs/CustomBot/chatbot/views.py", line 360, in GetChatResponse
custom_message=generate_custom_prompt(query)
File "/home/hs/CustomBot/accounts/common_langcain_qa.py", line 40, in generate_custom_prompt
formatted_prompt = custom_prompt.format(query=query)
File "/home/hs/env/lib/python3.8/site-packages/langchain_core/prompts/prompt.py", line 132, in format
return DEFAULT_FORMATTER_MAPPING[self.template_format](self.template, **kwargs)
File "/usr/lib/python3.8/string.py", line 163, in format
return self.vformat(format_string, args, kwargs)
File "/home/hs/env/lib/python3.8/site-packages/langchain_core/utils/formatting.py", line 29, in vformat
return super().vformat(format_string, args, kwargs)
File "/usr/lib/python3.8/string.py", line 168, in vformat
self.check_unused_args(used_args, args, kwargs)
File "/home/hs/env/lib/python3.8/site-packages/langchain_core/utils/formatting.py", line 18, in check_unused_args
raise KeyError(extra)
KeyError: {'query'}
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15014/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15014/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15013 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15013/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15013/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15013/events | https://github.com/langchain-ai/langchain/pull/15013 | 2,052,607,927 | PR_kwDOIPDwls5ilOGO | 15,013 | TEMPLATES: Update README.md | {
"login": "eltociear",
"id": 22633385,
"node_id": "MDQ6VXNlcjIyNjMzMzg1",
"avatar_url": "https://avatars.githubusercontent.com/u/22633385?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eltociear",
"html_url": "https://github.com/eltociear",
"followers_url": "https://api.github.com/users/eltociear/followers",
"following_url": "https://api.github.com/users/eltociear/following{/other_user}",
"gists_url": "https://api.github.com/users/eltociear/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eltociear/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eltociear/subscriptions",
"organizations_url": "https://api.github.com/users/eltociear/orgs",
"repos_url": "https://api.github.com/users/eltociear/repos",
"events_url": "https://api.github.com/users/eltociear/events{/privacy}",
"received_events_url": "https://api.github.com/users/eltociear/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] | closed | false | null | [] | null | 1 | 2023-12-21T15:13:47 | 2023-12-21T17:04:05 | 2023-12-21T17:04:05 | CONTRIBUTOR | null | Mulitple -> Multiple
<!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15013/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15013/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15013",
"html_url": "https://github.com/langchain-ai/langchain/pull/15013",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15013.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15013.patch",
"merged_at": "2023-12-21T17:04:05"
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15012 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15012/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15012/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15012/events | https://github.com/langchain-ai/langchain/issues/15012 | 2,052,564,532 | I_kwDOIPDwls56V6Y0 | 15,012 | Error message when adhering to Agents Langchain documentation only substituting OpenAI with AzureOpenAI: "openai.NotFoundError: Error code: 404 - {'error': {'message': 'Unrecognized request argument supplied: functions', 'type': 'invalid_request_error', 'param': None, 'code': None}}" | {
"login": "madsffm",
"id": 86916043,
"node_id": "MDQ6VXNlcjg2OTE2MDQz",
"avatar_url": "https://avatars.githubusercontent.com/u/86916043?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/madsffm",
"html_url": "https://github.com/madsffm",
"followers_url": "https://api.github.com/users/madsffm/followers",
"following_url": "https://api.github.com/users/madsffm/following{/other_user}",
"gists_url": "https://api.github.com/users/madsffm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/madsffm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/madsffm/subscriptions",
"organizations_url": "https://api.github.com/users/madsffm/orgs",
"repos_url": "https://api.github.com/users/madsffm/repos",
"events_url": "https://api.github.com/users/madsffm/events{/privacy}",
"received_events_url": "https://api.github.com/users/madsffm/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 2 | 2023-12-21T14:47:39 | 2024-01-17T02:54:00 | null | NONE | null | ### Issue you'd like to raise.
I am following the documentation on https://python.langchain.com/docs/modules/agents/, but as I only have access to an Azure deployment of OpenAI, there is a small deviance from the tutorial. When running the code:
`from langchain.chat_models import AzureChatOpenAI
from langchain.agents import tool
from langchain.agents.output_parsers import OpenAIFunctionsAgentOutputParser
import os
os.environ["OPENAI_API_TYPE"] = "azure"
os.environ["OPENAI_API_VERSION"] = "2023-07-01-preview"
# Define the AzureChatOpenAI model
llm = AzureChatOpenAI(
azure_endpoint="https://ENDPOINT.openai.azure.com",
deployment_name="NAME",
api_key="KEY",
temperature=0.5
)
### Create tool
from langchain.agents import tool
@tool
def get_word_length(word: str) -> int:
"""Returns the length of a word."""
return len(word)
tools = [get_word_length]
### create prompt
from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder
prompt = ChatPromptTemplate.from_messages(
[
(
"system",
"You are very powerful assistant, but bad at calculating lengths of words.",
),
("user", "{input}"),
MessagesPlaceholder(variable_name="agent_scratchpad"),
]
)
### llm with tool
from langchain.tools.render import format_tool_to_openai_function
llm_with_tools = llm.bind(functions=[format_tool_to_openai_function(t) for t in tools])
#### create agent
from langchain.agents.format_scratchpad import format_to_openai_function_messages
from langchain.agents.output_parsers import OpenAIFunctionsAgentOutputParser
agent = (
{
"input": lambda x: x["input"],
"agent_scratchpad": lambda x: format_to_openai_function_messages(
x["intermediate_steps"]
),
}
| prompt
| llm_with_tools
| OpenAIFunctionsAgentOutputParser()
)
agent.invoke({"input": "how many letters in the word educa?", "intermediate_steps": []})`
I get the following error message, which arises from agent.invoke(...):
openai.NotFoundError: Error code: 404 - {'error': {'message': 'Unrecognized request argument supplied: functions', 'type': 'invalid_request_error', 'param': None, 'code': None}}
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15012/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15012/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15011 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15011/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15011/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15011/events | https://github.com/langchain-ai/langchain/issues/15011 | 2,052,488,253 | I_kwDOIPDwls56Vnw9 | 15,011 | In Pypdf loader "/n " is not removed before creating documents | {
"login": "Eknathabhiram",
"id": 150422670,
"node_id": "U_kgDOCPdEjg",
"avatar_url": "https://avatars.githubusercontent.com/u/150422670?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Eknathabhiram",
"html_url": "https://github.com/Eknathabhiram",
"followers_url": "https://api.github.com/users/Eknathabhiram/followers",
"following_url": "https://api.github.com/users/Eknathabhiram/following{/other_user}",
"gists_url": "https://api.github.com/users/Eknathabhiram/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Eknathabhiram/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Eknathabhiram/subscriptions",
"organizations_url": "https://api.github.com/users/Eknathabhiram/orgs",
"repos_url": "https://api.github.com/users/Eknathabhiram/repos",
"events_url": "https://api.github.com/users/Eknathabhiram/events{/privacy}",
"received_events_url": "https://api.github.com/users/Eknathabhiram/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 4 | 2023-12-21T14:05:31 | 2024-01-05T15:26:02 | null | NONE | null | ### System Info
Everything is latest
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
from langchain.document_loaders import PyPDFLoader
loader = PyPDFLoader("path/to/document")
pages = loader.load_and_split()
### Expected behavior
Documents should not have "/n" | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15011/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15011/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15009 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15009/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15009/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15009/events | https://github.com/langchain-ai/langchain/pull/15009 | 2,052,430,104 | PR_kwDOIPDwls5ikmyW | 15,009 | community: Fix GraphSparqlQAChain so that it works with GraphDB | {
"login": "nelly-hateva",
"id": 3032459,
"node_id": "MDQ6VXNlcjMwMzI0NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/3032459?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nelly-hateva",
"html_url": "https://github.com/nelly-hateva",
"followers_url": "https://api.github.com/users/nelly-hateva/followers",
"following_url": "https://api.github.com/users/nelly-hateva/following{/other_user}",
"gists_url": "https://api.github.com/users/nelly-hateva/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nelly-hateva/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nelly-hateva/subscriptions",
"organizations_url": "https://api.github.com/users/nelly-hateva/orgs",
"repos_url": "https://api.github.com/users/nelly-hateva/repos",
"events_url": "https://api.github.com/users/nelly-hateva/events{/privacy}",
"received_events_url": "https://api.github.com/users/nelly-hateva/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 6232714126,
"node_id": "LA_kwDOIPDwls8AAAABc3-rjg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:L",
"name": "size:L",
"color": "BFD4F2",
"default": false,
"description": "This PR changes 100-499 lines, ignoring generated files."
}
] | open | false | null | [] | null | 4 | 2023-12-21T13:30:16 | 2024-01-17T12:40:50 | null | NONE | null | - **Description:** Introduce a new parameter `graph_kwargs` to RdfGraph - additional rdflib.Graph specific kwargs that will be used to initialize it
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15009/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15009/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15009",
"html_url": "https://github.com/langchain-ai/langchain/pull/15009",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15009.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15009.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15008 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15008/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15008/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15008/events | https://github.com/langchain-ai/langchain/issues/15008 | 2,052,333,901 | I_kwDOIPDwls56VCFN | 15,008 | Issue: update prompts for local LLM | {
"login": "yiouyou",
"id": 14249712,
"node_id": "MDQ6VXNlcjE0MjQ5NzEy",
"avatar_url": "https://avatars.githubusercontent.com/u/14249712?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yiouyou",
"html_url": "https://github.com/yiouyou",
"followers_url": "https://api.github.com/users/yiouyou/followers",
"following_url": "https://api.github.com/users/yiouyou/following{/other_user}",
"gists_url": "https://api.github.com/users/yiouyou/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yiouyou/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yiouyou/subscriptions",
"organizations_url": "https://api.github.com/users/yiouyou/orgs",
"repos_url": "https://api.github.com/users/yiouyou/repos",
"events_url": "https://api.github.com/users/yiouyou/events{/privacy}",
"received_events_url": "https://api.github.com/users/yiouyou/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 8 | 2023-12-21T12:27:35 | 2024-01-16T08:40:52 | null | NONE | null | ### Issue you'd like to raise.
To fit the prompt from openai to some other local LLM, what's the best way to update the prompts in langchain.chains.query_constructor.prompt while keeping the rest code the same?
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15008/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15008/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15007 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15007/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15007/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15007/events | https://github.com/langchain-ai/langchain/issues/15007 | 2,052,264,900 | I_kwDOIPDwls56UxPE | 15,007 | Azure | {
"login": "Vivek-Kawathalkar",
"id": 136422092,
"node_id": "U_kgDOCCGizA",
"avatar_url": "https://avatars.githubusercontent.com/u/136422092?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vivek-Kawathalkar",
"html_url": "https://github.com/Vivek-Kawathalkar",
"followers_url": "https://api.github.com/users/Vivek-Kawathalkar/followers",
"following_url": "https://api.github.com/users/Vivek-Kawathalkar/following{/other_user}",
"gists_url": "https://api.github.com/users/Vivek-Kawathalkar/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vivek-Kawathalkar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vivek-Kawathalkar/subscriptions",
"organizations_url": "https://api.github.com/users/Vivek-Kawathalkar/orgs",
"repos_url": "https://api.github.com/users/Vivek-Kawathalkar/repos",
"events_url": "https://api.github.com/users/Vivek-Kawathalkar/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vivek-Kawathalkar/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 1 | 2023-12-21T11:43:02 | 2023-12-21T11:53:58 | null | NONE | null | ### System Info
Traceback (most recent call last):
File "C:\Users\vivek\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\langchain_community\vectorstores\azuresearch.py", line 97, in _get_search_client
from azure.search.documents.indexes.models import (
ImportError: cannot import name 'HnswAlgorithmConfiguration' from 'azure.search.documents.indexes.models' (C:\Users\vivek\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\azure\search\documents\indexes\models\__init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\vivek\OneDrive\Desktop\Hackathon\userdoc1.py", line 47, in <module>
vector_store: AzureSearch = AzureSearch(
^^^^^^^^^^^^
File "C:\Users\vivek\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\langchain_community\vectorstores\azuresearch.py", line 299, in __init__
self.client = _get_search_client(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\vivek\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\langchain_community\vectorstores\azuresearch.py", line 105, in _get_search_client
from azure.search.documents.indexes.models import (
ImportError: cannot import name 'HnswVectorSearchAlgorithmConfiguration' from 'azure.search.documents.indexes.models' (C:\Users\vivek\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\azure\search\documents\indexes\models\__init__.py)
### 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
embedding_model="BAAI/bge-small-en-v1.5"
embeddings= HuggingFaceEmbeddings(model_name=embedding_model)
# embeddings = AzureOpenAIEmbeddings(deployment=model, chunk_size=100)
# embeddings = AzureOpenAIEmbeddings(azure_deployment="T-ada-002",openai_api_version="2023-05-15")
index_name: str = "i17"
vector_store: AzureSearch = AzureSearch(
azure_search_endpoint=vector_store_address,
azure_search_key=os.environ.get("AZURE_COGNITIVE_SEARCH_API_KEY"),
index_name=index_name,
embedding_function=embeddings.embed_query,
)
loader = AzureBlobStorageContainerLoader(
conn_str=os.environ.get("AZURE_CONN_STRING"),
container=os.environ.get("CONTAINER_NAME"),
)
documents = loader.load()
text_splitter = CharacterTextSplitter(chunk_size=150, chunk_overlap=20)
docs = text_splitter.split_documents(documents)
vector_store.add_documents(documents=docs)
### Expected behavior
data from azure cognitive service | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15007/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15007/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15006 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15006/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15006/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15006/events | https://github.com/langchain-ai/langchain/issues/15006 | 2,052,241,949 | I_kwDOIPDwls56Urod | 15,006 | ConversationalRetrievalChain not working with stream callback handler for ChatGoogleGenerativeAI | {
"login": "hasansustcse13",
"id": 94289705,
"node_id": "U_kgDOBZ6_KQ",
"avatar_url": "https://avatars.githubusercontent.com/u/94289705?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hasansustcse13",
"html_url": "https://github.com/hasansustcse13",
"followers_url": "https://api.github.com/users/hasansustcse13/followers",
"following_url": "https://api.github.com/users/hasansustcse13/following{/other_user}",
"gists_url": "https://api.github.com/users/hasansustcse13/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hasansustcse13/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hasansustcse13/subscriptions",
"organizations_url": "https://api.github.com/users/hasansustcse13/orgs",
"repos_url": "https://api.github.com/users/hasansustcse13/repos",
"events_url": "https://api.github.com/users/hasansustcse13/events{/privacy}",
"received_events_url": "https://api.github.com/users/hasansustcse13/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-12-21T11:26:22 | 2023-12-21T11:35:06 | null | NONE | null | ### System Info
aiohttp==3.9.1
aiosignal==1.3.1
annotated-types==0.6.0
anyio==4.2.0
attrs==23.1.0
cachetools==5.3.2
certifi==2023.11.17
charset-normalizer==3.3.2
colorama==0.4.6
dataclasses-json==0.6.3
distro==1.8.0
frozenlist==1.4.1
google-ai-generativelanguage==0.4.0
google-api-core==2.15.0
google-auth==2.25.2
google-generativeai==0.3.2
googleapis-common-protos==1.62.0
greenlet==3.0.2
grpcio==1.60.0
grpcio-status==1.60.0
h11==0.14.0
httpcore==1.0.2
httpx==0.26.0
idna==3.6
jsonpatch==1.33
jsonpointer==2.4
langchain==0.0.352
langchain-community==0.0.5
langchain-core==0.1.2
langchain-google-genai==0.0.5
langsmith==0.0.72
marshmallow==3.20.1
multidict==6.0.4
mypy-extensions==1.0.0
numpy==1.26.2
openai==1.6.0
packaging==23.2
Pillow==10.1.0
proto-plus==1.23.0
protobuf==4.25.1
pyasn1==0.5.1
pyasn1-modules==0.3.0
pydantic==2.5.2
pydantic_core==2.14.5
PyYAML==6.0.1
requests==2.31.0
rsa==4.9
sniffio==1.3.0
SQLAlchemy==2.0.23
tenacity==8.2.3
tqdm==4.66.1
typing-inspect==0.9.0
typing_extensions==4.9.0
urllib3==2.1.0
yarl==1.9.4
### 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
```
class StreamingLLMCallbackHandler(BaseCallbackHandler):
"""Callback handler for streaming LLM responses to a queue."""
def __init__(self):
"""
Initialize the StreamingLLMCallbackHandler.
"""
self._is_done = False
self._queue = Queue()
def on_llm_new_token(self, token: str, **kwargs: Any) -> None:
"""
Run on new LLM token. Only available when streaming is enabled.
Args:
token (str): The new LLM token.
**kwargs (Any): Additional keyword arguments.
"""
if is_dev_mode():
print(token, end='')
self._queue.put(EventData(content=token))
def on_llm_end(self, response: LLMResult, *, run_id: UUID, parent_run_id: Optional[UUID] = None, **kwargs: Any):
"""
Run when LLM ends running.
Args:
response (LLMResult): The LLM processing result.
run_id (UUID): The unique identifier for the current run.
parent_run_id (Optional[UUID]): The unique identifier for the parent run.
**kwargs (Any): Additional keyword arguments.
"""
self._queue.put(EventData(content=None, finish_reason='done'))
self._is_done = True
class LangChainChatService(ChatBaseService):
"""
Service class for handling chat operations using LangChain models.
This class extends the ChatBaseService and provides methods for streaming chat and one-time HTTP chat using
LangChain models.
Methods:
stream_chat_async: Stream chat using similarity search and AI.
http_chat_async: Perform one-time HTTP chat using similarity search and AI.
_qa_task: Helper method to execute the QA task in a separate thread.
_get_qa_chain: Get the conversational retrieval chain for handling chat.
_publish_chat_history: Publish chat history to Kafka.
Attributes:
model (LangchainChatModel): The LangChain chat model.
request_manager: The API request manager.
tool_query: The tool query for chat operations.
"""
def __init__(self, model: LangchainChatModel, tool_query=None):
"""
Initializes the LangChainChatService.
Args:
model (LangchainChatModel): The LangChain chat model.
tool_query (Optional[str]): The tool query for chat operations.
"""
super().__init__()
self.model = model
self.request_manager = api_request_manager_var.get()
self.tool_query = tool_query
async def http_chat_async(self) -> dict:
"""
Perform one-time HTTP chat using similarity search and AI.
Returns:
dict: The response from the chat operation.
"""
formatted_chat_history = [] if self.tool_query else self.get_formatted_chat_history(self.model.chat_history)
qa = self._get_qa_chain(callbacks=[streaming_handler])
qa.return_source_documents = self.model.return_source_documents
qa.return_generated_question = True
query_start = time.time()
question = self.tool_query or self.model.query
qa_response = await qa.ainvoke({"question": question, "chat_history": formatted_chat_history})
query_end = time.time()
result = {
'query_result': qa_response.get("answer"),
'query_time': int((query_end - query_start) * 1000),
'generated_question': qa_response.get('generated_question'),
'source_documents': [document.__dict__ for document in qa_response.get("source_documents", [])],
}
self._publish_chat_history(result)
return result
def _get_qa_chain(self, callbacks: Callbacks = None) -> BaseConversationalRetrievalChain:
"""
Get the conversational retrieval chain for handling chat.
Args:
callbacks (Callbacks): The callbacks to be used.
Returns:
BaseConversationalRetrievalChain: The conversational retrieval chain.
"""
collection_name = get_langchain_collection_name(self.model.client_id)
connection_args = {"host": AppConfig.vector_db_host, "port": AppConfig.vector_db_port}
embeddings = LLMSelector(self.model).get_embeddings()
vector_store = Milvus(embeddings, collection_name=collection_name, connection_args=connection_args)
expression = get_expression_to_fetch_db_text_from_ids(**self.model.model_dump())
# this LLMSelector class return ChatGoogleGenerativeAI instance with streaming
qa_llm = LLMSelector(self.model).get_language_model(streaming=self.model.stream_response, callbacks=callbacks)
condense_question_llm = LLMSelector(self.model).get_language_model()
prompt_selector = get_prompt_selector(human_context=self.model.human_context, system_context=self.model.system_context)
qa = ConversationalRetrievalChain.from_llm(
llm=qa_llm,
retriever=vector_store.as_retriever(search_type="similarity", search_kwargs={"k": self.model.similarity_top_k, 'expr': expression}),
condense_question_llm=condense_question_llm,
combine_docs_chain_kwargs={"prompt": prompt_selector.get_prompt(qa_llm)}
)
return qa
```
### Expected behavior
Chain should trigger `on_llm_new_token` method of callback handler when streaming true for ChatGoogleGenerativeAI. | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15006/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15006/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15005 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15005/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15005/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15005/events | https://github.com/langchain-ai/langchain/issues/15005 | 2,052,224,049 | I_kwDOIPDwls56UnQx | 15,005 | ValueError: not enough values to unpack (expected 2, got 1) | {
"login": "Vivek-Kawathalkar",
"id": 136422092,
"node_id": "U_kgDOCCGizA",
"avatar_url": "https://avatars.githubusercontent.com/u/136422092?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vivek-Kawathalkar",
"html_url": "https://github.com/Vivek-Kawathalkar",
"followers_url": "https://api.github.com/users/Vivek-Kawathalkar/followers",
"following_url": "https://api.github.com/users/Vivek-Kawathalkar/following{/other_user}",
"gists_url": "https://api.github.com/users/Vivek-Kawathalkar/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vivek-Kawathalkar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vivek-Kawathalkar/subscriptions",
"organizations_url": "https://api.github.com/users/Vivek-Kawathalkar/orgs",
"repos_url": "https://api.github.com/users/Vivek-Kawathalkar/repos",
"events_url": "https://api.github.com/users/Vivek-Kawathalkar/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vivek-Kawathalkar/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] | open | false | null | [] | null | 2 | 2023-12-21T11:13:46 | 2023-12-27T00:39:09 | null | NONE | null | ### Issue you'd like to raise.
Traceback (most recent call last):
File "c:\Users\vivek\OneDrive\Desktop\SOPPOC\version.py", line 57, in <module>
openAIEmbedd = FAISS.from_documents(texts, embeddings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vivek\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\langchain_core\vectorstores.py", line 510, in from_documents
return cls.from_texts(texts, embedding, metadatas=metadatas, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vivek\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\langchain_community\vectorstores\faiss.py", line 914, in from_texts
embeddings = embedding.embed_documents(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vivek\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\langchain_community\embeddings\openai.py", line 667, in embed_documents
return self._get_len_safe_embeddings(texts, engine=engine)
^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
why i am getting this error
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15005/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15005/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15004 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15004/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15004/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15004/events | https://github.com/langchain-ai/langchain/issues/15004 | 2,052,095,894 | I_kwDOIPDwls56UH-W | 15,004 | Agent Executor Error code: 404 | {
"login": "shamussim-ai",
"id": 153708784,
"node_id": "U_kgDOCSlo8A",
"avatar_url": "https://avatars.githubusercontent.com/u/153708784?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shamussim-ai",
"html_url": "https://github.com/shamussim-ai",
"followers_url": "https://api.github.com/users/shamussim-ai/followers",
"following_url": "https://api.github.com/users/shamussim-ai/following{/other_user}",
"gists_url": "https://api.github.com/users/shamussim-ai/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shamussim-ai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shamussim-ai/subscriptions",
"organizations_url": "https://api.github.com/users/shamussim-ai/orgs",
"repos_url": "https://api.github.com/users/shamussim-ai/repos",
"events_url": "https://api.github.com/users/shamussim-ai/events{/privacy}",
"received_events_url": "https://api.github.com/users/shamussim-ai/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 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 | 2 | 2023-12-21T09:52:59 | 2023-12-22T07:08:41 | 2023-12-22T07:08:40 | NONE | null | ### System Info
Python 3.10.10
langchain 0.0.350
langchain-community 0.0.3
langchain-core 0.1.1
Windows Machine
VSCode
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Here I am pretty much following the official tutorial with a modification where I used Pinecone Vector DB instead of Chroma.
Tutorial link- https://python.langchain.com/docs/use_cases/question_answering/conversational_retrieval_agents#the-prompt-template
Code
```
loader = DirectoryLoader('/home/azureuser/cloudfiles/code/Users/shamus/Chat With Your Data /docs/CPG', glob="./*.pdf", loader_cls=PyPDFLoader)
documents = loader.load()
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200)
texts = text_splitter.split_documents(documents)
pinecone.init(
api_key = PINECONE_API_KEY,
environment = PINECONE_ENV
)
#Use Pinecone
index_name = 'openai-ada'
from langchain.embeddings import AzureOpenAIEmbeddings
embeddings = AzureOpenAIEmbeddings(
azure_deployment="embedding",
openai_api_version="2023-05-15", #or 2023-12-01-preview
)
docsearch = Pinecone.from_documents(texts, embeddings, index_name = index_name)
retriever = docsearch.as_retriever(include_metadata=True, metadata_key = 'source', search_type="mmr")
from langchain.agents.agent_toolkits.conversational_retrieval.tool import create_retriever_tool
tool = create_retriever_tool(
retriever,
name="Cardiology_CPG", #has some naming convention:1 to 64 characters long,only contain alphanumeric characters, (_), (-)
description="Searches and returns documents regarding CPG Cardiology in Malaysia.",
)
tools = [tool]
from langchain.agents.agent_toolkits import create_conversational_retrieval_agent
chat_llm = AzureChatOpenAI(
openai_api_version="2023-12-01-preview",
azure_deployment="Test1",
temperature=0
)
agent_executor = create_conversational_retrieval_agent(chat_llm, tools=tools, verbose=True)
result = agent_executor({"input": "Hi, what are the key latest updates of Clinical Practice Guidelines in Cardiology this year?"})
```
As part of my sanity check. I ran the following which all returned intelligible outputs.
```
docs = retriever.get_relevant_documents("What are the latest guidelines in CPG Cardiology in Malaysia?")
print(docs)
# Check the properties of the first tool (assuming only one tool is added)
if tools:
first_tool = tools[0]
print(f"Tool Name: {first_tool.name}")
print(f"Tool Description: {first_tool.description}")
chat_llm.predict("Hello world!")
```
Error
```
> Entering new AgentExecutor chain...
---------------------------------------------------------------------------
NotFoundError Traceback (most recent call last)
Cell In[129], [line 1](vscode-notebook-cell:?execution_count=129&line=1)
----> [1](vscode-notebook-cell:?execution_count=129&line=1) result = agent_executor({"input": "Hi, what are the key latest updates of Clinical Practice Guidelines in Cardiology this year?"})
File /anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:312, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
[310](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:310) except BaseException as e:
[311](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:311) run_manager.on_chain_error(e)
--> [312](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:312) raise e
[313](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:313) run_manager.on_chain_end(outputs)
[314](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:314) final_outputs: Dict[str, Any] = self.prep_outputs(
[315](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:315) inputs, outputs, return_only_outputs
[316](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:316) )
File /anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:306, in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
[299](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:299) run_manager = callback_manager.on_chain_start(
[300](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:300) dumpd(self),
[301](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:301) inputs,
[302](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:302) name=run_name,
[303](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:303) )
[304](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:304) try:
[305](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:305) outputs = (
--> [306](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:306) self._call(inputs, run_manager=run_manager)
[307](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:307) if new_arg_supported
[308](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/langchain/chains/base.py:308) else self._call(inputs)
...
(...)
[937](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/openai/_base_client.py:937) stream_cls=stream_cls,
[938](https://vscode-remote+amlext-002b2f737562736372697074696f6e732f31653065376137362d306236362d343632622d613831352d3733363863633464363832312f7265736f7572636547726f7570732f47656e657261746976655f41492f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f6c6c616d612f636f6d70757465732f7368616d75732d637075.vscode-resource.vscode-cdn.net/anaconda/envs/langchain/lib/python3.10/site-packages/openai/_base_client.py:938) )
NotFoundError: Error code: 404 - {'error': {'message': 'Unrecognized request argument supplied: functions', 'type': 'invalid_request_error', 'param': None, 'code': None}}
```
My understanding of the error is that something is not working with the 'tools'. Although I cant work out why because the retriever is working just fine. Appreciate any advise on this.
### Expected behavior
Expect 'normal' chatbot output | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15004/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15004/timeline | null | completed | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15003 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15003/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15003/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15003/events | https://github.com/langchain-ai/langchain/pull/15003 | 2,051,994,952 | PR_kwDOIPDwls5ijGcJ | 15,003 | add: QuipLoader in langchain.document_loaders _init_.py | {
"login": "shufanhao",
"id": 11540660,
"node_id": "MDQ6VXNlcjExNTQwNjYw",
"avatar_url": "https://avatars.githubusercontent.com/u/11540660?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shufanhao",
"html_url": "https://github.com/shufanhao",
"followers_url": "https://api.github.com/users/shufanhao/followers",
"following_url": "https://api.github.com/users/shufanhao/following{/other_user}",
"gists_url": "https://api.github.com/users/shufanhao/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shufanhao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shufanhao/subscriptions",
"organizations_url": "https://api.github.com/users/shufanhao/orgs",
"repos_url": "https://api.github.com/users/shufanhao/repos",
"events_url": "https://api.github.com/users/shufanhao/events{/privacy}",
"received_events_url": "https://api.github.com/users/shufanhao/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 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 | 2023-12-21T08:56:21 | 2023-12-23T12:55:27 | 2023-12-22T21:06:00 | CONTRIBUTOR | null | <!-- Thank you for contributing to LangChain!
Please title your PR "<package>: <description>", where <package> is whichever of langchain, community, core, experimental, etc. is being modified.
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes if applicable,
- **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` from the root of the package you've modified to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc: https://python.langchain.com/docs/contributing/
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/docs/integrations` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15003/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15003/timeline | null | null | false | {
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/15003",
"html_url": "https://github.com/langchain-ai/langchain/pull/15003",
"diff_url": "https://github.com/langchain-ai/langchain/pull/15003.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/15003.patch",
"merged_at": null
} |
https://api.github.com/repos/langchain-ai/langchain/issues/15002 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15002/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15002/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15002/events | https://github.com/langchain-ai/langchain/issues/15002 | 2,051,982,197 | I_kwDOIPDwls56TsN1 | 15,002 | Does ConversationalRetrievalChain Support Streaming Replies?how to use this streaming with custom pre-trained models? | {
"login": "whm233",
"id": 84119313,
"node_id": "MDQ6VXNlcjg0MTE5MzEz",
"avatar_url": "https://avatars.githubusercontent.com/u/84119313?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/whm233",
"html_url": "https://github.com/whm233",
"followers_url": "https://api.github.com/users/whm233/followers",
"following_url": "https://api.github.com/users/whm233/following{/other_user}",
"gists_url": "https://api.github.com/users/whm233/gists{/gist_id}",
"starred_url": "https://api.github.com/users/whm233/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/whm233/subscriptions",
"organizations_url": "https://api.github.com/users/whm233/orgs",
"repos_url": "https://api.github.com/users/whm233/repos",
"events_url": "https://api.github.com/users/whm233/events{/privacy}",
"received_events_url": "https://api.github.com/users/whm233/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] | open | false | null | [] | null | 1 | 2023-12-21T08:49:32 | 2023-12-21T09:04:06 | null | NONE | null | ### Issue you'd like to raise.
_No response_
### Suggestion:
_No response_ | {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15002/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15002/timeline | null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/15001 | https://api.github.com/repos/langchain-ai/langchain | https://api.github.com/repos/langchain-ai/langchain/issues/15001/labels{/name} | https://api.github.com/repos/langchain-ai/langchain/issues/15001/comments | https://api.github.com/repos/langchain-ai/langchain/issues/15001/events | https://github.com/langchain-ai/langchain/issues/15001 | 2,051,972,351 | I_kwDOIPDwls56Tpz_ | 15,001 | Issue: prompt template response will be come's from openai not from my vectorestore | {
"login": "MugilanNYL",
"id": 149559963,
"node_id": "U_kgDOCOoamw",
"avatar_url": "https://avatars.githubusercontent.com/u/149559963?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MugilanNYL",
"html_url": "https://github.com/MugilanNYL",
"followers_url": "https://api.github.com/users/MugilanNYL/followers",
"following_url": "https://api.github.com/users/MugilanNYL/following{/other_user}",
"gists_url": "https://api.github.com/users/MugilanNYL/gists{/gist_id}",
"starred_url": "https://api.github.com/users/MugilanNYL/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MugilanNYL/subscriptions",
"organizations_url": "https://api.github.com/users/MugilanNYL/orgs",
"repos_url": "https://api.github.com/users/MugilanNYL/repos",
"events_url": "https://api.github.com/users/MugilanNYL/events{/privacy}",
"received_events_url": "https://api.github.com/users/MugilanNYL/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5932474361,
"node_id": "LA_kwDOIPDwls8AAAABYZpf-Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone",
"name": "integration: pinecone",
"color": "BC53BE",
"default": false,
"description": "Related to Pinecone vector store integration"
}
] | closed | false | null | [] | null | 1 | 2023-12-21T08:43:50 | 2023-12-22T04:58:46 | 2023-12-21T10:33:13 | NONE | null | ### Issue you'd like to raise.
i passed my vectorestore as an retriver on the context but in rag_chai response will shows an openai response not from my vectorstore data so give some support to fix it
| {
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/15001/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/langchain-ai/langchain/issues/15001/timeline | null | completed | null | null |