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/10927
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10927/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10927/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10927/events
|
https://github.com/langchain-ai/langchain/pull/10927
| 1,908,539,026 |
PR_kwDOIPDwls5a-Mtp
| 10,927 |
Add base docker image and ci script for building and pushing
|
{
"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": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-22T09:28:47 | 2023-10-02T14:07:59 | 2023-10-02T14:07:58 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10927/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10927/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10927",
"html_url": "https://github.com/langchain-ai/langchain/pull/10927",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10927.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10927.patch",
"merged_at": "2023-10-02T14:07:58"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10925
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10925/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10925/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10925/events
|
https://github.com/langchain-ai/langchain/pull/10925
| 1,908,459,045 |
PR_kwDOIPDwls5a97O5
| 10,925 |
20230922 fix wrong import when launch langchain server with docker-compose since langsmith-0.0.26
|
{
"login": "box9527",
"id": 50934594,
"node_id": "MDQ6VXNlcjUwOTM0NTk0",
"avatar_url": "https://avatars.githubusercontent.com/u/50934594?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/box9527",
"html_url": "https://github.com/box9527",
"followers_url": "https://api.github.com/users/box9527/followers",
"following_url": "https://api.github.com/users/box9527/following{/other_user}",
"gists_url": "https://api.github.com/users/box9527/gists{/gist_id}",
"starred_url": "https://api.github.com/users/box9527/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/box9527/subscriptions",
"organizations_url": "https://api.github.com/users/box9527/orgs",
"repos_url": "https://api.github.com/users/box9527/repos",
"events_url": "https://api.github.com/users/box9527/events{/privacy}",
"received_events_url": "https://api.github.com/users/box9527/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-22T08:41:50 | 2023-11-13T06:53:08 | 2023-11-13T06:53:07 |
NONE
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10925/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10925/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10925",
"html_url": "https://github.com/langchain-ai/langchain/pull/10925",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10925.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10925.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10924
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10924/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10924/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10924/events
|
https://github.com/langchain-ai/langchain/issues/10924
| 1,908,439,944 |
I_kwDOIPDwls5xwHuI
| 10,924 |
MatchingEngine does not store metadata in embeddings
|
{
"login": "nitishmckinsey",
"id": 120582854,
"node_id": "U_kgDOBy_yxg",
"avatar_url": "https://avatars.githubusercontent.com/u/120582854?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nitishmckinsey",
"html_url": "https://github.com/nitishmckinsey",
"followers_url": "https://api.github.com/users/nitishmckinsey/followers",
"following_url": "https://api.github.com/users/nitishmckinsey/following{/other_user}",
"gists_url": "https://api.github.com/users/nitishmckinsey/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nitishmckinsey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nitishmckinsey/subscriptions",
"organizations_url": "https://api.github.com/users/nitishmckinsey/orgs",
"repos_url": "https://api.github.com/users/nitishmckinsey/repos",
"events_url": "https://api.github.com/users/nitishmckinsey/events{/privacy}",
"received_events_url": "https://api.github.com/users/nitishmckinsey/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-22T08:29:48 | 2023-12-30T16:05:34 | 2023-12-30T16:05:33 |
NONE
| null |
### System Info
Langchain version : 0.0.297
### Who can help?
@hwchase17
@agola11
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
The _add_texts_ function accepts metadata as an input parameter, even though it is not utilized in the embedding creation process.
### Expected behavior
Metadata should be added.
SImilar to what is done for PGVECTOR.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10924/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10924/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10923
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10923/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10923/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10923/events
|
https://github.com/langchain-ai/langchain/pull/10923
| 1,908,359,579 |
PR_kwDOIPDwls5a9ltt
| 10,923 |
Support weight only quantization with intel-extension-for-transformers
|
{
"login": "PenghuiCheng",
"id": 42089598,
"node_id": "MDQ6VXNlcjQyMDg5NTk4",
"avatar_url": "https://avatars.githubusercontent.com/u/42089598?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/PenghuiCheng",
"html_url": "https://github.com/PenghuiCheng",
"followers_url": "https://api.github.com/users/PenghuiCheng/followers",
"following_url": "https://api.github.com/users/PenghuiCheng/following{/other_user}",
"gists_url": "https://api.github.com/users/PenghuiCheng/gists{/gist_id}",
"starred_url": "https://api.github.com/users/PenghuiCheng/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/PenghuiCheng/subscriptions",
"organizations_url": "https://api.github.com/users/PenghuiCheng/orgs",
"repos_url": "https://api.github.com/users/PenghuiCheng/repos",
"events_url": "https://api.github.com/users/PenghuiCheng/events{/privacy}",
"received_events_url": "https://api.github.com/users/PenghuiCheng/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 4 | 2023-09-22T07:39:07 | 2023-11-27T15:28:52 | 2023-11-27T15:28:52 |
NONE
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
Support weight only quantization with intel-extension-for-transformers.
[Intel® Extension for Transformers](https://github.com/intel/intel-extension-for-transformers) is an innovative toolkit to accelerate Transformer-based models on Intel platforms, in particular effective on 4th Intel Xeon Scalable processor Sapphire Rapids (codenamed [Sapphire Rapids](https://www.intel.com/content/www/us/en/products/docs/processors/xeon-accelerated/4th-gen-xeon-scalable-processors.html)). The toolkit provides the below key features:
* Seamless user experience of model compressions on Transformer-based models by extending [Hugging Face transformers](https://github.com/huggingface/transformers) APIs and leveraging [Intel® Neural Compressor](https://github.com/intel/neural-compressor)
* Advanced software optimizations and unique compression-aware runtime.
* Optimized Transformer-based model packages.
* [NeuralChat](https://github.com/intel/intel-extension-for-transformers/blob/main/intel_extension_for_transformers/neural_chat), a customizable chatbot framework to create your own chatbot within minutes by leveraging a rich set of plugins and SOTA optimizations.
* [Inference](https://github.com/intel/intel-extension-for-transformers/blob/main/intel_extension_for_transformers/llm/runtime/graph) of Large Language Model (LLM) in pure C/C++ with weight-only quantization kernels.
This PR is an integration of weight only quantization feature with intel-extension-for-transformers.
* Unit test is in lib/langchain/tests/integration_tests/llm/test_weight_only_quantization.py
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10923/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10923/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10923",
"html_url": "https://github.com/langchain-ai/langchain/pull/10923",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10923.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10923.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10922
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10922/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10922/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10922/events
|
https://github.com/langchain-ai/langchain/pull/10922
| 1,908,338,148 |
PR_kwDOIPDwls5a9hIw
| 10,922 |
Implement Alibaba Tongyi chat model apis.
|
{
"login": "wangxuqi",
"id": 13748374,
"node_id": "MDQ6VXNlcjEzNzQ4Mzc0",
"avatar_url": "https://avatars.githubusercontent.com/u/13748374?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wangxuqi",
"html_url": "https://github.com/wangxuqi",
"followers_url": "https://api.github.com/users/wangxuqi/followers",
"following_url": "https://api.github.com/users/wangxuqi/following{/other_user}",
"gists_url": "https://api.github.com/users/wangxuqi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wangxuqi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wangxuqi/subscriptions",
"organizations_url": "https://api.github.com/users/wangxuqi/orgs",
"repos_url": "https://api.github.com/users/wangxuqi/repos",
"events_url": "https://api.github.com/users/wangxuqi/events{/privacy}",
"received_events_url": "https://api.github.com/users/wangxuqi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-22T07:24:55 | 2023-10-12T23:59:38 | 2023-10-12T23:59:37 |
CONTRIBUTOR
| null |
Hi there
This PR is aim to implement chat model for Alibaba Tongyi LLM model. It contains work below:
1.Implement ChatTongyi chat model in langchain.chat_models.tongyi. Note this is different with tongyi llm model to another PR https://github.com/langchain-ai/langchain/pull/10878.
For detail it implements _generate() and _stream() function in ChatTongyi.
2. Add some examples in chat/tongyi.ipynb.
3. Add integration test in chat_models/test_tongyi.py
Note async completion for the Text API is not yet supported.
Dependencies: dashscope. It will be installed manually cause it is not need by everyone.
Happy for feedback on any aspect of this PR @hwchase17 @baskaryan.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10922/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10922/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10922",
"html_url": "https://github.com/langchain-ai/langchain/pull/10922",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10922.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10922.patch",
"merged_at": "2023-10-12T23:59:37"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10921
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10921/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10921/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10921/events
|
https://github.com/langchain-ai/langchain/pull/10921
| 1,908,235,277 |
PR_kwDOIPDwls5a9LGZ
| 10,921 |
add model feat table
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-22T06:00:10 | 2023-09-22T08:10:28 | 2023-09-22T08:10:27 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10921/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10921/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10921",
"html_url": "https://github.com/langchain-ai/langchain/pull/10921",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10921.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10921.patch",
"merged_at": "2023-09-22T08:10:27"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10920
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10920/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10920/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10920/events
|
https://github.com/langchain-ai/langchain/pull/10920
| 1,908,167,473 |
PR_kwDOIPDwls5a88jt
| 10,920 |
fix: broken link in libs/langchain README
|
{
"login": "malandis",
"id": 3690240,
"node_id": "MDQ6VXNlcjM2OTAyNDA=",
"avatar_url": "https://avatars.githubusercontent.com/u/3690240?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/malandis",
"html_url": "https://github.com/malandis",
"followers_url": "https://api.github.com/users/malandis/followers",
"following_url": "https://api.github.com/users/malandis/following{/other_user}",
"gists_url": "https://api.github.com/users/malandis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/malandis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/malandis/subscriptions",
"organizations_url": "https://api.github.com/users/malandis/orgs",
"repos_url": "https://api.github.com/users/malandis/repos",
"events_url": "https://api.github.com/users/malandis/events{/privacy}",
"received_events_url": "https://api.github.com/users/malandis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-22T04:36:57 | 2023-09-22T17:14:19 | 2023-09-22T17:14:19 |
CONTRIBUTOR
| null |
**Description**
Fixes broken link to `CONTRIBUTING.md` in `libs/langchain/README.md`.
Because`libs/langchain/README.md` was copied from the top level README, and because the README contains a link to `.github/CONTRIBUTING.md`, the copied README's link relative path must be updated. This commit fixes that link.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10920/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10920/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10920",
"html_url": "https://github.com/langchain-ai/langchain/pull/10920",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10920.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10920.patch",
"merged_at": "2023-09-22T17:14:19"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10919
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10919/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10919/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10919/events
|
https://github.com/langchain-ai/langchain/issues/10919
| 1,908,146,930 |
I_kwDOIPDwls5xvALy
| 10,919 |
typing errors in OllamaEmbeddings
|
{
"login": "jamesbraza",
"id": 8990777,
"node_id": "MDQ6VXNlcjg5OTA3Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesbraza",
"html_url": "https://github.com/jamesbraza",
"followers_url": "https://api.github.com/users/jamesbraza/followers",
"following_url": "https://api.github.com/users/jamesbraza/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions",
"organizations_url": "https://api.github.com/users/jamesbraza/orgs",
"repos_url": "https://api.github.com/users/jamesbraza/repos",
"events_url": "https://api.github.com/users/jamesbraza/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesbraza/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-22T04:07:19 | 2023-12-05T22:36:01 | 2023-12-05T22:36:01 |
CONTRIBUTOR
| null |
### System Info
`LangChain==0.0.298`, Python==3.11.5
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```python
from langchain.embeddings import OllamaEmbeddings
_ = OllamaEmbeddings(model="llama2")
```
Running `mypy==1.5.1` on this file:
```none
a.py:3:5: error: Missing named argument "mirostat" for "OllamaEmbeddings" [call-arg]
_ = OllamaEmbeddings(model="llama2")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.py:3:5: error: Missing named argument "mirostat_eta" for "OllamaEmbeddings" [call-arg]
_ = OllamaEmbeddings(model="llama2")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.py:3:5: error: Missing named argument "mirostat_tau" for "OllamaEmbeddings" [call-arg]
_ = OllamaEmbeddings(model="llama2")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.py:3:5: error: Missing named argument "num_ctx" for "OllamaEmbeddings" [call-arg]
_ = OllamaEmbeddings(model="llama2")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.py:3:5: error: Missing named argument "num_gpu" for "OllamaEmbeddings" [call-arg]
_ = OllamaEmbeddings(model="llama2")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.py:3:5: error: Missing named argument "num_thread" for "OllamaEmbeddings" [call-arg]
_ = OllamaEmbeddings(model="llama2")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.py:3:5: error: Missing named argument "repeat_last_n" for "OllamaEmbeddings" [call-arg]
_ = OllamaEmbeddings(model="llama2")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.py:3:5: error: Missing named argument "repeat_penalty" for "OllamaEmbeddings" [call-arg]
_ = OllamaEmbeddings(model="llama2")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.py:3:5: error: Missing named argument "temperature" for "OllamaEmbeddings" [call-arg]
_ = OllamaEmbeddings(model="llama2")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.py:3:5: error: Missing named argument "stop" for "OllamaEmbeddings" [call-arg]
_ = OllamaEmbeddings(model="llama2")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.py:3:5: error: Missing named argument "tfs_z" for "OllamaEmbeddings" [call-arg]
_ = OllamaEmbeddings(model="llama2")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.py:3:5: error: Missing named argument "top_k" for "OllamaEmbeddings" [call-arg]
_ = OllamaEmbeddings(model="llama2")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.py:3:5: error: Missing named argument "top_p" for "OllamaEmbeddings" [call-arg]
_ = OllamaEmbeddings(model="llama2")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
It can be fixed by using `= None` as the default for the `Optional` fields
### Expected behavior
`mypy` to pass, as there are no type errors present
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10919/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10919/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10918
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10918/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10918/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10918/events
|
https://github.com/langchain-ai/langchain/issues/10918
| 1,908,133,024 |
I_kwDOIPDwls5xu8yg
| 10,918 |
Issue: unreasonable default template in document retrieval task
|
{
"login": "Dobiichi-Origami",
"id": 56953648,
"node_id": "MDQ6VXNlcjU2OTUzNjQ4",
"avatar_url": "https://avatars.githubusercontent.com/u/56953648?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Dobiichi-Origami",
"html_url": "https://github.com/Dobiichi-Origami",
"followers_url": "https://api.github.com/users/Dobiichi-Origami/followers",
"following_url": "https://api.github.com/users/Dobiichi-Origami/following{/other_user}",
"gists_url": "https://api.github.com/users/Dobiichi-Origami/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Dobiichi-Origami/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dobiichi-Origami/subscriptions",
"organizations_url": "https://api.github.com/users/Dobiichi-Origami/orgs",
"repos_url": "https://api.github.com/users/Dobiichi-Origami/repos",
"events_url": "https://api.github.com/users/Dobiichi-Origami/events{/privacy}",
"received_events_url": "https://api.github.com/users/Dobiichi-Origami/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"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-22T03:45:55 | 2023-12-30T16:05:39 | 2023-12-30T16:05:38 |
NONE
| null |
### Issue you'd like to raise.
Current default prompt template named CHAT_PROMPT in `chains/question_answering/stuff_prompt.py` contains a `SystemMessage` and `HumanMessage` combination, In which `SystemMessage` just looks like this:
```python
"""Use the following pieces of context to answer the users question.
If you don't know the answer, just say that you don't know, don't try to make up an answer.
----------------
{context}"""
```
As far as I know, `SystemMessage` usually intends to be a series of rules which LLM should obey in conversation, such as personality, function, usage etc. It's should stay immutable through whole conversation with users, but there is a significant and continuous transformation in real world 'cause relevant documents being retrieved has been located in the end of prompt. Is there any reason to do so?
### Suggestion:
We can put prompt in the `HumanMessage` as demonstrated below
```python
system_template = """Use the following pieces of context to answer the users question.
If you don't know the answer, just say that you don't know, don't try to make up an answer.
----------------
"""
messages = [
SystemMessagePromptTemplate.from_template(system_template),
HumanMessagePromptTemplate.from_template("{context}\n\n{question}"),
]
CHAT_PROMPT = ChatPromptTemplate.from_messages(messages)
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10918/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/10918/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10917
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10917/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10917/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10917/events
|
https://github.com/langchain-ai/langchain/issues/10917
| 1,908,088,497 |
I_kwDOIPDwls5xux6x
| 10,917 |
"Minimax" object has no field "_client"
|
{
"login": "cclc",
"id": 13332779,
"node_id": "MDQ6VXNlcjEzMzMyNzc5",
"avatar_url": "https://avatars.githubusercontent.com/u/13332779?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cclc",
"html_url": "https://github.com/cclc",
"followers_url": "https://api.github.com/users/cclc/followers",
"following_url": "https://api.github.com/users/cclc/following{/other_user}",
"gists_url": "https://api.github.com/users/cclc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cclc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cclc/subscriptions",
"organizations_url": "https://api.github.com/users/cclc/orgs",
"repos_url": "https://api.github.com/users/cclc/repos",
"events_url": "https://api.github.com/users/cclc/events{/privacy}",
"received_events_url": "https://api.github.com/users/cclc/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-09-22T02:36:07 | 2024-01-07T04:02:04 | null |
NONE
| null |
### System Info
when I run this command `python3 ./libs/langchain/tests/integration_tests/llms/test_minimax.py`
It always reports this error `ValueError: "Minimax" object has no field "_client"`
After I replaced "_client" with "client", it works.
version is `langchain==0.0.297`
### 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
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
python3 ./libs/langchain/tests/integration_tests/llms/test_minimax.py
### Expected behavior
Don't throw erros
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10917/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10917/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10916
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10916/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10916/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10916/events
|
https://github.com/langchain-ai/langchain/issues/10916
| 1,908,042,597 |
I_kwDOIPDwls5xumtl
| 10,916 |
Crashes when trying to stream Chat Vertex AI
|
{
"login": "thehunmonkgroup",
"id": 43772,
"node_id": "MDQ6VXNlcjQzNzcy",
"avatar_url": "https://avatars.githubusercontent.com/u/43772?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/thehunmonkgroup",
"html_url": "https://github.com/thehunmonkgroup",
"followers_url": "https://api.github.com/users/thehunmonkgroup/followers",
"following_url": "https://api.github.com/users/thehunmonkgroup/following{/other_user}",
"gists_url": "https://api.github.com/users/thehunmonkgroup/gists{/gist_id}",
"starred_url": "https://api.github.com/users/thehunmonkgroup/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thehunmonkgroup/subscriptions",
"organizations_url": "https://api.github.com/users/thehunmonkgroup/orgs",
"repos_url": "https://api.github.com/users/thehunmonkgroup/repos",
"events_url": "https://api.github.com/users/thehunmonkgroup/events{/privacy}",
"received_events_url": "https://api.github.com/users/thehunmonkgroup/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-22T01:39:08 | 2023-09-22T02:53:07 | 2023-09-22T02:53:07 |
CONTRIBUTOR
| null |
### System Info
Langchain v0.0.298
Python 3.11.4
Pop!OS 22.04
### Who can help?
@hwchase17 @agol
### 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
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
When trying to stream `chat-bison`:
```
File "/home/hunmonk/.pyenv/versions/lwe/lib/python3.11/site-packages/langchain/chat_models/base.py", line 204, in stream
for chunk in self._stream(
File "/home/hunmonk/.pyenv/versions/lwe/lib/python3.11/site-packages/langchain/chat_models/vertexai.py", line 195, in _stream
responses = chat.send_message_streaming(question.content, **params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ChatSession' object has no attribute 'send_message_streaming'
```
As far as I can tell, there is no `send_message_streaming()` method declared *anywhere* in Langchain.
When tryign to stream `codechat-bison`:
```
File "/home/hunmonk/git/llm-workflow-engine/lwe/backends/api/request.py", line 320, in iterate_streaming_response
for chunk in self.llm.stream(messages):
File "/home/hunmonk/.pyenv/versions/lwe/lib/python3.11/site-packages/langchain/chat_models/base.py", line 215, in stream
raise e
File "/home/hunmonk/.pyenv/versions/lwe/lib/python3.11/site-packages/langchain/chat_models/base.py", line 204, in stream
for chunk in self._stream(
File "/home/hunmonk/.pyenv/versions/lwe/lib/python3.11/site-packages/langchain/chat_models/vertexai.py", line 194, in _stream
chat = self._start_chat(history, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hunmonk/.pyenv/versions/lwe/lib/python3.11/site-packages/langchain/chat_models/vertexai.py", line 210, in _start_chat
return self.client.start_chat(message_history=history.history, **params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: CodeChatModel.start_chat() got an unexpected keyword argument 'message_history'
```
That looks like a Pydantic validation error in the class itself?
### Expected behavior
Streaming these models should work.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10916/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10916/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10915
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10915/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10915/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10915/events
|
https://github.com/langchain-ai/langchain/pull/10915
| 1,907,992,115 |
PR_kwDOIPDwls5a8YV1
| 10,915 |
Add retry backoff to clarifai calls
|
{
"login": "bhavishpahwa",
"id": 108733252,
"node_id": "U_kgDOBnsjRA",
"avatar_url": "https://avatars.githubusercontent.com/u/108733252?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bhavishpahwa",
"html_url": "https://github.com/bhavishpahwa",
"followers_url": "https://api.github.com/users/bhavishpahwa/followers",
"following_url": "https://api.github.com/users/bhavishpahwa/following{/other_user}",
"gists_url": "https://api.github.com/users/bhavishpahwa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bhavishpahwa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bhavishpahwa/subscriptions",
"organizations_url": "https://api.github.com/users/bhavishpahwa/orgs",
"repos_url": "https://api.github.com/users/bhavishpahwa/repos",
"events_url": "https://api.github.com/users/bhavishpahwa/events{/privacy}",
"received_events_url": "https://api.github.com/users/bhavishpahwa/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"
}
] |
open
| false | null |
[] | null | 1 | 2023-09-22T00:58:54 | 2023-09-22T01:03:33 | null |
NONE
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** Add retry backoff when ClarifAI requests fail
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10915/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10915/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10915",
"html_url": "https://github.com/langchain-ai/langchain/pull/10915",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10915.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10915.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10914
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10914/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10914/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10914/events
|
https://github.com/langchain-ai/langchain/pull/10914
| 1,907,990,153 |
PR_kwDOIPDwls5a8X47
| 10,914 |
Wfh/allow nonparallel
|
{
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-22T00:57:39 | 2023-09-22T03:21:03 | 2023-09-22T03:21:02 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10914/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10914/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10914",
"html_url": "https://github.com/langchain-ai/langchain/pull/10914",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10914.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10914.patch",
"merged_at": "2023-09-22T03:21:02"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10913
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10913/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10913/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10913/events
|
https://github.com/langchain-ai/langchain/issues/10913
| 1,907,963,041 |
I_kwDOIPDwls5xuTSh
| 10,913 |
Optimization by PROmpting (OPRO)
|
{
"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": 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 | 6 | 2023-09-22T00:33:14 | 2023-10-11T23:10:21 | null |
COLLABORATOR
| null |
### Feature request
[LARGE LANGUAGE MODELS AS OPTIMIZERS](https://arxiv.org/pdf/2309.03409.pdf) is promising method to optimize prompts, to find the best prompts.
Not sure the LangChain is the best tool to apply this method but Hey, it is LangChain :exclamation:
### Motivation
For workflows that use a stable prompts, this method could significantly improve results.
So, there is definitely a valid use case for it.
### Your contribution
Not sure I can do it. Sorry.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10913/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/10913/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10912
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10912/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10912/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10912/events
|
https://github.com/langchain-ai/langchain/issues/10912
| 1,907,951,529 |
I_kwDOIPDwls5xuQep
| 10,912 |
LocalAI embeddings shouldn't require OpenAI
|
{
"login": "jamesbraza",
"id": 8990777,
"node_id": "MDQ6VXNlcjg5OTA3Nzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8990777?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jamesbraza",
"html_url": "https://github.com/jamesbraza",
"followers_url": "https://api.github.com/users/jamesbraza/followers",
"following_url": "https://api.github.com/users/jamesbraza/following{/other_user}",
"gists_url": "https://api.github.com/users/jamesbraza/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jamesbraza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jamesbraza/subscriptions",
"organizations_url": "https://api.github.com/users/jamesbraza/orgs",
"repos_url": "https://api.github.com/users/jamesbraza/repos",
"events_url": "https://api.github.com/users/jamesbraza/events{/privacy}",
"received_events_url": "https://api.github.com/users/jamesbraza/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 5 | 2023-09-22T00:17:24 | 2023-09-22T16:57:48 | 2023-09-22T16:57:47 |
CONTRIBUTOR
| null |
### System Info
macOS Ventura 13.5.2, M1
### Who can help?
@mudler
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
https://github.com/langchain-ai/langchain/blob/v0.0.298/libs/langchain/langchain/embeddings/localai.py#L197
### Expected behavior
Why does LocalAI embeddings require OpenAI? I think LocalAI's embeddings has no need for OpenAI, it has a whole embeddings suite: https://localai.io/features/embeddings/
I think it should be directly usable with its [`/embeddings` endpoint](https://github.com/go-skynet/LocalAI/blob/v1.25.0/api/api.go#L190)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10912/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10912/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10911
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10911/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10911/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10911/events
|
https://github.com/langchain-ai/langchain/pull/10911
| 1,907,944,876 |
PR_kwDOIPDwls5a8N4F
| 10,911 |
Harrison/agents structured
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-22T00:08:28 | 2023-09-22T17:22:34 | 2023-09-22T17:21:23 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10911/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10911/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10911",
"html_url": "https://github.com/langchain-ai/langchain/pull/10911",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10911.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10911.patch",
"merged_at": "2023-09-22T17:21:23"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10910
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10910/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10910/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10910/events
|
https://github.com/langchain-ai/langchain/pull/10910
| 1,907,937,448 |
PR_kwDOIPDwls5a8MQX
| 10,910 |
add vertex prod features
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"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 | 5 | 2023-09-21T23:59:06 | 2023-11-24T07:58:11 | 2023-09-22T08:44:09 |
COLLABORATOR
| null |
- chat vertex async
- vertex stream
- vertex full generation info
- vertex use server-side stopping
- model garden async
- update docs for all the above
in follow up will add
[] chat vertex full generation info
[] chat vertex retries
[] scheduled tests
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10910/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10910/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10910",
"html_url": "https://github.com/langchain-ai/langchain/pull/10910",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10910.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10910.patch",
"merged_at": "2023-09-22T08:44:09"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10909
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10909/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10909/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10909/events
|
https://github.com/langchain-ai/langchain/issues/10909
| 1,907,914,039 |
I_kwDOIPDwls5xuHU3
| 10,909 |
`_identifying_params` broken in `ChatAnthropic` class
|
{
"login": "thehunmonkgroup",
"id": 43772,
"node_id": "MDQ6VXNlcjQzNzcy",
"avatar_url": "https://avatars.githubusercontent.com/u/43772?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/thehunmonkgroup",
"html_url": "https://github.com/thehunmonkgroup",
"followers_url": "https://api.github.com/users/thehunmonkgroup/followers",
"following_url": "https://api.github.com/users/thehunmonkgroup/following{/other_user}",
"gists_url": "https://api.github.com/users/thehunmonkgroup/gists{/gist_id}",
"starred_url": "https://api.github.com/users/thehunmonkgroup/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thehunmonkgroup/subscriptions",
"organizations_url": "https://api.github.com/users/thehunmonkgroup/orgs",
"repos_url": "https://api.github.com/users/thehunmonkgroup/repos",
"events_url": "https://api.github.com/users/thehunmonkgroup/events{/privacy}",
"received_events_url": "https://api.github.com/users/thehunmonkgroup/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-09-21T23:28:35 | 2023-12-23T14:15:37 | null |
CONTRIBUTOR
| null |
### System Info
v0.0.298
### Who can help?
@hwchase17 @ago
### 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
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Create a `ChatAnthropic` class instance, note that both `_identifying_params` and `dict()` do not output the proper attributes, even though `_default_params` does.
I'd make a PR to fix this, but upon examining the code, it's not clear to me what is causing the bug.
```python
from langchain.chat_models import ChatAnthropic
chat = ChatAnthropic()
chat._default_params
{'max_tokens_to_sample': 256, 'model': 'claude-2'}
chat._identifying_params
{}
chat.dict()
{'_type': 'anthropic-chat'}
```
### Expected behavior
`_identifying_params`and `dict()` should output the correct params.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10909/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10909/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10908
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10908/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10908/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10908/events
|
https://github.com/langchain-ai/langchain/pull/10908
| 1,907,908,920 |
PR_kwDOIPDwls5a8GCq
| 10,908 |
add async support for llamacpp.py
|
{
"login": "DmitryIo",
"id": 41271764,
"node_id": "MDQ6VXNlcjQxMjcxNzY0",
"avatar_url": "https://avatars.githubusercontent.com/u/41271764?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DmitryIo",
"html_url": "https://github.com/DmitryIo",
"followers_url": "https://api.github.com/users/DmitryIo/followers",
"following_url": "https://api.github.com/users/DmitryIo/following{/other_user}",
"gists_url": "https://api.github.com/users/DmitryIo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DmitryIo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DmitryIo/subscriptions",
"organizations_url": "https://api.github.com/users/DmitryIo/orgs",
"repos_url": "https://api.github.com/users/DmitryIo/repos",
"events_url": "https://api.github.com/users/DmitryIo/events{/privacy}",
"received_events_url": "https://api.github.com/users/DmitryIo/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"
}
] |
closed
| false | null |
[] | null | 9 | 2023-09-21T23:21:15 | 2023-11-30T20:19:57 | 2023-09-22T18:13:52 |
NONE
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** Added support for llamacpp being used in chains with "a" methods, like apredict, agenerate, etc. Also now it supports `langchain.callbacks.AsyncIteratorCallbackHandler`
- **Issue:** https://github.com/langchain-ai/langchain/issues/9865
- **Dependencies:** -,
- **Tag maintainer:** @baskaryan
- **Twitter handle:** -
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10908/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10908/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10908",
"html_url": "https://github.com/langchain-ai/langchain/pull/10908",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10908.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10908.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10907
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10907/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10907/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10907/events
|
https://github.com/langchain-ai/langchain/pull/10907
| 1,907,901,921 |
PR_kwDOIPDwls5a8Efm
| 10,907 |
Docs: Using SupabaseVectorStore with existing documents
|
{
"login": "gregnr",
"id": 4133076,
"node_id": "MDQ6VXNlcjQxMzMwNzY=",
"avatar_url": "https://avatars.githubusercontent.com/u/4133076?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gregnr",
"html_url": "https://github.com/gregnr",
"followers_url": "https://api.github.com/users/gregnr/followers",
"following_url": "https://api.github.com/users/gregnr/following{/other_user}",
"gists_url": "https://api.github.com/users/gregnr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gregnr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gregnr/subscriptions",
"organizations_url": "https://api.github.com/users/gregnr/orgs",
"repos_url": "https://api.github.com/users/gregnr/repos",
"events_url": "https://api.github.com/users/gregnr/events{/privacy}",
"received_events_url": "https://api.github.com/users/gregnr/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-21T23:13:09 | 2023-09-22T15:18:56 | 2023-09-22T15:18:56 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
## Description
Adds additional docs on how to use `SupabaseVectorStore` with existing data in your DB (vs inserting new documents each time).
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10907/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10907/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10907",
"html_url": "https://github.com/langchain-ai/langchain/pull/10907",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10907.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10907.patch",
"merged_at": "2023-09-22T15:18:56"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10906
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10906/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10906/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10906/events
|
https://github.com/langchain-ai/langchain/pull/10906
| 1,907,884,044 |
PR_kwDOIPDwls5a8Ah0
| 10,906 |
CONTRIBUTING.md Quick Start: focus on langchain core; clarify docs and experimental are separate
|
{
"login": "cjcjameson",
"id": 6885889,
"node_id": "MDQ6VXNlcjY4ODU4ODk=",
"avatar_url": "https://avatars.githubusercontent.com/u/6885889?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cjcjameson",
"html_url": "https://github.com/cjcjameson",
"followers_url": "https://api.github.com/users/cjcjameson/followers",
"following_url": "https://api.github.com/users/cjcjameson/following{/other_user}",
"gists_url": "https://api.github.com/users/cjcjameson/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cjcjameson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cjcjameson/subscriptions",
"organizations_url": "https://api.github.com/users/cjcjameson/orgs",
"repos_url": "https://api.github.com/users/cjcjameson/repos",
"events_url": "https://api.github.com/users/cjcjameson/events{/privacy}",
"received_events_url": "https://api.github.com/users/cjcjameson/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-21T22:55:02 | 2023-09-22T18:51:26 | 2023-09-22T17:17:09 |
CONTRIBUTOR
| null |
follow up to https://github.com/langchain-ai/langchain/pull/7959 , explaining better to focus just on langchain core
no dependencies
twitter @cjcjameson
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10906/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10906/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10906",
"html_url": "https://github.com/langchain-ai/langchain/pull/10906",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10906.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10906.patch",
"merged_at": "2023-09-22T17:17:09"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10904
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10904/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10904/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10904/events
|
https://github.com/langchain-ai/langchain/pull/10904
| 1,907,656,409 |
PR_kwDOIPDwls5a7P_U
| 10,904 |
bump 299
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5010622926,
"node_id": "LA_kwDOIPDwls8AAAABKqgJzg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/release",
"name": "release",
"color": "07D4BE",
"default": false,
"description": ""
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T19:50:10 | 2023-09-21T19:56:53 | 2023-09-21T19:56:52 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10904/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10904/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10904",
"html_url": "https://github.com/langchain-ai/langchain/pull/10904",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10904.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10904.patch",
"merged_at": "2023-09-21T19:56:52"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10903
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10903/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10903/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10903/events
|
https://github.com/langchain-ai/langchain/pull/10903
| 1,907,649,559 |
PR_kwDOIPDwls5a7Oe7
| 10,903 |
Bagatur/arxiv kwargs
|
{
"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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T19:45:39 | 2023-09-21T19:49:57 | 2023-09-21T19:49:56 |
COLLABORATOR
| null |
support all arXiv api wrapper kwargs in loader
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10903/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10903/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10903",
"html_url": "https://github.com/langchain-ai/langchain/pull/10903",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10903.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10903.patch",
"merged_at": "2023-09-21T19:49:56"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10902
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10902/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10902/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10902/events
|
https://github.com/langchain-ai/langchain/pull/10902
| 1,907,617,518 |
PR_kwDOIPDwls5a7Hef
| 10,902 |
fix in the docstring
|
{
"login": "lkuligin",
"id": 11026406,
"node_id": "MDQ6VXNlcjExMDI2NDA2",
"avatar_url": "https://avatars.githubusercontent.com/u/11026406?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lkuligin",
"html_url": "https://github.com/lkuligin",
"followers_url": "https://api.github.com/users/lkuligin/followers",
"following_url": "https://api.github.com/users/lkuligin/following{/other_user}",
"gists_url": "https://api.github.com/users/lkuligin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lkuligin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lkuligin/subscriptions",
"organizations_url": "https://api.github.com/users/lkuligin/orgs",
"repos_url": "https://api.github.com/users/lkuligin/repos",
"events_url": "https://api.github.com/users/lkuligin/events{/privacy}",
"received_events_url": "https://api.github.com/users/lkuligin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T19:21:36 | 2023-09-22T22:24:38 | 2023-09-21T21:30:32 |
CONTRIBUTOR
| null |
Description: A fix in the documentation on how to use `GoogleSearchAPIWrapper`.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10902/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10902/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10902",
"html_url": "https://github.com/langchain-ai/langchain/pull/10902",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10902.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10902.patch",
"merged_at": "2023-09-21T21:30:32"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10901
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10901/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10901/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10901/events
|
https://github.com/langchain-ai/langchain/pull/10901
| 1,907,578,405 |
PR_kwDOIPDwls5a6-67
| 10,901 |
finetuned models on 3.5-turbo use base tokenizer
|
{
"login": "abbottLane",
"id": 79882966,
"node_id": "MDQ6VXNlcjc5ODgyOTY2",
"avatar_url": "https://avatars.githubusercontent.com/u/79882966?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/abbottLane",
"html_url": "https://github.com/abbottLane",
"followers_url": "https://api.github.com/users/abbottLane/followers",
"following_url": "https://api.github.com/users/abbottLane/following{/other_user}",
"gists_url": "https://api.github.com/users/abbottLane/gists{/gist_id}",
"starred_url": "https://api.github.com/users/abbottLane/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abbottLane/subscriptions",
"organizations_url": "https://api.github.com/users/abbottLane/orgs",
"repos_url": "https://api.github.com/users/abbottLane/repos",
"events_url": "https://api.github.com/users/abbottLane/events{/privacy}",
"received_events_url": "https://api.github.com/users/abbottLane/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"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-21T18:52:22 | 2023-10-10T23:16:28 | 2023-09-29T15:21:17 |
NONE
| null |
**Description:**
The memory summary buffer calls `get_num_tokens_from_messages` from `openai.py`, which relies on some logic using the model name to calculate the number of tokens. This logic is incomplete, in the case of models finetuned through openai's API, which carry a naming pattern along the lines of: `ft:gpt-3.5-turbo-0613:{your_org}::{snapshot_id}`. This PR alters the model-based logic in this function so we can use finetuned models with the summary buffer memory.
**Issue:**
#10900
**Tag maintainer:**
@agola11
@hwchase17
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10901/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10901/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10901",
"html_url": "https://github.com/langchain-ai/langchain/pull/10901",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10901.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10901.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10900
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10900/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10900/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10900/events
|
https://github.com/langchain-ai/langchain/issues/10900
| 1,907,528,565 |
I_kwDOIPDwls5xspN1
| 10,900 |
Support for openai finetuned models
|
{
"login": "abbottLane",
"id": 79882966,
"node_id": "MDQ6VXNlcjc5ODgyOTY2",
"avatar_url": "https://avatars.githubusercontent.com/u/79882966?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/abbottLane",
"html_url": "https://github.com/abbottLane",
"followers_url": "https://api.github.com/users/abbottLane/followers",
"following_url": "https://api.github.com/users/abbottLane/following{/other_user}",
"gists_url": "https://api.github.com/users/abbottLane/gists{/gist_id}",
"starred_url": "https://api.github.com/users/abbottLane/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abbottLane/subscriptions",
"organizations_url": "https://api.github.com/users/abbottLane/orgs",
"repos_url": "https://api.github.com/users/abbottLane/repos",
"events_url": "https://api.github.com/users/abbottLane/events{/privacy}",
"received_events_url": "https://api.github.com/users/abbottLane/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5774514459,
"node_id": "LA_kwDOIPDwls8AAAABWDAZGw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/stale",
"name": "stale",
"color": "dadada",
"default": false,
"description": "Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed"
},
{
"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-09-21T18:22:47 | 2023-12-30T16:01:49 | null |
NONE
| null |
### System Info
langchain==0.0.198
MacOS 13.5.2 Ventura
Python 3.11
### Who can help?
@agola11
@hwchase17
### Information
- [ ] The official example notebooks/scripts
- [x] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [X] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Steps to reproduce the behavior:
1. Finetune a model using OpenAI's API
2. Retrieve your model tag in the form: `ft:gpt-3.5-turbo-0613:{your_org}::{snapshot_id}`
3. Instantiate a ChatOpenAI object with the finetuned model:
```
from langchain.chat_models import ChatOpenAI
openai = ChatOpenAI(model_name="gpt-3.5-turbo](ft:gpt-3.5-turbo-0613:{your_org}::{snapshot_id}")
```
4. Load an AgentExecuter from Agent, llm, and tools
5. Execute a query, eg:
```
response = executor.run(input="hello, where is my hat?")
```
The query will execute against the LLM at first, then produce an output like this:
```
WARNING:langchain.chat_models.openai:Warning: model not found. Using cl100k_base encoding.
Traceback (most recent call last):
File "/Users/wlane/projects/api-navgpt/demo/mapgpt-agent-demo/cli.py", line 59, in <module>
executor.run(input=query)
File "/opt/homebrew/lib/python3.11/site-packages/langchain/chains/base.py", line 261, in run
return self(kwargs, callbacks=callbacks)[self.output_keys[0]]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/langchain/chains/base.py", line 149, in __call__
final_outputs: Dict[str, Any] = self.prep_outputs(
^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/langchain/chains/base.py", line 213, in prep_outputs
self.memory.save_context(inputs, outputs)
File "/opt/homebrew/lib/python3.11/site-packages/langchain/memory/summary_buffer.py", line 60, in save_context
self.prune()
File "/opt/homebrew/lib/python3.11/site-packages/langchain/memory/summary_buffer.py", line 65, in prune
curr_buffer_length = self.llm.get_num_tokens_from_messages(buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/langchain/chat_models/openai.py", line 458, in get_num_tokens_from_messages
raise NotImplementedError(
NotImplementedError: get_num_tokens_from_messages() is not presently implemented for model gpt-3.5-turbo.See https://github.com/openai/openai-python/blob/main/chatml.md for information on how messages are converted to tokens.
```
### Expected behavior
It is expected that the Agent handles the utterance without throwing an error about being unable to map to the right tokenizer.
The issue is in `openai.py`, which aknowledges that gpt-3.5-turbo may change over time, and maps the model str to a specific snapshot: "gpt-3.5-turbo-0301". However, the logic does not consider that `model` may be some arbitrary handle containing `...gpt-3.5-turbo-...`, as is the case when you fine tune a model on OpenAI:
```
def _get_encoding_model(self) -> Tuple[str, tiktoken.Encoding]:
tiktoken_ = _import_tiktoken()
model = self.model_name
if model == "gpt-3.5-turbo":
# gpt-3.5-turbo may change over time.
# Returning num tokens assuming gpt-3.5-turbo-0301.
model = "gpt-3.5-turbo-0301"
```
When I alter the funtion like this, it works:
```
def _get_encoding_model(self) -> Tuple[str, tiktoken.Encoding]:
tiktoken_ = _import_tiktoken()
model = self.model_name
if "gpt-3.5-turbo" in model: <----------------------------
# gpt-3.5-turbo may change over time.
# Returning num tokens assuming gpt-3.5-turbo-0301.
model = "gpt-3.5-turbo-0301"
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10900/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10900/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10898
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10898/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10898/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10898/events
|
https://github.com/langchain-ai/langchain/pull/10898
| 1,907,468,204 |
PR_kwDOIPDwls5a6mmc
| 10,898 |
lcel benefits
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T17:44:05 | 2023-09-21T21:30:55 | 2023-09-21T21:30:54 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10898/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10898/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10898",
"html_url": "https://github.com/langchain-ai/langchain/pull/10898",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10898.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10898.patch",
"merged_at": "2023-09-21T21:30:54"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10897
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10897/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10897/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10897/events
|
https://github.com/langchain-ai/langchain/pull/10897
| 1,907,449,347 |
PR_kwDOIPDwls5a6ica
| 10,897 |
docs: updated `YouTube` and `tutorial` video links
|
{
"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": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 6 | 2023-09-21T17:32:10 | 2023-10-01T02:28:16 | 2023-09-30T23:37:28 |
COLLABORATOR
| null |
updated `YouTube` and `tutorial` videos with new links.
Removed couple of duplicates.
Reordered several links by view counters
Some formatting: emphasized the names of products
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10897/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10897/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10897",
"html_url": "https://github.com/langchain-ai/langchain/pull/10897",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10897.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10897.patch",
"merged_at": "2023-09-30T23:37:28"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10896
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10896/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10896/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10896/events
|
https://github.com/langchain-ai/langchain/pull/10896
| 1,907,284,714 |
PR_kwDOIPDwls5a5-7U
| 10,896 |
Improve structured chat output parser regex
|
{
"login": "abdulfatir",
"id": 4028948,
"node_id": "MDQ6VXNlcjQwMjg5NDg=",
"avatar_url": "https://avatars.githubusercontent.com/u/4028948?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/abdulfatir",
"html_url": "https://github.com/abdulfatir",
"followers_url": "https://api.github.com/users/abdulfatir/followers",
"following_url": "https://api.github.com/users/abdulfatir/following{/other_user}",
"gists_url": "https://api.github.com/users/abdulfatir/gists{/gist_id}",
"starred_url": "https://api.github.com/users/abdulfatir/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abdulfatir/subscriptions",
"organizations_url": "https://api.github.com/users/abdulfatir/orgs",
"repos_url": "https://api.github.com/users/abdulfatir/repos",
"events_url": "https://api.github.com/users/abdulfatir/events{/privacy}",
"received_events_url": "https://api.github.com/users/abdulfatir/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
open
| false | null |
[] | null | 1 | 2023-09-21T15:48:21 | 2023-09-21T15:48:31 | null |
NONE
| null |
- **Description:** This PR improves the regex in the output parser for the `StructuredChatAgent`. Previously, it failed to match valid json if there was a space after `json` and before the new line, i.e., the follow string won't be matched by the previous regex:
````
```json
{
"action": "Tool",
"action_input": "Tool input."
}
```
````
- **Issue:** N/A,
- **Dependencies:** N/A,
- **Tag maintainer:** don't know,
- **Twitter handle:** solitarypenman
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10896/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/10896/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10896",
"html_url": "https://github.com/langchain-ai/langchain/pull/10896",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10896.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10896.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10895
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10895/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10895/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10895/events
|
https://github.com/langchain-ai/langchain/pull/10895
| 1,907,279,274 |
PR_kwDOIPDwls5a59vk
| 10,895 |
sep base url and loaded url in sub link extraction
|
{
"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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T15:45:23 | 2023-09-21T15:47:43 | 2023-09-21T15:47:42 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10895/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10895/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10895",
"html_url": "https://github.com/langchain-ai/langchain/pull/10895",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10895.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10895.patch",
"merged_at": "2023-09-21T15:47:42"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10894
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10894/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10894/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10894/events
|
https://github.com/langchain-ai/langchain/pull/10894
| 1,907,277,827 |
PR_kwDOIPDwls5a59bH
| 10,894 |
update agent docs
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T15:44:31 | 2023-09-21T16:09:35 | 2023-09-21T16:09:34 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10894/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10894/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10894",
"html_url": "https://github.com/langchain-ai/langchain/pull/10894",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10894.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10894.patch",
"merged_at": "2023-09-21T16:09:33"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10893
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10893/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10893/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10893/events
|
https://github.com/langchain-ai/langchain/pull/10893
| 1,907,274,910 |
PR_kwDOIPDwls5a58yK
| 10,893 |
Fix Runnable.transform() for false-y inputs
|
{
"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": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T15:42:47 | 2023-09-21T18:27:11 | 2023-09-21T18:27:10 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10893/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10893/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10893",
"html_url": "https://github.com/langchain-ai/langchain/pull/10893",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10893.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10893.patch",
"merged_at": "2023-09-21T18:27:10"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10892
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10892/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10892/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10892/events
|
https://github.com/langchain-ai/langchain/pull/10892
| 1,907,234,440 |
PR_kwDOIPDwls5a5z6p
| 10,892 |
Bagatur/bump 298
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5010622926,
"node_id": "LA_kwDOIPDwls8AAAABKqgJzg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/release",
"name": "release",
"color": "07D4BE",
"default": false,
"description": ""
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T15:21:01 | 2023-09-21T15:26:12 | 2023-09-21T15:26:11 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10892/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10892/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10892",
"html_url": "https://github.com/langchain-ai/langchain/pull/10892",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10892.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10892.patch",
"merged_at": "2023-09-21T15:26:11"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10891
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10891/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10891/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10891/events
|
https://github.com/langchain-ai/langchain/pull/10891
| 1,907,230,572 |
PR_kwDOIPDwls5a5zEd
| 10,891 |
recursive loader add status check
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T15:18:59 | 2023-09-21T15:25:44 | 2023-09-21T15:25:43 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10891/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10891/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10891",
"html_url": "https://github.com/langchain-ai/langchain/pull/10891",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10891.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10891.patch",
"merged_at": "2023-09-21T15:25:43"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10890
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10890/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10890/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10890/events
|
https://github.com/langchain-ai/langchain/pull/10890
| 1,907,136,521 |
PR_kwDOIPDwls5a5eW8
| 10,890 |
truncate docs if num_tokens decrease a little to avoid infinite loop
|
{
"login": "NLPpupil",
"id": 32960135,
"node_id": "MDQ6VXNlcjMyOTYwMTM1",
"avatar_url": "https://avatars.githubusercontent.com/u/32960135?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NLPpupil",
"html_url": "https://github.com/NLPpupil",
"followers_url": "https://api.github.com/users/NLPpupil/followers",
"following_url": "https://api.github.com/users/NLPpupil/following{/other_user}",
"gists_url": "https://api.github.com/users/NLPpupil/gists{/gist_id}",
"starred_url": "https://api.github.com/users/NLPpupil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NLPpupil/subscriptions",
"organizations_url": "https://api.github.com/users/NLPpupil/orgs",
"repos_url": "https://api.github.com/users/NLPpupil/repos",
"events_url": "https://api.github.com/users/NLPpupil/events{/privacy}",
"received_events_url": "https://api.github.com/users/NLPpupil/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false | null |
[] | null | 1 | 2023-09-21T14:35:26 | 2023-09-21T14:35:38 | null |
NONE
| null |
**Description:**
in ReduceDocumentsChain class, truncate docs if num_tokens decrease a little to avoid infinite loop.
*Issue:**
https://github.com/langchain-ai/langchain/issues/10888
**Dependencies:**
no
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10890/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10890/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10890",
"html_url": "https://github.com/langchain-ai/langchain/pull/10890",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10890.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10890.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10889
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10889/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10889/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10889/events
|
https://github.com/langchain-ai/langchain/pull/10889
| 1,907,091,155 |
PR_kwDOIPDwls5a5Uc_
| 10,889 |
added Cassandra caches to the llm_caching notebook doc
|
{
"login": "hemidactylus",
"id": 14221764,
"node_id": "MDQ6VXNlcjE0MjIxNzY0",
"avatar_url": "https://avatars.githubusercontent.com/u/14221764?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hemidactylus",
"html_url": "https://github.com/hemidactylus",
"followers_url": "https://api.github.com/users/hemidactylus/followers",
"following_url": "https://api.github.com/users/hemidactylus/following{/other_user}",
"gists_url": "https://api.github.com/users/hemidactylus/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hemidactylus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hemidactylus/subscriptions",
"organizations_url": "https://api.github.com/users/hemidactylus/orgs",
"repos_url": "https://api.github.com/users/hemidactylus/repos",
"events_url": "https://api.github.com/users/hemidactylus/events{/privacy}",
"received_events_url": "https://api.github.com/users/hemidactylus/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-21T14:16:39 | 2023-09-21T20:31:21 | 2023-09-21T15:52:52 |
CONTRIBUTOR
| null |
This adds a section on usage of `CassandraCache` and `CassandraSemanticCache` to the doc notebook about caching LLMs, as suggested in [this comment](https://github.com/langchain-ai/langchain/pull/9772/#issuecomment-1710544100) on a previous merged PR.
I also spotted what looks like a mismatch between different executions and propose a fix (line 98).
Being the result of several runs, the cell execution numbers are scrambled somewhat, so I volunteer to refine this PR by (manually) re-numbering the cells to restore the appearance of a single, smooth running (for the sake of orderly execution :)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10889/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10889/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10889",
"html_url": "https://github.com/langchain-ai/langchain/pull/10889",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10889.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10889.patch",
"merged_at": "2023-09-21T15:52:52"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10888
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10888/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10888/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10888/events
|
https://github.com/langchain-ai/langchain/issues/10888
| 1,906,968,615 |
I_kwDOIPDwls5xqggn
| 10,888 |
Issue: ReduceDocumentsChain may loop for many iterations
|
{
"login": "NLPpupil",
"id": 32960135,
"node_id": "MDQ6VXNlcjMyOTYwMTM1",
"avatar_url": "https://avatars.githubusercontent.com/u/32960135?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NLPpupil",
"html_url": "https://github.com/NLPpupil",
"followers_url": "https://api.github.com/users/NLPpupil/followers",
"following_url": "https://api.github.com/users/NLPpupil/following{/other_user}",
"gists_url": "https://api.github.com/users/NLPpupil/gists{/gist_id}",
"starred_url": "https://api.github.com/users/NLPpupil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NLPpupil/subscriptions",
"organizations_url": "https://api.github.com/users/NLPpupil/orgs",
"repos_url": "https://api.github.com/users/NLPpupil/repos",
"events_url": "https://api.github.com/users/NLPpupil/events{/privacy}",
"received_events_url": "https://api.github.com/users/NLPpupil/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": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-21T13:18:28 | 2023-12-28T16:04:52 | 2023-12-28T16:04:51 |
NONE
| null |
### Issue you'd like to raise.
https://github.com/langchain-ai/langchain/blob/ebe08412ad1649c33501cc80edffbb908cc0157e/libs/langchain/langchain/chains/combine_documents/reduce.py#L247
In this loop:
```
while num_tokens is not None and num_tokens > _token_max:
new_result_doc_list = _split_list_of_docs(
result_docs, length_func, _token_max, **kwargs
)
result_docs = []
for docs in new_result_doc_list:
new_doc = _collapse_docs(docs, _collapse_docs_func, **kwargs)
result_docs.append(new_doc)
num_tokens = length_func(result_docs, **kwargs)
```
If num_tokens does not decrease, or decrease very slow, the loop will run a lot of iterations, which takes too much time, as well as high LLM api cost.
Besides, the comment "Combine multiple documents recursively" is misleading. The method is iteration actually, not recursion.
### Suggestion:
I come up with one solution, if num_tokens decrease less than 10% after one iteration, truncate each doc of result_docs to 90% of original length. If you agree with my proposal, I would like to implement this and submit a pull request.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10888/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10888/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10887
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10887/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10887/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10887/events
|
https://github.com/langchain-ai/langchain/issues/10887
| 1,906,918,594 |
I_kwDOIPDwls5xqUTC
| 10,887 |
langchain.chat_models import fails
|
{
"login": "mstyer-google",
"id": 50425771,
"node_id": "MDQ6VXNlcjUwNDI1Nzcx",
"avatar_url": "https://avatars.githubusercontent.com/u/50425771?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mstyer-google",
"html_url": "https://github.com/mstyer-google",
"followers_url": "https://api.github.com/users/mstyer-google/followers",
"following_url": "https://api.github.com/users/mstyer-google/following{/other_user}",
"gists_url": "https://api.github.com/users/mstyer-google/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mstyer-google/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mstyer-google/subscriptions",
"organizations_url": "https://api.github.com/users/mstyer-google/orgs",
"repos_url": "https://api.github.com/users/mstyer-google/repos",
"events_url": "https://api.github.com/users/mstyer-google/events{/privacy}",
"received_events_url": "https://api.github.com/users/mstyer-google/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 | 3 | 2023-09-21T12:58:28 | 2023-09-22T00:42:08 | 2023-09-22T00:42:07 |
NONE
| null |
### System Info
Langchain: 0.0.81
Python: 3.11.5
System: Ubuntu
Trying to install Langchain and run the basic Quick Start sample code. Importing langchain.chat_models thows a ModuleNotFoundError.
```
$ python3
Python 3.11.5 (main, Aug 25 2023, 07:43:52) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from langchain.llms import OpenAI
>>> from langchain.chat_models import ChatOpenAI
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'langchain.chat_models'
```
Any suggestions?
### 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
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Steps to reproduce:
1. pip install langchain[all]
2. run python3 REPL
3. try to import langchain.chat_models
### Expected behavior
chat_models import succeeds.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10887/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10887/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10886
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10886/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10886/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10886/events
|
https://github.com/langchain-ai/langchain/issues/10886
| 1,906,770,938 |
I_kwDOIPDwls5xpwP6
| 10,886 |
Issue with GooglePalm class.
|
{
"login": "debanshu005",
"id": 89922986,
"node_id": "MDQ6VXNlcjg5OTIyOTg2",
"avatar_url": "https://avatars.githubusercontent.com/u/89922986?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/debanshu005",
"html_url": "https://github.com/debanshu005",
"followers_url": "https://api.github.com/users/debanshu005/followers",
"following_url": "https://api.github.com/users/debanshu005/following{/other_user}",
"gists_url": "https://api.github.com/users/debanshu005/gists{/gist_id}",
"starred_url": "https://api.github.com/users/debanshu005/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/debanshu005/subscriptions",
"organizations_url": "https://api.github.com/users/debanshu005/orgs",
"repos_url": "https://api.github.com/users/debanshu005/repos",
"events_url": "https://api.github.com/users/debanshu005/events{/privacy}",
"received_events_url": "https://api.github.com/users/debanshu005/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-21T11:39:15 | 2023-12-28T16:04:57 | 2023-12-28T16:04:56 |
NONE
| null |
### System Info
Getting errors while using GooglePalm class. Have a look at the error below.
File "/opt/conda/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
exec(code, module.__dict__)
File "/home/jupyter/vertexai-pocs-in-python/contact-centre/palm2-contact-centre-automation.py", line 114, in <module>
result = display_row(selected_enquery)
File "/home/jupyter/vertexai-pocs-in-python/contact-centre/palm2-contact-centre-automation.py", line 100, in display_row
return overall_chain(customer_enquery)
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/base.py", line 243, in __call__
raise e
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/base.py", line 237, in __call__
self._call(inputs, run_manager=run_manager)
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/sequential.py", line 105, in _call
outputs = chain(known_values, return_only_outputs=True, callbacks=callbacks)
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/base.py", line 243, in __call__
raise e
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/base.py", line 237, in __call__
self._call(inputs, run_manager=run_manager)
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/llm.py", line 93, in _call
return self.create_outputs(response)[0]
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/llm.py", line 217, in create_outputs
result = [
File "/opt/conda/lib/python3.10/site-packages/langchain/chains/llm.py", line 220, in <listcomp>
self.output_key: self.output_parser.parse_result(generation),
File "/opt/conda/lib/python3.10/site-packages/langchain/schema/output_parser.py", line 69, in parse_result
return self.parse(result[0].text)
IndexError: list index out of range
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
using LLM chain
### Expected behavior
The error is not coming with other LLM classes.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10886/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10886/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10885
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10885/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10885/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10885/events
|
https://github.com/langchain-ai/langchain/issues/10885
| 1,906,761,048 |
I_kwDOIPDwls5xpt1Y
| 10,885 |
Streaming output doesn't work for `CHAT_CONVERSATIONAL_REACT_DESCRIPTION` with `FinalStreamingStdOutCallbackHandler`
|
{
"login": "DhavalThkkar",
"id": 16734921,
"node_id": "MDQ6VXNlcjE2NzM0OTIx",
"avatar_url": "https://avatars.githubusercontent.com/u/16734921?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DhavalThkkar",
"html_url": "https://github.com/DhavalThkkar",
"followers_url": "https://api.github.com/users/DhavalThkkar/followers",
"following_url": "https://api.github.com/users/DhavalThkkar/following{/other_user}",
"gists_url": "https://api.github.com/users/DhavalThkkar/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DhavalThkkar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DhavalThkkar/subscriptions",
"organizations_url": "https://api.github.com/users/DhavalThkkar/orgs",
"repos_url": "https://api.github.com/users/DhavalThkkar/repos",
"events_url": "https://api.github.com/users/DhavalThkkar/events{/privacy}",
"received_events_url": "https://api.github.com/users/DhavalThkkar/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 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"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-21T11:33:30 | 2023-12-28T16:05:02 | 2023-12-28T16:05:01 |
NONE
| null |
### System Info
langchain==0.0.285
python==3.10.12
Using VSCode Dev Container
### Who can help?
@agola11 @hwchase17
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [X] Callbacks/Tracing
- [ ] Async
### Reproduction
When using `FinalStreamingStdOutCallbackHandler` with `AgentType.ZERO_SHOT_REACT_DESCRIPTION`, I can successfully get streaming outputs. However, when switching to `AgentType.CHAT_CONVERSATIONAL_REACT_DESCRIPTION`, the output is returned all at once, and streaming does not seem to work as expected.
To Reproduce:
Use the following code setup for `AgentType.ZERO_SHOT_REACT_DESCRIPTION`:
```
from langchain.agents import load_tools
from langchain.agents import initialize_agent
from langchain.agents import AgentType
from langchain.callbacks.streaming_stdout_final_only import (
FinalStreamingStdOutCallbackHandler,
)
from langchain.llms import OpenAI
llm = OpenAI(
streaming=True, callbacks=[FinalStreamingStdOutCallbackHandler()], temperature=0
)
tools = load_tools(["wikipedia", "llm-math"], llm=llm)
agent = initialize_agent(
tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=False
)
agent.run(
"It's 2023 now. How many years ago did Konrad Adenauer become Chancellor of Germany."
)
```
This streams the output as expected.
Use the following code setup for `AgentType.CHAT_CONVERSATIONAL_REACT_DESCRIPTION`:
```
from langchain.agents import load_tools
from langchain.agents import initialize_agent
from langchain.agents import AgentType
from langchain.memory import ConversationBufferMemory,RedisChatMessageHistory
from langchain.callbacks.streaming_stdout_final_only import (
FinalStreamingStdOutCallbackHandler,
)
from langchain.llms import OpenAI
from loguru import logger
import redis
import os
from dotenv import find_dotenv, load_dotenv
# Load environment variables from .env file
load_dotenv(find_dotenv("../app/.env"))
# Initialize Redis connection
redis_host = os.environ.get("REDIS_HOST")
redis_port = os.environ.get("REDIS_PORT")
if redis_host and redis_port:
redis_client = redis.Redis(host=redis_host, port=redis_port)
else:
logger.error("Redis host or port not set in environment variables")
# Function to get or initialize chat history
def get_or_init_chat_history(session_id: str, redis_url: str) -> RedisChatMessageHistory:
chat_history_data = redis_client.get(session_id)
if chat_history_data is None:
return RedisChatMessageHistory(session_id, url=redis_url)
else:
return RedisChatMessageHistory.deserialize(chat_history_data, url=redis_url)
# Initialize the chat history for a sample session
sample_session_id = '21112'
redis_url = f"redis://{redis_host}:{redis_port}"
chat_history = get_or_init_chat_history(sample_session_id, redis_url)
llm = OpenAI(
streaming=True, callbacks=[FinalStreamingStdOutCallbackHandler()], temperature=0
)
# Initialize the memory
memory = ConversationBufferMemory(
memory_key="chat_history",
return_messages=True,
chat_memory=chat_history
)
tools = load_tools(["wikipedia", "llm-math"], llm=llm)
agent = initialize_agent(
tools, llm, agent=AgentType.CHAT_CONVERSATIONAL_REACT_DESCRIPTION, verbose=False, memory=memory
)
agent.run(
"It's 2023 now. How many years ago did Konrad Adenauer become Chancellor of Germany."
)
```
This returns the output all at once, without streaming.
Expected Behavior:
The output should be streamed when using `CHAT_CONVERSATIONAL_REACT_DESCRIPTION` just like it is streamed for `ZERO_SHOT_REACT_DESCRIPTION`.
### Expected behavior
The output should be streamed when using `CHAT_CONVERSATIONAL_REACT_DESCRIPTION` just like it is streamed for `ZERO_SHOT_REACT_DESCRIPTION`.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10885/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10885/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10884
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10884/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10884/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10884/events
|
https://github.com/langchain-ai/langchain/issues/10884
| 1,906,754,123 |
I_kwDOIPDwls5xpsJL
| 10,884 |
Error get_num_tokens_from_messages() with gpt-3.5-turbo-0613
|
{
"login": "Zabrell",
"id": 73529224,
"node_id": "MDQ6VXNlcjczNTI5MjI0",
"avatar_url": "https://avatars.githubusercontent.com/u/73529224?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Zabrell",
"html_url": "https://github.com/Zabrell",
"followers_url": "https://api.github.com/users/Zabrell/followers",
"following_url": "https://api.github.com/users/Zabrell/following{/other_user}",
"gists_url": "https://api.github.com/users/Zabrell/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Zabrell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Zabrell/subscriptions",
"organizations_url": "https://api.github.com/users/Zabrell/orgs",
"repos_url": "https://api.github.com/users/Zabrell/repos",
"events_url": "https://api.github.com/users/Zabrell/events{/privacy}",
"received_events_url": "https://api.github.com/users/Zabrell/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-21T11:29:34 | 2023-09-21T11:49:45 | 2023-09-21T11:49:45 |
NONE
| null |
### System Info
Windows(server on linux), python, poetry
### Who can help?
@hwchase17
@agola11
### 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
- [X] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Langchain has problems with working with model casts
```
File "C:\Users\zabre\PycharmProjects\sales-bot\bot\src\sales_bot\text_handler.py", line 445, in get_response
memory.prune()
File "C:\Users\zabre\AppData\Local\pypoetry\Cache\virtualenvs\sales-bot-f2_0xw7_-py3.11\Lib\site-packages\langchain\memory\summary_buffer.py", line 65, in prune
curr_buffer_length = self.llm.get_num_tokens_from_messages(buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zabre\AppData\Local\pypoetry\Cache\virtualenvs\sales-bot-f2_0xw7_-py3.11\Lib\site-packages\langchain\chat_models\openai.py", line 420, in get_num_tokens_from_messages
raise NotImplementedError(
NotImplementedError: get_num_tokens_from_messages() is not presently implemented for model gpt-3.5-turbo-0613.See https://github.com/openai/openai-python/blob/main/chatml.md for information on how messages are converted to tokens.
```
For example, when working with gpt-3.5-turbo-0613, he is not able to count the number of tokens, because the moment of checking the model is hard-coded
Please correct the following in def get_num_tokens_from_messages(langchain\chat_models\openai.py)":
```
if model == "gpt-3.5-turbo":
# gpt-3.5-turbo may change over time.
# Returning num tokens assuming gpt-3.5-turbo-0301.
model = "gpt-3.5-turbo-0301"
elif model == "gpt-4":
# gpt-4 may change over time.
# Returning num tokens assuming gpt-4-0314.
model = "gpt-4-0314"
```
Replase:
```
if "gpt-3.5-turbo" in model:
# gpt-3.5-turbo may change over time.
# Returning num tokens assuming gpt-3.5-turbo-0301.
model = "gpt-3.5-turbo-0301"
elif "gpt-4" in model:
# gpt-4 may change over time.
# Returning num tokens assuming gpt-4-0314.
model = "gpt-4-0314"
```
### Expected behavior
Sorry, because the project is closed, there is no way to provide sources, but the problem arises when using blind models and when calculating the number of tokens
```
memory = ConversationSummaryBufferMemory(
llm=self.analyse_llm,
ai_prefix="1",
human_prefix="2",
max_token_limit=self.max_memory_token_limit,
)
# loaded old memory, and check length with prune causes an error
memory.prune()
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10884/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10884/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10883
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10883/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10883/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10883/events
|
https://github.com/langchain-ai/langchain/issues/10883
| 1,906,662,893 |
I_kwDOIPDwls5xpV3t
| 10,883 |
ReAct agent support using Google PaLM 2
|
{
"login": "kennethxian",
"id": 776564,
"node_id": "MDQ6VXNlcjc3NjU2NA==",
"avatar_url": "https://avatars.githubusercontent.com/u/776564?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kennethxian",
"html_url": "https://github.com/kennethxian",
"followers_url": "https://api.github.com/users/kennethxian/followers",
"following_url": "https://api.github.com/users/kennethxian/following{/other_user}",
"gists_url": "https://api.github.com/users/kennethxian/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kennethxian/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kennethxian/subscriptions",
"organizations_url": "https://api.github.com/users/kennethxian/orgs",
"repos_url": "https://api.github.com/users/kennethxian/repos",
"events_url": "https://api.github.com/users/kennethxian/events{/privacy}",
"received_events_url": "https://api.github.com/users/kennethxian/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-21T10:41:49 | 2023-12-28T16:05:07 | 2023-12-28T16:05:06 |
NONE
| null |
### Feature request
Hi Team,
I'm not sure if this is possible: ReAct agent support using Google PaLM 2.
Now, when using PaLM 2 as the supporting model for ReAct agent, as following code:
```python
from langchain.agents import load_tools
from langchain.agents import initialize_agent
from langchain.agents import AgentType
from langchain.chat_models import ChatOpenAI
# First, let's load the language model we're going to use to control the agent.
llm = ChatOpenAI(model_name='google/palm-2-chat-bison', temperature=0,
openai_api_key='...',
openai_api_base='https://...')
# Next, let's load some tools to use. Note that the `llm-math` tool uses an LLM, so we need to pass that in.
tools = load_tools(["llm-math"], llm=llm)
# Finally, let's initialize an agent with the tools, the language model, and the type of agent we want to use.
agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True)
# Now let's test it out!
agent.run("What is the result of 1+3")
```
An error will occur:
```
OutputParserException: Parsing LLM output produced both a final answer and a parse-able action:: I need to use the calculator to answer this question
Action: Calculator
Action Input: 1+3
Observation: 4
Thought: I now know the final answer
Final Answer: 4
```
It looks like PaLM doesn't understand the prompt requirement of using the tool and waiting for the result.
Are there any solutions to this problem so far? Or is PaLM unable to implement this function?
### Motivation
We need to build a smart scheduler based on PaLM 2.
### Your contribution
If there is no ready-made solution in LangChain, I will try to see if I can use PaLM's dialogue capabilities to achieve this requirement. I also hope to get your feedback and judge whether this is feasible based on experience.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10883/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10883/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10882
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10882/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10882/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10882/events
|
https://github.com/langchain-ai/langchain/issues/10882
| 1,906,629,969 |
I_kwDOIPDwls5xpN1R
| 10,882 |
Possibility to rename input keys, output keys and memory keys for all chains consistently
|
{
"login": "juliuskittler",
"id": 39234739,
"node_id": "MDQ6VXNlcjM5MjM0NzM5",
"avatar_url": "https://avatars.githubusercontent.com/u/39234739?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/juliuskittler",
"html_url": "https://github.com/juliuskittler",
"followers_url": "https://api.github.com/users/juliuskittler/followers",
"following_url": "https://api.github.com/users/juliuskittler/following{/other_user}",
"gists_url": "https://api.github.com/users/juliuskittler/gists{/gist_id}",
"starred_url": "https://api.github.com/users/juliuskittler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/juliuskittler/subscriptions",
"organizations_url": "https://api.github.com/users/juliuskittler/orgs",
"repos_url": "https://api.github.com/users/juliuskittler/repos",
"events_url": "https://api.github.com/users/juliuskittler/events{/privacy}",
"received_events_url": "https://api.github.com/users/juliuskittler/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T10:22:11 | 2023-12-28T16:05:12 | 2023-12-28T16:05:11 |
NONE
| null |
### Feature request
It should be possible to modify input keys, output keys and memory keys for all chains. Currently, this does not seem to be the case. For instance, while all these keys can be modified for the ConversationChain, not all of them can be modified for the ConversationalRetrievalChain.
**ConversationChain**
In the ConversationChain, I can freely rename the memory_key, input_key and output_key as the example below shows. This is as expected.
```
from langchain.chat_models import ChatOpenAI
from langchain.chains import ConversationChain
from langchain.memory import ConversationBufferMemory
from langchain.prompts.prompt import PromptTemplate
# Keys can be freely adjusted
memory_key = "foo"
input_key = "bar"
output_key = "baz"
# Initialize the context with a prompt template
template = r"""The following is a friendly conversation between a human and an AI.
The AI is talkative and provides lots of specific details from its context. If the
AI does not know the answer to a question, it truthfully says it does not know.
Current conversation:
{}
Human: {}
AI:""".format("{" + memory_key + "}", "{" + input_key + "}")
prompt = PromptTemplate(
input_variables=[memory_key, input_key], template=template
)
# Initialize memory to store conversation history
memory = ConversationBufferMemory(
memory_key=memory_key, input_key=input_key, output_key=output_key
)
# Initialize large language model
model_kwargs = {"engine": "gpt-35-turbo-0613", "headers": {"x-api-key": os.environ["OPENAI_API_KEY"]}}
llm = ChatOpenAI(model_kwargs=model_kwargs, temperature=0.0)
# Initialize and return conversation chain
chain = ConversationChain(
llm=llm, memory=memory, prompt=prompt, verbose=True,
input_key=input_key, output_key=output_key
)
# Example call
user_input = "What is GPT in 5 words?"
chain({input_key: user_input})[output_key]
```
**ConversationalRetrievalChain**
If I try to pass an `input_key` (or `input_keys`) argument to `ConversationalRetrievalChain.from_llm`, then I get the following error:
```
ValidationError: 1 validation error for ConversationalRetrievalChain input_key extra fields not permitted (type=value_error.extra)
```
It seems that with the current implementation, one has to use the input keys ["question", "chat_history"] (see [code here](https://github.com/langchain-ai/langchain/blob/777b33b873b50339659963f2b5aba17b69412f5a/libs/langchain/langchain/chains/conversational_retrieval/base.py#L86)).
However, the ConversationalRetrievalChain does, thankfully, accept the input argument `output_key`. I.e., the output_key can be modified but the input_keys cannot.
### Motivation
Provide consistency and ease of use across all chains.
Currently, users may face difficulty in modifying input keys, output keys and memory keys for the ConversationalRetrievalChain which could result in inconsistency across the chains. By allowing modifications to these keys for all chains, users can have a consistent and standardized approach to building chatbots.
### Your contribution
TBD
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10882/reactions",
"total_count": 2,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10882/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10881
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10881/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10881/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10881/events
|
https://github.com/langchain-ai/langchain/pull/10881
| 1,906,492,968 |
PR_kwDOIPDwls5a3RYf
| 10,881 |
Fixing some spelling mistakes
|
{
"login": "ShorthillsAI",
"id": 141953346,
"node_id": "U_kgDOCHYJQg",
"avatar_url": "https://avatars.githubusercontent.com/u/141953346?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ShorthillsAI",
"html_url": "https://github.com/ShorthillsAI",
"followers_url": "https://api.github.com/users/ShorthillsAI/followers",
"following_url": "https://api.github.com/users/ShorthillsAI/following{/other_user}",
"gists_url": "https://api.github.com/users/ShorthillsAI/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ShorthillsAI/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShorthillsAI/subscriptions",
"organizations_url": "https://api.github.com/users/ShorthillsAI/orgs",
"repos_url": "https://api.github.com/users/ShorthillsAI/repos",
"events_url": "https://api.github.com/users/ShorthillsAI/events{/privacy}",
"received_events_url": "https://api.github.com/users/ShorthillsAI/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-21T09:11:02 | 2023-09-27T17:56:52 | 2023-09-27T17:56:51 |
CONTRIBUTOR
| null |
@baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10881/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10881/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10881",
"html_url": "https://github.com/langchain-ai/langchain/pull/10881",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10881.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10881.patch",
"merged_at": "2023-09-27T17:56:51"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10880
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10880/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10880/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10880/events
|
https://github.com/langchain-ai/langchain/pull/10880
| 1,906,455,115 |
PR_kwDOIPDwls5a3I-d
| 10,880 |
fix the Loader 'BiliBiliLoader'
|
{
"login": "liguoqinjim",
"id": 2113954,
"node_id": "MDQ6VXNlcjIxMTM5NTQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/2113954?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/liguoqinjim",
"html_url": "https://github.com/liguoqinjim",
"followers_url": "https://api.github.com/users/liguoqinjim/followers",
"following_url": "https://api.github.com/users/liguoqinjim/following{/other_user}",
"gists_url": "https://api.github.com/users/liguoqinjim/gists{/gist_id}",
"starred_url": "https://api.github.com/users/liguoqinjim/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/liguoqinjim/subscriptions",
"organizations_url": "https://api.github.com/users/liguoqinjim/orgs",
"repos_url": "https://api.github.com/users/liguoqinjim/repos",
"events_url": "https://api.github.com/users/liguoqinjim/events{/privacy}",
"received_events_url": "https://api.github.com/users/liguoqinjim/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-21T08:53:04 | 2023-10-26T12:52:59 | 2023-10-13T06:14:45 |
CONTRIBUTOR
| null |
- **Description:** fix the Loader 'BiliBiliLoader' and it's doc
- **Issue:** Due to recent modifications in Bilibili's API regulations, it is now imperative to include credentials when making a request to obtain subtitles.
Furthermore, it is important to note that not all videos will necessarily have associated subtitles.
As a result, I have revised the logic for acquiring subtitles. Presently, in the absence of credentials, the response will include the video's title and description, with subtitles only retrieved if valid credentials are provided.
And I also changed the doc,adding how to get and provide the credential.
- **Dependencies:** Nope
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10880/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10880/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10880",
"html_url": "https://github.com/langchain-ai/langchain/pull/10880",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10880.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10880.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10879
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10879/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10879/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10879/events
|
https://github.com/langchain-ai/langchain/issues/10879
| 1,906,441,411 |
I_kwDOIPDwls5xofzD
| 10,879 |
BigQuery - document loader, load() function throws error
|
{
"login": "arindam-b",
"id": 59955214,
"node_id": "MDQ6VXNlcjU5OTU1MjE0",
"avatar_url": "https://avatars.githubusercontent.com/u/59955214?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/arindam-b",
"html_url": "https://github.com/arindam-b",
"followers_url": "https://api.github.com/users/arindam-b/followers",
"following_url": "https://api.github.com/users/arindam-b/following{/other_user}",
"gists_url": "https://api.github.com/users/arindam-b/gists{/gist_id}",
"starred_url": "https://api.github.com/users/arindam-b/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arindam-b/subscriptions",
"organizations_url": "https://api.github.com/users/arindam-b/orgs",
"repos_url": "https://api.github.com/users/arindam-b/repos",
"events_url": "https://api.github.com/users/arindam-b/events{/privacy}",
"received_events_url": "https://api.github.com/users/arindam-b/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-21T08:45:23 | 2023-10-13T15:24:30 | 2023-10-13T15:24:30 |
NONE
| null |
### System Info
BigQuery table is not able to load. Here is the code:
```python
from langchain.document_loaders import BigQueryLoader
BASE_QUERY = """
SELECT * FROM arindam-2banerjee-0525-pimy.sf_transport.bikeshare_trips
"""
loader = BigQueryLoader(BASE_QUERY)
loader.load()
```
Error message:
```
---------------------------------------------------------------------------
NotFound Traceback (most recent call last)
[<ipython-input-24-4ebe0f70b252>](https://localhost:8080/#) in <cell line: 9>()
7 loader = BigQueryLoader(BASE_QUERY)
8
----> 9 loader.load()
9 frames
[~/.local/lib/python3.10/site-packages/langchain/document_loaders/bigquery.py](https://localhost:8080/#) in load(self)
59
60 bq_client = bigquery.Client(credentials=self.credentials, project=self.project)
---> 61 query_result = bq_client.query(self.query).result()
62 docs: List[Document] = []
63
[/usr/local/lib/python3.10/dist-packages/google/cloud/bigquery/client.py](https://localhost:8080/#) in query(self, query, job_config, job_id, job_id_prefix, location, project, retry, timeout, job_retry, api_method)
3401 )
3402 elif api_method == enums.QueryApiMethod.INSERT:
-> 3403 return _job_helpers.query_jobs_insert(
3404 self,
3405 query,
[/usr/local/lib/python3.10/dist-packages/google/cloud/bigquery/_job_helpers.py](https://localhost:8080/#) in query_jobs_insert(client, query, job_config, job_id, job_id_prefix, location, project, retry, timeout, job_retry)
112 return query_job
113
--> 114 future = do_query()
115 # The future might be in a failed state now, but if it's
116 # unrecoverable, we'll find out when we ask for it's result, at which
[/usr/local/lib/python3.10/dist-packages/google/cloud/bigquery/_job_helpers.py](https://localhost:8080/#) in do_query()
89
90 try:
---> 91 query_job._begin(retry=retry, timeout=timeout)
92 except core_exceptions.Conflict as create_exc:
93 # The thought is if someone is providing their own job IDs and they get
[/usr/local/lib/python3.10/dist-packages/google/cloud/bigquery/job/query.py](https://localhost:8080/#) in _begin(self, client, retry, timeout)
1308
1309 try:
-> 1310 super(QueryJob, self)._begin(client=client, retry=retry, timeout=timeout)
1311 except exceptions.GoogleAPICallError as exc:
1312 exc.message = _EXCEPTION_FOOTER_TEMPLATE.format(
[/usr/local/lib/python3.10/dist-packages/google/cloud/bigquery/job/base.py](https://localhost:8080/#) in _begin(self, client, retry, timeout)
691 # job has an ID.
692 span_attributes = {"path": path}
--> 693 api_response = client._call_api(
694 retry,
695 span_name="BigQuery.job.begin",
[/usr/local/lib/python3.10/dist-packages/google/cloud/bigquery/client.py](https://localhost:8080/#) in _call_api(self, retry, span_name, span_attributes, job_ref, headers, **kwargs)
811 name=span_name, attributes=span_attributes, client=self, job_ref=job_ref
812 ):
--> 813 return call()
814
815 return call()
[/usr/local/lib/python3.10/dist-packages/google/api_core/retry.py](https://localhost:8080/#) in retry_wrapped_func(*args, **kwargs)
347 self._initial, self._maximum, multiplier=self._multiplier
348 )
--> 349 return retry_target(
350 target,
351 self._predicate,
[/usr/local/lib/python3.10/dist-packages/google/api_core/retry.py](https://localhost:8080/#) in retry_target(target, predicate, sleep_generator, timeout, on_error, **kwargs)
189 for sleep in sleep_generator:
190 try:
--> 191 return target()
192
193 # pylint: disable=broad-except
[/usr/local/lib/python3.10/dist-packages/google/cloud/_http/__init__.py](https://localhost:8080/#) in api_request(self, method, path, query_params, data, content_type, headers, api_base_url, api_version, expect_json, _target_object, timeout, extra_api_info)
492
493 if not 200 <= response.status_code < 300:
--> 494 raise exceptions.from_http_response(response)
495
496 if expect_json and response.content:
NotFound: 404 POST https://bigquery.googleapis.com/bigquery/v2/projects//jobs?prettyPrint=false: Request couldn't be served.
Location: None
Job ID: 77604d22-bf1b-4dca-b6f7-ab553ac6aab8
```
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
The code mentioned above.
### Expected behavior
Load a BigQuery query with one document per row.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10879/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10879/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10878
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10878/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10878/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10878/events
|
https://github.com/langchain-ai/langchain/pull/10878
| 1,906,434,731 |
PR_kwDOIPDwls5a3Eil
| 10,878 |
Implement llm stream api of Alibaba Tongyi model.
|
{
"login": "wangxuqi",
"id": 13748374,
"node_id": "MDQ6VXNlcjEzNzQ4Mzc0",
"avatar_url": "https://avatars.githubusercontent.com/u/13748374?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wangxuqi",
"html_url": "https://github.com/wangxuqi",
"followers_url": "https://api.github.com/users/wangxuqi/followers",
"following_url": "https://api.github.com/users/wangxuqi/following{/other_user}",
"gists_url": "https://api.github.com/users/wangxuqi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wangxuqi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wangxuqi/subscriptions",
"organizations_url": "https://api.github.com/users/wangxuqi/orgs",
"repos_url": "https://api.github.com/users/wangxuqi/repos",
"events_url": "https://api.github.com/users/wangxuqi/events{/privacy}",
"received_events_url": "https://api.github.com/users/wangxuqi/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-09-21T08:41:32 | 2023-09-22T02:50:41 | null |
CONTRIBUTOR
| null |
Hi there
This PR is aim to refactor and implement new api for Alibaba Tongyi LLM model. It contains work below:
1. Implements langchain.llms.Tonyi stream call function.
2. Remove the _call() function as it is deprecated.
3. Add more code examples in tongyi.ipynb. One case for users who need to to use different model with Tongyi.
One case for streaming response call and with callbacks.
Note async completion for the Text API is not yet supported.
Dependencies: dashscope. It will be installed manually cause it is not need by everyone.
Happy for feedback on any aspect of this PR @hwchase17 @baskaryan.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10878/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10878/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10878",
"html_url": "https://github.com/langchain-ai/langchain/pull/10878",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10878.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10878.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10877
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10877/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10877/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10877/events
|
https://github.com/langchain-ai/langchain/pull/10877
| 1,906,282,368 |
PR_kwDOIPDwls5a2jif
| 10,877 |
choose to prepend an index of page_content in retriever
|
{
"login": "Tsukumizu",
"id": 143052241,
"node_id": "U_kgDOCIbN0Q",
"avatar_url": "https://avatars.githubusercontent.com/u/143052241?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Tsukumizu",
"html_url": "https://github.com/Tsukumizu",
"followers_url": "https://api.github.com/users/Tsukumizu/followers",
"following_url": "https://api.github.com/users/Tsukumizu/following{/other_user}",
"gists_url": "https://api.github.com/users/Tsukumizu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Tsukumizu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Tsukumizu/subscriptions",
"organizations_url": "https://api.github.com/users/Tsukumizu/orgs",
"repos_url": "https://api.github.com/users/Tsukumizu/repos",
"events_url": "https://api.github.com/users/Tsukumizu/events{/privacy}",
"received_events_url": "https://api.github.com/users/Tsukumizu/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
open
| false | null |
[] | null | 1 | 2023-09-21T07:17:26 | 2023-09-21T07:17:35 | null |
NONE
| null |
- **Description:** Allow users to prepend each document in the result with its index number by setting the add_index parameter to True in VectorStoreRetiever(), then it's much easier for QA inline citation,
- **Issue:** #7239,
- **Dependencies:** No dependencies required for this change,
- **Tag maintainer:** @baskaryan,
- **Twitter handle:**
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10877/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/10877/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10877",
"html_url": "https://github.com/langchain-ai/langchain/pull/10877",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10877.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10877.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10876
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10876/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10876/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10876/events
|
https://github.com/langchain-ai/langchain/issues/10876
| 1,906,261,175 |
I_kwDOIPDwls5xnzy3
| 10,876 |
Issue: How to set the language (default is English) when using UnstructuredImageLoader with PaddleOCR
|
{
"login": "jonlimx",
"id": 9720225,
"node_id": "MDQ6VXNlcjk3MjAyMjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/9720225?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jonlimx",
"html_url": "https://github.com/jonlimx",
"followers_url": "https://api.github.com/users/jonlimx/followers",
"following_url": "https://api.github.com/users/jonlimx/following{/other_user}",
"gists_url": "https://api.github.com/users/jonlimx/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jonlimx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonlimx/subscriptions",
"organizations_url": "https://api.github.com/users/jonlimx/orgs",
"repos_url": "https://api.github.com/users/jonlimx/repos",
"events_url": "https://api.github.com/users/jonlimx/events{/privacy}",
"received_events_url": "https://api.github.com/users/jonlimx/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
}
] |
closed
| false | null |
[] | null | 4 | 2023-09-21T07:05:38 | 2023-12-30T16:05:44 | 2023-12-30T16:05:43 |
NONE
| null |
### Issue you'd like to raise.
I am using langchain.document_loaders.image.UnstructuredImageLoader to load data from an image with a table on it. I chose PaddleOCR by setting os.environ["TABLE_OCR"] = "paddle" . However, I didn't find a place to set the detection language to other language. Could you please let me know how to do it. I have gotten stuck on it for a while.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10876/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10876/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10875
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10875/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10875/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10875/events
|
https://github.com/langchain-ai/langchain/pull/10875
| 1,906,228,353 |
PR_kwDOIPDwls5a2YGo
| 10,875 |
fix experimental imports
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T06:42:31 | 2023-09-21T06:44:18 | 2023-09-21T06:44:17 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10875/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10875/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10875",
"html_url": "https://github.com/langchain-ai/langchain/pull/10875",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10875.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10875.patch",
"merged_at": "2023-09-21T06:44:17"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10874
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10874/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10874/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10874/events
|
https://github.com/langchain-ai/langchain/issues/10874
| 1,906,192,130 |
I_kwDOIPDwls5xni8C
| 10,874 |
Python - Stop generate response functionality
|
{
"login": "lironezra",
"id": 28096499,
"node_id": "MDQ6VXNlcjI4MDk2NDk5",
"avatar_url": "https://avatars.githubusercontent.com/u/28096499?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lironezra",
"html_url": "https://github.com/lironezra",
"followers_url": "https://api.github.com/users/lironezra/followers",
"following_url": "https://api.github.com/users/lironezra/following{/other_user}",
"gists_url": "https://api.github.com/users/lironezra/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lironezra/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lironezra/subscriptions",
"organizations_url": "https://api.github.com/users/lironezra/orgs",
"repos_url": "https://api.github.com/users/lironezra/repos",
"events_url": "https://api.github.com/users/lironezra/events{/privacy}",
"received_events_url": "https://api.github.com/users/lironezra/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T06:14:41 | 2023-12-28T16:05:22 | 2023-12-28T16:05:21 |
NONE
| null |
### Feature request
First of all BIG thanks for the working you are doing guys!!!
It will be nice if you can add a stop generate response implementation.
### Motivation
I'm always frustrated when I need to wait until the final response returned and then ask new question.
Sometimes my chatbot sending long JSON response that takes 55sec end-to-end it will be nice if I could stop it manually.
### Your contribution
No
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10874/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10874/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10873
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10873/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10873/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10873/events
|
https://github.com/langchain-ai/langchain/pull/10873
| 1,906,185,346 |
PR_kwDOIPDwls5a2Ow9
| 10,873 |
Add async support to multi-query retriever.
|
{
"login": "GMartin-dev",
"id": 1821407,
"node_id": "MDQ6VXNlcjE4MjE0MDc=",
"avatar_url": "https://avatars.githubusercontent.com/u/1821407?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/GMartin-dev",
"html_url": "https://github.com/GMartin-dev",
"followers_url": "https://api.github.com/users/GMartin-dev/followers",
"following_url": "https://api.github.com/users/GMartin-dev/following{/other_user}",
"gists_url": "https://api.github.com/users/GMartin-dev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/GMartin-dev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GMartin-dev/subscriptions",
"organizations_url": "https://api.github.com/users/GMartin-dev/orgs",
"repos_url": "https://api.github.com/users/GMartin-dev/repos",
"events_url": "https://api.github.com/users/GMartin-dev/events{/privacy}",
"received_events_url": "https://api.github.com/users/GMartin-dev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false |
{
"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 | 1 | 2023-09-21T06:09:55 | 2023-09-22T15:33:21 | 2023-09-22T15:33:20 |
CONTRIBUTOR
| null |
Added async support to the MultiQueryRetriever class.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10873/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10873/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10873",
"html_url": "https://github.com/langchain-ai/langchain/pull/10873",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10873.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10873.patch",
"merged_at": "2023-09-22T15:33:20"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10872
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10872/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10872/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10872/events
|
https://github.com/langchain-ai/langchain/issues/10872
| 1,906,164,528 |
I_kwDOIPDwls5xncMw
| 10,872 |
Qdrant collection issue
|
{
"login": "JohnJyong",
"id": 76649700,
"node_id": "MDQ6VXNlcjc2NjQ5NzAw",
"avatar_url": "https://avatars.githubusercontent.com/u/76649700?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/JohnJyong",
"html_url": "https://github.com/JohnJyong",
"followers_url": "https://api.github.com/users/JohnJyong/followers",
"following_url": "https://api.github.com/users/JohnJyong/following{/other_user}",
"gists_url": "https://api.github.com/users/JohnJyong/gists{/gist_id}",
"starred_url": "https://api.github.com/users/JohnJyong/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JohnJyong/subscriptions",
"organizations_url": "https://api.github.com/users/JohnJyong/orgs",
"repos_url": "https://api.github.com/users/JohnJyong/repos",
"events_url": "https://api.github.com/users/JohnJyong/events{/privacy}",
"received_events_url": "https://api.github.com/users/JohnJyong/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T05:52:25 | 2023-09-21T07:01:10 | 2023-09-21T07:01:10 |
NONE
| null |
### System Info
```
try:
# Skip any validation in case of forced collection recreate.
if force_recreate:
raise ValueError
# Get the vector configuration of the existing collection and vector, if it
# was specified. If the old configuration does not match the current one,
# an exception is being thrown.
collection_info = client.get_collection(collection_name=collection_name)
current_vector_config = collection_info.config.params.vectors
if isinstance(current_vector_config, dict) and vector_name is not None:
if vector_name not in current_vector_config:
raise QdrantException(
f"Existing Qdrant collection {collection_name} does not "
f"contain vector named {vector_name}. Did you mean one of the "
f"existing vectors: {', '.join(current_vector_config.keys())}? "
f"If you want to recreate the collection, set `force_recreate` "
f"parameter to `True`."
)
current_vector_config = current_vector_config.get(
vector_name
) # type: ignore[assignment]
elif isinstance(current_vector_config, dict) and vector_name is None:
raise QdrantException(
f"Existing Qdrant collection {collection_name} uses named vectors. "
f"If you want to reuse it, please set `vector_name` to any of the "
f"existing named vectors: "
f"{', '.join(current_vector_config.keys())}." # noqa
f"If you want to recreate the collection, set `force_recreate` "
f"parameter to `True`."
)
elif (
not isinstance(current_vector_config, dict) and vector_name is not None
):
raise QdrantException(
f"Existing Qdrant collection {collection_name} doesn't use named "
f"vectors. If you want to reuse it, please set `vector_name` to "
f"`None`. If you want to recreate the collection, set "
f"`force_recreate` parameter to `True`."
)
# Check if the vector configuration has the same dimensionality.
if current_vector_config.size != vector_size: # type: ignore[union-attr]
raise QdrantException(
f"Existing Qdrant collection is configured for vectors with "
f"{current_vector_config.size} " # type: ignore[union-attr]
f"dimensions. Selected embeddings are {vector_size}-dimensional. "
f"If you want to recreate the collection, set `force_recreate` "
f"parameter to `True`."
)
current_distance_func = (
current_vector_config.distance.name.upper() # type: ignore[union-attr]
)
if current_distance_func != distance_func:
raise QdrantException(
f"Existing Qdrant collection is configured for "
f"{current_vector_config.distance} " # type: ignore[union-attr]
f"similarity. Please set `distance_func` parameter to "
f"`{distance_func}` if you want to reuse it. If you want to "
f"recreate the collection, set `force_recreate` parameter to "
f"`True`."
)
except (UnexpectedResponse, RpcError, ValueError):
vectors_config = rest.VectorParams(
size=vector_size,
distance=rest.Distance[distance_func],
)
# If vector name was provided, we're going to use the named vectors feature
# with just a single vector.
if vector_name is not None:
vectors_config = { # type: ignore[assignment]
vector_name: vectors_config,
}
client.recreate_collection(
collection_name=collection_name,
vectors_config=vectors_config,
shard_number=shard_number,
replication_factor=replication_factor,
write_consistency_factor=write_consistency_factor,
on_disk_payload=on_disk_payload,
hnsw_config=hnsw_config,
optimizers_config=optimizers_config,
wal_config=wal_config,
quantization_config=quantization_config,
init_from=init_from,
timeout=timeout, # type: ignore[arg-type]
)
```
I want to know which idiot wrote this code.
Recreate the collection, then won't all the data be lost?
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Not all exceptions should be handled by recreate collection
### Expected behavior
Not all exceptions should be handled by recreate collection
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10872/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10872/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10871
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10871/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10871/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10871/events
|
https://github.com/langchain-ai/langchain/pull/10871
| 1,906,103,052 |
PR_kwDOIPDwls5a18yQ
| 10,871 |
Upstash redis integration
|
{
"login": "yilmaz-burak",
"id": 46003469,
"node_id": "MDQ6VXNlcjQ2MDAzNDY5",
"avatar_url": "https://avatars.githubusercontent.com/u/46003469?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yilmaz-burak",
"html_url": "https://github.com/yilmaz-burak",
"followers_url": "https://api.github.com/users/yilmaz-burak/followers",
"following_url": "https://api.github.com/users/yilmaz-burak/following{/other_user}",
"gists_url": "https://api.github.com/users/yilmaz-burak/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yilmaz-burak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yilmaz-burak/subscriptions",
"organizations_url": "https://api.github.com/users/yilmaz-burak/orgs",
"repos_url": "https://api.github.com/users/yilmaz-burak/repos",
"events_url": "https://api.github.com/users/yilmaz-burak/events{/privacy}",
"received_events_url": "https://api.github.com/users/yilmaz-burak/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 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": 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"
}
] |
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-09-21T04:56:11 | 2023-10-13T00:36:51 | 2023-10-13T00:36:51 |
CONTRIBUTOR
| null |
- **Description:** Introduced Upstash provider with following wrappers: UpstashRedisCache, UpstashRedisEntityStore, UpstashRedisChatMessageHistory, UpstashRedisStore
- **Issue:** -,
- **Dependencies:** upstash-redis python package is needed,
- **Tag maintainer:** @baskaryan
- **Twitter handle:** @BurakY744
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10871/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10871/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10871",
"html_url": "https://github.com/langchain-ai/langchain/pull/10871",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10871.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10871.patch",
"merged_at": "2023-10-13T00:36:51"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10869
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10869/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10869/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10869/events
|
https://github.com/langchain-ai/langchain/pull/10869
| 1,906,045,391 |
PR_kwDOIPDwls5a1v6w
| 10,869 |
Fix chat_history message order
|
{
"login": "thune-xiaobai",
"id": 3123725,
"node_id": "MDQ6VXNlcjMxMjM3MjU=",
"avatar_url": "https://avatars.githubusercontent.com/u/3123725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/thune-xiaobai",
"html_url": "https://github.com/thune-xiaobai",
"followers_url": "https://api.github.com/users/thune-xiaobai/followers",
"following_url": "https://api.github.com/users/thune-xiaobai/following{/other_user}",
"gists_url": "https://api.github.com/users/thune-xiaobai/gists{/gist_id}",
"starred_url": "https://api.github.com/users/thune-xiaobai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thune-xiaobai/subscriptions",
"organizations_url": "https://api.github.com/users/thune-xiaobai/orgs",
"repos_url": "https://api.github.com/users/thune-xiaobai/repos",
"events_url": "https://api.github.com/users/thune-xiaobai/events{/privacy}",
"received_events_url": "https://api.github.com/users/thune-xiaobai/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T04:00:14 | 2023-10-23T08:53:01 | 2023-09-22T15:16:00 |
CONTRIBUTOR
| null |
Not all databases uses id as default order, so add it explicitly
sqlite uses rawid as default order in select statement: [https://www.sqlite.org/lang_createtable.html#rowid](https://www.sqlite.org/lang_createtable.html#rowid), but some other databases like postgresql not behaves like this. since this class supports multiple db engine. we should have an order.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10869/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10869/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10869",
"html_url": "https://github.com/langchain-ai/langchain/pull/10869",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10869.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10869.patch",
"merged_at": "2023-09-22T15:16:00"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10868
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10868/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10868/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10868/events
|
https://github.com/langchain-ai/langchain/pull/10868
| 1,905,981,655 |
PR_kwDOIPDwls5a1iVr
| 10,868 |
implement async exec for base.py
|
{
"login": "mzamini92",
"id": 32536264,
"node_id": "MDQ6VXNlcjMyNTM2MjY0",
"avatar_url": "https://avatars.githubusercontent.com/u/32536264?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mzamini92",
"html_url": "https://github.com/mzamini92",
"followers_url": "https://api.github.com/users/mzamini92/followers",
"following_url": "https://api.github.com/users/mzamini92/following{/other_user}",
"gists_url": "https://api.github.com/users/mzamini92/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mzamini92/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mzamini92/subscriptions",
"organizations_url": "https://api.github.com/users/mzamini92/orgs",
"repos_url": "https://api.github.com/users/mzamini92/repos",
"events_url": "https://api.github.com/users/mzamini92/events{/privacy}",
"received_events_url": "https://api.github.com/users/mzamini92/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T02:38:20 | 2023-09-21T04:21:15 | 2023-09-21T04:21:15 |
CONTRIBUTOR
| null |
This is my implementation of async exec. This code is similar to the synchronous version, but it uses async and await to make it asynchronous. To use this asynchronous version of _acall, we can simply call it with the async keyword: `output = await chain.acall(inputs)`
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10868/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10868/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10868",
"html_url": "https://github.com/langchain-ai/langchain/pull/10868",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10868.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10868.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10867
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10867/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10867/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10867/events
|
https://github.com/langchain-ai/langchain/issues/10867
| 1,905,974,168 |
I_kwDOIPDwls5xmtuY
| 10,867 |
The model appears to be missing from the _default_params method in the baidu_qianfan_endpoint.py file
|
{
"login": "liye199033",
"id": 131761099,
"node_id": "U_kgDOB9qDyw",
"avatar_url": "https://avatars.githubusercontent.com/u/131761099?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/liye199033",
"html_url": "https://github.com/liye199033",
"followers_url": "https://api.github.com/users/liye199033/followers",
"following_url": "https://api.github.com/users/liye199033/following{/other_user}",
"gists_url": "https://api.github.com/users/liye199033/gists{/gist_id}",
"starred_url": "https://api.github.com/users/liye199033/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/liye199033/subscriptions",
"organizations_url": "https://api.github.com/users/liye199033/orgs",
"repos_url": "https://api.github.com/users/liye199033/repos",
"events_url": "https://api.github.com/users/liye199033/events{/privacy}",
"received_events_url": "https://api.github.com/users/liye199033/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": 5774514459,
"node_id": "LA_kwDOIPDwls8AAAABWDAZGw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/stale",
"name": "stale",
"color": "dadada",
"default": false,
"description": "Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed"
},
{
"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 | 7 | 2023-09-21T02:30:24 | 2023-12-24T16:01:18 | null |
NONE
| null |
### System Info
langchain 0.0.295
python 3.11
os macOS 12.5
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
The model appears to be missing from the _default_params method in the baidu_qianfan_endpoint.py file
`
@property
def _default_params(self) -> Dict[str, Any]:
"""Get the default parameters for calling OpenAI API."""
normal_params = {
"stream": self.streaming,
"request_timeout": self.request_timeout,
"top_p": self.top_p,
"temperature": self.temperature,
"penalty_score": self.penalty_score,
}
return {**normal_params, **self.model_kwargs}
`
Line 183 of the chat_completion.py file in the qianfan module failed to be executed.
`
def do(
self,
model: Optional[str] = None,
endpoint: Optional[str] = None,
stream: bool = False,
retry_count: int = 1,
request_timeout: float = 60,
backoff_factor: float = 0,
**kwargs,
) -> QfResponse:
"""
if model is EB, use EB SDK to deal with the request
"""
if "messages" in kwargs and isinstance(kwargs["messages"], QfMessages):
kwargs["messages"] = kwargs["messages"]._to_list()
if not GLOBAL_CONFIG.DISABLE_EB_SDK:
if model in ["ERNIE-Bot-turbo", "ERNIE-Bot"]:
import erniebot #line 183
erniebot.ak = self._client._auth._ak
erniebot.sk = self._client._auth._sk
erniebot.access_token = self._client._auth.access_token()
# compat with eb sdk
if model == "ERNIE-Bot":
model = "ernie-bot-3.5"
return erniebot.ChatCompletion.create(
model=model.lower(), messages=kwargs["messages"], stream=stream
)
return super().do(
model,
endpoint,
stream,
retry_count,
request_timeout,
backoff_factor,
**kwargs,
)
`
but even with model,baidu will return the following error
`
File "/Users/xxx/Workspace/xxx/xxx/chatbot/venv/lib/python3.11/site-packages/erniebot/backends.py", line 113, in handle_response
raise errors.InvalidParameterError(emsg)
erniebot.errors.InvalidParameterError: the length of messages must be an odd number
`

because there are two messages in the requested messages
### Expected behavior
able to return correct results
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10867/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10867/timeline
| null |
reopened
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10866
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10866/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10866/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10866/events
|
https://github.com/langchain-ai/langchain/pull/10866
| 1,905,885,000 |
PR_kwDOIPDwls5a1OB0
| 10,866 |
beef up agent docs
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T00:31:15 | 2023-09-21T06:09:59 | 2023-09-21T06:09:58 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10866/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10866/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10866",
"html_url": "https://github.com/langchain-ai/langchain/pull/10866",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10866.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10866.patch",
"merged_at": "2023-09-21T06:09:58"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10865
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10865/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10865/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10865/events
|
https://github.com/langchain-ai/langchain/pull/10865
| 1,905,866,123 |
PR_kwDOIPDwls5a1KE2
| 10,865 |
update guide imports
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-21T00:02:30 | 2023-09-21T00:02:47 | 2023-09-21T00:02:46 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10865/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10865/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10865",
"html_url": "https://github.com/langchain-ai/langchain/pull/10865",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10865.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10865.patch",
"merged_at": "2023-09-21T00:02:46"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10864
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10864/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10864/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10864/events
|
https://github.com/langchain-ai/langchain/issues/10864
| 1,905,836,300 |
I_kwDOIPDwls5xmMEM
| 10,864 |
When `search_type="similarity_score_threshold`, retriever returns negative scores
|
{
"login": "amaiya",
"id": 47191980,
"node_id": "MDQ6VXNlcjQ3MTkxOTgw",
"avatar_url": "https://avatars.githubusercontent.com/u/47191980?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/amaiya",
"html_url": "https://github.com/amaiya",
"followers_url": "https://api.github.com/users/amaiya/followers",
"following_url": "https://api.github.com/users/amaiya/following{/other_user}",
"gists_url": "https://api.github.com/users/amaiya/gists{/gist_id}",
"starred_url": "https://api.github.com/users/amaiya/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amaiya/subscriptions",
"organizations_url": "https://api.github.com/users/amaiya/orgs",
"repos_url": "https://api.github.com/users/amaiya/repos",
"events_url": "https://api.github.com/users/amaiya/events{/privacy}",
"received_events_url": "https://api.github.com/users/amaiya/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
closed
| false | null |
[] | null | 4 | 2023-09-20T23:14:16 | 2023-10-30T16:27:45 | 2023-09-21T21:07:03 |
NONE
| null |
### System Info
- OS: Ubuntu 20.04
- `langhcain==0.0.297`
- ` chromadb==0.4.12`
- Python 3.9.18
### Who can help?
@hwchase17
@agola11
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```python
from langchain.document_loaders import TextLoader
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
from langchain.text_splitter import CharacterTextSplitter
from langchain.vectorstores import Chroma
loader = TextLoader("state_of_the_union.txt")
documents = loader.load()
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
texts = text_splitter.split_documents(documents)
embeddings = embeddings = HuggingFaceEmbeddings(model_name='all-MiniLM-L6-v2', encode_kwargs={'normalize_embeddings': True})
docsearch = Chroma.from_documents(texts, embeddings)
retriever = docsearch.as_retriever(search_type="similarity_score_threshold", search_kwargs={'score_threshold': 0.2})
print(retriever.get_relevant_documents('Ketanji'))
```
The above code returns negative similarity scores for all retrieved results:
```python
lib/python3.9/site-packages/langchain/vectorstores/base.py:257: UserWarning: Relevance scores must be between 0 and 1, got
[(Document(page_content='Tonight. I call on the Senate to: Pass the Freedom to Vote Act. Pass the John Lewis Voting Rights Act. And while you’re at it, pass the Disclose Act so Americans can know who is funding our elections. \n\nTonight, I’d like to honor someone who has dedicated his life to serve this country: Justice Stephen Breyer—an Army veteran, Constitutional scholar, and retiring Justice of the United States Supreme Court. Justice Breyer, thank you for your service. \n\nOne of the most serious constitutional responsibilities a President has is nominating someone to serve on the United States Supreme Court. \n\nAnd I did that 4 days ago, when I nominated Circuit Court of Appeals Judge Ketanji Brown Jackson. One of our nation’s top legal minds, who will continue Justice Breyer’s legacy of excellence.', metadata={'source': 'state_of_the_union.txt'}), -0.18782109124725155),
(Document(page_content='Madam Speaker, Madam Vice President, our First Lady and Second Gentleman. Members of Congress and the Cabinet. Justices of the Supreme Court. My fellow Americans. \n\nLast year COVID-19 kept us apart. This year we are finally together again. \n\nTonight, we meet as Democrats Republicans and Independents. But most importantly as Americans. \n\nWith a duty to one another to the American people to the Constitution. \n\nAnd with an unwavering resolve that freedom will always triumph over tyranny. \n\nSix days ago, Russia’s Vladimir Putin sought to shake the foundations of the free world thinking he could make it bend to his menacing ways. But he badly miscalculated. \n\nHe thought he could roll into Ukraine and the world would roll over. Instead he met a wall of strength he never imagined. \n\nHe met the Ukrainian people. \n\nFrom President Zelenskyy to every Ukrainian, their fearlessness, their courage, their determination, inspires the world.', metadata={'source': 'state_of_the_union.txt'}), -0.2858684850499025),
(Document(page_content='We are inflicting pain on Russia and supporting the people of Ukraine. Putin is now isolated from the world more than ever. \n\nTogether with our allies –we are right now enforcing powerful economic sanctions. \n\nWe are cutting off Russia’s largest banks from the international financial system. \n\nPreventing Russia’s central bank from defending the Russian Ruble making Putin’s $630 Billion “war fund” worthless. \n\nWe are choking off Russia’s access to technology that will sap its economic strength and weaken its military for years to come. \n\nTonight I say to the Russian oligarchs and corrupt leaders who have bilked billions of dollars off this violent regime no more. \n\nThe U.S. Department of Justice is assembling a dedicated task force to go after the crimes of Russian oligarchs. \n\nWe are joining with our European allies to find and seize your yachts your luxury apartments your private jets. We are coming for your ill-begotten gains.', metadata={'source': 'state_of_the_union.txt'}), -0.3382525501830016),
(Document(page_content='For that purpose we’ve mobilized American ground forces, air squadrons, and ship deployments to protect NATO countries including Poland, Romania, Latvia, Lithuania, and Estonia. \n\nAs I have made crystal clear the United States and our Allies will defend every inch of territory of NATO countries with the full force of our collective power. \n\nAnd we remain clear-eyed. The Ukrainians are fighting back with pure courage. But the next few days weeks, months, will be hard on them. \n\nPutin has unleashed violence and chaos. But while he may make gains on the battlefield – he will pay a continuing high price over the long run. \n\nAnd a proud Ukrainian people, who have known 30 years of independence, have repeatedly shown that they will not tolerate anyone who tries to take their country backwards. \n\nTo all Americans, I will be honest with you, as I’ve always promised. A Russian dictator, invading a foreign country, has costs around the world.', metadata={'source': 'state_of_the_union.txt'}), -0.3629898842731978)]
```
### Expected behavior
Score for each `Document` should be between 0 and 1.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10864/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10864/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10863
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10863/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10863/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10863/events
|
https://github.com/langchain-ai/langchain/pull/10863
| 1,905,816,088 |
PR_kwDOIPDwls5a0_ae
| 10,863 |
cleanup recursive url session
|
{
"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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T22:50:53 | 2023-09-21T14:22:15 | 2023-09-21T14:22:14 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10863/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10863/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10863",
"html_url": "https://github.com/langchain-ai/langchain/pull/10863",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10863.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10863.patch",
"merged_at": "2023-09-21T14:22:14"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10862
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10862/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10862/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10862/events
|
https://github.com/langchain-ai/langchain/pull/10862
| 1,905,793,896 |
PR_kwDOIPDwls5a06rG
| 10,862 |
Adding a connector for CogniSwitch.ai
|
{
"login": "CogniJT",
"id": 131272471,
"node_id": "U_kgDOB9MPFw",
"avatar_url": "https://avatars.githubusercontent.com/u/131272471?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/CogniJT",
"html_url": "https://github.com/CogniJT",
"followers_url": "https://api.github.com/users/CogniJT/followers",
"following_url": "https://api.github.com/users/CogniJT/following{/other_user}",
"gists_url": "https://api.github.com/users/CogniJT/gists{/gist_id}",
"starred_url": "https://api.github.com/users/CogniJT/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CogniJT/subscriptions",
"organizations_url": "https://api.github.com/users/CogniJT/orgs",
"repos_url": "https://api.github.com/users/CogniJT/repos",
"events_url": "https://api.github.com/users/CogniJT/events{/privacy}",
"received_events_url": "https://api.github.com/users/CogniJT/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 6232714130,
"node_id": "LA_kwDOIPDwls8AAAABc3-rkg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XL",
"name": "size:XL",
"color": "D4C5F9",
"default": false,
"description": "This PR changes 500-999 lines, ignoring generated files."
}
] |
open
| false | null |
[] | null | 23 | 2023-09-20T22:21:34 | 2023-12-11T14:04:44 | null |
NONE
| null |
- **Description:** CogniSwitch focusses on making GenAI usage more reliable. It abstracts out the complexity & decision making required for tuning processing, storage & retrieval. Using simple APIs documents / URLs can be processed into a Knowledge Graph that can then be used to answer questions.
- **Dependencies:** No dependencies. Just network calls & API key required
- **Tag maintainer:** @hwchase17
- **Twitter handle:** @CogniSwitch
- **Documentation:** Please check `docs/extras/use_cases/cogniswitch_chain_usage.ipynb`
- **Tests:** Unit tests added within chains/ `test_cogniswitch_store` & `test_cogniswitch_answer`
PR has passed linting and testing before this submission.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10862/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10862/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10862",
"html_url": "https://github.com/langchain-ai/langchain/pull/10862",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10862.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10862.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10861
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10861/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10861/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10861/events
|
https://github.com/langchain-ai/langchain/pull/10861
| 1,905,758,775 |
PR_kwDOIPDwls5a0zLb
| 10,861 |
bump 297
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T21:42:02 | 2023-09-20T21:45:50 | 2023-09-20T21:45:49 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10861/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10861/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10861",
"html_url": "https://github.com/langchain-ai/langchain/pull/10861",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10861.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10861.patch",
"merged_at": "2023-09-20T21:45:49"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10860
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10860/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10860/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10860/events
|
https://github.com/langchain-ai/langchain/pull/10860
| 1,905,749,724 |
PR_kwDOIPDwls5a0xQV
| 10,860 |
fix loading of sql chain
|
{
"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": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T21:33:04 | 2023-09-20T21:37:50 | 2023-09-20T21:37:49 |
COLLABORATOR
| null |
Closing #6889
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10860/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10860/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10860",
"html_url": "https://github.com/langchain-ai/langchain/pull/10860",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10860.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10860.patch",
"merged_at": "2023-09-20T21:37:49"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10859
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10859/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10859/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10859/events
|
https://github.com/langchain-ai/langchain/pull/10859
| 1,905,743,290 |
PR_kwDOIPDwls5a0v25
| 10,859 |
more redirects
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T21:26:46 | 2023-09-20T21:26:54 | 2023-09-20T21:26:52 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10859/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10859/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10859",
"html_url": "https://github.com/langchain-ai/langchain/pull/10859",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10859.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10859.patch",
"merged_at": "2023-09-20T21:26:52"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10858
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10858/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10858/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10858/events
|
https://github.com/langchain-ai/langchain/pull/10858
| 1,905,737,864 |
PR_kwDOIPDwls5a0usF
| 10,858 |
fix databricks docs
|
{
"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": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T21:21:30 | 2023-09-20T21:36:56 | 2023-09-20T21:36:55 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10858/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10858/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10858",
"html_url": "https://github.com/langchain-ai/langchain/pull/10858",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10858.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10858.patch",
"merged_at": "2023-09-20T21:36:55"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10857
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10857/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10857/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10857/events
|
https://github.com/langchain-ai/langchain/pull/10857
| 1,905,730,993 |
PR_kwDOIPDwls5a0tMZ
| 10,857 |
redirect platform to provider
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T21:15:00 | 2023-09-20T21:39:18 | 2023-09-20T21:17:36 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10857/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10857/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10857",
"html_url": "https://github.com/langchain-ai/langchain/pull/10857",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10857.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10857.patch",
"merged_at": "2023-09-20T21:17:36"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10856
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10856/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10856/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10856/events
|
https://github.com/langchain-ai/langchain/pull/10856
| 1,905,707,460 |
PR_kwDOIPDwls5a0oCA
| 10,856 |
fix recursive loader
|
{
"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": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T20:55:26 | 2023-09-20T20:55:49 | 2023-09-20T20:55:48 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10856/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10856/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10856",
"html_url": "https://github.com/langchain-ai/langchain/pull/10856",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10856.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10856.patch",
"merged_at": "2023-09-20T20:55:48"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10855
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10855/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10855/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10855/events
|
https://github.com/langchain-ai/langchain/pull/10855
| 1,905,640,183 |
PR_kwDOIPDwls5a0ZS6
| 10,855 |
fix extract sublink bug
|
{
"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": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T20:03:14 | 2023-09-20T20:30:43 | 2023-09-20T20:30:42 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10855/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10855/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10855",
"html_url": "https://github.com/langchain-ai/langchain/pull/10855",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10855.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10855.patch",
"merged_at": "2023-09-20T20:30:42"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10853
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10853/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10853/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10853/events
|
https://github.com/langchain-ai/langchain/pull/10853
| 1,905,634,225 |
PR_kwDOIPDwls5a0YAC
| 10,853 |
Rodrigo dev
|
{
"login": "rodrigo-clickup",
"id": 141281053,
"node_id": "U_kgDOCGvHHQ",
"avatar_url": "https://avatars.githubusercontent.com/u/141281053?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rodrigo-clickup",
"html_url": "https://github.com/rodrigo-clickup",
"followers_url": "https://api.github.com/users/rodrigo-clickup/followers",
"following_url": "https://api.github.com/users/rodrigo-clickup/following{/other_user}",
"gists_url": "https://api.github.com/users/rodrigo-clickup/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rodrigo-clickup/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rodrigo-clickup/subscriptions",
"organizations_url": "https://api.github.com/users/rodrigo-clickup/orgs",
"repos_url": "https://api.github.com/users/rodrigo-clickup/repos",
"events_url": "https://api.github.com/users/rodrigo-clickup/events{/privacy}",
"received_events_url": "https://api.github.com/users/rodrigo-clickup/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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T19:58:36 | 2023-09-20T20:09:04 | 2023-09-20T19:58:57 |
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10853/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10853/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10853",
"html_url": "https://github.com/langchain-ai/langchain/pull/10853",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10853.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10853.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10852
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10852/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10852/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10852/events
|
https://github.com/langchain-ai/langchain/issues/10852
| 1,905,609,497 |
I_kwDOIPDwls5xlUsZ
| 10,852 |
create_conversational_retrieval_agent does not work with fallbacks
|
{
"login": "monilouise",
"id": 21226525,
"node_id": "MDQ6VXNlcjIxMjI2NTI1",
"avatar_url": "https://avatars.githubusercontent.com/u/21226525?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/monilouise",
"html_url": "https://github.com/monilouise",
"followers_url": "https://api.github.com/users/monilouise/followers",
"following_url": "https://api.github.com/users/monilouise/following{/other_user}",
"gists_url": "https://api.github.com/users/monilouise/gists{/gist_id}",
"starred_url": "https://api.github.com/users/monilouise/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/monilouise/subscriptions",
"organizations_url": "https://api.github.com/users/monilouise/orgs",
"repos_url": "https://api.github.com/users/monilouise/repos",
"events_url": "https://api.github.com/users/monilouise/events{/privacy}",
"received_events_url": "https://api.github.com/users/monilouise/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": 5774514459,
"node_id": "LA_kwDOIPDwls8AAAABWDAZGw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/stale",
"name": "stale",
"color": "dadada",
"default": false,
"description": "Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed"
},
{
"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 | 7 | 2023-09-20T19:39:26 | 2023-12-25T16:02:26 | null |
NONE
| null |
### System Info
Langhchain version: 0.0.296
Python version: 3.9.7
Platform: Windows 10
### Who can help?
I need to implement a fallback for my RAG application based on Langchain conversational retrievers because my application needs to use GPT 4 only for RAG and GPT 3.5 for generic questions (eg.: ChatGPT). A way to implement this behaviour is by means of fallbacks, because infortunately create_conversational_retrieval_agent() enforces the same LLM for all the tools. So, I wrote the following code:
```
short_llm = ChatOpenAI(
deployment_id=DEPLOYMENT_NAME_GPT_3_5_4K,
engine=DEPLOYMENT_NAME_GPT_3_5_4K,
model_name=model_gpt_3_5_4k,
temperature=0,
openai_api_base=BASE_URL,
openai_api_key=API_KEY,
streaming=True,
callbacks=[StreamingStdOutCallbackHandler()]
)
long_llm = ChatOpenAI(
deployment_id=DEPLOYMENT_NAME_GPT_4_8K,
engine=DEPLOYMENT_NAME_GPT_4_8K,
model_name=model_gpt_4_8k,
temperature=0,
openai_api_base=BASE_URL,
openai_api_key=API_KEY,
streaming=True,
callbacks=[StreamingStdOutCallbackHandler()]
)
chat_llm = short_llm.with_fallbacks([long_llm])
```
And to create the agent:
`agent_executor = create_conversational_retrieval_agent(chat_llm, tools, verbose=True, sytem_message=system_prompt, remember_intermediate_steps=False)`
But the following error occurs:
```
C:\ProgramData\Anaconda3\lib\site-packages\langchain\agents\agent_toolkits\conversational_retrieval\openai_functions.py in create_conversational_retrieval_agent(llm, tools, remember_intermediate_steps, memory_key, system_message, verbose, max_token_limit, **kwargs)
58
59 if not isinstance(llm, ChatOpenAI):
---> 60 raise ValueError("Only supported with ChatOpenAI models.")
61 if remember_intermediate_steps:
62 memory: BaseMemory = AgentTokenBufferMemory(
ValueError: Only supported with ChatOpenAI models.
```
In fact, chat_llm has the following type: langchain.schema.runnable.base.RunnableWithFallbacks. It apparently does not inherit ChatOpenAI .
Is there any workaround? My requirement is to use long LLM for RAG/retriever tools and a short one for normal conversation with ChatGPT 3.5
### 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
```
short_llm = ChatOpenAI(
deployment_id=DEPLOYMENT_NAME_GPT_3_5_4K,
engine=DEPLOYMENT_NAME_GPT_3_5_4K,
model_name=model_gpt_3_5_4k,
temperature=0,
openai_api_base=BASE_URL,
openai_api_key=API_KEY,
streaming=True,
callbacks=[StreamingStdOutCallbackHandler()]
)
long_llm = ChatOpenAI(
deployment_id=DEPLOYMENT_NAME_GPT_4_8K,
engine=DEPLOYMENT_NAME_GPT_4_8K,
model_name=model_gpt_4_8k,
temperature=0,
openai_api_base=BASE_URL,
openai_api_key=API_KEY,
streaming=True,
callbacks=[StreamingStdOutCallbackHandler()]
)
chat_llm = short_llm.with_fallbacks([long_llm])
```
And to create the agent:
`agent_executor = create_conversational_retrieval_agent(chat_llm, tools, verbose=True, sytem_message=system_prompt, remember_intermediate_steps=False)`
### Expected behavior
Conversational retrieval agents should be able to work with fallbacks.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10852/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10852/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10851
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10851/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10851/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10851/events
|
https://github.com/langchain-ai/langchain/pull/10851
| 1,905,420,462 |
PR_kwDOIPDwls5azqJm
| 10,851 |
bump exp 19
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T17:17:45 | 2023-09-20T17:17:55 | 2023-09-20T17:17:52 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10851/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10851/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10851",
"html_url": "https://github.com/langchain-ai/langchain/pull/10851",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10851.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10851.patch",
"merged_at": "2023-09-20T17:17:52"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10850
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10850/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10850/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10850/events
|
https://github.com/langchain-ai/langchain/pull/10850
| 1,905,420,396 |
PR_kwDOIPDwls5azqIt
| 10,850 |
add lcel how to index
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T17:17:43 | 2023-09-20T17:19:44 | 2023-09-20T17:19:43 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10850/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10850/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10850",
"html_url": "https://github.com/langchain-ai/langchain/pull/10850",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10850.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10850.patch",
"merged_at": "2023-09-20T17:19:43"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10849
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10849/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10849/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10849/events
|
https://github.com/langchain-ai/langchain/issues/10849
| 1,905,383,407 |
I_kwDOIPDwls5xkdfv
| 10,849 |
Issue: running integration tests
|
{
"login": "EhsanH19",
"id": 121943503,
"node_id": "U_kgDOB0S1zw",
"avatar_url": "https://avatars.githubusercontent.com/u/121943503?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/EhsanH19",
"html_url": "https://github.com/EhsanH19",
"followers_url": "https://api.github.com/users/EhsanH19/followers",
"following_url": "https://api.github.com/users/EhsanH19/following{/other_user}",
"gists_url": "https://api.github.com/users/EhsanH19/gists{/gist_id}",
"starred_url": "https://api.github.com/users/EhsanH19/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/EhsanH19/subscriptions",
"organizations_url": "https://api.github.com/users/EhsanH19/orgs",
"repos_url": "https://api.github.com/users/EhsanH19/repos",
"events_url": "https://api.github.com/users/EhsanH19/events{/privacy}",
"received_events_url": "https://api.github.com/users/EhsanH19/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": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T16:50:05 | 2023-09-21T11:13:05 | 2023-09-21T11:13:05 |
NONE
| null |
### integration tests.
I have tried to follow the readme in langchain/tests to run the integration tests but got these errors :
`ModuleNotFoundError: No module named 'qdrant_client'`
Using poetry with python version = 3.10
I already tried the `poetry install` and` poetry install --with test_integration` but does't helped. The readme seems don't have much information around this and couldn't find any document that what is guideline to run the integration tests.
The unit tests are running fine.
Is it maybe something wrong with my env or I might missing a step before running integration tests?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10849/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10849/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10848
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10848/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10848/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10848/events
|
https://github.com/langchain-ai/langchain/issues/10848
| 1,905,382,623 |
I_kwDOIPDwls5xkdTf
| 10,848 |
ValueError: The following `model_kwargs` are not used by the model while running Microsoft/Phi-1.5 using HuggingFacePipeline
|
{
"login": "iamknownstranger",
"id": 47244469,
"node_id": "MDQ6VXNlcjQ3MjQ0NDY5",
"avatar_url": "https://avatars.githubusercontent.com/u/47244469?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/iamknownstranger",
"html_url": "https://github.com/iamknownstranger",
"followers_url": "https://api.github.com/users/iamknownstranger/followers",
"following_url": "https://api.github.com/users/iamknownstranger/following{/other_user}",
"gists_url": "https://api.github.com/users/iamknownstranger/gists{/gist_id}",
"starred_url": "https://api.github.com/users/iamknownstranger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/iamknownstranger/subscriptions",
"organizations_url": "https://api.github.com/users/iamknownstranger/orgs",
"repos_url": "https://api.github.com/users/iamknownstranger/repos",
"events_url": "https://api.github.com/users/iamknownstranger/events{/privacy}",
"received_events_url": "https://api.github.com/users/iamknownstranger/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 | 3 | 2023-09-20T16:49:29 | 2023-12-27T16:04:18 | 2023-12-27T16:04:17 |
NONE
| null |
### System Info
Python 3.9.18
langchain 0.0.292
transformers 4.33.2
torch 2.0.1
os macOs Ventura 13.5.2
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
from transformers import pipeline
from langchain import PromptTemplate
from langchain.llms.huggingface_pipeline import HuggingFacePipeline
from transformers import AutoModelForCausalLM, AutoTokenizer
from langchain.chains import LLMChain
model = AutoModelForCausalLM.from_pretrained("microsoft/phi-1_5",
trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(
"microsoft/phi-1_5", trust_remote_code=True, use_cache=True, return_attention_mask=False)
question = "Who won the FIFA World Cup in the year 1994? "
template = """Question: {question}
Answer: Let's think step by step."""
prompt = PromptTemplate(template=template, input_variables=["question"])
# llm_pipeline = HuggingFacePipeline(pipeline=generate)
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
llm_pipeline = HuggingFacePipeline(pipeline=pipe)
generator_chain = LLMChain(llm=llm_pipeline, prompt=prompt)
generator_outputs = generator_chain.run(question)
print(generator_outputs)
```
ValueError: The following `model_kwargs` are not used by the model: ['attention_mask'] (note: typos in the generate arguments will also show up in this list)
### Expected behavior
Return the response from the model
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10848/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10848/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10847
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10847/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10847/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10847/events
|
https://github.com/langchain-ai/langchain/pull/10847
| 1,905,374,275 |
PR_kwDOIPDwls5azgMK
| 10,847 |
improvement: Remove custom SingleStoreDBRetriever
|
{
"login": "volodymyr-memsql",
"id": 57520563,
"node_id": "MDQ6VXNlcjU3NTIwNTYz",
"avatar_url": "https://avatars.githubusercontent.com/u/57520563?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/volodymyr-memsql",
"html_url": "https://github.com/volodymyr-memsql",
"followers_url": "https://api.github.com/users/volodymyr-memsql/followers",
"following_url": "https://api.github.com/users/volodymyr-memsql/following{/other_user}",
"gists_url": "https://api.github.com/users/volodymyr-memsql/gists{/gist_id}",
"starred_url": "https://api.github.com/users/volodymyr-memsql/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/volodymyr-memsql/subscriptions",
"organizations_url": "https://api.github.com/users/volodymyr-memsql/orgs",
"repos_url": "https://api.github.com/users/volodymyr-memsql/repos",
"events_url": "https://api.github.com/users/volodymyr-memsql/events{/privacy}",
"received_events_url": "https://api.github.com/users/volodymyr-memsql/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 5 | 2023-09-20T16:43:18 | 2023-10-17T10:33:54 | 2023-10-12T11:55:38 |
CONTRIBUTOR
| null |
The SingleStoreDB vector store does not need custom logic for the retriever, so the logic from the base class should be used.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10847/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10847/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10847",
"html_url": "https://github.com/langchain-ai/langchain/pull/10847",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10847.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10847.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10846
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10846/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10846/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10846/events
|
https://github.com/langchain-ai/langchain/pull/10846
| 1,905,299,382 |
PR_kwDOIPDwls5azP4Y
| 10,846 |
Improvements to llm/deepinfra
|
{
"login": "ichernev",
"id": 757060,
"node_id": "MDQ6VXNlcjc1NzA2MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/757060?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ichernev",
"html_url": "https://github.com/ichernev",
"followers_url": "https://api.github.com/users/ichernev/followers",
"following_url": "https://api.github.com/users/ichernev/following{/other_user}",
"gists_url": "https://api.github.com/users/ichernev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ichernev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ichernev/subscriptions",
"organizations_url": "https://api.github.com/users/ichernev/orgs",
"repos_url": "https://api.github.com/users/ichernev/repos",
"events_url": "https://api.github.com/users/ichernev/events{/privacy}",
"received_events_url": "https://api.github.com/users/ichernev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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"
}
] |
closed
| false | null |
[] | null | 8 | 2023-09-20T15:57:20 | 2023-10-24T16:54:24 | 2023-10-24T16:54:24 |
CONTRIBUTOR
| null |
- replace `requests` package with `langchain.requests`
- add `_acall` support
- add `_stream` and `_astream`
- freshen up the documentation a bit
- update vendor doc
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10846/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10846/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10846",
"html_url": "https://github.com/langchain-ai/langchain/pull/10846",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10846.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10846.patch",
"merged_at": "2023-10-24T16:54:24"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10845
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10845/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10845/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10845/events
|
https://github.com/langchain-ai/langchain/pull/10845
| 1,905,289,849 |
PR_kwDOIPDwls5azNzl
| 10,845 |
doc: update the openai_function_agent document
|
{
"login": "DayuanJiang",
"id": 34411969,
"node_id": "MDQ6VXNlcjM0NDExOTY5",
"avatar_url": "https://avatars.githubusercontent.com/u/34411969?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DayuanJiang",
"html_url": "https://github.com/DayuanJiang",
"followers_url": "https://api.github.com/users/DayuanJiang/followers",
"following_url": "https://api.github.com/users/DayuanJiang/following{/other_user}",
"gists_url": "https://api.github.com/users/DayuanJiang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DayuanJiang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DayuanJiang/subscriptions",
"organizations_url": "https://api.github.com/users/DayuanJiang/orgs",
"repos_url": "https://api.github.com/users/DayuanJiang/repos",
"events_url": "https://api.github.com/users/DayuanJiang/events{/privacy}",
"received_events_url": "https://api.github.com/users/DayuanJiang/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false |
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
] | null | 6 | 2023-09-20T15:51:51 | 2023-11-03T01:32:27 | 2023-11-03T01:32:27 |
CONTRIBUTOR
| null |
- **Description:** This pull request updates the openai_function_agent document. The update enhances the document in three significant ways:
- Firstly, it eliminates imports that lead to import errors such as `langchain_experimental`.
- Secondly, it initializes the agent by directly calling the `OpenAIFunctionsAgent`, instead of using the less intuitive `initialize_agent`.
- Lastly, it substitutes the tools with those that don't require additional external services, simplifying the process for users to reproduce the notebook.
- **Tag maintainer:** @baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10845/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10845/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10845",
"html_url": "https://github.com/langchain-ai/langchain/pull/10845",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10845.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10845.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10844
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10844/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10844/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10844/events
|
https://github.com/langchain-ai/langchain/issues/10844
| 1,905,287,813 |
I_kwDOIPDwls5xkGKF
| 10,844 |
Installing from source (pip install -e .) fails with multiple top-level packags found
|
{
"login": "ichernev",
"id": 757060,
"node_id": "MDQ6VXNlcjc1NzA2MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/757060?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ichernev",
"html_url": "https://github.com/ichernev",
"followers_url": "https://api.github.com/users/ichernev/followers",
"following_url": "https://api.github.com/users/ichernev/following{/other_user}",
"gists_url": "https://api.github.com/users/ichernev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ichernev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ichernev/subscriptions",
"organizations_url": "https://api.github.com/users/ichernev/orgs",
"repos_url": "https://api.github.com/users/ichernev/repos",
"events_url": "https://api.github.com/users/ichernev/events{/privacy}",
"received_events_url": "https://api.github.com/users/ichernev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-20T15:51:04 | 2023-11-07T16:42:53 | 2023-09-20T16:08:29 |
CONTRIBUTOR
| null |
### System Info
Linux, Python 3.11.5
### 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
1. `python -m venv .venv`
2. `. .venv/bin/activate`
3. `pip install -e .`
### Expected behavior
To install package in a local virtualenv.
What happens:
```
% pip install -e .
Obtaining file:///home/iskren/src/deepinfra/libs/langchain
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... error
error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
error: Multiple top-level packages discovered in a flat-layout: ['libs', 'langchain'].
To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.
If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:
1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names
To find more information, look for "package discovery" on setuptools docs.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10844/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10844/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10843
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10843/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10843/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10843/events
|
https://github.com/langchain-ai/langchain/pull/10843
| 1,905,267,140 |
PR_kwDOIPDwls5azIzV
| 10,843 |
Update base.py
|
{
"login": "dbolser",
"id": 128659,
"node_id": "MDQ6VXNlcjEyODY1OQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/128659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dbolser",
"html_url": "https://github.com/dbolser",
"followers_url": "https://api.github.com/users/dbolser/followers",
"following_url": "https://api.github.com/users/dbolser/following{/other_user}",
"gists_url": "https://api.github.com/users/dbolser/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dbolser/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dbolser/subscriptions",
"organizations_url": "https://api.github.com/users/dbolser/orgs",
"repos_url": "https://api.github.com/users/dbolser/repos",
"events_url": "https://api.github.com/users/dbolser/events{/privacy}",
"received_events_url": "https://api.github.com/users/dbolser/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T15:40:15 | 2023-09-27T18:15:58 | 2023-09-27T18:15:58 |
CONTRIBUTOR
| null |
Fixing a typo in the example code in the docstring...
You have to start somewhere though right?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10843/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 1,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10843/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10843",
"html_url": "https://github.com/langchain-ai/langchain/pull/10843",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10843.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10843.patch",
"merged_at": "2023-09-27T18:15:58"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10842
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10842/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10842/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10842/events
|
https://github.com/langchain-ai/langchain/pull/10842
| 1,905,236,319 |
PR_kwDOIPDwls5azB-K
| 10,842 |
bump 296
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T15:25:00 | 2023-09-20T15:31:16 | 2023-09-20T15:31:15 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10842/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10842/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10842",
"html_url": "https://github.com/langchain-ai/langchain/pull/10842",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10842.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10842.patch",
"merged_at": "2023-09-20T15:31:15"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10841
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10841/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10841/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10841/events
|
https://github.com/langchain-ai/langchain/issues/10841
| 1,905,168,973 |
I_kwDOIPDwls5xjpJN
| 10,841 |
Directory loader does not extract text between <strong> </strong> tags in HTML
|
{
"login": "rajib76",
"id": 16340036,
"node_id": "MDQ6VXNlcjE2MzQwMDM2",
"avatar_url": "https://avatars.githubusercontent.com/u/16340036?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rajib76",
"html_url": "https://github.com/rajib76",
"followers_url": "https://api.github.com/users/rajib76/followers",
"following_url": "https://api.github.com/users/rajib76/following{/other_user}",
"gists_url": "https://api.github.com/users/rajib76/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rajib76/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rajib76/subscriptions",
"organizations_url": "https://api.github.com/users/rajib76/orgs",
"repos_url": "https://api.github.com/users/rajib76/repos",
"events_url": "https://api.github.com/users/rajib76/events{/privacy}",
"received_events_url": "https://api.github.com/users/rajib76/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false | null |
[] | null | 3 | 2023-09-20T14:50:31 | 2023-11-23T12:36:32 | null |
CONTRIBUTOR
| null |
### System Info
LANGCHAIN - 0.0.0286
OS - Windows
### Who can help?
@eyurtsev
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
To reproduce, take a HTML document that has text between STRONG tags of HTML tags and extract using directoryloader
### Expected behavior
It should extract all the text from HTML
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10841/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10841/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10840
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10840/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10840/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10840/events
|
https://github.com/langchain-ai/langchain/issues/10840
| 1,905,102,656 |
I_kwDOIPDwls5xjY9A
| 10,840 |
Confused behavior of CharacterTextSplitter with regex
|
{
"login": "npuichigo",
"id": 11533479,
"node_id": "MDQ6VXNlcjExNTMzNDc5",
"avatar_url": "https://avatars.githubusercontent.com/u/11533479?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/npuichigo",
"html_url": "https://github.com/npuichigo",
"followers_url": "https://api.github.com/users/npuichigo/followers",
"following_url": "https://api.github.com/users/npuichigo/following{/other_user}",
"gists_url": "https://api.github.com/users/npuichigo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/npuichigo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/npuichigo/subscriptions",
"organizations_url": "https://api.github.com/users/npuichigo/orgs",
"repos_url": "https://api.github.com/users/npuichigo/repos",
"events_url": "https://api.github.com/users/npuichigo/events{/privacy}",
"received_events_url": "https://api.github.com/users/npuichigo/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 | 5 | 2023-09-20T14:16:53 | 2024-01-02T05:42:03 | null |
NONE
| null |
### System Info
langchain=0.0.294
python=3.10
### Who can help?
@hwchase17 @agola11
### 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
- [ ] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
loader = TextLoader("state_of_the_union.txt")
documents = loader.load()
pattern = "\.|,|\n\n"
text_splitter = CharacterTextSplitter(separator=pattern, is_separator_regex=True,
chunk_size=100, chunk_overlap=0,
keep_separator=False)
docs = text_splitter.split_documents(documents)
for doc in docs:
print(doc.page_content)
```
the output would be
```
'Madam Speaker\\.|,|\n\n Madam Vice President\\.|,|\n\n our First Lady and Second Gentleman'
'Members of Congress and the Cabinet\\.|,|\n\n Justices of the Supreme Court\\.|,|\n\n My fellow Americans'
'\\.|,|\n\nLast year COVID-19 kept us apart\\.|,|\n\n This year we are finally together again\\.|,|'
```
which includes my regex expression. I even set keep_seperator=False.
with keep_seperator=True, the seperator become the leading character, which is still stange.
```
'Madam Speaker, Madam Vice President, our First Lady and Second Gentleman'
'. Members of Congress and the Cabinet. Justices of the Supreme Court. My fellow Americans.'
'Last year COVID-19 kept us apart. This year we are finally together again.'
```
### Expected behavior
```
'Madam Speaker, Madam Vice President, our First Lady and Second Gentleman.'
'Members of Congress and the Cabinet. Justices of the Supreme Court. My fellow Americans.'
'Last year COVID-19 kept us apart. This year we are finally together again.'
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10840/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10840/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10839
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10839/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10839/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10839/events
|
https://github.com/langchain-ai/langchain/pull/10839
| 1,905,089,020 |
PR_kwDOIPDwls5ayiBA
| 10,839 |
remove get_schema method from Neo4jGraph class
|
{
"login": "DayuanJiang",
"id": 34411969,
"node_id": "MDQ6VXNlcjM0NDExOTY5",
"avatar_url": "https://avatars.githubusercontent.com/u/34411969?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DayuanJiang",
"html_url": "https://github.com/DayuanJiang",
"followers_url": "https://api.github.com/users/DayuanJiang/followers",
"following_url": "https://api.github.com/users/DayuanJiang/following{/other_user}",
"gists_url": "https://api.github.com/users/DayuanJiang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DayuanJiang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DayuanJiang/subscriptions",
"organizations_url": "https://api.github.com/users/DayuanJiang/orgs",
"repos_url": "https://api.github.com/users/DayuanJiang/repos",
"events_url": "https://api.github.com/users/DayuanJiang/events{/privacy}",
"received_events_url": "https://api.github.com/users/DayuanJiang/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 6 | 2023-09-20T14:09:56 | 2023-09-21T07:55:44 | 2023-09-21T07:55:43 |
CONTRIBUTOR
| null |
- **Description:** Remove get_schema method from Neo4jGraph. A property should not be named **get**_schema, and We can just use `self.schema` to get access the schema.
- **Tag maintainer:** @baskaryan (I am sorry but the relevant maintainer are not showed in default pull request message)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10839/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10839/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10839",
"html_url": "https://github.com/langchain-ai/langchain/pull/10839",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10839.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10839.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10837
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10837/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10837/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10837/events
|
https://github.com/langchain-ai/langchain/pull/10837
| 1,904,926,280 |
PR_kwDOIPDwls5ax-4g
| 10,837 |
Fix PyMUPDFLoader kwargs
|
{
"login": "ashish-dahal",
"id": 35001414,
"node_id": "MDQ6VXNlcjM1MDAxNDE0",
"avatar_url": "https://avatars.githubusercontent.com/u/35001414?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ashish-dahal",
"html_url": "https://github.com/ashish-dahal",
"followers_url": "https://api.github.com/users/ashish-dahal/followers",
"following_url": "https://api.github.com/users/ashish-dahal/following{/other_user}",
"gists_url": "https://api.github.com/users/ashish-dahal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ashish-dahal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ashish-dahal/subscriptions",
"organizations_url": "https://api.github.com/users/ashish-dahal/orgs",
"repos_url": "https://api.github.com/users/ashish-dahal/repos",
"events_url": "https://api.github.com/users/ashish-dahal/events{/privacy}",
"received_events_url": "https://api.github.com/users/ashish-dahal/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T12:49:02 | 2023-10-05T12:56:30 | 2023-10-05T12:56:30 |
CONTRIBUTOR
| null |
- **Description:** Fix the `PyMuPDFLoader` to accept `loader_kwargs` from the document loader's `loader_kwargs` option. This provides more flexibility in formatting the output documents.
- **Issue:** The `loader_kwargs` is not passed into the `load` method from the document loader, which limits configuration options.
- **Dependencies:** None
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10837/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10837/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10837",
"html_url": "https://github.com/langchain-ai/langchain/pull/10837",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10837.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10837.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10836
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10836/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10836/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10836/events
|
https://github.com/langchain-ai/langchain/issues/10836
| 1,904,823,416 |
I_kwDOIPDwls5xiUx4
| 10,836 |
below code is not able to show grpahs at frontend , rather it returns code ,
|
{
"login": "astro-siddhesh",
"id": 118797304,
"node_id": "U_kgDOBxSz-A",
"avatar_url": "https://avatars.githubusercontent.com/u/118797304?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/astro-siddhesh",
"html_url": "https://github.com/astro-siddhesh",
"followers_url": "https://api.github.com/users/astro-siddhesh/followers",
"following_url": "https://api.github.com/users/astro-siddhesh/following{/other_user}",
"gists_url": "https://api.github.com/users/astro-siddhesh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/astro-siddhesh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/astro-siddhesh/subscriptions",
"organizations_url": "https://api.github.com/users/astro-siddhesh/orgs",
"repos_url": "https://api.github.com/users/astro-siddhesh/repos",
"events_url": "https://api.github.com/users/astro-siddhesh/events{/privacy}",
"received_events_url": "https://api.github.com/users/astro-siddhesh/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": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-20T11:52:08 | 2023-12-27T16:04:28 | 2023-12-27T16:04:27 |
NONE
| null |
### Discussed in https://github.com/langchain-ai/langchain/discussions/10835
<div type='discussions-op-text'>
<sup>Originally posted by **astro-siddhesh** September 20, 2023</sup>
import pandas as pd
import streamlit as st
from langchain.chat_models import ChatOpenAI
from langchain.agents.agent_toolkits import create_pandas_dataframe_agent
from langchain.agents.agent_types import AgentType
df = pd.read_csv('/Users/siddheshphapale/Desktop/project/sqlcsv.csv')
llm = ChatOpenAI(openai_api_key= "my key" , temperature=0 ,max_tokens= 500 , verbose= False)
agent = create_pandas_dataframe_agent(llm, df, agent_type=AgentType.OPENAI_FUNCTIONS)
from langsmith import Client
client = Client()
def send_feedback(run_id, score):
client.create_feedback(run_id, "user_score", score=score)
st.set_page_config(page_title='🦜🔗 Ask the CSV App')
st.title('🦜🔗 Ask the CSV App')
query_text = st.text_input('Enter your question:', placeholder = 'Who was in cabin C128?')
# Form input and query
result = None
with st.form('myform', clear_on_submit=True):
submitted = st.form_submit_button('Submit')
if submitted:
with st.spinner('Calculating...'):
response = agent({"input": query_text}, include_run_info=True)
result = response["output"]
run_id = response["__run"].run_id
if result is not None:
st.info(result)
col_blank, col_text, col1, col2 = st.columns([10, 2,1,1])
with col_text:
st.text("Feedback:")
with col1:
st.button("👍", on_click=send_feedback, args=(run_id, 1))
with col2:
st.button("👎", on_click=send_feedback, args=(run_id, 0))
<img width="600" alt="Screenshot 2023-09-20 at 5 21 38 PM" src="https://github.com/langchain-ai/langchain/assets/118797304/536155f7-fb12-4fa2-8dc8-80aea70e7389">
</div>
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10836/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10836/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10834
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10834/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10834/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10834/events
|
https://github.com/langchain-ai/langchain/issues/10834
| 1,904,777,227 |
I_kwDOIPDwls5xiJgL
| 10,834 |
how to use LongContextReorder with RetrievalQAChain
|
{
"login": "imhager",
"id": 7991405,
"node_id": "MDQ6VXNlcjc5OTE0MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/7991405?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/imhager",
"html_url": "https://github.com/imhager",
"followers_url": "https://api.github.com/users/imhager/followers",
"following_url": "https://api.github.com/users/imhager/following{/other_user}",
"gists_url": "https://api.github.com/users/imhager/gists{/gist_id}",
"starred_url": "https://api.github.com/users/imhager/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/imhager/subscriptions",
"organizations_url": "https://api.github.com/users/imhager/orgs",
"repos_url": "https://api.github.com/users/imhager/repos",
"events_url": "https://api.github.com/users/imhager/events{/privacy}",
"received_events_url": "https://api.github.com/users/imhager/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 | 9 | 2023-09-20T11:22:57 | 2023-12-22T03:31:21 | null |
NONE
| null |
### Issue you'd like to raise.
in docs,has a simple demo to use LongContextReorder to reorder docs.
but ,if i want use it with RetrievalQAChain ,how can i use it. thx
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10834/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/10834/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10833
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10833/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10833/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10833/events
|
https://github.com/langchain-ai/langchain/issues/10833
| 1,904,764,017 |
I_kwDOIPDwls5xiGRx
| 10,833 |
LLMSingleActionAgent mixes up tools
|
{
"login": "Daniel199438",
"id": 16019073,
"node_id": "MDQ6VXNlcjE2MDE5MDcz",
"avatar_url": "https://avatars.githubusercontent.com/u/16019073?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Daniel199438",
"html_url": "https://github.com/Daniel199438",
"followers_url": "https://api.github.com/users/Daniel199438/followers",
"following_url": "https://api.github.com/users/Daniel199438/following{/other_user}",
"gists_url": "https://api.github.com/users/Daniel199438/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Daniel199438/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Daniel199438/subscriptions",
"organizations_url": "https://api.github.com/users/Daniel199438/orgs",
"repos_url": "https://api.github.com/users/Daniel199438/repos",
"events_url": "https://api.github.com/users/Daniel199438/events{/privacy}",
"received_events_url": "https://api.github.com/users/Daniel199438/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": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 5 | 2023-09-20T11:14:36 | 2023-10-18T15:11:47 | 2023-10-18T15:11:47 |
NONE
| null |
### System Info
My systeminfo:
langchain 0.0.295
Python 3.11
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
That is my code where I set up my agent with custom tools, each tool has a name, description and access to a specific vector store with a collection name.
```python
def process_prompt(user_prompt: str, session_id="allgemein", debug=False):
openai.api_key = config.openai_api_key
llm = ChatOpenAI(temperature=0, model="gpt-3.5-turbo-16k", max_tokens=4096)
service_context = ServiceContext.from_defaults(llm=llm)
used_tools = []
for tool in tools_to_use:
vector_store = get_vector_store(tool.get("collection"))
index = VectorStoreIndex.from_vector_store(vector_store=vector_store, service_context=service_context)
filters = None
vector_store_info = VectorStoreInfo(
content_info=tool.get("description"),
metadata_info=[]
)
retriever = VectorIndexAutoRetriever(index, vector_store_info=vector_store_info)
used_tools.append(
Tool(
name=tool.get("name"),
description=tool.get("description"),
return_direct=tool.get("return_direct"),
func=lambda q: str(retriever.retrieve(q)),
)
)
message_history = PostgresChatMessageHistory(
connection_string=f"postgresql://postgres:{config.postgres}, session_id=session_id, table_name="chat_history",
)
memory = ConversationBufferMemory(
memory_key="chat_history", chat_memory=message_history
)
prompt = PromptTemplate(input_variables=["input", "chat_history"], template=summary_prompt_template)
summary_chain = LLMChain(
llm=llm,
prompt=prompt,
verbose=True,
memory=memory, # <--- this is the only change
)
used_tools.append(
Tool(
name="Summary Tool",
description="useful for retrieving memory summaries",
func=summary_chain.run,
)
)
prompt = CustomPromptTemplate(template=get_prompt_template(), tools=used_tools,
input_variables=["input", "intermediate_steps", "chat_history"])
output_parser = CustomOutputParser()
llm_chain = LLMChain(llm=llm, prompt=prompt)
tool_names = [tool.name for tool in used_tools]
agent = LLMSingleActionAgent(
llm_chain=llm_chain,
output_parser=output_parser,
stop=["\nObservation:"], #
allowed_tools=tool_names,
handle_parsing_errors=True,
)
agent_executor = AgentExecutor.from_agent_and_tools(agent=agent, tools=used_tools, verbose=debug,
memory=memory, return_intermediate_steps=False)
response = agent_executor.run(user_prompt)
```
Here is my code for my custom prompt template and output parser:
```python
class CustomPromptTemplate(BaseChatPromptTemplate):
template: str
tools: List[Tool]
def format_messages(self, **kwargs) -> list[HumanMessage]:
# Get the intermediate steps (AgentAction, Observation tuples)
# Format them in a particular way
intermediate_steps = kwargs.pop("intermediate_steps")
thoughts = ""
for action, observation in intermediate_steps:
thoughts += action.log
thoughts += f"\nObservation: {observation}\nThought: "
# Set the agent_scratchpad variable to that value
kwargs["agent_scratchpad"] = thoughts
# print(thoughts)
# Create a tools variable from the list of tools provided
kwargs["tools"] = "\n".join([f"{tool.name}: {tool.description}" for tool in self.tools])
# Create a list of tool names for the tools provided
kwargs["tool_names"] = ", ".join([tool.name for tool in self.tools])
formatted = self.template.format(**kwargs)
return [HumanMessage(content=formatted)]
class CustomOutputParser(AgentOutputParser):
def parse(self, llm_output: str) -> Union[AgentAction, AgentFinish]:
# Check if agent should finish
if "Final Answer:" in llm_output:
# print(llm_output)
return AgentFinish(
# Return values is generally always a dictionary with a single `output` key
# It is not recommended to try anything else at the moment :)
return_values={"output": llm_output.split("Final Answer:")[-1]},
log=llm_output,
)
# Parse out the action and action input
regex = r"Action\s*\d*\s*:(.*?)\nAction\s*\d*\s*Input\s*\d*\s*:[\s]*(.*)"
match = re.search(regex, llm_output, re.DOTALL)
if match:
action = match.group(1).strip()
action_input = match.group(2)
# Return the action and action input
return AgentAction(tool=action, tool_input=action_input.strip(" ").strip('"'), log=llm_output)
else:
# raise ValueError(f"Could not parse output: {llm_output}")
return AgentFinish(return_values={"output": llm_output.split("Thought:")[-1]}, log=llm_output)
```
### Expected behavior
The agent should use exactly the tool what is defined in the action, Instead he always writes:
Example:
```
action: Notion Tool
Input Action: [some input]
Thought: I use the Notion Tool to retrieve some information about the input.
....
```
But when I print the agent_scratchpad it shows that he retrieved information from an other Tool instead of that what he uses.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10833/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10833/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10832
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10832/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10832/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10832/events
|
https://github.com/langchain-ai/langchain/issues/10832
| 1,904,680,537 |
I_kwDOIPDwls5xhx5Z
| 10,832 |
PyPDF2 used in Google Drive loader has vulnerability issues
|
{
"login": "joe-barhouch",
"id": 17459005,
"node_id": "MDQ6VXNlcjE3NDU5MDA1",
"avatar_url": "https://avatars.githubusercontent.com/u/17459005?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/joe-barhouch",
"html_url": "https://github.com/joe-barhouch",
"followers_url": "https://api.github.com/users/joe-barhouch/followers",
"following_url": "https://api.github.com/users/joe-barhouch/following{/other_user}",
"gists_url": "https://api.github.com/users/joe-barhouch/gists{/gist_id}",
"starred_url": "https://api.github.com/users/joe-barhouch/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joe-barhouch/subscriptions",
"organizations_url": "https://api.github.com/users/joe-barhouch/orgs",
"repos_url": "https://api.github.com/users/joe-barhouch/repos",
"events_url": "https://api.github.com/users/joe-barhouch/events{/privacy}",
"received_events_url": "https://api.github.com/users/joe-barhouch/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 4 | 2023-09-20T10:26:26 | 2023-12-27T16:04:33 | 2023-12-27T16:04:32 |
NONE
| null |
### System Info
The GoogleDrive loader currently uses the PyPDF2 library instead of the PyPDF.
Since PyPDF2 was already merged to the original one, it shouldn't be used anymore.
[https://data.safetycli.com/v/59234/f17/?utm_source=pyupio&utm_medium=redirect&utm_campaign=pyup_rd&utm_id=081](url)
This is the vulnerability issue that gets picked up, note that it is fixed in PyPDF
Also I tried to change the loader using `file_loader_cls` but it just doesn't work
### 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
No functionality issue but https://data.safetycli.com/v/59234/f17/?utm_source=pyupio&utm_medium=redirect&utm_campaign=pyup_rd&utm_id=0817&utm_content=data showcases the bug
### Expected behavior
This error should not pop up
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10832/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10832/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10831
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10831/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10831/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10831/events
|
https://github.com/langchain-ai/langchain/issues/10831
| 1,904,666,457 |
I_kwDOIPDwls5xhudZ
| 10,831 |
Issue: use QianfanChatEndpoint and RetrievalQA Error
|
{
"login": "liye199033",
"id": 131761099,
"node_id": "U_kgDOB9qDyw",
"avatar_url": "https://avatars.githubusercontent.com/u/131761099?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/liye199033",
"html_url": "https://github.com/liye199033",
"followers_url": "https://api.github.com/users/liye199033/followers",
"following_url": "https://api.github.com/users/liye199033/following{/other_user}",
"gists_url": "https://api.github.com/users/liye199033/gists{/gist_id}",
"starred_url": "https://api.github.com/users/liye199033/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/liye199033/subscriptions",
"organizations_url": "https://api.github.com/users/liye199033/orgs",
"repos_url": "https://api.github.com/users/liye199033/repos",
"events_url": "https://api.github.com/users/liye199033/events{/privacy}",
"received_events_url": "https://api.github.com/users/liye199033/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5774514459,
"node_id": "LA_kwDOIPDwls8AAAABWDAZGw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/stale",
"name": "stale",
"color": "dadada",
"default": false,
"description": "Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed"
},
{
"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 | 5 | 2023-09-20T10:18:23 | 2023-12-25T16:02:46 | null |
NONE
| null |
### Issue you'd like to raise.
`
llm = QianfanChatEndpoint(
model="ChatGLM2-6B-32K",
qianfan_ak="xxx",
qianfan_sk="xxx"
)
embedding = ErnieEmbeddings(
qianfan_ak="xxx",
qianfan_sk="xxx"
)
db = Chroma.from_documents(texts, embedding)
retriever = db.as_retriever()
qa = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever)
qa.run("请问事项的名称是什么?")
`
an error occurred in the above code.
`
File "/Users/xxx/Workspace/xxx/smart_gov_nav/chatbot/venv/lib/python3.11/site-packages/langchain/chat_models/baidu_qianfan_endpoint.py", line 63, in convert_message_to_dict
raise TypeError(f"Got unknown type {message}")
TypeError: Got unknown type content="Use the following pieces of context to answer the users question. \nIf you don't know the answer, just say that you don't know, don't try to make up an answer.\n----------------\n办事大厅名称\n " additional_kwargs={}
`
Because the type of message in the convert_message_to_dict argument is SystemMessage. That's why this error occurred. How to use it correctly?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10831/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10831/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10830
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10830/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10830/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10830/events
|
https://github.com/langchain-ai/langchain/pull/10830
| 1,904,664,500 |
PR_kwDOIPDwls5axGGY
| 10,830 |
Refactor(ernie): support function_call, reimplment ernie_bot with erniebot SDK.
|
{
"login": "danielhjz",
"id": 5894042,
"node_id": "MDQ6VXNlcjU4OTQwNDI=",
"avatar_url": "https://avatars.githubusercontent.com/u/5894042?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danielhjz",
"html_url": "https://github.com/danielhjz",
"followers_url": "https://api.github.com/users/danielhjz/followers",
"following_url": "https://api.github.com/users/danielhjz/following{/other_user}",
"gists_url": "https://api.github.com/users/danielhjz/gists{/gist_id}",
"starred_url": "https://api.github.com/users/danielhjz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danielhjz/subscriptions",
"organizations_url": "https://api.github.com/users/danielhjz/orgs",
"repos_url": "https://api.github.com/users/danielhjz/repos",
"events_url": "https://api.github.com/users/danielhjz/events{/privacy}",
"received_events_url": "https://api.github.com/users/danielhjz/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 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"
}
] |
closed
| false | null |
[] | null | 4 | 2023-09-20T10:17:15 | 2023-10-13T11:03:32 | 2023-10-13T11:03:21 |
CONTRIBUTOR
| null |
- **Description:**
* Introducing the [ERNIE-Bot SDK](https://github.com/PaddlePaddle/ERNIE-Bot-SDK) to refactor the current implementation of Ernie in Langchain
* Rename ernie.py -> ernie_bot. py, because the usage of `xx-bot` models is only for chat completion generation.
* Support Function Calling capability in chat_models/ernie_bot.py
* Add ipynb and test
- **Issue:** no
- **Dependencies:** no
- **Tag maintainer:** @baskaryan
- **Twitter handle:** no
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10830/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10830/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10830",
"html_url": "https://github.com/langchain-ai/langchain/pull/10830",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10830.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10830.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10829
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10829/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10829/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10829/events
|
https://github.com/langchain-ai/langchain/issues/10829
| 1,904,646,977 |
I_kwDOIPDwls5xhptB
| 10,829 |
Simirality search not working for Conversational Retrieval Agents
|
{
"login": "binodev",
"id": 99185039,
"node_id": "U_kgDOBelxjw",
"avatar_url": "https://avatars.githubusercontent.com/u/99185039?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/binodev",
"html_url": "https://github.com/binodev",
"followers_url": "https://api.github.com/users/binodev/followers",
"following_url": "https://api.github.com/users/binodev/following{/other_user}",
"gists_url": "https://api.github.com/users/binodev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/binodev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/binodev/subscriptions",
"organizations_url": "https://api.github.com/users/binodev/orgs",
"repos_url": "https://api.github.com/users/binodev/repos",
"events_url": "https://api.github.com/users/binodev/events{/privacy}",
"received_events_url": "https://api.github.com/users/binodev/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": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 3 | 2023-09-20T10:06:42 | 2023-12-27T16:04:43 | 2023-12-27T16:04:42 |
NONE
| null |
### System Info
Hello! I'm using Conversational Retrieval Agents in a Nodejs environment with Faiss vectorStore. The problem is that the agent does not search for simurality. Vectors are normally well created and saved in a folder by Faiss.
It should be noted that the chatbot communicates well but does not take vectors into account.
Here are the snippets of my code :
**creation and export of the chain**
`const llm = new ChatOpenAI({
temperature: 0,
maxTokens: 300,
modelName: "gpt-4"
});
const memory = new OpenAIAgentTokenBufferMemory({
llm: llm,
memoryKey: "chat_history",
returnMessages: true,
inputKey:"input",
outputKey:"output",
});
const makeChain = async (vectorstore,basePrompt) => {
const retriever = vectorstore.asRetriever();
const tool = createRetrieverTool(retriever, {
name: "search_state_of_union",
description: "Searches and returns documents regarding the state-of-the-union.",
});
const tools = [tool]
const chain = await initializeAgentExecutorWithOptions(tools,llm,{
verbose: true,
agentType: "openai-functions",
memory:memory,
returnIntermediateSteps: true,
agentArgs: {
prefix:basePrompt +` `+`Do your best to answer the questions. Feel free to use any tools available to look up relevant information, only if necessary.`,
},
});
return chain;
};
`
**Using of the chain**
` const vectorStorePath = process.env.VECTOR_STORE_PATH || path.join(__dirname, '..', 'vectorStore');
const directory = path.join(vectorStorePath, chatbot.name);
console.log(directory);
const vectorStore=await FaissStore.load(
directory,
new OpenAIEmbeddings()
);
/**const resultTwo = await vectorStore.similaritySearch("nestor", 1);
console.log(resultTwo); */
// Sanitize the message
const sanitizedMessage = message.trim().replaceAll('\n', ' ')
//create chain
const chain = await makeChain(vectorStore, chatbot.basePrompt);
//Ask a question using chat history
const response = await chain.call({
input: sanitizedMessage,
chat_history: chatHistory || []
});
`
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
**Create and export the chain**
`const llm = new ChatOpenAI({
temperature: 0,
maxTokens: 300,
modelName: "gpt-4"
});
const memory = new OpenAIAgentTokenBufferMemory({
llm: llm,
memoryKey: "chat_history",
returnMessages: true,
inputKey:"input",
outputKey:"output",
});
const makeChain = async (vectorstore,basePrompt) => {
const retriever = vectorstore.asRetriever();
const tool = createRetrieverTool(retriever, {
name: "search_state_of_union",
description: "Searches and returns documents regarding the state-of-the-union.",
});
const tools = [tool]
const chain = await initializeAgentExecutorWithOptions(tools,llm,{
verbose: true,
agentType: "openai-functions",
memory:memory,
returnIntermediateSteps: true,
agentArgs: {
prefix:basePrompt +` `+`Do your best to answer the questions. Feel free to use any tools available to look up relevant information, only if necessary.`,
},
});
return chain;
};
`
**Using of the chain**
` const vectorStorePath = process.env.VECTOR_STORE_PATH || path.join(__dirname, '..', 'vectorStore');
const directory = path.join(vectorStorePath, chatbot.name);
console.log(directory);
const vectorStore=await FaissStore.load(
directory,
new OpenAIEmbeddings()
);
/**const resultTwo = await vectorStore.similaritySearch("nestor", 1);
console.log(resultTwo); */
// Sanitize the message
const sanitizedMessage = message.trim().replaceAll('\n', ' ')
//create chain
const chain = await makeChain(vectorStore, chatbot.basePrompt);
//Ask a question using chat history
const response = await chain.call({
input: sanitizedMessage,
chat_history: chatHistory || []
});
`
### Expected behavior
Help me find a solution
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10829/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/10829/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10827
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10827/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10827/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10827/events
|
https://github.com/langchain-ai/langchain/pull/10827
| 1,904,593,370 |
PR_kwDOIPDwls5aw2zt
| 10,827 |
Title:fixed a bug that was causing the streaming transfer to not work…
|
{
"login": "quantum00549",
"id": 46469154,
"node_id": "MDQ6VXNlcjQ2NDY5MTU0",
"avatar_url": "https://avatars.githubusercontent.com/u/46469154?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/quantum00549",
"html_url": "https://github.com/quantum00549",
"followers_url": "https://api.github.com/users/quantum00549/followers",
"following_url": "https://api.github.com/users/quantum00549/following{/other_user}",
"gists_url": "https://api.github.com/users/quantum00549/gists{/gist_id}",
"starred_url": "https://api.github.com/users/quantum00549/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/quantum00549/subscriptions",
"organizations_url": "https://api.github.com/users/quantum00549/orgs",
"repos_url": "https://api.github.com/users/quantum00549/repos",
"events_url": "https://api.github.com/users/quantum00549/events{/privacy}",
"received_events_url": "https://api.github.com/users/quantum00549/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": 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-09-20T09:36:28 | 2023-12-02T02:57:51 | 2023-12-02T02:57:51 |
CONTRIBUTOR
| null |
… properly
Fixed a bug that was causing the streaming transfer to not work properly.
- **Description:
1、The on_llm_new_token method in the streaming callback can now be called properly in streaming transfer mode.
2、In streaming transfer mode, LLM can now correctly output the complete response instead of just the first token.
- **Tag maintainer: @wangxuqi
- **Twitter handle: @kGX7XJjuYxzX9Km
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10827/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10827/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10827",
"html_url": "https://github.com/langchain-ai/langchain/pull/10827",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10827.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10827.patch",
"merged_at": "2023-12-02T02:57:51"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10826
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10826/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10826/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10826/events
|
https://github.com/langchain-ai/langchain/pull/10826
| 1,904,528,559 |
PR_kwDOIPDwls5awotS
| 10,826 |
Add ConversationBufferMemory to ConversationalRetrievalChain
|
{
"login": "imksuma",
"id": 11550566,
"node_id": "MDQ6VXNlcjExNTUwNTY2",
"avatar_url": "https://avatars.githubusercontent.com/u/11550566?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/imksuma",
"html_url": "https://github.com/imksuma",
"followers_url": "https://api.github.com/users/imksuma/followers",
"following_url": "https://api.github.com/users/imksuma/following{/other_user}",
"gists_url": "https://api.github.com/users/imksuma/gists{/gist_id}",
"starred_url": "https://api.github.com/users/imksuma/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/imksuma/subscriptions",
"organizations_url": "https://api.github.com/users/imksuma/orgs",
"repos_url": "https://api.github.com/users/imksuma/repos",
"events_url": "https://api.github.com/users/imksuma/events{/privacy}",
"received_events_url": "https://api.github.com/users/imksuma/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T09:01:00 | 2023-09-20T09:37:18 | 2023-09-20T09:37:12 |
NONE
| null |
This should help to add memory buffer directly when create ConversationalRetrievalChain from_llm
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10826/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10826/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10826",
"html_url": "https://github.com/langchain-ai/langchain/pull/10826",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10826.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10826.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10825
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10825/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10825/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10825/events
|
https://github.com/langchain-ai/langchain/pull/10825
| 1,904,479,105 |
PR_kwDOIPDwls5awd0a
| 10,825 |
Use shallow copy on runnable locals
|
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T08:37:55 | 2023-09-20T15:13:08 | 2023-09-20T15:13:07 |
COLLABORATOR
| null |
- deep copy prevents storing complex objects in locals
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** a description of the change,
- **Issue:** the issue # it fixes (if applicable),
- **Dependencies:** any dependencies required for this change,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
- **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10825/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10825/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10825",
"html_url": "https://github.com/langchain-ai/langchain/pull/10825",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10825.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10825.patch",
"merged_at": "2023-09-20T15:13:07"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10824
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10824/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10824/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10824/events
|
https://github.com/langchain-ai/langchain/pull/10824
| 1,904,479,098 |
PR_kwDOIPDwls5awd0T
| 10,824 |
Criteria Parser Improvements
|
{
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T08:37:55 | 2023-09-20T18:18:35 | 2023-09-20T18:18:34 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10824/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10824/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10824",
"html_url": "https://github.com/langchain-ai/langchain/pull/10824",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10824.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10824.patch",
"merged_at": "2023-09-20T18:18:34"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10823
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10823/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10823/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10823/events
|
https://github.com/langchain-ai/langchain/pull/10823
| 1,904,423,616 |
PR_kwDOIPDwls5awRzG
| 10,823 |
fix: impl missing embeddings method
|
{
"login": "sonald",
"id": 924334,
"node_id": "MDQ6VXNlcjkyNDMzNA==",
"avatar_url": "https://avatars.githubusercontent.com/u/924334?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sonald",
"html_url": "https://github.com/sonald",
"followers_url": "https://api.github.com/users/sonald/followers",
"following_url": "https://api.github.com/users/sonald/following{/other_user}",
"gists_url": "https://api.github.com/users/sonald/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sonald/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sonald/subscriptions",
"organizations_url": "https://api.github.com/users/sonald/orgs",
"repos_url": "https://api.github.com/users/sonald/repos",
"events_url": "https://api.github.com/users/sonald/events{/privacy}",
"received_events_url": "https://api.github.com/users/sonald/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-20T08:10:02 | 2023-10-19T06:51:29 | 2023-10-19T06:51:29 |
CONTRIBUTOR
| null |
FAISS does not implement embeddings method and use embed_query to embedding texts which is wrong for some embedding models.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10823/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10823/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10823",
"html_url": "https://github.com/langchain-ai/langchain/pull/10823",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10823.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10823.patch",
"merged_at": "2023-10-19T06:51:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10822
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10822/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10822/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10822/events
|
https://github.com/langchain-ai/langchain/issues/10822
| 1,904,404,073 |
I_kwDOIPDwls5xguZp
| 10,822 |
Providing `-1` to `max_tokens` while creating an OpenAI LLM using the `gpt-3.5-turbo-instruct` is failing
|
{
"login": "carlosapd",
"id": 22346503,
"node_id": "MDQ6VXNlcjIyMzQ2NTAz",
"avatar_url": "https://avatars.githubusercontent.com/u/22346503?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/carlosapd",
"html_url": "https://github.com/carlosapd",
"followers_url": "https://api.github.com/users/carlosapd/followers",
"following_url": "https://api.github.com/users/carlosapd/following{/other_user}",
"gists_url": "https://api.github.com/users/carlosapd/gists{/gist_id}",
"starred_url": "https://api.github.com/users/carlosapd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/carlosapd/subscriptions",
"organizations_url": "https://api.github.com/users/carlosapd/orgs",
"repos_url": "https://api.github.com/users/carlosapd/repos",
"events_url": "https://api.github.com/users/carlosapd/events{/privacy}",
"received_events_url": "https://api.github.com/users/carlosapd/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-09-20T07:58:46 | 2023-09-20T08:10:49 | 2023-09-20T08:10:48 |
NONE
| null |
### System Info
LangChain version: tested with both versions 0.0.294 and 0.0.295.
Python Version: 3.10.10 running on Linux x86_64 (Ubuntu 22.04).
Tested with OpenAI library, both versions 0.27.8 and 0.28.0.
### Who can help?
@hwchase17 @agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [x] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Run the following snippet:
```python
from langchain import OpenAI
llm = OpenAI(
model="gpt-3.5-turbo-instruct",
verbose=True,
max_tokens=-1,
)
llm("I am ")
```
The following error is returned (just the relevant stack trace):
```
File .venv/lib/python3.10/site-packages/langchain/llms/base.py:831, in BaseLLM.__call__(self, prompt, stop, callbacks, tags, metadata, **kwargs)
824 if not isinstance(prompt, str):
825 raise ValueError(
826 "Argument `prompt` is expected to be a string. Instead found "
827 f"{type(prompt)}. If you want to run the LLM on multiple prompts, use "
828 "`generate` instead."
829 )
830 return (
--> 831 self.generate(
832 [prompt],
833 stop=stop,
834 callbacks=callbacks,
835 tags=tags,
836 metadata=metadata,
837 **kwargs,
838 )
839 .generations[0][0]
840 .text
841 )
File .venv/lib/python3.10/site-packages/langchain/llms/base.py:627, in BaseLLM.generate(self, prompts, stop, callbacks, tags, metadata, **kwargs)
618 raise ValueError(
619 "Asked to cache, but no cache found at `langchain.cache`."
620 )
621 run_managers = [
622 callback_manager.on_llm_start(
623 dumpd(self), [prompt], invocation_params=params, options=options
624 )[0]
625 for callback_manager, prompt in zip(callback_managers, prompts)
626 ]
--> 627 output = self._generate_helper(
628 prompts, stop, run_managers, bool(new_arg_supported), **kwargs
629 )
630 return output
631 if len(missing_prompts) > 0:
File .venv/lib/python3.10/site-packages/langchain/llms/base.py:529, in BaseLLM._generate_helper(self, prompts, stop, run_managers, new_arg_supported, **kwargs)
527 for run_manager in run_managers:
528 run_manager.on_llm_error(e)
--> 529 raise e
530 flattened_outputs = output.flatten()
531 for manager, flattened_output in zip(run_managers, flattened_outputs):
File .venv/lib/python3.10/site-packages/langchain/llms/base.py:516, in BaseLLM._generate_helper(self, prompts, stop, run_managers, new_arg_supported, **kwargs)
506 def _generate_helper(
507 self,
508 prompts: List[str],
(...)
512 **kwargs: Any,
513 ) -> LLMResult:
514 try:
515 output = (
--> 516 self._generate(
517 prompts,
518 stop=stop,
519 # TODO: support multiple run managers
520 run_manager=run_managers[0] if run_managers else None,
521 **kwargs,
522 )
523 if new_arg_supported
524 else self._generate(prompts, stop=stop)
525 )
526 except BaseException as e:
527 for run_manager in run_managers:
File .venv/lib/python3.10/site-packages/langchain/llms/openai.py:357, in BaseOpenAI._generate(self, prompts, stop, run_manager, **kwargs)
355 params = self._invocation_params
356 params = {**params, **kwargs}
--> 357 sub_prompts = self.get_sub_prompts(params, prompts, stop)
358 choices = []
359 token_usage: Dict[str, int] = {}
File .venv/lib/python3.10/site-packages/langchain/llms/openai.py:459, in BaseOpenAI.get_sub_prompts(self, params, prompts, stop)
455 if len(prompts) != 1:
456 raise ValueError(
457 "max_tokens set to -1 not supported for multiple inputs."
458 )
--> 459 params["max_tokens"] = self.max_tokens_for_prompt(prompts[0])
460 sub_prompts = [
461 prompts[i : i + self.batch_size]
462 for i in range(0, len(prompts), self.batch_size)
463 ]
464 return sub_prompts
File .venv/lib/python3.10/site-packages/langchain/llms/openai.py:616, in BaseOpenAI.max_tokens_for_prompt(self, prompt)
602 """Calculate the maximum number of tokens possible to generate for a prompt.
603
604 Args:
(...)
613 max_tokens = openai.max_token_for_prompt("Tell me a joke.")
614 """
615 num_tokens = self.get_num_tokens(prompt)
--> 616 return self.max_context_size - num_tokens
File .venv/lib/python3.10/site-packages/langchain/llms/openai.py:599, in BaseOpenAI.max_context_size(self)
596 @property
597 def max_context_size(self) -> int:
598 """Get max context size for this model."""
--> 599 return self.modelname_to_contextsize(self.model_name)
File .venv/lib/python3.10/site-packages/langchain/llms/openai.py:589, in BaseOpenAI.modelname_to_contextsize(modelname)
586 context_size = model_token_mapping.get(modelname, None)
588 if context_size is None:
--> 589 raise ValueError(
590 f"Unknown model: {modelname}. Please provide a valid OpenAI model name."
591 "Known models are: " + ", ".join(model_token_mapping.keys())
592 )
594 return context_size
ValueError: Unknown model: gpt-3.5-turbo-instruct. Please provide a valid OpenAI model name.Known models are: gpt-4, gpt-4-0314, gpt-4-0613, gpt-4-32k, gpt-4-32k-0314, gpt-4-32k-0613, gpt-3.5-turbo, gpt-3.5-turbo-0301, gpt-3.5-turbo-0613, gpt-3.5-turbo-16k, gpt-3.5-turbo-16k-0613, text-ada-001, ada, text-babbage-001, babbage, text-curie-001, curie, davinci, text-davinci-003, text-davinci-002, code-davinci-002, code-davinci-001, code-cushman-002, code-cushman-001
```
Originally got this through a `LLMChain`, but tracked it down to the LLM itself.
### Expected behavior
Should be processing the input correctly. Can confirm this works with other models like `text-davinci-003`.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10822/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10822/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/10821
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10821/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10821/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10821/events
|
https://github.com/langchain-ai/langchain/pull/10821
| 1,904,330,397 |
PR_kwDOIPDwls5av9ZZ
| 10,821 |
Fixed some Gramm.. errors
|
{
"login": "ShorthillsAI",
"id": 141953346,
"node_id": "U_kgDOCHYJQg",
"avatar_url": "https://avatars.githubusercontent.com/u/141953346?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ShorthillsAI",
"html_url": "https://github.com/ShorthillsAI",
"followers_url": "https://api.github.com/users/ShorthillsAI/followers",
"following_url": "https://api.github.com/users/ShorthillsAI/following{/other_user}",
"gists_url": "https://api.github.com/users/ShorthillsAI/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ShorthillsAI/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShorthillsAI/subscriptions",
"organizations_url": "https://api.github.com/users/ShorthillsAI/orgs",
"repos_url": "https://api.github.com/users/ShorthillsAI/repos",
"events_url": "https://api.github.com/users/ShorthillsAI/events{/privacy}",
"received_events_url": "https://api.github.com/users/ShorthillsAI/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-09-20T07:20:37 | 2023-09-21T09:04:56 | 2023-09-21T09:04:55 |
CONTRIBUTOR
| null |
Fixed some Gramm.. errors
@baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10821/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10821/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/10821",
"html_url": "https://github.com/langchain-ai/langchain/pull/10821",
"diff_url": "https://github.com/langchain-ai/langchain/pull/10821.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/10821.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10820
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/10820/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10820/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/10820/events
|
https://github.com/langchain-ai/langchain/issues/10820
| 1,904,284,433 |
I_kwDOIPDwls5xgRMR
| 10,820 |
MongoDBAtlasVectorSearch: Make It Work with Existing MongoDB Collection (rather than having to create a new one)
|
{
"login": "ghost",
"id": 10137,
"node_id": "MDQ6VXNlcjEwMTM3",
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ghost",
"html_url": "https://github.com/ghost",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"repos_url": "https://api.github.com/users/ghost/repos",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
open
| false | null |
[] | null | 1 | 2023-09-20T06:52:26 | 2023-10-05T21:58:37 | null |
NONE
| null |
### Feature request
When using MongoDBAtlasVectorSearch, the user is limited to only first populate a MongoDB collection of documents using either add_document or add_text methods. Those methods create documents on the given collection using a fixed structure. What if the user already has a collection on MongoDB with custom structure (still containing the field 'embedding' which is used to measure similarity)? This is not currently supported and the user would have to implement a wrapper around MongoDBAtlasVectorSearch to achieve that.
For instance the following code won't work (docs will be empty):
```
from langchain.vectorstores import MongoDBAtlasVectorSearch
from langchain.embeddings import HuggingFaceEmbeddings
embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
index_name = "index_name_from_MongoDB"
docsearch = MongoDBAtlasVectorSearch(embeddings, collection=collection, index_name=index_name)
query = "What did the president say about Ketanji Brown Jackson"
docs = docsearch.similarity_search(query)
print(docs[0].page_content)
```
This is because the collection is not populated using any of the original methods of MongoDBAtlasVectorSearch, e.g. add_document or add_text, hence the structure of the collection might be different (containing additional fields and missing the 'text' field for example).
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/10820/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/10820/timeline
| null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.